@cdk8s/awscdk-resolver 0.0.375 → 0.0.377
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +2 -2
- package/lib/resolve.js +1 -1
- package/node_modules/@smithy/abort-controller/dist-cjs/index.js +28 -80
- package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +1 -3
- package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +2 -2
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +158 -215
- package/node_modules/@smithy/config-resolver/package.json +5 -5
- package/node_modules/@smithy/core/dist-cjs/index.js +308 -412
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +957 -969
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +198 -249
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +793 -895
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +617 -811
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +584 -680
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +3 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +18 -18
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +9 -7
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +3 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +6 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +16 -8
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +6 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +6 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js +14 -14
- package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -0
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +1 -1
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js +4 -2
- package/node_modules/@smithy/core/package.json +11 -11
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +340 -412
- package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +2 -1
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +190 -238
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -0
- package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +38 -63
- package/node_modules/@smithy/hash-node/dist-es/index.js +3 -0
- package/node_modules/@smithy/hash-node/package.json +4 -4
- package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +7 -38
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +4 -30
- package/node_modules/@smithy/is-array-buffer/package.json +1 -1
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +39 -64
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +219 -277
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +327 -380
- package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +1 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +2 -2
- package/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js +1 -0
- package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +5 -1
- package/node_modules/@smithy/middleware-retry/package.json +9 -9
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +89 -118
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +274 -297
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +51 -98
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +663 -771
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -3
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -2
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +3 -1
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -4
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +3 -1
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +105 -158
- package/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +1 -1
- package/node_modules/@smithy/property-provider/dist-es/ProviderError.js +2 -1
- package/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +1 -1
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +154 -246
- package/node_modules/@smithy/protocol-http/dist-es/Field.js +3 -0
- package/node_modules/@smithy/protocol-http/dist-es/Fields.js +2 -1
- package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +11 -0
- package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +4 -0
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +21 -47
- package/node_modules/@smithy/querystring-builder/package.json +3 -3
- package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +22 -48
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +70 -103
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +171 -210
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +525 -648
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +1 -1
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +6 -0
- package/node_modules/@smithy/signature-v4/package.json +8 -8
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +554 -747
- package/node_modules/@smithy/smithy-client/dist-es/client.js +4 -1
- package/node_modules/@smithy/smithy-client/dist-es/command.js +17 -18
- package/node_modules/@smithy/smithy-client/dist-es/exceptions.js +4 -0
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-cjs/index.js +80 -133
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/dist-cjs/index.js +20 -46
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +16 -24
- package/node_modules/@smithy/util-base64/package.json +3 -3
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +26 -50
- package/node_modules/@smithy/util-body-length-browser/package.json +1 -1
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +27 -50
- package/node_modules/@smithy/util-body-length-node/package.json +1 -1
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +17 -44
- package/node_modules/@smithy/util-buffer-from/package.json +2 -2
- package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +26 -56
- package/node_modules/@smithy/util-config-provider/package.json +1 -1
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +9 -22
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +4 -5
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +65 -110
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +445 -526
- package/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js +3 -2
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +29 -58
- package/node_modules/@smithy/util-hex-encoding/package.json +1 -1
- package/node_modules/@smithy/util-middleware/dist-cjs/index.js +11 -40
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +260 -340
- package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +4 -1
- package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +1 -0
- package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +17 -8
- package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +5 -3
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +3 -2
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +7 -3
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +2 -3
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -1
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +2 -3
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.js +4 -8
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +83 -93
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +3 -7
- package/node_modules/@smithy/util-stream/dist-es/ByteArrayCollector.js +3 -2
- package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +5 -0
- package/node_modules/@smithy/util-stream/dist-es/headStream.js +3 -6
- package/node_modules/@smithy/util-stream/package.json +8 -8
- package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +6 -40
- package/node_modules/@smithy/util-uri-escape/package.json +1 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +27 -60
- package/node_modules/@smithy/util-utf8/package.json +2 -2
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +152 -189
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/node_modules/@smithy/uuid/dist-cjs/index.js +33 -42
- package/node_modules/@smithy/uuid/package.json +1 -1
- package/package.json +5 -5
- package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -1
- package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/create-request.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +0 -1
- package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +0 -1
- package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +0 -1
- package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +0 -1
- package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +0 -1
- package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +0 -1
- package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +0 -1
- package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/getSelectorName.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/chain.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/externalDataInterceptor.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/HeaderFormatter.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4Base.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/signature-v4a-container.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/abort-handler.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/abort.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/auth.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/checksum.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/client.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/command.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/config.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/manager.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/pool.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/crypto.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/encode.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoint.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/eventStream.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/feature-ids.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/http.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/identity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/logger.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/middleware.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/pagination.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/profile.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/response.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/retry.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/schema/schema.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/schema/traits.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/serde.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/shapes.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/signature.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/stream.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transfer.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/exact.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/uri.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/util.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/waiter.js +0 -1
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +0 -1
- package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +0 -1
- package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +0 -1
- package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +0 -1
- package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/cache/EndpointCache.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +0 -1
- package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +0 -1
- package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/config.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +0 -1
- package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +0 -1
- package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +0 -1
- package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/poller.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +0 -1
- package/node_modules/@smithy/uuid/dist-cjs/randomUUID.browser.js +0 -1
- package/node_modules/@smithy/uuid/dist-cjs/v4.js +0 -1
|
@@ -1,781 +1,588 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
'use strict';
|
|
20
2
|
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
NoOpLogger: () => NoOpLogger,
|
|
27
|
-
SENSITIVE_STRING: () => SENSITIVE_STRING2,
|
|
28
|
-
ServiceException: () => ServiceException,
|
|
29
|
-
_json: () => _json,
|
|
30
|
-
collectBody: () => import_protocols.collectBody,
|
|
31
|
-
convertMap: () => convertMap,
|
|
32
|
-
createAggregatedClient: () => createAggregatedClient,
|
|
33
|
-
decorateServiceException: () => decorateServiceException,
|
|
34
|
-
emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
|
|
35
|
-
extendedEncodeURIComponent: () => import_protocols.extendedEncodeURIComponent,
|
|
36
|
-
getArrayIfSingleItem: () => getArrayIfSingleItem,
|
|
37
|
-
getDefaultClientConfiguration: () => getDefaultClientConfiguration,
|
|
38
|
-
getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration,
|
|
39
|
-
getValueFromTextNode: () => getValueFromTextNode,
|
|
40
|
-
isSerializableHeaderValue: () => isSerializableHeaderValue,
|
|
41
|
-
loadConfigsForDefaultMode: () => loadConfigsForDefaultMode,
|
|
42
|
-
map: () => map,
|
|
43
|
-
resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig,
|
|
44
|
-
resolvedPath: () => import_protocols.resolvedPath,
|
|
45
|
-
serializeDateTime: () => serializeDateTime,
|
|
46
|
-
serializeFloat: () => serializeFloat,
|
|
47
|
-
take: () => take,
|
|
48
|
-
throwDefaultError: () => throwDefaultError,
|
|
49
|
-
withBaseException: () => withBaseException
|
|
50
|
-
});
|
|
51
|
-
module.exports = __toCommonJS(index_exports);
|
|
3
|
+
var middlewareStack = require('@smithy/middleware-stack');
|
|
4
|
+
var protocols = require('@smithy/core/protocols');
|
|
5
|
+
var types = require('@smithy/types');
|
|
6
|
+
var schema = require('@smithy/core/schema');
|
|
7
|
+
var serde = require('@smithy/core/serde');
|
|
52
8
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
} else {
|
|
80
|
-
delete this.handlers;
|
|
81
|
-
handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
|
|
82
|
-
}
|
|
83
|
-
if (callback) {
|
|
84
|
-
handler(command).then(
|
|
85
|
-
(result) => callback(null, result.output),
|
|
86
|
-
(err) => callback(err)
|
|
87
|
-
).catch(
|
|
88
|
-
// prevent any errors thrown in the callback from triggering an
|
|
89
|
-
// unhandled promise rejection
|
|
90
|
-
() => {
|
|
9
|
+
class Client {
|
|
10
|
+
config;
|
|
11
|
+
middlewareStack = middlewareStack.constructStack();
|
|
12
|
+
initConfig;
|
|
13
|
+
handlers;
|
|
14
|
+
constructor(config) {
|
|
15
|
+
this.config = config;
|
|
16
|
+
}
|
|
17
|
+
send(command, optionsOrCb, cb) {
|
|
18
|
+
const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined;
|
|
19
|
+
const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
|
|
20
|
+
const useHandlerCache = options === undefined && this.config.cacheMiddleware === true;
|
|
21
|
+
let handler;
|
|
22
|
+
if (useHandlerCache) {
|
|
23
|
+
if (!this.handlers) {
|
|
24
|
+
this.handlers = new WeakMap();
|
|
25
|
+
}
|
|
26
|
+
const handlers = this.handlers;
|
|
27
|
+
if (handlers.has(command.constructor)) {
|
|
28
|
+
handler = handlers.get(command.constructor);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
|
|
32
|
+
handlers.set(command.constructor, handler);
|
|
33
|
+
}
|
|
91
34
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
35
|
+
else {
|
|
36
|
+
delete this.handlers;
|
|
37
|
+
handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
|
|
38
|
+
}
|
|
39
|
+
if (callback) {
|
|
40
|
+
handler(command)
|
|
41
|
+
.then((result) => callback(null, result.output), (err) => callback(err))
|
|
42
|
+
.catch(() => { });
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
return handler(command).then((result) => result.output);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
destroy() {
|
|
49
|
+
this.config?.requestHandler?.destroy?.();
|
|
50
|
+
delete this.handlers;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
109
53
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
54
|
+
const SENSITIVE_STRING$1 = "***SensitiveInformation***";
|
|
55
|
+
function schemaLogFilter(schema$1, data) {
|
|
56
|
+
if (data == null) {
|
|
57
|
+
return data;
|
|
58
|
+
}
|
|
59
|
+
const ns = schema.NormalizedSchema.of(schema$1);
|
|
60
|
+
if (ns.getMergedTraits().sensitive) {
|
|
61
|
+
return SENSITIVE_STRING$1;
|
|
62
|
+
}
|
|
63
|
+
if (ns.isListSchema()) {
|
|
64
|
+
const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
|
|
65
|
+
if (isSensitive) {
|
|
66
|
+
return SENSITIVE_STRING$1;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
else if (ns.isMapSchema()) {
|
|
70
|
+
const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
|
|
71
|
+
if (isSensitive) {
|
|
72
|
+
return SENSITIVE_STRING$1;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
else if (ns.isStructSchema() && typeof data === "object") {
|
|
76
|
+
const object = data;
|
|
77
|
+
const newObject = {};
|
|
78
|
+
for (const [member, memberNs] of ns.structIterator()) {
|
|
79
|
+
if (object[member] != null) {
|
|
80
|
+
newObject[member] = schemaLogFilter(memberNs, object[member]);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return newObject;
|
|
84
|
+
}
|
|
115
85
|
return data;
|
|
116
|
-
}
|
|
117
|
-
const ns = import_schema.NormalizedSchema.of(schema);
|
|
118
|
-
if (ns.getMergedTraits().sensitive) {
|
|
119
|
-
return SENSITIVE_STRING;
|
|
120
|
-
}
|
|
121
|
-
if (ns.isListSchema()) {
|
|
122
|
-
const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
|
|
123
|
-
if (isSensitive) {
|
|
124
|
-
return SENSITIVE_STRING;
|
|
125
|
-
}
|
|
126
|
-
} else if (ns.isMapSchema()) {
|
|
127
|
-
const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
|
|
128
|
-
if (isSensitive) {
|
|
129
|
-
return SENSITIVE_STRING;
|
|
130
|
-
}
|
|
131
|
-
} else if (ns.isStructSchema() && typeof data === "object") {
|
|
132
|
-
const object = data;
|
|
133
|
-
const newObject = {};
|
|
134
|
-
for (const [member, memberNs] of ns.structIterator()) {
|
|
135
|
-
if (object[member] != null) {
|
|
136
|
-
newObject[member] = schemaLogFilter(memberNs, object[member]);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
return newObject;
|
|
140
|
-
}
|
|
141
|
-
return data;
|
|
142
86
|
}
|
|
143
|
-
__name(schemaLogFilter, "schemaLogFilter");
|
|
144
87
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
* Set the input and output sensistive log filters.
|
|
263
|
-
*/
|
|
264
|
-
f(inputFilter = (_) => _, outputFilter = (_) => _) {
|
|
265
|
-
this._inputFilterSensitiveLog = inputFilter;
|
|
266
|
-
this._outputFilterSensitiveLog = outputFilter;
|
|
267
|
-
return this;
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* Sets the serializer.
|
|
271
|
-
*/
|
|
272
|
-
ser(serializer) {
|
|
273
|
-
this._serializer = serializer;
|
|
274
|
-
return this;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Sets the deserializer.
|
|
278
|
-
*/
|
|
279
|
-
de(deserializer) {
|
|
280
|
-
this._deserializer = deserializer;
|
|
281
|
-
return this;
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* Sets input/output schema for the operation.
|
|
285
|
-
*/
|
|
286
|
-
sc(operation) {
|
|
287
|
-
this._operationSchema = operation;
|
|
288
|
-
this._smithyContext.operationSchema = operation;
|
|
289
|
-
return this;
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* @returns a Command class with the classBuilder properties.
|
|
293
|
-
*/
|
|
294
|
-
build() {
|
|
295
|
-
const closure = this;
|
|
296
|
-
let CommandRef;
|
|
297
|
-
return CommandRef = class extends Command {
|
|
298
|
-
/**
|
|
299
|
-
* @public
|
|
300
|
-
*/
|
|
301
|
-
constructor(...[input]) {
|
|
302
|
-
super();
|
|
303
|
-
/**
|
|
304
|
-
* @internal
|
|
305
|
-
*/
|
|
306
|
-
// @ts-ignore used in middlewareFn closure.
|
|
307
|
-
this.serialize = closure._serializer;
|
|
308
|
-
/**
|
|
309
|
-
* @internal
|
|
310
|
-
*/
|
|
311
|
-
// @ts-ignore used in middlewareFn closure.
|
|
312
|
-
this.deserialize = closure._deserializer;
|
|
313
|
-
this.input = input ?? {};
|
|
314
|
-
closure._init(this);
|
|
315
|
-
this.schema = closure._operationSchema;
|
|
316
|
-
}
|
|
317
|
-
static {
|
|
318
|
-
__name(this, "CommandRef");
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* @public
|
|
322
|
-
*/
|
|
323
|
-
static getEndpointParameterInstructions() {
|
|
324
|
-
return closure._ep;
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* @internal
|
|
328
|
-
*/
|
|
329
|
-
resolveMiddleware(stack, configuration, options) {
|
|
330
|
-
return this.resolveMiddlewareWithContext(stack, configuration, options, {
|
|
331
|
-
CommandCtor: CommandRef,
|
|
332
|
-
middlewareFn: closure._middlewareFn,
|
|
333
|
-
clientName: closure._clientName,
|
|
334
|
-
commandName: closure._commandName,
|
|
335
|
-
inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.input) : (_) => _),
|
|
336
|
-
outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.output) : (_) => _),
|
|
337
|
-
smithyContext: closure._smithyContext,
|
|
338
|
-
additionalContext: closure._additionalContext
|
|
88
|
+
class Command {
|
|
89
|
+
middlewareStack = middlewareStack.constructStack();
|
|
90
|
+
schema;
|
|
91
|
+
static classBuilder() {
|
|
92
|
+
return new ClassBuilder();
|
|
93
|
+
}
|
|
94
|
+
resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor, }) {
|
|
95
|
+
for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
|
|
96
|
+
this.middlewareStack.use(mw);
|
|
97
|
+
}
|
|
98
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
99
|
+
const { logger } = configuration;
|
|
100
|
+
const handlerExecutionContext = {
|
|
101
|
+
logger,
|
|
102
|
+
clientName,
|
|
103
|
+
commandName,
|
|
104
|
+
inputFilterSensitiveLog,
|
|
105
|
+
outputFilterSensitiveLog,
|
|
106
|
+
[types.SMITHY_CONTEXT_KEY]: {
|
|
107
|
+
commandInstance: this,
|
|
108
|
+
...smithyContext,
|
|
109
|
+
},
|
|
110
|
+
...additionalContext,
|
|
111
|
+
};
|
|
112
|
+
const { requestHandler } = configuration;
|
|
113
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
class ClassBuilder {
|
|
117
|
+
_init = () => { };
|
|
118
|
+
_ep = {};
|
|
119
|
+
_middlewareFn = () => [];
|
|
120
|
+
_commandName = "";
|
|
121
|
+
_clientName = "";
|
|
122
|
+
_additionalContext = {};
|
|
123
|
+
_smithyContext = {};
|
|
124
|
+
_inputFilterSensitiveLog = undefined;
|
|
125
|
+
_outputFilterSensitiveLog = undefined;
|
|
126
|
+
_serializer = null;
|
|
127
|
+
_deserializer = null;
|
|
128
|
+
_operationSchema;
|
|
129
|
+
init(cb) {
|
|
130
|
+
this._init = cb;
|
|
131
|
+
}
|
|
132
|
+
ep(endpointParameterInstructions) {
|
|
133
|
+
this._ep = endpointParameterInstructions;
|
|
134
|
+
return this;
|
|
135
|
+
}
|
|
136
|
+
m(middlewareSupplier) {
|
|
137
|
+
this._middlewareFn = middlewareSupplier;
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
140
|
+
s(service, operation, smithyContext = {}) {
|
|
141
|
+
this._smithyContext = {
|
|
142
|
+
service,
|
|
143
|
+
operation,
|
|
144
|
+
...smithyContext,
|
|
145
|
+
};
|
|
146
|
+
return this;
|
|
147
|
+
}
|
|
148
|
+
c(additionalContext = {}) {
|
|
149
|
+
this._additionalContext = additionalContext;
|
|
150
|
+
return this;
|
|
151
|
+
}
|
|
152
|
+
n(clientName, commandName) {
|
|
153
|
+
this._clientName = clientName;
|
|
154
|
+
this._commandName = commandName;
|
|
155
|
+
return this;
|
|
156
|
+
}
|
|
157
|
+
f(inputFilter = (_) => _, outputFilter = (_) => _) {
|
|
158
|
+
this._inputFilterSensitiveLog = inputFilter;
|
|
159
|
+
this._outputFilterSensitiveLog = outputFilter;
|
|
160
|
+
return this;
|
|
161
|
+
}
|
|
162
|
+
ser(serializer) {
|
|
163
|
+
this._serializer = serializer;
|
|
164
|
+
return this;
|
|
165
|
+
}
|
|
166
|
+
de(deserializer) {
|
|
167
|
+
this._deserializer = deserializer;
|
|
168
|
+
return this;
|
|
169
|
+
}
|
|
170
|
+
sc(operation) {
|
|
171
|
+
this._operationSchema = operation;
|
|
172
|
+
this._smithyContext.operationSchema = operation;
|
|
173
|
+
return this;
|
|
174
|
+
}
|
|
175
|
+
build() {
|
|
176
|
+
const closure = this;
|
|
177
|
+
let CommandRef;
|
|
178
|
+
return (CommandRef = class extends Command {
|
|
179
|
+
input;
|
|
180
|
+
static getEndpointParameterInstructions() {
|
|
181
|
+
return closure._ep;
|
|
182
|
+
}
|
|
183
|
+
constructor(...[input]) {
|
|
184
|
+
super();
|
|
185
|
+
this.input = input ?? {};
|
|
186
|
+
closure._init(this);
|
|
187
|
+
this.schema = closure._operationSchema;
|
|
188
|
+
}
|
|
189
|
+
resolveMiddleware(stack, configuration, options) {
|
|
190
|
+
return this.resolveMiddlewareWithContext(stack, configuration, options, {
|
|
191
|
+
CommandCtor: CommandRef,
|
|
192
|
+
middlewareFn: closure._middlewareFn,
|
|
193
|
+
clientName: closure._clientName,
|
|
194
|
+
commandName: closure._commandName,
|
|
195
|
+
inputFilterSensitiveLog: closure._inputFilterSensitiveLog ??
|
|
196
|
+
(closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.input) : (_) => _),
|
|
197
|
+
outputFilterSensitiveLog: closure._outputFilterSensitiveLog ??
|
|
198
|
+
(closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.output) : (_) => _),
|
|
199
|
+
smithyContext: closure._smithyContext,
|
|
200
|
+
additionalContext: closure._additionalContext,
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
serialize = closure._serializer;
|
|
204
|
+
deserialize = closure._deserializer;
|
|
339
205
|
});
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
// src/constants.ts
|
|
346
|
-
var SENSITIVE_STRING2 = "***SensitiveInformation***";
|
|
206
|
+
}
|
|
207
|
+
}
|
|
347
208
|
|
|
348
|
-
|
|
349
|
-
var createAggregatedClient = /* @__PURE__ */ __name((commands, Client2) => {
|
|
350
|
-
for (const command of Object.keys(commands)) {
|
|
351
|
-
const CommandCtor = commands[command];
|
|
352
|
-
const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) {
|
|
353
|
-
const command2 = new CommandCtor(args);
|
|
354
|
-
if (typeof optionsOrCb === "function") {
|
|
355
|
-
this.send(command2, optionsOrCb);
|
|
356
|
-
} else if (typeof cb === "function") {
|
|
357
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
|
|
358
|
-
this.send(command2, optionsOrCb || {}, cb);
|
|
359
|
-
} else {
|
|
360
|
-
return this.send(command2, optionsOrCb);
|
|
361
|
-
}
|
|
362
|
-
}, "methodImpl");
|
|
363
|
-
const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
|
|
364
|
-
Client2.prototype[methodName] = methodImpl;
|
|
365
|
-
}
|
|
366
|
-
}, "createAggregatedClient");
|
|
209
|
+
const SENSITIVE_STRING = "***SensitiveInformation***";
|
|
367
210
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Custom instanceof check to support the operator for ServiceException base class
|
|
390
|
-
*/
|
|
391
|
-
static [Symbol.hasInstance](instance) {
|
|
392
|
-
if (!instance) return false;
|
|
393
|
-
const candidate = instance;
|
|
394
|
-
if (this === _ServiceException) {
|
|
395
|
-
return _ServiceException.isInstance(instance);
|
|
396
|
-
}
|
|
397
|
-
if (_ServiceException.isInstance(instance)) {
|
|
398
|
-
if (candidate.name && this.name) {
|
|
399
|
-
return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
|
|
400
|
-
}
|
|
401
|
-
return this.prototype.isPrototypeOf(instance);
|
|
402
|
-
}
|
|
403
|
-
return false;
|
|
404
|
-
}
|
|
211
|
+
const createAggregatedClient = (commands, Client) => {
|
|
212
|
+
for (const command of Object.keys(commands)) {
|
|
213
|
+
const CommandCtor = commands[command];
|
|
214
|
+
const methodImpl = async function (args, optionsOrCb, cb) {
|
|
215
|
+
const command = new CommandCtor(args);
|
|
216
|
+
if (typeof optionsOrCb === "function") {
|
|
217
|
+
this.send(command, optionsOrCb);
|
|
218
|
+
}
|
|
219
|
+
else if (typeof cb === "function") {
|
|
220
|
+
if (typeof optionsOrCb !== "object")
|
|
221
|
+
throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
|
|
222
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
return this.send(command, optionsOrCb);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
|
|
229
|
+
Client.prototype[methodName] = methodImpl;
|
|
230
|
+
}
|
|
405
231
|
};
|
|
406
|
-
var decorateServiceException = /* @__PURE__ */ __name((exception, additions = {}) => {
|
|
407
|
-
Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {
|
|
408
|
-
if (exception[k] == void 0 || exception[k] === "") {
|
|
409
|
-
exception[k] = v;
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
const message = exception.message || exception.Message || "UnknownError";
|
|
413
|
-
exception.message = message;
|
|
414
|
-
delete exception.Message;
|
|
415
|
-
return exception;
|
|
416
|
-
}, "decorateServiceException");
|
|
417
|
-
|
|
418
|
-
// src/default-error-handler.ts
|
|
419
|
-
var throwDefaultError = /* @__PURE__ */ __name(({ output, parsedBody, exceptionCtor, errorCode }) => {
|
|
420
|
-
const $metadata = deserializeMetadata(output);
|
|
421
|
-
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0;
|
|
422
|
-
const response = new exceptionCtor({
|
|
423
|
-
name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError",
|
|
424
|
-
$fault: "client",
|
|
425
|
-
$metadata
|
|
426
|
-
});
|
|
427
|
-
throw decorateServiceException(response, parsedBody);
|
|
428
|
-
}, "throwDefaultError");
|
|
429
|
-
var withBaseException = /* @__PURE__ */ __name((ExceptionCtor) => {
|
|
430
|
-
return ({ output, parsedBody, errorCode }) => {
|
|
431
|
-
throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode });
|
|
432
|
-
};
|
|
433
|
-
}, "withBaseException");
|
|
434
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
435
|
-
httpStatusCode: output.statusCode,
|
|
436
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
437
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
438
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
439
|
-
}), "deserializeMetadata");
|
|
440
232
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
233
|
+
class ServiceException extends Error {
|
|
234
|
+
$fault;
|
|
235
|
+
$response;
|
|
236
|
+
$retryable;
|
|
237
|
+
$metadata;
|
|
238
|
+
constructor(options) {
|
|
239
|
+
super(options.message);
|
|
240
|
+
Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
|
|
241
|
+
this.name = options.name;
|
|
242
|
+
this.$fault = options.$fault;
|
|
243
|
+
this.$metadata = options.$metadata;
|
|
244
|
+
}
|
|
245
|
+
static isInstance(value) {
|
|
246
|
+
if (!value)
|
|
247
|
+
return false;
|
|
248
|
+
const candidate = value;
|
|
249
|
+
return (ServiceException.prototype.isPrototypeOf(candidate) ||
|
|
250
|
+
(Boolean(candidate.$fault) &&
|
|
251
|
+
Boolean(candidate.$metadata) &&
|
|
252
|
+
(candidate.$fault === "client" || candidate.$fault === "server")));
|
|
253
|
+
}
|
|
254
|
+
static [Symbol.hasInstance](instance) {
|
|
255
|
+
if (!instance)
|
|
256
|
+
return false;
|
|
257
|
+
const candidate = instance;
|
|
258
|
+
if (this === ServiceException) {
|
|
259
|
+
return ServiceException.isInstance(instance);
|
|
260
|
+
}
|
|
261
|
+
if (ServiceException.isInstance(instance)) {
|
|
262
|
+
if (candidate.name && this.name) {
|
|
263
|
+
return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
|
|
264
|
+
}
|
|
265
|
+
return this.prototype.isPrototypeOf(instance);
|
|
266
|
+
}
|
|
267
|
+
return false;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
const decorateServiceException = (exception, additions = {}) => {
|
|
271
|
+
Object.entries(additions)
|
|
272
|
+
.filter(([, v]) => v !== undefined)
|
|
273
|
+
.forEach(([k, v]) => {
|
|
274
|
+
if (exception[k] == undefined || exception[k] === "") {
|
|
275
|
+
exception[k] = v;
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
const message = exception.message || exception.Message || "UnknownError";
|
|
279
|
+
exception.message = message;
|
|
280
|
+
delete exception.Message;
|
|
281
|
+
return exception;
|
|
282
|
+
};
|
|
476
283
|
|
|
477
|
-
|
|
284
|
+
const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => {
|
|
285
|
+
const $metadata = deserializeMetadata(output);
|
|
286
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
287
|
+
const response = new exceptionCtor({
|
|
288
|
+
name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError",
|
|
289
|
+
$fault: "client",
|
|
290
|
+
$metadata,
|
|
291
|
+
});
|
|
292
|
+
throw decorateServiceException(response, parsedBody);
|
|
293
|
+
};
|
|
294
|
+
const withBaseException = (ExceptionCtor) => {
|
|
295
|
+
return ({ output, parsedBody, errorCode }) => {
|
|
296
|
+
throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode });
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
const deserializeMetadata = (output) => ({
|
|
300
|
+
httpStatusCode: output.statusCode,
|
|
301
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
302
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
303
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
304
|
+
});
|
|
478
305
|
|
|
306
|
+
const loadConfigsForDefaultMode = (mode) => {
|
|
307
|
+
switch (mode) {
|
|
308
|
+
case "standard":
|
|
309
|
+
return {
|
|
310
|
+
retryMode: "standard",
|
|
311
|
+
connectionTimeout: 3100,
|
|
312
|
+
};
|
|
313
|
+
case "in-region":
|
|
314
|
+
return {
|
|
315
|
+
retryMode: "standard",
|
|
316
|
+
connectionTimeout: 1100,
|
|
317
|
+
};
|
|
318
|
+
case "cross-region":
|
|
319
|
+
return {
|
|
320
|
+
retryMode: "standard",
|
|
321
|
+
connectionTimeout: 3100,
|
|
322
|
+
};
|
|
323
|
+
case "mobile":
|
|
324
|
+
return {
|
|
325
|
+
retryMode: "standard",
|
|
326
|
+
connectionTimeout: 30000,
|
|
327
|
+
};
|
|
328
|
+
default:
|
|
329
|
+
return {};
|
|
330
|
+
}
|
|
331
|
+
};
|
|
479
332
|
|
|
480
|
-
|
|
333
|
+
let warningEmitted = false;
|
|
334
|
+
const emitWarningIfUnsupportedVersion = (version) => {
|
|
335
|
+
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
|
|
336
|
+
warningEmitted = true;
|
|
337
|
+
}
|
|
338
|
+
};
|
|
481
339
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
340
|
+
const getChecksumConfiguration = (runtimeConfig) => {
|
|
341
|
+
const checksumAlgorithms = [];
|
|
342
|
+
for (const id in types.AlgorithmId) {
|
|
343
|
+
const algorithmId = types.AlgorithmId[id];
|
|
344
|
+
if (runtimeConfig[algorithmId] === undefined) {
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
347
|
+
checksumAlgorithms.push({
|
|
348
|
+
algorithmId: () => algorithmId,
|
|
349
|
+
checksumConstructor: () => runtimeConfig[algorithmId],
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
return {
|
|
353
|
+
addChecksumAlgorithm(algo) {
|
|
354
|
+
checksumAlgorithms.push(algo);
|
|
355
|
+
},
|
|
356
|
+
checksumAlgorithms() {
|
|
357
|
+
return checksumAlgorithms;
|
|
358
|
+
},
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
const resolveChecksumRuntimeConfig = (clientConfig) => {
|
|
362
|
+
const runtimeConfig = {};
|
|
363
|
+
clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
|
|
364
|
+
runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
|
|
492
365
|
});
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
addChecksumAlgorithm(algo) {
|
|
496
|
-
checksumAlgorithms.push(algo);
|
|
497
|
-
},
|
|
498
|
-
checksumAlgorithms() {
|
|
499
|
-
return checksumAlgorithms;
|
|
500
|
-
}
|
|
501
|
-
};
|
|
502
|
-
}, "getChecksumConfiguration");
|
|
503
|
-
var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
|
|
504
|
-
const runtimeConfig = {};
|
|
505
|
-
clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
|
|
506
|
-
runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
|
|
507
|
-
});
|
|
508
|
-
return runtimeConfig;
|
|
509
|
-
}, "resolveChecksumRuntimeConfig");
|
|
510
|
-
|
|
511
|
-
// src/extensions/retry.ts
|
|
512
|
-
var getRetryConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
513
|
-
return {
|
|
514
|
-
setRetryStrategy(retryStrategy) {
|
|
515
|
-
runtimeConfig.retryStrategy = retryStrategy;
|
|
516
|
-
},
|
|
517
|
-
retryStrategy() {
|
|
518
|
-
return runtimeConfig.retryStrategy;
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
|
-
}, "getRetryConfiguration");
|
|
522
|
-
var resolveRetryRuntimeConfig = /* @__PURE__ */ __name((retryStrategyConfiguration) => {
|
|
523
|
-
const runtimeConfig = {};
|
|
524
|
-
runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
|
|
525
|
-
return runtimeConfig;
|
|
526
|
-
}, "resolveRetryRuntimeConfig");
|
|
366
|
+
return runtimeConfig;
|
|
367
|
+
};
|
|
527
368
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
},
|
|
369
|
+
const getRetryConfiguration = (runtimeConfig) => {
|
|
370
|
+
return {
|
|
371
|
+
setRetryStrategy(retryStrategy) {
|
|
372
|
+
runtimeConfig.retryStrategy = retryStrategy;
|
|
373
|
+
},
|
|
374
|
+
retryStrategy() {
|
|
375
|
+
return runtimeConfig.retryStrategy;
|
|
376
|
+
},
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
const resolveRetryRuntimeConfig = (retryStrategyConfiguration) => {
|
|
380
|
+
const runtimeConfig = {};
|
|
381
|
+
runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
|
|
382
|
+
return runtimeConfig;
|
|
383
|
+
};
|
|
536
384
|
|
|
537
|
-
|
|
538
|
-
|
|
385
|
+
const getDefaultExtensionConfiguration = (runtimeConfig) => {
|
|
386
|
+
return Object.assign(getChecksumConfiguration(runtimeConfig), getRetryConfiguration(runtimeConfig));
|
|
387
|
+
};
|
|
388
|
+
const getDefaultClientConfiguration = getDefaultExtensionConfiguration;
|
|
389
|
+
const resolveDefaultRuntimeConfig = (config) => {
|
|
390
|
+
return Object.assign(resolveChecksumRuntimeConfig(config), resolveRetryRuntimeConfig(config));
|
|
391
|
+
};
|
|
539
392
|
|
|
540
|
-
|
|
541
|
-
var getValueFromTextNode = /* @__PURE__ */ __name((obj) => {
|
|
542
|
-
const textNodeName = "#text";
|
|
543
|
-
for (const key in obj) {
|
|
544
|
-
if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) {
|
|
545
|
-
obj[key] = obj[key][textNodeName];
|
|
546
|
-
} else if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
547
|
-
obj[key] = getValueFromTextNode(obj[key]);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
return obj;
|
|
551
|
-
}, "getValueFromTextNode");
|
|
393
|
+
const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray];
|
|
552
394
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
395
|
+
const getValueFromTextNode = (obj) => {
|
|
396
|
+
const textNodeName = "#text";
|
|
397
|
+
for (const key in obj) {
|
|
398
|
+
if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) {
|
|
399
|
+
obj[key] = obj[key][textNodeName];
|
|
400
|
+
}
|
|
401
|
+
else if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
402
|
+
obj[key] = getValueFromTextNode(obj[key]);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return obj;
|
|
406
|
+
};
|
|
557
407
|
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
static {
|
|
561
|
-
__name(this, "NoOpLogger");
|
|
562
|
-
}
|
|
563
|
-
trace() {
|
|
564
|
-
}
|
|
565
|
-
debug() {
|
|
566
|
-
}
|
|
567
|
-
info() {
|
|
568
|
-
}
|
|
569
|
-
warn() {
|
|
570
|
-
}
|
|
571
|
-
error() {
|
|
572
|
-
}
|
|
408
|
+
const isSerializableHeaderValue = (value) => {
|
|
409
|
+
return value != null;
|
|
573
410
|
};
|
|
574
411
|
|
|
575
|
-
|
|
412
|
+
class NoOpLogger {
|
|
413
|
+
trace() { }
|
|
414
|
+
debug() { }
|
|
415
|
+
info() { }
|
|
416
|
+
warn() { }
|
|
417
|
+
error() { }
|
|
418
|
+
}
|
|
419
|
+
|
|
576
420
|
function map(arg0, arg1, arg2) {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
421
|
+
let target;
|
|
422
|
+
let filter;
|
|
423
|
+
let instructions;
|
|
424
|
+
if (typeof arg1 === "undefined" && typeof arg2 === "undefined") {
|
|
425
|
+
target = {};
|
|
426
|
+
instructions = arg0;
|
|
427
|
+
}
|
|
428
|
+
else {
|
|
429
|
+
target = arg0;
|
|
430
|
+
if (typeof arg1 === "function") {
|
|
431
|
+
filter = arg1;
|
|
432
|
+
instructions = arg2;
|
|
433
|
+
return mapWithFilter(target, filter, instructions);
|
|
434
|
+
}
|
|
435
|
+
else {
|
|
436
|
+
instructions = arg1;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
for (const key of Object.keys(instructions)) {
|
|
440
|
+
if (!Array.isArray(instructions[key])) {
|
|
441
|
+
target[key] = instructions[key];
|
|
442
|
+
continue;
|
|
443
|
+
}
|
|
444
|
+
applyInstruction(target, null, instructions, key);
|
|
445
|
+
}
|
|
446
|
+
return target;
|
|
601
447
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
return map(
|
|
619
|
-
target,
|
|
620
|
-
Object.entries(instructions).reduce(
|
|
621
|
-
(_instructions, [key, value]) => {
|
|
448
|
+
const convertMap = (target) => {
|
|
449
|
+
const output = {};
|
|
450
|
+
for (const [k, v] of Object.entries(target || {})) {
|
|
451
|
+
output[k] = [, v];
|
|
452
|
+
}
|
|
453
|
+
return output;
|
|
454
|
+
};
|
|
455
|
+
const take = (source, instructions) => {
|
|
456
|
+
const out = {};
|
|
457
|
+
for (const key in instructions) {
|
|
458
|
+
applyInstruction(out, source, instructions, key);
|
|
459
|
+
}
|
|
460
|
+
return out;
|
|
461
|
+
};
|
|
462
|
+
const mapWithFilter = (target, filter, instructions) => {
|
|
463
|
+
return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => {
|
|
622
464
|
if (Array.isArray(value)) {
|
|
623
|
-
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
465
|
+
_instructions[key] = value;
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
if (typeof value === "function") {
|
|
469
|
+
_instructions[key] = [filter, value()];
|
|
470
|
+
}
|
|
471
|
+
else {
|
|
472
|
+
_instructions[key] = [filter, value];
|
|
473
|
+
}
|
|
630
474
|
}
|
|
631
475
|
return _instructions;
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
var pass = /* @__PURE__ */ __name((_) => _, "pass");
|
|
669
|
-
|
|
670
|
-
// src/resolve-path.ts
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
// src/ser-utils.ts
|
|
674
|
-
var serializeFloat = /* @__PURE__ */ __name((value) => {
|
|
675
|
-
if (value !== value) {
|
|
676
|
-
return "NaN";
|
|
677
|
-
}
|
|
678
|
-
switch (value) {
|
|
679
|
-
case Infinity:
|
|
680
|
-
return "Infinity";
|
|
681
|
-
case -Infinity:
|
|
682
|
-
return "-Infinity";
|
|
683
|
-
default:
|
|
684
|
-
return value;
|
|
685
|
-
}
|
|
686
|
-
}, "serializeFloat");
|
|
687
|
-
var serializeDateTime = /* @__PURE__ */ __name((date) => date.toISOString().replace(".000Z", "Z"), "serializeDateTime");
|
|
476
|
+
}, {}));
|
|
477
|
+
};
|
|
478
|
+
const applyInstruction = (target, source, instructions, targetKey) => {
|
|
479
|
+
if (source !== null) {
|
|
480
|
+
let instruction = instructions[targetKey];
|
|
481
|
+
if (typeof instruction === "function") {
|
|
482
|
+
instruction = [, instruction];
|
|
483
|
+
}
|
|
484
|
+
const [filter = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction;
|
|
485
|
+
if ((typeof filter === "function" && filter(source[sourceKey])) || (typeof filter !== "function" && !!filter)) {
|
|
486
|
+
target[targetKey] = valueFn(source[sourceKey]);
|
|
487
|
+
}
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
let [filter, value] = instructions[targetKey];
|
|
491
|
+
if (typeof value === "function") {
|
|
492
|
+
let _value;
|
|
493
|
+
const defaultFilterPassed = filter === undefined && (_value = value()) != null;
|
|
494
|
+
const customFilterPassed = (typeof filter === "function" && !!filter(void 0)) || (typeof filter !== "function" && !!filter);
|
|
495
|
+
if (defaultFilterPassed) {
|
|
496
|
+
target[targetKey] = _value;
|
|
497
|
+
}
|
|
498
|
+
else if (customFilterPassed) {
|
|
499
|
+
target[targetKey] = value();
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
else {
|
|
503
|
+
const defaultFilterPassed = filter === undefined && value != null;
|
|
504
|
+
const customFilterPassed = (typeof filter === "function" && !!filter(value)) || (typeof filter !== "function" && !!filter);
|
|
505
|
+
if (defaultFilterPassed || customFilterPassed) {
|
|
506
|
+
target[targetKey] = value;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
const nonNullish = (_) => _ != null;
|
|
511
|
+
const pass = (_) => _;
|
|
688
512
|
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
return {};
|
|
693
|
-
}
|
|
694
|
-
if (Array.isArray(obj)) {
|
|
695
|
-
return obj.filter((_) => _ != null).map(_json);
|
|
696
|
-
}
|
|
697
|
-
if (typeof obj === "object") {
|
|
698
|
-
const target = {};
|
|
699
|
-
for (const key of Object.keys(obj)) {
|
|
700
|
-
if (obj[key] == null) {
|
|
701
|
-
continue;
|
|
702
|
-
}
|
|
703
|
-
target[key] = _json(obj[key]);
|
|
513
|
+
const serializeFloat = (value) => {
|
|
514
|
+
if (value !== value) {
|
|
515
|
+
return "NaN";
|
|
704
516
|
}
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
517
|
+
switch (value) {
|
|
518
|
+
case Infinity:
|
|
519
|
+
return "Infinity";
|
|
520
|
+
case -Infinity:
|
|
521
|
+
return "-Infinity";
|
|
522
|
+
default:
|
|
523
|
+
return value;
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
const serializeDateTime = (date) => date.toISOString().replace(".000Z", "Z");
|
|
709
527
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
528
|
+
const _json = (obj) => {
|
|
529
|
+
if (obj == null) {
|
|
530
|
+
return {};
|
|
531
|
+
}
|
|
532
|
+
if (Array.isArray(obj)) {
|
|
533
|
+
return obj.filter((_) => _ != null).map(_json);
|
|
534
|
+
}
|
|
535
|
+
if (typeof obj === "object") {
|
|
536
|
+
const target = {};
|
|
537
|
+
for (const key of Object.keys(obj)) {
|
|
538
|
+
if (obj[key] == null) {
|
|
539
|
+
continue;
|
|
540
|
+
}
|
|
541
|
+
target[key] = _json(obj[key]);
|
|
542
|
+
}
|
|
543
|
+
return target;
|
|
544
|
+
}
|
|
545
|
+
return obj;
|
|
546
|
+
};
|
|
713
547
|
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
expectShort,
|
|
755
|
-
expectString,
|
|
756
|
-
expectUnion,
|
|
757
|
-
generateIdempotencyToken,
|
|
758
|
-
handleFloat,
|
|
759
|
-
limitedParseDouble,
|
|
760
|
-
limitedParseFloat,
|
|
761
|
-
limitedParseFloat32,
|
|
762
|
-
logger,
|
|
763
|
-
nv,
|
|
764
|
-
parseBoolean,
|
|
765
|
-
parseEpochTimestamp,
|
|
766
|
-
parseRfc3339DateTime,
|
|
767
|
-
parseRfc3339DateTimeWithOffset,
|
|
768
|
-
parseRfc7231DateTime,
|
|
769
|
-
quoteHeader,
|
|
770
|
-
splitEvery,
|
|
771
|
-
splitHeader,
|
|
772
|
-
strictParseByte,
|
|
773
|
-
strictParseDouble,
|
|
774
|
-
strictParseFloat,
|
|
775
|
-
strictParseFloat32,
|
|
776
|
-
strictParseInt,
|
|
777
|
-
strictParseInt32,
|
|
778
|
-
strictParseLong,
|
|
779
|
-
strictParseShort
|
|
548
|
+
Object.defineProperty(exports, "collectBody", {
|
|
549
|
+
enumerable: true,
|
|
550
|
+
get: function () { return protocols.collectBody; }
|
|
551
|
+
});
|
|
552
|
+
Object.defineProperty(exports, "extendedEncodeURIComponent", {
|
|
553
|
+
enumerable: true,
|
|
554
|
+
get: function () { return protocols.extendedEncodeURIComponent; }
|
|
555
|
+
});
|
|
556
|
+
Object.defineProperty(exports, "resolvedPath", {
|
|
557
|
+
enumerable: true,
|
|
558
|
+
get: function () { return protocols.resolvedPath; }
|
|
559
|
+
});
|
|
560
|
+
exports.Client = Client;
|
|
561
|
+
exports.Command = Command;
|
|
562
|
+
exports.NoOpLogger = NoOpLogger;
|
|
563
|
+
exports.SENSITIVE_STRING = SENSITIVE_STRING;
|
|
564
|
+
exports.ServiceException = ServiceException;
|
|
565
|
+
exports._json = _json;
|
|
566
|
+
exports.convertMap = convertMap;
|
|
567
|
+
exports.createAggregatedClient = createAggregatedClient;
|
|
568
|
+
exports.decorateServiceException = decorateServiceException;
|
|
569
|
+
exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
|
|
570
|
+
exports.getArrayIfSingleItem = getArrayIfSingleItem;
|
|
571
|
+
exports.getDefaultClientConfiguration = getDefaultClientConfiguration;
|
|
572
|
+
exports.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration;
|
|
573
|
+
exports.getValueFromTextNode = getValueFromTextNode;
|
|
574
|
+
exports.isSerializableHeaderValue = isSerializableHeaderValue;
|
|
575
|
+
exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode;
|
|
576
|
+
exports.map = map;
|
|
577
|
+
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
578
|
+
exports.serializeDateTime = serializeDateTime;
|
|
579
|
+
exports.serializeFloat = serializeFloat;
|
|
580
|
+
exports.take = take;
|
|
581
|
+
exports.throwDefaultError = throwDefaultError;
|
|
582
|
+
exports.withBaseException = withBaseException;
|
|
583
|
+
Object.keys(serde).forEach(function (k) {
|
|
584
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
585
|
+
enumerable: true,
|
|
586
|
+
get: function () { return serde[k]; }
|
|
587
|
+
});
|
|
780
588
|
});
|
|
781
|
-
|