@cdklabs/cdk-ecs-codedeploy 0.0.235 → 0.0.236
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/.jsii.tabl.json +1 -1
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +1 -13
- package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +1 -24
- package/node_modules/@smithy/abort-controller/dist-cjs/index.js +83 -5
- package/node_modules/@smithy/abort-controller/package.json +3 -3
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +1 -12
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +1 -12
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +1 -7
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +1 -16
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +1 -20
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +1 -20
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +233 -6
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +1 -15
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +1 -10
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +1 -5
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +1 -5
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +1 -29
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +1 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +1 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +1 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +1 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +1 -8
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +1 -34
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +1 -9
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +1 -5
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +1 -16
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +1 -6
- package/node_modules/@smithy/config-resolver/package.json +6 -6
- package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +1 -6
- package/node_modules/@smithy/core/dist-cjs/index.js +480 -12
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +1 -22
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +1 -22
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -45
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +1 -6
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +1 -20
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +1 -28
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +1 -5
- package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +1 -10
- package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +1 -32
- package/node_modules/@smithy/core/dist-cjs/protocols/requestBuilder.js +1 -72
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +1 -17
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +1 -37
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +1 -14
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +1 -6
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +1 -9
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +1 -6
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +1 -59
- package/node_modules/@smithy/core/package.json +9 -9
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +1 -8
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +1 -10
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +1 -8
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +1 -11
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +1 -13
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +1 -70
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +1 -137
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +425 -12
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +1 -17
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +1 -7
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +1 -41
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +1 -5
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +1 -11
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +1 -22
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +1 -23
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +1 -29
- package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
- package/node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js +1 -66
- package/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js +1 -186
- package/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js +1 -47
- package/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js +1 -2
- package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js +1 -18
- package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js +1 -21
- package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +1 -20
- package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +1 -18
- package/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js +1 -693
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +466 -11
- package/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js +1 -34
- package/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js +1 -2
- package/node_modules/@smithy/eventstream-codec/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +1 -117
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +218 -5
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +1 -15
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +1 -50
- package/node_modules/@smithy/fetch-http-handler/package.json +7 -7
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +62 -36
- package/node_modules/@smithy/hash-node/package.json +5 -5
- package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +39 -5
- package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +1 -7
- package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +1 -5
- package/node_modules/@smithy/invalid-dependency/package.json +3 -3
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +30 -6
- package/node_modules/@smithy/is-array-buffer/package.json +7 -9
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +64 -39
- package/node_modules/@smithy/middleware-content-length/package.json +5 -5
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js +1 -38
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js +1 -51
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js +1 -5
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js +1 -14
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js +1 -37
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js +1 -22
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +252 -8
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js +1 -21
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js +1 -4
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js +1 -43
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +1 -24
- package/node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js +1 -95
- package/node_modules/@smithy/middleware-retry/dist-cjs/configurations.js +1 -57
- package/node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js +1 -32
- package/node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js +1 -6
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +422 -10
- package/node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +1 -27
- package/node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js +1 -11
- package/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js +1 -118
- package/node_modules/@smithy/middleware-retry/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/middleware-retry/dist-cjs/util.js +1 -13
- package/node_modules/@smithy/middleware-retry/package.json +10 -10
- package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +1 -24
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +95 -6
- package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +1 -26
- package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +1 -18
- package/node_modules/@smithy/middleware-serde/package.json +4 -4
- package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +1 -287
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +316 -4
- package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/middleware-stack/package.json +3 -3
- package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +1 -9
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +1 -17
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +1 -26
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +1 -7
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +85 -4
- package/node_modules/@smithy/node-config-provider/package.json +5 -5
- package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +1 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +1 -12
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +624 -6
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +1 -153
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +1 -92
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +1 -36
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +1 -165
- package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +1 -23
- package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +1 -60
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +1 -25
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +1 -12
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +1 -10
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +1 -15
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +1 -18
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +1 -23
- package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +1 -45
- package/node_modules/@smithy/node-http-handler/package.json +6 -6
- package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +1 -13
- package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +1 -15
- package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +1 -13
- package/node_modules/@smithy/property-provider/dist-cjs/chain.js +1 -25
- package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +1 -5
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +148 -9
- package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +1 -49
- package/node_modules/@smithy/property-provider/package.json +3 -3
- package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +1 -27
- package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +1 -23
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +1 -27
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +1 -4
- package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +1 -2
- package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +1 -52
- package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +1 -18
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +235 -11
- package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +1 -8
- package/node_modules/@smithy/protocol-http/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/protocol-http/package.json +3 -3
- package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +47 -22
- package/node_modules/@smithy/querystring-builder/package.json +4 -4
- package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +48 -24
- package/node_modules/@smithy/querystring-parser/package.json +3 -3
- package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +1 -30
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +86 -30
- package/node_modules/@smithy/service-error-classification/package.json +3 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +1 -22
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +1 -8
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +1 -8
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +1 -7
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +1 -9
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +188 -11
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +1 -31
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +1 -16
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +1 -18
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +1 -56
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +1 -10
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +13 -3
- package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +1 -194
- package/node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js +1 -17
- package/node_modules/@smithy/signature-v4/dist-cjs/constants.js +1 -46
- package/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +1 -39
- package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +1 -24
- package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +1 -31
- package/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +1 -24
- package/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +1 -32
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +465 -16
- package/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +1 -21
- package/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +1 -15
- package/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +1 -402
- package/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +1 -20
- package/node_modules/@smithy/signature-v4/package.json +10 -10
- package/node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js +1 -11
- package/node_modules/@smithy/smithy-client/dist-cjs/client.js +1 -28
- package/node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js +1 -15
- package/node_modules/@smithy/smithy-client/dist-cjs/command.js +1 -118
- package/node_modules/@smithy/smithy-client/dist-cjs/constants.js +1 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js +1 -25
- package/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js +1 -195
- package/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js +1 -30
- package/node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js +1 -30
- package/node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +1 -10
- package/node_modules/@smithy/smithy-client/dist-cjs/exceptions.js +1 -27
- package/node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js +1 -9
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js +1 -36
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js +1 -20
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js +1 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js +1 -21
- package/node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js +1 -5
- package/node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js +1 -16
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1254 -25
- package/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js +1 -38
- package/node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js +1 -98
- package/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js +1 -253
- package/node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js +1 -23
- package/node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js +1 -17
- package/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js +1 -23
- package/node_modules/@smithy/smithy-client/dist-cjs/split-every.js +1 -31
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-cjs/abort.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/auth/auth.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/auth/index.js +1 -9
- package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/checksum.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/client.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/command.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/connection/config.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/connection/index.js +1 -6
- package/node_modules/@smithy/types/dist-cjs/connection/manager.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/connection/pool.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/crypto.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/encode.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/endpoint.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/eventStream.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +1 -44
- package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +1 -16
- package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/extensions/index.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/http.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/identity/identity.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/identity/index.js +1 -7
- package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/index.js +147 -39
- package/node_modules/@smithy/types/dist-cjs/logger.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/middleware.js +1 -4
- package/node_modules/@smithy/types/dist-cjs/pagination.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/profile.js +1 -9
- package/node_modules/@smithy/types/dist-cjs/response.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/retry.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/serde.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/shapes.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/signature.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/stream.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/transfer.js +1 -9
- package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/transform/exact.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/uri.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/util.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/waiter.js +1 -2
- package/node_modules/@smithy/types/package.json +2 -2
- package/node_modules/@smithy/url-parser/dist-cjs/index.js +46 -21
- package/node_modules/@smithy/url-parser/package.json +4 -4
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +25 -5
- package/node_modules/@smithy/util-base64/package.json +4 -4
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +1 -30
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +55 -4
- package/node_modules/@smithy/util-body-length-browser/package.json +2 -2
- package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +1 -29
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +51 -4
- package/node_modules/@smithy/util-body-length-node/package.json +7 -9
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +43 -17
- package/node_modules/@smithy/util-buffer-from/package.json +8 -10
- package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +1 -13
- package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +62 -6
- package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +1 -13
- package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +1 -8
- package/node_modules/@smithy/util-config-provider/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +23 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js +1 -9
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +1 -14
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +107 -4
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +1 -57
- package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +1 -4
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +1 -16
- package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +1 -25
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +482 -8
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +1 -15
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +1 -29
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +1 -12
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +1 -6
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +1 -17
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +1 -55
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +1 -13
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +1 -42
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +1 -10
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +1 -10
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +1 -15
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +1 -4
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +1 -15
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +1 -19
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +1 -27
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +1 -32
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +1 -18
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +1 -20
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +1 -31
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +1 -40
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +1 -17
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +1 -16
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +1 -9
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +1 -25
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +1 -19
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +1 -11
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +1 -5
- package/node_modules/@smithy/util-endpoints/package.json +4 -4
- package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +58 -31
- package/node_modules/@smithy/util-hex-encoding/package.json +7 -9
- package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +1 -6
- package/node_modules/@smithy/util-middleware/dist-cjs/index.js +43 -5
- package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +1 -10
- package/node_modules/@smithy/util-middleware/package.json +3 -3
- package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +1 -28
- package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +1 -22
- package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +1 -104
- package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +1 -70
- package/node_modules/@smithy/util-retry/dist-cjs/config.js +1 -10
- package/node_modules/@smithy/util-retry/dist-cjs/constants.js +1 -12
- package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +1 -18
- package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +1 -15
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +345 -10
- package/node_modules/@smithy/util-retry/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/util-retry/package.json +4 -4
- package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +1 -22
- package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +1 -20
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +87 -6
- package/node_modules/@smithy/util-stream/package.json +10 -10
- package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +1 -6
- package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +1 -6
- package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +41 -5
- package/node_modules/@smithy/util-uri-escape/package.json +7 -9
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +1 -5
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +1 -9
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +55 -6
- package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +1 -14
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +1 -5
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +1 -6
- package/node_modules/@smithy/util-utf8/package.json +4 -4
- package/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +1 -27
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +153 -5
- package/node_modules/@smithy/util-waiter/dist-cjs/poller.js +1 -38
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +1 -5
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +1 -7
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +1 -21
- package/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +1 -38
- package/node_modules/@smithy/util-waiter/package.json +4 -4
- package/package.json +5 -5
- package/.gitattributes +0 -27
- package/.projenrc.ts +0 -113
|
@@ -1,6 +1,233 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
CONFIG_USE_DUALSTACK_ENDPOINT: () => CONFIG_USE_DUALSTACK_ENDPOINT,
|
|
24
|
+
CONFIG_USE_FIPS_ENDPOINT: () => CONFIG_USE_FIPS_ENDPOINT,
|
|
25
|
+
DEFAULT_USE_DUALSTACK_ENDPOINT: () => DEFAULT_USE_DUALSTACK_ENDPOINT,
|
|
26
|
+
DEFAULT_USE_FIPS_ENDPOINT: () => DEFAULT_USE_FIPS_ENDPOINT,
|
|
27
|
+
ENV_USE_DUALSTACK_ENDPOINT: () => ENV_USE_DUALSTACK_ENDPOINT,
|
|
28
|
+
ENV_USE_FIPS_ENDPOINT: () => ENV_USE_FIPS_ENDPOINT,
|
|
29
|
+
NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
30
|
+
NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS,
|
|
31
|
+
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
|
32
|
+
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
|
33
|
+
REGION_ENV_NAME: () => REGION_ENV_NAME,
|
|
34
|
+
REGION_INI_NAME: () => REGION_INI_NAME,
|
|
35
|
+
getRegionInfo: () => getRegionInfo,
|
|
36
|
+
resolveCustomEndpointsConfig: () => resolveCustomEndpointsConfig,
|
|
37
|
+
resolveEndpointsConfig: () => resolveEndpointsConfig,
|
|
38
|
+
resolveRegionConfig: () => resolveRegionConfig
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(src_exports);
|
|
41
|
+
|
|
42
|
+
// src/endpointsConfig/NodeUseDualstackEndpointConfigOptions.ts
|
|
43
|
+
var import_util_config_provider = require("@smithy/util-config-provider");
|
|
44
|
+
var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
45
|
+
var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
|
|
46
|
+
var DEFAULT_USE_DUALSTACK_ENDPOINT = false;
|
|
47
|
+
var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
48
|
+
environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.ENV),
|
|
49
|
+
configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.CONFIG),
|
|
50
|
+
default: false
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// src/endpointsConfig/NodeUseFipsEndpointConfigOptions.ts
|
|
54
|
+
|
|
55
|
+
var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
|
|
56
|
+
var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
|
|
57
|
+
var DEFAULT_USE_FIPS_ENDPOINT = false;
|
|
58
|
+
var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
59
|
+
environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.ENV),
|
|
60
|
+
configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.CONFIG),
|
|
61
|
+
default: false
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
// src/endpointsConfig/resolveCustomEndpointsConfig.ts
|
|
65
|
+
var import_util_middleware = require("@smithy/util-middleware");
|
|
66
|
+
var resolveCustomEndpointsConfig = /* @__PURE__ */ __name((input) => {
|
|
67
|
+
const { endpoint, urlParser } = input;
|
|
68
|
+
return {
|
|
69
|
+
...input,
|
|
70
|
+
tls: input.tls ?? true,
|
|
71
|
+
endpoint: (0, import_util_middleware.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint),
|
|
72
|
+
isCustomEndpoint: true,
|
|
73
|
+
useDualstackEndpoint: (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false)
|
|
74
|
+
};
|
|
75
|
+
}, "resolveCustomEndpointsConfig");
|
|
76
|
+
|
|
77
|
+
// src/endpointsConfig/resolveEndpointsConfig.ts
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
// src/endpointsConfig/utils/getEndpointFromRegion.ts
|
|
81
|
+
var getEndpointFromRegion = /* @__PURE__ */ __name(async (input) => {
|
|
82
|
+
const { tls = true } = input;
|
|
83
|
+
const region = await input.region();
|
|
84
|
+
const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);
|
|
85
|
+
if (!dnsHostRegex.test(region)) {
|
|
86
|
+
throw new Error("Invalid region in client config");
|
|
87
|
+
}
|
|
88
|
+
const useDualstackEndpoint = await input.useDualstackEndpoint();
|
|
89
|
+
const useFipsEndpoint = await input.useFipsEndpoint();
|
|
90
|
+
const { hostname } = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint }) ?? {};
|
|
91
|
+
if (!hostname) {
|
|
92
|
+
throw new Error("Cannot resolve hostname from client config");
|
|
93
|
+
}
|
|
94
|
+
return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`);
|
|
95
|
+
}, "getEndpointFromRegion");
|
|
96
|
+
|
|
97
|
+
// src/endpointsConfig/resolveEndpointsConfig.ts
|
|
98
|
+
var resolveEndpointsConfig = /* @__PURE__ */ __name((input) => {
|
|
99
|
+
const useDualstackEndpoint = (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false);
|
|
100
|
+
const { endpoint, useFipsEndpoint, urlParser } = input;
|
|
101
|
+
return {
|
|
102
|
+
...input,
|
|
103
|
+
tls: input.tls ?? true,
|
|
104
|
+
endpoint: endpoint ? (0, import_util_middleware.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }),
|
|
105
|
+
isCustomEndpoint: !!endpoint,
|
|
106
|
+
useDualstackEndpoint
|
|
107
|
+
};
|
|
108
|
+
}, "resolveEndpointsConfig");
|
|
109
|
+
|
|
110
|
+
// src/regionConfig/config.ts
|
|
111
|
+
var REGION_ENV_NAME = "AWS_REGION";
|
|
112
|
+
var REGION_INI_NAME = "region";
|
|
113
|
+
var NODE_REGION_CONFIG_OPTIONS = {
|
|
114
|
+
environmentVariableSelector: (env) => env[REGION_ENV_NAME],
|
|
115
|
+
configFileSelector: (profile) => profile[REGION_INI_NAME],
|
|
116
|
+
default: () => {
|
|
117
|
+
throw new Error("Region is missing");
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
var NODE_REGION_CONFIG_FILE_OPTIONS = {
|
|
121
|
+
preferredFile: "credentials"
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// src/regionConfig/isFipsRegion.ts
|
|
125
|
+
var isFipsRegion = /* @__PURE__ */ __name((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion");
|
|
126
|
+
|
|
127
|
+
// src/regionConfig/getRealRegion.ts
|
|
128
|
+
var getRealRegion = /* @__PURE__ */ __name((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion");
|
|
129
|
+
|
|
130
|
+
// src/regionConfig/resolveRegionConfig.ts
|
|
131
|
+
var resolveRegionConfig = /* @__PURE__ */ __name((input) => {
|
|
132
|
+
const { region, useFipsEndpoint } = input;
|
|
133
|
+
if (!region) {
|
|
134
|
+
throw new Error("Region is missing");
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
...input,
|
|
138
|
+
region: async () => {
|
|
139
|
+
if (typeof region === "string") {
|
|
140
|
+
return getRealRegion(region);
|
|
141
|
+
}
|
|
142
|
+
const providedRegion = await region();
|
|
143
|
+
return getRealRegion(providedRegion);
|
|
144
|
+
},
|
|
145
|
+
useFipsEndpoint: async () => {
|
|
146
|
+
const providedRegion = typeof region === "string" ? region : await region();
|
|
147
|
+
if (isFipsRegion(providedRegion)) {
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
}, "resolveRegionConfig");
|
|
154
|
+
|
|
155
|
+
// src/regionInfo/getHostnameFromVariants.ts
|
|
156
|
+
var getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => {
|
|
157
|
+
var _a;
|
|
158
|
+
return (_a = variants.find(
|
|
159
|
+
({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack")
|
|
160
|
+
)) == null ? void 0 : _a.hostname;
|
|
161
|
+
}, "getHostnameFromVariants");
|
|
162
|
+
|
|
163
|
+
// src/regionInfo/getResolvedHostname.ts
|
|
164
|
+
var getResolvedHostname = /* @__PURE__ */ __name((resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0, "getResolvedHostname");
|
|
165
|
+
|
|
166
|
+
// src/regionInfo/getResolvedPartition.ts
|
|
167
|
+
var getResolvedPartition = /* @__PURE__ */ __name((region, { partitionHash }) => Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? "aws", "getResolvedPartition");
|
|
168
|
+
|
|
169
|
+
// src/regionInfo/getResolvedSigningRegion.ts
|
|
170
|
+
var getResolvedSigningRegion = /* @__PURE__ */ __name((hostname, { signingRegion, regionRegex, useFipsEndpoint }) => {
|
|
171
|
+
if (signingRegion) {
|
|
172
|
+
return signingRegion;
|
|
173
|
+
} else if (useFipsEndpoint) {
|
|
174
|
+
const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\.");
|
|
175
|
+
const regionRegexmatchArray = hostname.match(regionRegexJs);
|
|
176
|
+
if (regionRegexmatchArray) {
|
|
177
|
+
return regionRegexmatchArray[0].slice(1, -1);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}, "getResolvedSigningRegion");
|
|
181
|
+
|
|
182
|
+
// src/regionInfo/getRegionInfo.ts
|
|
183
|
+
var getRegionInfo = /* @__PURE__ */ __name((region, {
|
|
184
|
+
useFipsEndpoint = false,
|
|
185
|
+
useDualstackEndpoint = false,
|
|
186
|
+
signingService,
|
|
187
|
+
regionHash,
|
|
188
|
+
partitionHash
|
|
189
|
+
}) => {
|
|
190
|
+
var _a, _b, _c, _d, _e;
|
|
191
|
+
const partition = getResolvedPartition(region, { partitionHash });
|
|
192
|
+
const resolvedRegion = region in regionHash ? region : ((_a = partitionHash[partition]) == null ? void 0 : _a.endpoint) ?? region;
|
|
193
|
+
const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
|
|
194
|
+
const regionHostname = getHostnameFromVariants((_b = regionHash[resolvedRegion]) == null ? void 0 : _b.variants, hostnameOptions);
|
|
195
|
+
const partitionHostname = getHostnameFromVariants((_c = partitionHash[partition]) == null ? void 0 : _c.variants, hostnameOptions);
|
|
196
|
+
const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname });
|
|
197
|
+
if (hostname === void 0) {
|
|
198
|
+
throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`);
|
|
199
|
+
}
|
|
200
|
+
const signingRegion = getResolvedSigningRegion(hostname, {
|
|
201
|
+
signingRegion: (_d = regionHash[resolvedRegion]) == null ? void 0 : _d.signingRegion,
|
|
202
|
+
regionRegex: partitionHash[partition].regionRegex,
|
|
203
|
+
useFipsEndpoint
|
|
204
|
+
});
|
|
205
|
+
return {
|
|
206
|
+
partition,
|
|
207
|
+
signingService,
|
|
208
|
+
hostname,
|
|
209
|
+
...signingRegion && { signingRegion },
|
|
210
|
+
...((_e = regionHash[resolvedRegion]) == null ? void 0 : _e.signingService) && {
|
|
211
|
+
signingService: regionHash[resolvedRegion].signingService
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
}, "getRegionInfo");
|
|
215
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
216
|
+
0 && (module.exports = {
|
|
217
|
+
CONFIG_USE_DUALSTACK_ENDPOINT,
|
|
218
|
+
CONFIG_USE_FIPS_ENDPOINT,
|
|
219
|
+
DEFAULT_USE_DUALSTACK_ENDPOINT,
|
|
220
|
+
DEFAULT_USE_FIPS_ENDPOINT,
|
|
221
|
+
ENV_USE_DUALSTACK_ENDPOINT,
|
|
222
|
+
ENV_USE_FIPS_ENDPOINT,
|
|
223
|
+
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
224
|
+
NODE_REGION_CONFIG_OPTIONS,
|
|
225
|
+
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
|
226
|
+
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
|
227
|
+
REGION_ENV_NAME,
|
|
228
|
+
REGION_INI_NAME,
|
|
229
|
+
getRegionInfo,
|
|
230
|
+
resolveCustomEndpointsConfig,
|
|
231
|
+
resolveEndpointsConfig,
|
|
232
|
+
resolveRegionConfig
|
|
233
|
+
});
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0;
|
|
4
|
-
exports.REGION_ENV_NAME = "AWS_REGION";
|
|
5
|
-
exports.REGION_INI_NAME = "region";
|
|
6
|
-
exports.NODE_REGION_CONFIG_OPTIONS = {
|
|
7
|
-
environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME],
|
|
8
|
-
configFileSelector: (profile) => profile[exports.REGION_INI_NAME],
|
|
9
|
-
default: () => {
|
|
10
|
-
throw new Error("Region is missing");
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
exports.NODE_REGION_CONFIG_FILE_OPTIONS = {
|
|
14
|
-
preferredFile: "credentials",
|
|
15
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRealRegion = void 0;
|
|
4
|
-
const isFipsRegion_1 = require("./isFipsRegion");
|
|
5
|
-
const getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region)
|
|
6
|
-
? ["fips-aws-global", "aws-fips"].includes(region)
|
|
7
|
-
? "us-east-1"
|
|
8
|
-
: region.replace(/fips-(dkr-|prod-)?|-fips/, "")
|
|
9
|
-
: region;
|
|
10
|
-
exports.getRealRegion = getRealRegion;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./config"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./resolveRegionConfig"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isFipsRegion = void 0;
|
|
4
|
-
const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
|
|
5
|
-
exports.isFipsRegion = isFipsRegion;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRegionConfig = void 0;
|
|
4
|
-
const getRealRegion_1 = require("./getRealRegion");
|
|
5
|
-
const isFipsRegion_1 = require("./isFipsRegion");
|
|
6
|
-
const resolveRegionConfig = (input) => {
|
|
7
|
-
const { region, useFipsEndpoint } = input;
|
|
8
|
-
if (!region) {
|
|
9
|
-
throw new Error("Region is missing");
|
|
10
|
-
}
|
|
11
|
-
return {
|
|
12
|
-
...input,
|
|
13
|
-
region: async () => {
|
|
14
|
-
if (typeof region === "string") {
|
|
15
|
-
return (0, getRealRegion_1.getRealRegion)(region);
|
|
16
|
-
}
|
|
17
|
-
const providedRegion = await region();
|
|
18
|
-
return (0, getRealRegion_1.getRealRegion)(providedRegion);
|
|
19
|
-
},
|
|
20
|
-
useFipsEndpoint: async () => {
|
|
21
|
-
const providedRegion = typeof region === "string" ? region : await region();
|
|
22
|
-
if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
exports.resolveRegionConfig = resolveRegionConfig;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getHostnameFromVariants = void 0;
|
|
4
|
-
const getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => {
|
|
5
|
-
var _a;
|
|
6
|
-
return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname;
|
|
7
|
-
};
|
|
8
|
-
exports.getHostnameFromVariants = getHostnameFromVariants;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRegionInfo = void 0;
|
|
4
|
-
const getHostnameFromVariants_1 = require("./getHostnameFromVariants");
|
|
5
|
-
const getResolvedHostname_1 = require("./getResolvedHostname");
|
|
6
|
-
const getResolvedPartition_1 = require("./getResolvedPartition");
|
|
7
|
-
const getResolvedSigningRegion_1 = require("./getResolvedSigningRegion");
|
|
8
|
-
const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f;
|
|
10
|
-
const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash });
|
|
11
|
-
const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region;
|
|
12
|
-
const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
|
|
13
|
-
const regionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions);
|
|
14
|
-
const partitionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions);
|
|
15
|
-
const hostname = (0, getResolvedHostname_1.getResolvedHostname)(resolvedRegion, { regionHostname, partitionHostname });
|
|
16
|
-
if (hostname === undefined) {
|
|
17
|
-
throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`);
|
|
18
|
-
}
|
|
19
|
-
const signingRegion = (0, getResolvedSigningRegion_1.getResolvedSigningRegion)(hostname, {
|
|
20
|
-
signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion,
|
|
21
|
-
regionRegex: partitionHash[partition].regionRegex,
|
|
22
|
-
useFipsEndpoint,
|
|
23
|
-
});
|
|
24
|
-
return {
|
|
25
|
-
partition,
|
|
26
|
-
signingService,
|
|
27
|
-
hostname,
|
|
28
|
-
...(signingRegion && { signingRegion }),
|
|
29
|
-
...(((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && {
|
|
30
|
-
signingService: regionHash[resolvedRegion].signingService,
|
|
31
|
-
}),
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
exports.getRegionInfo = getRegionInfo;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getResolvedHostname = void 0;
|
|
4
|
-
const getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname
|
|
5
|
-
? regionHostname
|
|
6
|
-
: partitionHostname
|
|
7
|
-
? partitionHostname.replace("{region}", resolvedRegion)
|
|
8
|
-
: undefined;
|
|
9
|
-
exports.getResolvedHostname = getResolvedHostname;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getResolvedPartition = void 0;
|
|
4
|
-
const getResolvedPartition = (region, { partitionHash }) => { var _a; return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; };
|
|
5
|
-
exports.getResolvedPartition = getResolvedPartition;
|
|
1
|
+
module.exports = require("../index.js");
|
package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getResolvedSigningRegion = void 0;
|
|
4
|
-
const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => {
|
|
5
|
-
if (signingRegion) {
|
|
6
|
-
return signingRegion;
|
|
7
|
-
}
|
|
8
|
-
else if (useFipsEndpoint) {
|
|
9
|
-
const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\.");
|
|
10
|
-
const regionRegexmatchArray = hostname.match(regionRegexJs);
|
|
11
|
-
if (regionRegexmatchArray) {
|
|
12
|
-
return regionRegexmatchArray[0].slice(1, -1);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
exports.getResolvedSigningRegion = getResolvedSigningRegion;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./PartitionHash"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./RegionHash"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./getRegionInfo"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/config-resolver",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
|
-
"build:cjs": "
|
|
6
|
+
"build:cjs": "node ../../scripts/inline config-resolver",
|
|
7
7
|
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
|
8
8
|
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
|
9
9
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/node-config-provider": "^2.
|
|
27
|
-
"@smithy/types": "^2.
|
|
28
|
-
"@smithy/util-config-provider": "^2.
|
|
29
|
-
"@smithy/util-middleware": "^2.0
|
|
26
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
27
|
+
"@smithy/types": "^2.9.0",
|
|
28
|
+
"@smithy/util-config-provider": "^2.2.0",
|
|
29
|
+
"@smithy/util-middleware": "^2.1.0",
|
|
30
30
|
"tslib": "^2.5.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSmithyContext = void 0;
|
|
4
|
-
const types_1 = require("@smithy/types");
|
|
5
|
-
const getSmithyContext = (context) => context[types_1.SMITHY_CONTEXT_KEY] || (context[types_1.SMITHY_CONTEXT_KEY] = {});
|
|
6
|
-
exports.getSmithyContext = getSmithyContext;
|
|
1
|
+
module.exports = require("./index.js");
|