diff --git a/clients/client-app-mesh/models/index.ts b/clients/client-app-mesh/models/index.ts index b08875fad1ff..6f124363c3bf 100644 --- a/clients/client-app-mesh/models/index.ts +++ b/clients/client-app-mesh/models/index.ts @@ -10,6 +10,7 @@ export namespace AccessLog { interface $Base { __type?: "AccessLog"; } + /** *

The file object to send virtual node access logs to.

*/ @@ -17,18 +18,26 @@ export namespace AccessLog { file: FileAccessLog; $unknown?: never; } + export interface $UnknownMember extends $Base { file?: never; $unknown: [string, any]; } + export interface Visitor { file: (value: FileAccessLog) => T; _: (name: string, value: any) => T; } + export const visit = (value: AccessLog, visitor: Visitor): T => { if (value.file !== undefined) return visitor.file(value.file); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: AccessLog): any => { + if (obj.file !== undefined) return { file: FileAccessLog.filterSensitiveLog(obj.file) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } /** @@ -98,6 +107,7 @@ export namespace Backend { interface $Base { __type?: "Backend"; } + /** *

Specifies a virtual service to use as a backend for a virtual node.

*/ @@ -105,18 +115,27 @@ export namespace Backend { virtualService: VirtualServiceBackend; $unknown?: never; } + export interface $UnknownMember extends $Base { virtualService?: never; $unknown: [string, any]; } + export interface Visitor { virtualService: (value: VirtualServiceBackend) => T; _: (name: string, value: any) => T; } + export const visit = (value: Backend, visitor: Visitor): T => { if (value.virtualService !== undefined) return visitor.virtualService(value.virtualService); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: Backend): any => { + if (obj.virtualService !== undefined) + return { virtualService: VirtualServiceBackend.filterSensitiveLog(obj.virtualService) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } /** @@ -133,6 +152,7 @@ export interface BackendDefaults { export namespace BackendDefaults { export const filterSensitiveLog = (obj: BackendDefaults): any => ({ ...obj, + ...(obj.clientPolicy && { clientPolicy: ClientPolicy.filterSensitiveLog(obj.clientPolicy) }), }); export const isa = (o: any): o is BackendDefaults => __isa(o, "BackendDefaults"); } @@ -167,6 +187,7 @@ export interface ClientPolicy { export namespace ClientPolicy { export const filterSensitiveLog = (obj: ClientPolicy): any => ({ ...obj, + ...(obj.tls && { tls: ClientPolicyTls.filterSensitiveLog(obj.tls) }), }); export const isa = (o: any): o is ClientPolicy => __isa(o, "ClientPolicy"); } @@ -196,6 +217,7 @@ export interface ClientPolicyTls { export namespace ClientPolicyTls { export const filterSensitiveLog = (obj: ClientPolicyTls): any => ({ ...obj, + ...(obj.validation && { validation: TlsValidationContext.filterSensitiveLog(obj.validation) }), }); export const isa = (o: any): o is ClientPolicyTls => __isa(o, "ClientPolicyTls"); } @@ -390,6 +412,7 @@ export interface CreateVirtualNodeInput { export namespace CreateVirtualNodeInput { export const filterSensitiveLog = (obj: CreateVirtualNodeInput): any => ({ ...obj, + ...(obj.spec && { spec: VirtualNodeSpec.filterSensitiveLog(obj.spec) }), }); export const isa = (o: any): o is CreateVirtualNodeInput => __isa(o, "CreateVirtualNodeInput"); } @@ -408,6 +431,7 @@ export interface CreateVirtualNodeOutput { export namespace CreateVirtualNodeOutput { export const filterSensitiveLog = (obj: CreateVirtualNodeOutput): any => ({ ...obj, + ...(obj.virtualNode && { virtualNode: VirtualNodeData.filterSensitiveLog(obj.virtualNode) }), }); export const isa = (o: any): o is CreateVirtualNodeOutput => __isa(o, "CreateVirtualNodeOutput"); } @@ -524,6 +548,7 @@ export interface CreateVirtualServiceInput { export namespace CreateVirtualServiceInput { export const filterSensitiveLog = (obj: CreateVirtualServiceInput): any => ({ ...obj, + ...(obj.spec && { spec: VirtualServiceSpec.filterSensitiveLog(obj.spec) }), }); export const isa = (o: any): o is CreateVirtualServiceInput => __isa(o, "CreateVirtualServiceInput"); } @@ -542,6 +567,7 @@ export interface CreateVirtualServiceOutput { export namespace CreateVirtualServiceOutput { export const filterSensitiveLog = (obj: CreateVirtualServiceOutput): any => ({ ...obj, + ...(obj.virtualService && { virtualService: VirtualServiceData.filterSensitiveLog(obj.virtualService) }), }); export const isa = (o: any): o is CreateVirtualServiceOutput => __isa(o, "CreateVirtualServiceOutput"); } @@ -700,6 +726,7 @@ export interface DeleteVirtualNodeOutput { export namespace DeleteVirtualNodeOutput { export const filterSensitiveLog = (obj: DeleteVirtualNodeOutput): any => ({ ...obj, + ...(obj.virtualNode && { virtualNode: VirtualNodeData.filterSensitiveLog(obj.virtualNode) }), }); export const isa = (o: any): o is DeleteVirtualNodeOutput => __isa(o, "DeleteVirtualNodeOutput"); } @@ -794,6 +821,7 @@ export interface DeleteVirtualServiceOutput { export namespace DeleteVirtualServiceOutput { export const filterSensitiveLog = (obj: DeleteVirtualServiceOutput): any => ({ ...obj, + ...(obj.virtualService && { virtualService: VirtualServiceData.filterSensitiveLog(obj.virtualService) }), }); export const isa = (o: any): o is DeleteVirtualServiceOutput => __isa(o, "DeleteVirtualServiceOutput"); } @@ -935,6 +963,7 @@ export interface DescribeVirtualNodeOutput { export namespace DescribeVirtualNodeOutput { export const filterSensitiveLog = (obj: DescribeVirtualNodeOutput): any => ({ ...obj, + ...(obj.virtualNode && { virtualNode: VirtualNodeData.filterSensitiveLog(obj.virtualNode) }), }); export const isa = (o: any): o is DescribeVirtualNodeOutput => __isa(o, "DescribeVirtualNodeOutput"); } @@ -1029,6 +1058,7 @@ export interface DescribeVirtualServiceOutput { export namespace DescribeVirtualServiceOutput { export const filterSensitiveLog = (obj: DescribeVirtualServiceOutput): any => ({ ...obj, + ...(obj.virtualService && { virtualService: VirtualServiceData.filterSensitiveLog(obj.virtualService) }), }); export const isa = (o: any): o is DescribeVirtualServiceOutput => __isa(o, "DescribeVirtualServiceOutput"); } @@ -1313,6 +1343,7 @@ export interface GrpcRouteMatch { export namespace GrpcRouteMatch { export const filterSensitiveLog = (obj: GrpcRouteMatch): any => ({ ...obj, + ...(obj.metadata && { metadata: obj.metadata.map((item) => GrpcRouteMetadata.filterSensitiveLog(item)) }), }); export const isa = (o: any): o is GrpcRouteMatch => __isa(o, "GrpcRouteMatch"); } @@ -1341,6 +1372,7 @@ export interface GrpcRouteMetadata { export namespace GrpcRouteMetadata { export const filterSensitiveLog = (obj: GrpcRouteMetadata): any => ({ ...obj, + ...(obj.match && { match: GrpcRouteMetadataMatchMethod.filterSensitiveLog(obj.match) }), }); export const isa = (o: any): o is GrpcRouteMetadata => __isa(o, "GrpcRouteMetadata"); } @@ -1360,6 +1392,7 @@ export namespace GrpcRouteMetadataMatchMethod { interface $Base { __type?: "GrpcRouteMetadataMatchMethod"; } + /** *

The value sent by the client must match the specified value exactly.

*/ @@ -1371,6 +1404,7 @@ export namespace GrpcRouteMetadataMatchMethod { suffix?: never; $unknown?: never; } + /** *

The value sent by the client must begin with the specified characters.

*/ @@ -1382,6 +1416,7 @@ export namespace GrpcRouteMetadataMatchMethod { suffix?: never; $unknown?: never; } + /** *

An object that represents the range of values to match on.

*/ @@ -1393,6 +1428,7 @@ export namespace GrpcRouteMetadataMatchMethod { suffix?: never; $unknown?: never; } + /** *

The value sent by the client must include the specified characters.

*/ @@ -1404,6 +1440,7 @@ export namespace GrpcRouteMetadataMatchMethod { suffix?: never; $unknown?: never; } + /** *

The value sent by the client must end with the specified characters.

*/ @@ -1415,6 +1452,7 @@ export namespace GrpcRouteMetadataMatchMethod { suffix: string; $unknown?: never; } + export interface $UnknownMember extends $Base { exact?: never; prefix?: never; @@ -1423,6 +1461,7 @@ export namespace GrpcRouteMetadataMatchMethod { suffix?: never; $unknown: [string, any]; } + export interface Visitor { exact: (value: string) => T; prefix: (value: string) => T; @@ -1431,6 +1470,7 @@ export namespace GrpcRouteMetadataMatchMethod { suffix: (value: string) => T; _: (name: string, value: any) => T; } + export const visit = (value: GrpcRouteMetadataMatchMethod, visitor: Visitor): T => { if (value.exact !== undefined) return visitor.exact(value.exact); if (value.prefix !== undefined) return visitor.prefix(value.prefix); @@ -1439,6 +1479,15 @@ export namespace GrpcRouteMetadataMatchMethod { if (value.suffix !== undefined) return visitor.suffix(value.suffix); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: GrpcRouteMetadataMatchMethod): any => { + if (obj.exact !== undefined) return { exact: obj.exact }; + if (obj.prefix !== undefined) return { prefix: obj.prefix }; + if (obj.range !== undefined) return { range: MatchRange.filterSensitiveLog(obj.range) }; + if (obj.regex !== undefined) return { regex: obj.regex }; + if (obj.suffix !== undefined) return { suffix: obj.suffix }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } export interface GrpcTimeout { @@ -1477,6 +1526,7 @@ export namespace HeaderMatchMethod { interface $Base { __type?: "HeaderMatchMethod"; } + /** *

The value sent by the client must match the specified value exactly.

*/ @@ -1488,6 +1538,7 @@ export namespace HeaderMatchMethod { suffix?: never; $unknown?: never; } + /** *

The value sent by the client must begin with the specified characters.

*/ @@ -1499,6 +1550,7 @@ export namespace HeaderMatchMethod { suffix?: never; $unknown?: never; } + /** *

An object that represents the range of values to match on.

*/ @@ -1510,6 +1562,7 @@ export namespace HeaderMatchMethod { suffix?: never; $unknown?: never; } + /** *

The value sent by the client must include the specified characters.

*/ @@ -1521,6 +1574,7 @@ export namespace HeaderMatchMethod { suffix?: never; $unknown?: never; } + /** *

The value sent by the client must end with the specified characters.

*/ @@ -1532,6 +1586,7 @@ export namespace HeaderMatchMethod { suffix: string; $unknown?: never; } + export interface $UnknownMember extends $Base { exact?: never; prefix?: never; @@ -1540,6 +1595,7 @@ export namespace HeaderMatchMethod { suffix?: never; $unknown: [string, any]; } + export interface Visitor { exact: (value: string) => T; prefix: (value: string) => T; @@ -1548,6 +1604,7 @@ export namespace HeaderMatchMethod { suffix: (value: string) => T; _: (name: string, value: any) => T; } + export const visit = (value: HeaderMatchMethod, visitor: Visitor): T => { if (value.exact !== undefined) return visitor.exact(value.exact); if (value.prefix !== undefined) return visitor.prefix(value.prefix); @@ -1556,6 +1613,15 @@ export namespace HeaderMatchMethod { if (value.suffix !== undefined) return visitor.suffix(value.suffix); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: HeaderMatchMethod): any => { + if (obj.exact !== undefined) return { exact: obj.exact }; + if (obj.prefix !== undefined) return { prefix: obj.prefix }; + if (obj.range !== undefined) return { range: MatchRange.filterSensitiveLog(obj.range) }; + if (obj.regex !== undefined) return { regex: obj.regex }; + if (obj.suffix !== undefined) return { suffix: obj.suffix }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } /** @@ -1751,6 +1817,7 @@ export interface HttpRouteHeader { export namespace HttpRouteHeader { export const filterSensitiveLog = (obj: HttpRouteHeader): any => ({ ...obj, + ...(obj.match && { match: HeaderMatchMethod.filterSensitiveLog(obj.match) }), }); export const isa = (o: any): o is HttpRouteHeader => __isa(o, "HttpRouteHeader"); } @@ -1790,6 +1857,7 @@ export interface HttpRouteMatch { export namespace HttpRouteMatch { export const filterSensitiveLog = (obj: HttpRouteMatch): any => ({ ...obj, + ...(obj.headers && { headers: obj.headers.map((item) => HttpRouteHeader.filterSensitiveLog(item)) }), }); export const isa = (o: any): o is HttpRouteMatch => __isa(o, "HttpRouteMatch"); } @@ -2304,6 +2372,7 @@ export interface Logging { export namespace Logging { export const filterSensitiveLog = (obj: Logging): any => ({ ...obj, + ...(obj.accessLog && { accessLog: AccessLog.filterSensitiveLog(obj.accessLog) }), }); export const isa = (o: any): o is Logging => __isa(o, "Logging"); } @@ -2736,22 +2805,32 @@ export namespace SdsSource { interface $Base { __type?: "SdsSource"; } + export interface UnixDomainSocketMember extends $Base { unixDomainSocket: SdsUnixDomainSocketSource; $unknown?: never; } + export interface $UnknownMember extends $Base { unixDomainSocket?: never; $unknown: [string, any]; } + export interface Visitor { unixDomainSocket: (value: SdsUnixDomainSocketSource) => T; _: (name: string, value: any) => T; } + export const visit = (value: SdsSource, visitor: Visitor): T => { if (value.unixDomainSocket !== undefined) return visitor.unixDomainSocket(value.unixDomainSocket); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: SdsSource): any => { + if (obj.unixDomainSocket !== undefined) + return { unixDomainSocket: SdsUnixDomainSocketSource.filterSensitiveLog(obj.unixDomainSocket) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } export interface SdsUnixDomainSocketSource { @@ -2778,6 +2857,7 @@ export namespace ServiceDiscovery { interface $Base { __type?: "ServiceDiscovery"; } + /** *

Specifies any AWS Cloud Map information for the virtual node.

*/ @@ -2786,6 +2866,7 @@ export namespace ServiceDiscovery { dns?: never; $unknown?: never; } + /** *

Specifies the DNS information for the virtual node.

*/ @@ -2794,21 +2875,31 @@ export namespace ServiceDiscovery { dns: DnsServiceDiscovery; $unknown?: never; } + export interface $UnknownMember extends $Base { awsCloudMap?: never; dns?: never; $unknown: [string, any]; } + export interface Visitor { awsCloudMap: (value: AwsCloudMapServiceDiscovery) => T; dns: (value: DnsServiceDiscovery) => T; _: (name: string, value: any) => T; } + export const visit = (value: ServiceDiscovery, visitor: Visitor): T => { if (value.awsCloudMap !== undefined) return visitor.awsCloudMap(value.awsCloudMap); if (value.dns !== undefined) return visitor.dns(value.dns); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: ServiceDiscovery): any => { + if (obj.awsCloudMap !== undefined) + return { awsCloudMap: AwsCloudMapServiceDiscovery.filterSensitiveLog(obj.awsCloudMap) }; + if (obj.dns !== undefined) return { dns: DnsServiceDiscovery.filterSensitiveLog(obj.dns) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } /** @@ -2966,6 +3057,7 @@ export interface TlsValidationContext { export namespace TlsValidationContext { export const filterSensitiveLog = (obj: TlsValidationContext): any => ({ ...obj, + ...(obj.trust && { trust: TlsValidationContextTrust.filterSensitiveLog(obj.trust) }), }); export const isa = (o: any): o is TlsValidationContext => __isa(o, "TlsValidationContext"); } @@ -3017,6 +3109,7 @@ export interface TlsValidationContextSdsTrust { export namespace TlsValidationContextSdsTrust { export const filterSensitiveLog = (obj: TlsValidationContextSdsTrust): any => ({ ...obj, + ...(obj.source && { source: SdsSource.filterSensitiveLog(obj.source) }), }); export const isa = (o: any): o is TlsValidationContextSdsTrust => __isa(o, "TlsValidationContextSdsTrust"); } @@ -3034,6 +3127,7 @@ export namespace TlsValidationContextTrust { interface $Base { __type?: "TlsValidationContextTrust"; } + /** *

A reference to an object that represents a TLS validation context trust for an AWS Certicate Manager (ACM) * certificate.

@@ -3044,6 +3138,7 @@ export namespace TlsValidationContextTrust { sds?: never; $unknown?: never; } + /** *

An object that represents a TLS validation context trust for a local file.

*/ @@ -3053,30 +3148,41 @@ export namespace TlsValidationContextTrust { sds?: never; $unknown?: never; } + export interface SdsMember extends $Base { acm?: never; file?: never; sds: TlsValidationContextSdsTrust; $unknown?: never; } + export interface $UnknownMember extends $Base { acm?: never; file?: never; sds?: never; $unknown: [string, any]; } + export interface Visitor { acm: (value: TlsValidationContextAcmTrust) => T; file: (value: TlsValidationContextFileTrust) => T; sds: (value: TlsValidationContextSdsTrust) => T; _: (name: string, value: any) => T; } + export const visit = (value: TlsValidationContextTrust, visitor: Visitor): T => { if (value.acm !== undefined) return visitor.acm(value.acm); if (value.file !== undefined) return visitor.file(value.file); if (value.sds !== undefined) return visitor.sds(value.sds); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: TlsValidationContextTrust): any => { + if (obj.acm !== undefined) return { acm: TlsValidationContextAcmTrust.filterSensitiveLog(obj.acm) }; + if (obj.file !== undefined) return { file: TlsValidationContextFileTrust.filterSensitiveLog(obj.file) }; + if (obj.sds !== undefined) return { sds: TlsValidationContextSdsTrust.filterSensitiveLog(obj.sds) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } /** @@ -3298,6 +3404,7 @@ export interface UpdateVirtualNodeInput { export namespace UpdateVirtualNodeInput { export const filterSensitiveLog = (obj: UpdateVirtualNodeInput): any => ({ ...obj, + ...(obj.spec && { spec: VirtualNodeSpec.filterSensitiveLog(obj.spec) }), }); export const isa = (o: any): o is UpdateVirtualNodeInput => __isa(o, "UpdateVirtualNodeInput"); } @@ -3316,6 +3423,7 @@ export interface UpdateVirtualNodeOutput { export namespace UpdateVirtualNodeOutput { export const filterSensitiveLog = (obj: UpdateVirtualNodeOutput): any => ({ ...obj, + ...(obj.virtualNode && { virtualNode: VirtualNodeData.filterSensitiveLog(obj.virtualNode) }), }); export const isa = (o: any): o is UpdateVirtualNodeOutput => __isa(o, "UpdateVirtualNodeOutput"); } @@ -3415,6 +3523,7 @@ export interface UpdateVirtualServiceInput { export namespace UpdateVirtualServiceInput { export const filterSensitiveLog = (obj: UpdateVirtualServiceInput): any => ({ ...obj, + ...(obj.spec && { spec: VirtualServiceSpec.filterSensitiveLog(obj.spec) }), }); export const isa = (o: any): o is UpdateVirtualServiceInput => __isa(o, "UpdateVirtualServiceInput"); } @@ -3433,6 +3542,7 @@ export interface UpdateVirtualServiceOutput { export namespace UpdateVirtualServiceOutput { export const filterSensitiveLog = (obj: UpdateVirtualServiceOutput): any => ({ ...obj, + ...(obj.virtualService && { virtualService: VirtualServiceData.filterSensitiveLog(obj.virtualService) }), }); export const isa = (o: any): o is UpdateVirtualServiceOutput => __isa(o, "UpdateVirtualServiceOutput"); } @@ -3471,6 +3581,7 @@ export interface VirtualNodeData { export namespace VirtualNodeData { export const filterSensitiveLog = (obj: VirtualNodeData): any => ({ ...obj, + ...(obj.spec && { spec: VirtualNodeSpec.filterSensitiveLog(obj.spec) }), }); export const isa = (o: any): o is VirtualNodeData => __isa(o, "VirtualNodeData"); } @@ -3570,6 +3681,10 @@ export interface VirtualNodeSpec { export namespace VirtualNodeSpec { export const filterSensitiveLog = (obj: VirtualNodeSpec): any => ({ ...obj, + ...(obj.backendDefaults && { backendDefaults: BackendDefaults.filterSensitiveLog(obj.backendDefaults) }), + ...(obj.backends && { backends: obj.backends.map((item) => Backend.filterSensitiveLog(item)) }), + ...(obj.logging && { logging: Logging.filterSensitiveLog(obj.logging) }), + ...(obj.serviceDiscovery && { serviceDiscovery: ServiceDiscovery.filterSensitiveLog(obj.serviceDiscovery) }), }); export const isa = (o: any): o is VirtualNodeSpec => __isa(o, "VirtualNodeSpec"); } @@ -3774,6 +3889,7 @@ export interface VirtualServiceBackend { export namespace VirtualServiceBackend { export const filterSensitiveLog = (obj: VirtualServiceBackend): any => ({ ...obj, + ...(obj.clientPolicy && { clientPolicy: ClientPolicy.filterSensitiveLog(obj.clientPolicy) }), }); export const isa = (o: any): o is VirtualServiceBackend => __isa(o, "VirtualServiceBackend"); } @@ -3812,6 +3928,7 @@ export interface VirtualServiceData { export namespace VirtualServiceData { export const filterSensitiveLog = (obj: VirtualServiceData): any => ({ ...obj, + ...(obj.spec && { spec: VirtualServiceSpec.filterSensitiveLog(obj.spec) }), }); export const isa = (o: any): o is VirtualServiceData => __isa(o, "VirtualServiceData"); } @@ -3828,6 +3945,7 @@ export namespace VirtualServiceProvider { interface $Base { __type?: "VirtualServiceProvider"; } + /** *

The virtual node associated with a virtual service.

*/ @@ -3836,6 +3954,7 @@ export namespace VirtualServiceProvider { virtualRouter?: never; $unknown?: never; } + /** *

The virtual router associated with a virtual service.

*/ @@ -3844,21 +3963,32 @@ export namespace VirtualServiceProvider { virtualRouter: VirtualRouterServiceProvider; $unknown?: never; } + export interface $UnknownMember extends $Base { virtualNode?: never; virtualRouter?: never; $unknown: [string, any]; } + export interface Visitor { virtualNode: (value: VirtualNodeServiceProvider) => T; virtualRouter: (value: VirtualRouterServiceProvider) => T; _: (name: string, value: any) => T; } + export const visit = (value: VirtualServiceProvider, visitor: Visitor): T => { if (value.virtualNode !== undefined) return visitor.virtualNode(value.virtualNode); if (value.virtualRouter !== undefined) return visitor.virtualRouter(value.virtualRouter); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: VirtualServiceProvider): any => { + if (obj.virtualNode !== undefined) + return { virtualNode: VirtualNodeServiceProvider.filterSensitiveLog(obj.virtualNode) }; + if (obj.virtualRouter !== undefined) + return { virtualRouter: VirtualRouterServiceProvider.filterSensitiveLog(obj.virtualRouter) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } /** @@ -3916,6 +4046,7 @@ export interface VirtualServiceSpec { export namespace VirtualServiceSpec { export const filterSensitiveLog = (obj: VirtualServiceSpec): any => ({ ...obj, + ...(obj.provider && { provider: VirtualServiceProvider.filterSensitiveLog(obj.provider) }), }); export const isa = (o: any): o is VirtualServiceSpec => __isa(o, "VirtualServiceSpec"); } diff --git a/clients/client-groundstation/models/index.ts b/clients/client-groundstation/models/index.ts index 092dfdb30954..effa3d044cef 100644 --- a/clients/client-groundstation/models/index.ts +++ b/clients/client-groundstation/models/index.ts @@ -189,6 +189,7 @@ export namespace ConfigTypeData { interface $Base { __type?: "ConfigTypeData"; } + /** *

Information about how AWS Ground Station should configure an antenna for downlink during a contact.

*/ @@ -201,6 +202,7 @@ export namespace ConfigTypeData { uplinkEchoConfig?: never; $unknown?: never; } + /** *

Information about how AWS Ground Station should configure an antenna for downlink demod decode during a contact.

*/ @@ -213,6 +215,7 @@ export namespace ConfigTypeData { uplinkEchoConfig?: never; $unknown?: never; } + /** *

Information about how AWS Ground Station should configure an antenna for uplink during a contact.

*/ @@ -225,6 +228,7 @@ export namespace ConfigTypeData { uplinkEchoConfig?: never; $unknown?: never; } + /** *

Information about the dataflow endpoint Config.

*/ @@ -237,6 +241,7 @@ export namespace ConfigTypeData { uplinkEchoConfig?: never; $unknown?: never; } + /** *

Object that determines whether tracking should be used during a contact executed with this Config in the mission profile.

*/ @@ -249,6 +254,7 @@ export namespace ConfigTypeData { uplinkEchoConfig?: never; $unknown?: never; } + /** *

Information about an uplink echo Config.

*

Parameters from the AntennaUplinkConfig, corresponding to the specified AntennaUplinkConfigArn, are used when this UplinkEchoConfig is used in a contact.

@@ -262,6 +268,7 @@ export namespace ConfigTypeData { uplinkEchoConfig: UplinkEchoConfig; $unknown?: never; } + export interface $UnknownMember extends $Base { antennaDownlinkConfig?: never; antennaDownlinkDemodDecodeConfig?: never; @@ -271,6 +278,7 @@ export namespace ConfigTypeData { uplinkEchoConfig?: never; $unknown: [string, any]; } + export interface Visitor { antennaDownlinkConfig: (value: AntennaDownlinkConfig) => T; antennaDownlinkDemodDecodeConfig: (value: AntennaDownlinkDemodDecodeConfig) => T; @@ -280,6 +288,7 @@ export namespace ConfigTypeData { uplinkEchoConfig: (value: UplinkEchoConfig) => T; _: (name: string, value: any) => T; } + export const visit = (value: ConfigTypeData, visitor: Visitor): T => { if (value.antennaDownlinkConfig !== undefined) return visitor.antennaDownlinkConfig(value.antennaDownlinkConfig); if (value.antennaDownlinkDemodDecodeConfig !== undefined) @@ -290,6 +299,26 @@ export namespace ConfigTypeData { if (value.uplinkEchoConfig !== undefined) return visitor.uplinkEchoConfig(value.uplinkEchoConfig); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: ConfigTypeData): any => { + if (obj.antennaDownlinkConfig !== undefined) + return { antennaDownlinkConfig: AntennaDownlinkConfig.filterSensitiveLog(obj.antennaDownlinkConfig) }; + if (obj.antennaDownlinkDemodDecodeConfig !== undefined) + return { + antennaDownlinkDemodDecodeConfig: AntennaDownlinkDemodDecodeConfig.filterSensitiveLog( + obj.antennaDownlinkDemodDecodeConfig + ), + }; + if (obj.antennaUplinkConfig !== undefined) + return { antennaUplinkConfig: AntennaUplinkConfig.filterSensitiveLog(obj.antennaUplinkConfig) }; + if (obj.dataflowEndpointConfig !== undefined) + return { dataflowEndpointConfig: DataflowEndpointConfig.filterSensitiveLog(obj.dataflowEndpointConfig) }; + if (obj.trackingConfig !== undefined) + return { trackingConfig: TrackingConfig.filterSensitiveLog(obj.trackingConfig) }; + if (obj.uplinkEchoConfig !== undefined) + return { uplinkEchoConfig: UplinkEchoConfig.filterSensitiveLog(obj.uplinkEchoConfig) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } /** @@ -427,6 +456,7 @@ export interface CreateConfigRequest { export namespace CreateConfigRequest { export const filterSensitiveLog = (obj: CreateConfigRequest): any => ({ ...obj, + ...(obj.configData && { configData: ConfigTypeData.filterSensitiveLog(obj.configData) }), }); export const isa = (o: any): o is CreateConfigRequest => __isa(o, "CreateConfigRequest"); } @@ -1012,6 +1042,7 @@ export interface GetConfigResponse { export namespace GetConfigResponse { export const filterSensitiveLog = (obj: GetConfigResponse): any => ({ ...obj, + ...(obj.configData && { configData: ConfigTypeData.filterSensitiveLog(obj.configData) }), }); export const isa = (o: any): o is GetConfigResponse => __isa(o, "GetConfigResponse"); } @@ -2028,6 +2059,7 @@ export interface UpdateConfigRequest { export namespace UpdateConfigRequest { export const filterSensitiveLog = (obj: UpdateConfigRequest): any => ({ ...obj, + ...(obj.configData && { configData: ConfigTypeData.filterSensitiveLog(obj.configData) }), }); export const isa = (o: any): o is UpdateConfigRequest => __isa(o, "UpdateConfigRequest"); } diff --git a/clients/client-kinesis/models/index.ts b/clients/client-kinesis/models/index.ts index f3d90d4b6baa..a113ece1b7fb 100644 --- a/clients/client-kinesis/models/index.ts +++ b/clients/client-kinesis/models/index.ts @@ -2280,6 +2280,7 @@ export namespace SubscribeToShardEventStream { interface $Base { __type?: "SubscribeToShardEventStream"; } + /** *

The request was denied due to request throttling. For more information about throttling, see Limits in the * AWS Key Management Service Developer Guide.

@@ -2297,6 +2298,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired?: never; $unknown?: never; } + /** *

The request was rejected because the specified customer master key (CMK) isn't * enabled.

@@ -2314,6 +2316,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired?: never; $unknown?: never; } + /** *

The ciphertext references a key that doesn't exist or that you don't have access to.

*/ @@ -2330,6 +2333,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired?: never; $unknown?: never; } + /** *

The request was rejected because the state of the specified resource isn't valid for this request. For more information, see * How Key State Affects Use of a Customer Master Key in the @@ -2348,6 +2352,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired?: never; $unknown?: never; } + /** *

The request was rejected because the specified entity or resource can't be * found.

@@ -2365,6 +2370,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired?: never; $unknown?: never; } + /** *

The requested resource could not be found. The stream might not be specified correctly.

*/ @@ -2381,6 +2387,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired?: never; $unknown?: never; } + /** *

After you call SubscribeToShard, Kinesis Data Streams sends events of this type to your consumer.

*/ @@ -2397,6 +2404,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired?: never; $unknown?: never; } + /** *

The resource is not available for this operation. For successful operation, the * resource must be in the ACTIVE state.

@@ -2414,6 +2422,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired?: never; $unknown?: never; } + export interface InternalFailureExceptionMember extends $Base { KMSThrottlingException?: never; KMSDisabledException?: never; @@ -2427,6 +2436,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired?: never; $unknown?: never; } + /** *

The AWS access key ID needs a subscription for the service.

*/ @@ -2443,6 +2453,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired: KMSOptInRequired; $unknown?: never; } + export interface $UnknownMember extends $Base { KMSThrottlingException?: never; KMSDisabledException?: never; @@ -2456,6 +2467,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired?: never; $unknown: [string, any]; } + export interface Visitor { KMSThrottlingException: (value: KMSThrottlingException) => T; KMSDisabledException: (value: KMSDisabledException) => T; @@ -2469,6 +2481,7 @@ export namespace SubscribeToShardEventStream { KMSOptInRequired: (value: KMSOptInRequired) => T; _: (name: string, value: any) => T; } + export const visit = (value: SubscribeToShardEventStream, visitor: Visitor): T => { if (value.KMSThrottlingException !== undefined) return visitor.KMSThrottlingException(value.KMSThrottlingException); if (value.KMSDisabledException !== undefined) return visitor.KMSDisabledException(value.KMSDisabledException); @@ -2486,6 +2499,30 @@ export namespace SubscribeToShardEventStream { if (value.KMSOptInRequired !== undefined) return visitor.KMSOptInRequired(value.KMSOptInRequired); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: SubscribeToShardEventStream): any => { + if (obj.KMSThrottlingException !== undefined) + return { KMSThrottlingException: KMSThrottlingException.filterSensitiveLog(obj.KMSThrottlingException) }; + if (obj.KMSDisabledException !== undefined) + return { KMSDisabledException: KMSDisabledException.filterSensitiveLog(obj.KMSDisabledException) }; + if (obj.KMSAccessDeniedException !== undefined) + return { KMSAccessDeniedException: KMSAccessDeniedException.filterSensitiveLog(obj.KMSAccessDeniedException) }; + if (obj.KMSInvalidStateException !== undefined) + return { KMSInvalidStateException: KMSInvalidStateException.filterSensitiveLog(obj.KMSInvalidStateException) }; + if (obj.KMSNotFoundException !== undefined) + return { KMSNotFoundException: KMSNotFoundException.filterSensitiveLog(obj.KMSNotFoundException) }; + if (obj.ResourceNotFoundException !== undefined) + return { ResourceNotFoundException: ResourceNotFoundException.filterSensitiveLog(obj.ResourceNotFoundException) }; + if (obj.SubscribeToShardEvent !== undefined) + return { SubscribeToShardEvent: SubscribeToShardEvent.filterSensitiveLog(obj.SubscribeToShardEvent) }; + if (obj.ResourceInUseException !== undefined) + return { ResourceInUseException: ResourceInUseException.filterSensitiveLog(obj.ResourceInUseException) }; + if (obj.InternalFailureException !== undefined) + return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) }; + if (obj.KMSOptInRequired !== undefined) + return { KMSOptInRequired: KMSOptInRequired.filterSensitiveLog(obj.KMSOptInRequired) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } export interface SubscribeToShardInput { @@ -2522,6 +2559,7 @@ export interface SubscribeToShardOutput { export namespace SubscribeToShardOutput { export const filterSensitiveLog = (obj: SubscribeToShardOutput): any => ({ ...obj, + ...(obj.EventStream && { EventStream: "STREAMING_CONTENT" }), }); export const isa = (o: any): o is SubscribeToShardOutput => __isa(o, "SubscribeToShardOutput"); } diff --git a/clients/client-rds-data/models/index.ts b/clients/client-rds-data/models/index.ts index e58bdd3a5952..9080d7426801 100644 --- a/clients/client-rds-data/models/index.ts +++ b/clients/client-rds-data/models/index.ts @@ -16,6 +16,7 @@ export namespace ArrayValue { interface $Base { __type?: "ArrayValue"; } + /** *

An array of arrays.

*/ @@ -27,6 +28,7 @@ export namespace ArrayValue { stringValues?: never; $unknown?: never; } + /** *

An array of Boolean values.

*/ @@ -38,6 +40,7 @@ export namespace ArrayValue { stringValues?: never; $unknown?: never; } + /** *

An array of integers.

*/ @@ -49,6 +52,7 @@ export namespace ArrayValue { stringValues?: never; $unknown?: never; } + /** *

An array of floating point numbers.

*/ @@ -60,6 +64,7 @@ export namespace ArrayValue { stringValues?: never; $unknown?: never; } + /** *

An array of strings.

*/ @@ -71,6 +76,7 @@ export namespace ArrayValue { stringValues: string[]; $unknown?: never; } + export interface $UnknownMember extends $Base { arrayValues?: never; booleanValues?: never; @@ -79,6 +85,7 @@ export namespace ArrayValue { stringValues?: never; $unknown: [string, any]; } + export interface Visitor { arrayValues: (value: ArrayValue[]) => T; booleanValues: (value: boolean[]) => T; @@ -87,6 +94,7 @@ export namespace ArrayValue { stringValues: (value: string[]) => T; _: (name: string, value: any) => T; } + export const visit = (value: ArrayValue, visitor: Visitor): T => { if (value.arrayValues !== undefined) return visitor.arrayValues(value.arrayValues); if (value.booleanValues !== undefined) return visitor.booleanValues(value.booleanValues); @@ -95,6 +103,16 @@ export namespace ArrayValue { if (value.stringValues !== undefined) return visitor.stringValues(value.stringValues); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: ArrayValue): any => { + if (obj.arrayValues !== undefined) + return { arrayValues: obj.arrayValues.map((item) => ArrayValue.filterSensitiveLog(item)) }; + if (obj.booleanValues !== undefined) return { booleanValues: obj.booleanValues }; + if (obj.doubleValues !== undefined) return { doubleValues: obj.doubleValues }; + if (obj.longValues !== undefined) return { longValues: obj.longValues }; + if (obj.stringValues !== undefined) return { stringValues: obj.stringValues }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } /** @@ -525,6 +543,7 @@ export interface ExecuteStatementRequest { export namespace ExecuteStatementRequest { export const filterSensitiveLog = (obj: ExecuteStatementRequest): any => ({ ...obj, + ...(obj.parameters && { parameters: obj.parameters.map((item) => SqlParameter.filterSensitiveLog(item)) }), }); export const isa = (o: any): o is ExecuteStatementRequest => __isa(o, "ExecuteStatementRequest"); } @@ -566,6 +585,7 @@ export interface ExecuteStatementResponse { export namespace ExecuteStatementResponse { export const filterSensitiveLog = (obj: ExecuteStatementResponse): any => ({ ...obj, + ...(obj.generatedFields && { generatedFields: obj.generatedFields.map((item) => Field.filterSensitiveLog(item)) }), }); export const isa = (o: any): o is ExecuteStatementResponse => __isa(o, "ExecuteStatementResponse"); } @@ -587,6 +607,7 @@ export namespace Field { interface $Base { __type?: "Field"; } + /** *

An array of values.

*/ @@ -600,6 +621,7 @@ export namespace Field { stringValue?: never; $unknown?: never; } + /** *

A value of BLOB data type.

*/ @@ -613,6 +635,7 @@ export namespace Field { stringValue?: never; $unknown?: never; } + /** *

A value of Boolean data type.

*/ @@ -626,6 +649,7 @@ export namespace Field { stringValue?: never; $unknown?: never; } + /** *

A value of double data type.

*/ @@ -639,6 +663,7 @@ export namespace Field { stringValue?: never; $unknown?: never; } + /** *

A NULL value.

*/ @@ -652,6 +677,7 @@ export namespace Field { stringValue?: never; $unknown?: never; } + /** *

A value of long data type.

*/ @@ -665,6 +691,7 @@ export namespace Field { stringValue?: never; $unknown?: never; } + /** *

A value of string data type.

*/ @@ -678,6 +705,7 @@ export namespace Field { stringValue: string; $unknown?: never; } + export interface $UnknownMember extends $Base { arrayValue?: never; blobValue?: never; @@ -688,6 +716,7 @@ export namespace Field { stringValue?: never; $unknown: [string, any]; } + export interface Visitor { arrayValue: (value: ArrayValue) => T; blobValue: (value: Uint8Array) => T; @@ -698,6 +727,7 @@ export namespace Field { stringValue: (value: string) => T; _: (name: string, value: any) => T; } + export const visit = (value: Field, visitor: Visitor): T => { if (value.arrayValue !== undefined) return visitor.arrayValue(value.arrayValue); if (value.blobValue !== undefined) return visitor.blobValue(value.blobValue); @@ -708,6 +738,17 @@ export namespace Field { if (value.stringValue !== undefined) return visitor.stringValue(value.stringValue); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: Field): any => { + if (obj.arrayValue !== undefined) return { arrayValue: ArrayValue.filterSensitiveLog(obj.arrayValue) }; + if (obj.blobValue !== undefined) return { blobValue: obj.blobValue }; + if (obj.booleanValue !== undefined) return { booleanValue: obj.booleanValue }; + if (obj.doubleValue !== undefined) return { doubleValue: obj.doubleValue }; + if (obj.isNull !== undefined) return { isNull: obj.isNull }; + if (obj.longValue !== undefined) return { longValue: obj.longValue }; + if (obj.stringValue !== undefined) return { stringValue: obj.stringValue }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } /** @@ -777,6 +818,7 @@ export interface _Record { export namespace _Record { export const filterSensitiveLog = (obj: _Record): any => ({ ...obj, + ...(obj.values && { values: obj.values.map((item) => Value.filterSensitiveLog(item)) }), }); export const isa = (o: any): o is _Record => __isa(o, "Record"); } @@ -966,6 +1008,7 @@ export interface SqlParameter { export namespace SqlParameter { export const filterSensitiveLog = (obj: SqlParameter): any => ({ ...obj, + ...(obj.value && { value: Field.filterSensitiveLog(obj.value) }), }); export const isa = (o: any): o is SqlParameter => __isa(o, "SqlParameter"); } @@ -1035,6 +1078,7 @@ export interface StructValue { export namespace StructValue { export const filterSensitiveLog = (obj: StructValue): any => ({ ...obj, + ...(obj.attributes && { attributes: obj.attributes.map((item) => Value.filterSensitiveLog(item)) }), }); export const isa = (o: any): o is StructValue => __isa(o, "StructValue"); } @@ -1060,6 +1104,7 @@ export interface UpdateResult { export namespace UpdateResult { export const filterSensitiveLog = (obj: UpdateResult): any => ({ ...obj, + ...(obj.generatedFields && { generatedFields: obj.generatedFields.map((item) => Field.filterSensitiveLog(item)) }), }); export const isa = (o: any): o is UpdateResult => __isa(o, "UpdateResult"); } @@ -1088,6 +1133,7 @@ export namespace Value { interface $Base { __type?: "Value"; } + /** *

An array of column values.

*/ @@ -1104,6 +1150,7 @@ export namespace Value { structValue?: never; $unknown?: never; } + /** *

A value for a column of big integer data type.

*/ @@ -1120,6 +1167,7 @@ export namespace Value { structValue?: never; $unknown?: never; } + /** *

A value for a column of BIT data type.

*/ @@ -1136,6 +1184,7 @@ export namespace Value { structValue?: never; $unknown?: never; } + /** *

A value for a column of BLOB data type.

*/ @@ -1152,6 +1201,7 @@ export namespace Value { structValue?: never; $unknown?: never; } + /** *

A value for a column of double data type.

*/ @@ -1168,6 +1218,7 @@ export namespace Value { structValue?: never; $unknown?: never; } + /** *

A value for a column of integer data type.

*/ @@ -1184,6 +1235,7 @@ export namespace Value { structValue?: never; $unknown?: never; } + /** *

A NULL value.

*/ @@ -1200,6 +1252,7 @@ export namespace Value { structValue?: never; $unknown?: never; } + /** *

A value for a column of real data type.

*/ @@ -1216,6 +1269,7 @@ export namespace Value { structValue?: never; $unknown?: never; } + /** *

A value for a column of string data type.

*/ @@ -1232,6 +1286,7 @@ export namespace Value { structValue?: never; $unknown?: never; } + /** *

A value for a column of STRUCT data type.

*/ @@ -1248,6 +1303,7 @@ export namespace Value { structValue: StructValue; $unknown?: never; } + export interface $UnknownMember extends $Base { arrayValues?: never; bigIntValue?: never; @@ -1261,6 +1317,7 @@ export namespace Value { structValue?: never; $unknown: [string, any]; } + export interface Visitor { arrayValues: (value: Value[]) => T; bigIntValue: (value: number) => T; @@ -1274,6 +1331,7 @@ export namespace Value { structValue: (value: StructValue) => T; _: (name: string, value: any) => T; } + export const visit = (value: Value, visitor: Visitor): T => { if (value.arrayValues !== undefined) return visitor.arrayValues(value.arrayValues); if (value.bigIntValue !== undefined) return visitor.bigIntValue(value.bigIntValue); @@ -1287,4 +1345,19 @@ export namespace Value { if (value.structValue !== undefined) return visitor.structValue(value.structValue); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: Value): any => { + if (obj.arrayValues !== undefined) + return { arrayValues: obj.arrayValues.map((item) => Value.filterSensitiveLog(item)) }; + if (obj.bigIntValue !== undefined) return { bigIntValue: obj.bigIntValue }; + if (obj.bitValue !== undefined) return { bitValue: obj.bitValue }; + if (obj.blobValue !== undefined) return { blobValue: obj.blobValue }; + if (obj.doubleValue !== undefined) return { doubleValue: obj.doubleValue }; + if (obj.intValue !== undefined) return { intValue: obj.intValue }; + if (obj.isNull !== undefined) return { isNull: obj.isNull }; + if (obj.realValue !== undefined) return { realValue: obj.realValue }; + if (obj.stringValue !== undefined) return { stringValue: obj.stringValue }; + if (obj.structValue !== undefined) return { structValue: StructValue.filterSensitiveLog(obj.structValue) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } diff --git a/clients/client-s3/models/index.ts b/clients/client-s3/models/index.ts index b8ebbcb89ce2..8c1feddb267f 100644 --- a/clients/client-s3/models/index.ts +++ b/clients/client-s3/models/index.ts @@ -9644,6 +9644,7 @@ export namespace SelectObjectContentEventStream { interface $Base { __type?: "SelectObjectContentEventStream"; } + /** *

The Stats Event.

*/ @@ -9655,6 +9656,7 @@ export namespace SelectObjectContentEventStream { Cont?: never; $unknown?: never; } + /** *

The End Event.

*/ @@ -9666,6 +9668,7 @@ export namespace SelectObjectContentEventStream { Cont?: never; $unknown?: never; } + /** *

The Progress Event.

*/ @@ -9677,6 +9680,7 @@ export namespace SelectObjectContentEventStream { Cont?: never; $unknown?: never; } + /** *

The Records Event.

*/ @@ -9688,6 +9692,7 @@ export namespace SelectObjectContentEventStream { Cont?: never; $unknown?: never; } + /** *

The Continuation Event.

*/ @@ -9699,6 +9704,7 @@ export namespace SelectObjectContentEventStream { Cont: ContinuationEvent; $unknown?: never; } + export interface $UnknownMember extends $Base { Stats?: never; End?: never; @@ -9707,6 +9713,7 @@ export namespace SelectObjectContentEventStream { Cont?: never; $unknown: [string, any]; } + export interface Visitor { Stats: (value: StatsEvent) => T; End: (value: EndEvent) => T; @@ -9715,6 +9722,7 @@ export namespace SelectObjectContentEventStream { Cont: (value: ContinuationEvent) => T; _: (name: string, value: any) => T; } + export const visit = (value: SelectObjectContentEventStream, visitor: Visitor): T => { if (value.Stats !== undefined) return visitor.Stats(value.Stats); if (value.End !== undefined) return visitor.End(value.End); @@ -9723,6 +9731,15 @@ export namespace SelectObjectContentEventStream { if (value.Cont !== undefined) return visitor.Cont(value.Cont); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: SelectObjectContentEventStream): any => { + if (obj.Cont !== undefined) return { Cont: ContinuationEvent.filterSensitiveLog(obj.Cont) }; + if (obj.End !== undefined) return { End: EndEvent.filterSensitiveLog(obj.End) }; + if (obj.Progress !== undefined) return { Progress: ProgressEvent.filterSensitiveLog(obj.Progress) }; + if (obj.Records !== undefined) return { Records: RecordsEvent.filterSensitiveLog(obj.Records) }; + if (obj.Stats !== undefined) return { Stats: StatsEvent.filterSensitiveLog(obj.Stats) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } export interface SelectObjectContentOutput { @@ -9736,6 +9753,7 @@ export interface SelectObjectContentOutput { export namespace SelectObjectContentOutput { export const filterSensitiveLog = (obj: SelectObjectContentOutput): any => ({ ...obj, + ...(obj.Payload && { Payload: "STREAMING_CONTENT" }), }); export const isa = (o: any): o is SelectObjectContentOutput => __isa(o, "SelectObjectContentOutput"); } diff --git a/clients/client-transcribe-streaming/models/index.ts b/clients/client-transcribe-streaming/models/index.ts index 849977f5cd39..0106256ce1c1 100644 --- a/clients/client-transcribe-streaming/models/index.ts +++ b/clients/client-transcribe-streaming/models/index.ts @@ -51,6 +51,7 @@ export namespace AudioStream { interface $Base { __type?: "AudioStream"; } + /** *

A blob of audio from your application. You audio stream consists of one or more audio * events.

@@ -59,18 +60,26 @@ export namespace AudioStream { AudioEvent: AudioEvent; $unknown?: never; } + export interface $UnknownMember extends $Base { AudioEvent?: never; $unknown: [string, any]; } + export interface Visitor { AudioEvent: (value: AudioEvent) => T; _: (name: string, value: any) => T; } + export const visit = (value: AudioStream, visitor: Visitor): T => { if (value.AudioEvent !== undefined) return visitor.AudioEvent(value.AudioEvent); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: AudioStream): any => { + if (obj.AudioEvent !== undefined) return { AudioEvent: AudioEvent.filterSensitiveLog(obj.AudioEvent) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } /** @@ -324,6 +333,7 @@ export interface StartStreamTranscriptionRequest { export namespace StartStreamTranscriptionRequest { export const filterSensitiveLog = (obj: StartStreamTranscriptionRequest): any => ({ ...obj, + ...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }), }); export const isa = (o: any): o is StartStreamTranscriptionRequest => __isa(o, "StartStreamTranscriptionRequest"); } @@ -380,6 +390,7 @@ export interface StartStreamTranscriptionResponse { export namespace StartStreamTranscriptionResponse { export const filterSensitiveLog = (obj: StartStreamTranscriptionResponse): any => ({ ...obj, + ...(obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }), }); export const isa = (o: any): o is StartStreamTranscriptionResponse => __isa(o, "StartStreamTranscriptionResponse"); } @@ -440,6 +451,7 @@ export namespace TranscriptResultStream { interface $Base { __type?: "TranscriptResultStream"; } + /** *

A portion of the transcription of the audio stream. Events are sent periodically from * Amazon Transcribe to your application. The event can be a partial transcription of a section of the audio @@ -455,6 +467,7 @@ export namespace TranscriptResultStream { LimitExceededException?: never; $unknown?: never; } + /** *

A client error occurred when the stream was created. Check the parameters of the request * and try your request again.

@@ -468,6 +481,7 @@ export namespace TranscriptResultStream { LimitExceededException?: never; $unknown?: never; } + /** *

A problem occurred while processing the audio. Amazon Transcribe terminated processing.

*/ @@ -480,6 +494,7 @@ export namespace TranscriptResultStream { LimitExceededException?: never; $unknown?: never; } + /** *

A new stream started with the same session ID. The current stream has been * terminated.

@@ -493,6 +508,7 @@ export namespace TranscriptResultStream { LimitExceededException?: never; $unknown?: never; } + /** *

Service is currently unavailable. Try your request later.

*/ @@ -505,6 +521,7 @@ export namespace TranscriptResultStream { LimitExceededException?: never; $unknown?: never; } + /** *

Your client has exceeded one of the Amazon Transcribe limits, typically the limit on audio length. * Break your audio stream into smaller chunks and try your request again.

@@ -518,6 +535,7 @@ export namespace TranscriptResultStream { LimitExceededException: LimitExceededException; $unknown?: never; } + export interface $UnknownMember extends $Base { TranscriptEvent?: never; BadRequestException?: never; @@ -527,6 +545,7 @@ export namespace TranscriptResultStream { LimitExceededException?: never; $unknown: [string, any]; } + export interface Visitor { TranscriptEvent: (value: TranscriptEvent) => T; BadRequestException: (value: BadRequestException) => T; @@ -536,6 +555,7 @@ export namespace TranscriptResultStream { LimitExceededException: (value: LimitExceededException) => T; _: (name: string, value: any) => T; } + export const visit = (value: TranscriptResultStream, visitor: Visitor): T => { if (value.TranscriptEvent !== undefined) return visitor.TranscriptEvent(value.TranscriptEvent); if (value.BadRequestException !== undefined) return visitor.BadRequestException(value.BadRequestException); @@ -547,6 +567,24 @@ export namespace TranscriptResultStream { if (value.LimitExceededException !== undefined) return visitor.LimitExceededException(value.LimitExceededException); return visitor._(value.$unknown[0], value.$unknown[1]); }; + + export const filterSensitiveLog = (obj: TranscriptResultStream): any => { + if (obj.TranscriptEvent !== undefined) + return { TranscriptEvent: TranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) }; + if (obj.BadRequestException !== undefined) + return { BadRequestException: BadRequestException.filterSensitiveLog(obj.BadRequestException) }; + if (obj.InternalFailureException !== undefined) + return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) }; + if (obj.ConflictException !== undefined) + return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) }; + if (obj.ServiceUnavailableException !== undefined) + return { + ServiceUnavailableException: ServiceUnavailableException.filterSensitiveLog(obj.ServiceUnavailableException), + }; + if (obj.LimitExceededException !== undefined) + return { LimitExceededException: LimitExceededException.filterSensitiveLog(obj.LimitExceededException) }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; + }; } export enum VocabularyFilterMethod {