@cdklabs/cdk-ecs-codedeploy 0.0.208 → 0.0.210
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/.gitattributes +1 -1
- package/.jsii +3 -3
- 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-deployment-provider/on-event.lambda.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/README.md +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/models_0.d.ts +50 -50
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/models_0.d.ts +50 -50
- package/node_modules/@aws-sdk/client-codedeploy/package.json +36 -34
- package/node_modules/@aws-sdk/client-sso/README.md +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sso/package.json +32 -30
- package/node_modules/@aws-sdk/client-sts/README.md +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +14 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sts/package.json +35 -33
- package/node_modules/@aws-sdk/core/CHANGELOG.md +70 -0
- package/node_modules/@aws-sdk/core/README.md +5 -0
- package/node_modules/@aws-sdk/core/api-extractor.json +4 -0
- package/node_modules/@aws-sdk/core/dist-cjs/client/emitWarningIfUnsupportedVersion.js +17 -0
- package/node_modules/@aws-sdk/core/dist-cjs/client/index.js +4 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +5 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/coercing-serializers.js +59 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/index.js +5 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/awsExpectUnion.js +14 -0
- package/node_modules/@aws-sdk/core/dist-es/client/emitWarningIfUnsupportedVersion.js +13 -0
- package/node_modules/@aws-sdk/core/dist-es/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/coercing-serializers.js +53 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/json/awsExpectUnion.js +10 -0
- package/node_modules/@aws-sdk/core/dist-types/client/emitWarningIfUnsupportedVersion.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/coercing-serializers.d.ts +18 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/json/awsExpectUnion.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/client/emitWarningIfUnsupportedVersion.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/coercing-serializers.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/awsExpectUnion.d.ts +3 -0
- package/node_modules/@aws-sdk/core/jest.config.js +6 -0
- package/node_modules/@aws-sdk/core/package.json +57 -0
- package/node_modules/@aws-sdk/core/scripts/lint.js +24 -0
- package/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.spec.ts +70 -0
- package/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.ts +25 -0
- package/node_modules/@aws-sdk/core/src/client/index.ts +1 -0
- package/node_modules/@aws-sdk/core/src/index.ts +2 -0
- package/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.spec.ts +76 -0
- package/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.ts +72 -0
- package/node_modules/@aws-sdk/core/src/protocols/index.ts +2 -0
- package/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.spec.ts +30 -0
- package/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.ts +17 -0
- package/node_modules/@aws-sdk/core/tsconfig.cjs.json +9 -0
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -0
- package/node_modules/@aws-sdk/core/tsconfig.es.json +9 -0
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -0
- package/node_modules/@aws-sdk/core/tsconfig.types.json +9 -0
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -0
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-signing/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
- package/node_modules/@aws-sdk/region-config-resolver/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +320 -183
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +322 -185
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +231 -93
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +238 -99
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +33 -30
- package/node_modules/@aws-sdk/types/package.json +4 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/aws.js +12 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js +2 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js +2 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js +2 -39
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js +2 -7
- package/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +10 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +1 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +1 -37
- package/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +1 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +1 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +1 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +1 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +1 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +6 -15
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +1 -7
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +5 -19
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +1 -12
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +12 -29
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +1 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -15
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -7
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -19
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -10
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +1 -25
- package/node_modules/@aws-sdk/util-endpoints/package.json +3 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -3
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/crt-availability.js +6 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +3 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js +4 -8
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js +4 -8
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +9 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/crt-availability.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +13 -0
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +45 -3
- package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +9 -0
- package/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js +44 -3
- package/node_modules/@smithy/credential-provider-imds/dist-types/error/InstanceMetadataV1FallbackError.d.ts +12 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts +10 -2
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/error/InstanceMetadataV1FallbackError.d.ts +12 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/RemoteProviderInit.d.ts +10 -2
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +4 -4
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +7 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +7 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
- package/node_modules/@smithy/hash-node/package.json +3 -3
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.browser.js +5 -0
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +7 -0
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js +8 -0
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js +35 -0
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js +13 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.browser.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js +3 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +8 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js +31 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js +12 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.browser.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointUrlConfig.d.ts +2 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +5 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.browser.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointUrlConfig.d.ts +2 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +5 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +14 -5
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +2 -1
- package/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js +2 -1
- package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +2 -2
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +21 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +4 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +4 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +37 -15
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +17 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +4 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +3 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +37 -15
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +8 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +8 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +6 -6
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +8 -0
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/index.js +9 -0
- package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/identity/index.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/profile.js +7 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js +5 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpSigner.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/index.js +6 -0
- package/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js +1 -0
- package/node_modules/@smithy/types/dist-es/identity/index.js +2 -0
- package/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js +1 -0
- package/node_modules/@smithy/types/dist-es/profile.js +6 -1
- package/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts +7 -0
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +49 -0
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +20 -0
- package/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/{auth.d.ts → auth/auth.d.ts} +2 -0
- package/node_modules/@smithy/types/dist-types/auth/index.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/endpoint.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/identity/index.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/middleware.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/profile.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +18 -4
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +7 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +49 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +20 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/{auth.d.ts → auth/auth.d.ts} +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +24 -4
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-base64/package.json +9 -9
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -7
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/LICENSE +201 -0
- package/node_modules/@smithy/util-endpoints/README.md +10 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +25 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +8 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/index.js +0 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +6 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/parseURL.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +42 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +10 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +10 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +15 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +4 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +15 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/index.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/getEndpointUrlConfig.js +21 -0
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +5 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js +2 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/parseURL.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js +37 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js +6 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/EndpointFunctions.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/EndpointRuleObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/ErrorRuleObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/RuleSetObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/TreeRuleObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/index.js +7 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/shared.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +11 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +12 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/index.js +2 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/debug/toDebugString.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/getEndpointUrlConfig.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/index.d.ts +5 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/index.d.ts +0 -1
- package/node_modules/@smithy/util-endpoints/dist-types/lib/isIpAddress.d.ts +4 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/parseURL.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/resolveEndpoint.d.ts +6 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/debug/debugId.d.ts +1 -1
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/debug/index.d.ts +2 -2
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/debug/toDebugString.d.ts +9 -9
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/getEndpointUrlConfig.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/booleanEquals.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttr.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttrPathList.d.ts +4 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/lib/index.d.ts +9 -11
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isValidHostLabel.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/not.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/parseURL.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/stringEquals.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/substring.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/uriEncode.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +6 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointFunctions.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/index.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/shared.d.ts +25 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/customEndpointFunctions.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/endpointFunctions.d.ts +11 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateCondition.d.ts +8 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateConditions.d.ts +8 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateEndpointRule.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateErrorRule.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTemplate.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointHeaders.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointUrl.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getReferenceValue.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/index.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointError.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointFunctions.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/RuleSetObject.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/TreeRuleObject.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/index.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +25 -0
- package/node_modules/@smithy/util-endpoints/dist-types/utils/customEndpointFunctions.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +11 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateEndpointRule.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +3 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -1
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/index.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/package.json +67 -0
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +10 -8
- package/node_modules/@smithy/util-utf8/package.json +7 -12
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +12 -13
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/callFunction.js +0 -11
- package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/callFunction.js +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/index.js +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/booleanEquals.d.ts +0 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/getAttr.d.ts +0 -11
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/getAttrPathList.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isValidHostLabel.d.ts +0 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/not.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/parseURL.d.ts +0 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/stringEquals.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/substring.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/uriEncode.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateCondition.d.ts +0 -13
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateConditions.d.ts +0 -13
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateEndpointRule.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateErrorRule.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateTemplate.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointHeaders.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointUrl.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getReferenceValue.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/index.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/evaluateRules.d.ts +0 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/index.d.ts +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileData.js +0 -10
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileData.js +0 -6
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileData.d.ts +0 -7
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileData.d.ts +0 -7
- /package/node_modules/@smithy/types/dist-cjs/{auth.js → auth/auth.js} +0 -0
- /package/node_modules/@smithy/types/dist-es/{auth.js → auth/auth.js} +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/debug/debugId.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/debug/index.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/debug/toDebugString.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/booleanEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/getAttr.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/getAttrPathList.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/isSet.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/isValidHostLabel.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/not.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/stringEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/substring.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/uriEncode.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateCondition.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateConditions.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateExpression.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateRules.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateTemplate.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointProperties.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointProperty.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointUrl.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getReferenceValue.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/debug/debugId.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/debug/index.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/debug/toDebugString.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/booleanEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/getAttr.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/getAttrPathList.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/isSet.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/isValidHostLabel.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/not.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/stringEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/substring.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/uriEncode.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateCondition.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateConditions.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateEndpointRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateErrorRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateExpression.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateRules.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateTemplate.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateTreeRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointHeaders.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointProperties.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointProperty.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointUrl.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getReferenceValue.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/debug/debugId.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/debug/index.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/booleanEquals.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/getAttr.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/getAttrPathList.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/isSet.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/isValidHostLabel.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/not.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/stringEquals.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/substring.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/uriEncode.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/callFunction.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateCondition.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateConditions.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateErrorRule.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateExpression.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateTemplate.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointUrl.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getReferenceValue.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.451.0",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
25
|
+
"@aws-sdk/types": "3.451.0",
|
|
26
|
+
"@smithy/util-endpoints": "^1.0.4",
|
|
26
27
|
"tslib": "^2.5.0"
|
|
27
28
|
},
|
|
28
29
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-browser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.451.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"main": "./dist-cjs/index.js",
|
|
15
15
|
"module": "./dist-es/index.js",
|
|
16
|
+
"browser": "./dist-es/index.js",
|
|
16
17
|
"types": "./dist-types/index.d.ts",
|
|
17
18
|
"author": {
|
|
18
19
|
"name": "AWS SDK for JavaScript Team",
|
|
@@ -21,8 +22,8 @@
|
|
|
21
22
|
"license": "Apache-2.0",
|
|
22
23
|
"react-native": "dist-es/index.native.js",
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
25
|
-
"@smithy/types": "^2.
|
|
25
|
+
"@aws-sdk/types": "3.451.0",
|
|
26
|
+
"@smithy/types": "^2.5.0",
|
|
26
27
|
"bowser": "^2.11.0",
|
|
27
28
|
"tslib": "^2.5.0"
|
|
28
29
|
},
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = void 0;
|
|
3
|
+
exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = exports.crtAvailability = void 0;
|
|
4
4
|
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
5
5
|
const os_1 = require("os");
|
|
6
6
|
const process_1 = require("process");
|
|
7
7
|
const is_crt_available_1 = require("./is-crt-available");
|
|
8
|
+
var crt_availability_1 = require("./crt-availability");
|
|
9
|
+
Object.defineProperty(exports, "crtAvailability", { enumerable: true, get: function () { return crt_availability_1.crtAvailability; } });
|
|
8
10
|
exports.UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
9
11
|
exports.UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
|
10
12
|
const defaultUserAgent = ({ serviceId, clientVersion }) => {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isCrtAvailable = void 0;
|
|
4
|
+
const crt_availability_1 = require("./crt-availability");
|
|
4
5
|
const isCrtAvailable = () => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return ["md/crt-avail"];
|
|
8
|
-
}
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
catch (e) {
|
|
12
|
-
return null;
|
|
6
|
+
if (crt_availability_1.crtAvailability.isCrtAvailable) {
|
|
7
|
+
return ["md/crt-avail"];
|
|
13
8
|
}
|
|
9
|
+
return null;
|
|
14
10
|
};
|
|
15
11
|
exports.isCrtAvailable = isCrtAvailable;
|
|
@@ -2,6 +2,7 @@ import { loadConfig } from "@smithy/node-config-provider";
|
|
|
2
2
|
import { platform, release } from "os";
|
|
3
3
|
import { env, versions } from "process";
|
|
4
4
|
import { isCrtAvailable } from "./is-crt-available";
|
|
5
|
+
export { crtAvailability } from "./crt-availability";
|
|
5
6
|
export const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
6
7
|
export const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
|
7
8
|
export const defaultUserAgent = ({ serviceId, clientVersion }) => {
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
import { crtAvailability } from "./crt-availability";
|
|
1
2
|
export const isCrtAvailable = () => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return ["md/crt-avail"];
|
|
5
|
-
}
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
8
|
-
catch (e) {
|
|
9
|
-
return null;
|
|
3
|
+
if (crtAvailability.isCrtAvailable) {
|
|
4
|
+
return ["md/crt-avail"];
|
|
10
5
|
}
|
|
6
|
+
return null;
|
|
11
7
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Provider, UserAgent } from "@smithy/types";
|
|
2
|
+
export { crtAvailability } from "./crt-availability";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
@@ -17,4 +18,3 @@ interface DefaultUserAgentOptions {
|
|
|
17
18
|
* Collect metrics from runtime to put into user agent.
|
|
18
19
|
*/
|
|
19
20
|
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => Provider<UserAgent>;
|
|
20
|
-
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Provider, UserAgent } from "@smithy/types";
|
|
2
|
+
export { crtAvailability } from "./crt-availability";
|
|
2
3
|
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
3
4
|
export declare const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
|
4
5
|
interface DefaultUserAgentOptions {
|
|
@@ -9,4 +10,3 @@ export declare const defaultUserAgent: ({
|
|
|
9
10
|
serviceId,
|
|
10
11
|
clientVersion,
|
|
11
12
|
}: DefaultUserAgentOptions) => Provider<UserAgent>;
|
|
12
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.451.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
24
|
-
"@smithy/node-config-provider": "^2.
|
|
25
|
-
"@smithy/types": "^2.
|
|
23
|
+
"@aws-sdk/types": "3.451.0",
|
|
24
|
+
"@smithy/node-config-provider": "^2.1.5",
|
|
25
|
+
"@smithy/types": "^2.5.0",
|
|
26
26
|
"tslib": "^2.5.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/abort-controller",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"description": "A simple abort controller library",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/types": "^2.
|
|
27
|
+
"@smithy/types": "^2.5.0",
|
|
28
28
|
"tslib": "^2.5.0"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/config-resolver",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.18",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
|
|
@@ -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.
|
|
26
|
+
"@smithy/node-config-provider": "^2.1.5",
|
|
27
|
+
"@smithy/types": "^2.5.0",
|
|
28
28
|
"@smithy/util-config-provider": "^2.0.0",
|
|
29
|
-
"@smithy/util-middleware": "^2.0.
|
|
29
|
+
"@smithy/util-middleware": "^2.0.6",
|
|
30
30
|
"tslib": "^2.5.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InstanceMetadataV1FallbackError = void 0;
|
|
4
|
+
const property_provider_1 = require("@smithy/property-provider");
|
|
5
|
+
class InstanceMetadataV1FallbackError extends property_provider_1.CredentialsProviderError {
|
|
6
|
+
constructor(message, tryNextLink = true) {
|
|
7
|
+
super(message, tryNextLink);
|
|
8
|
+
this.tryNextLink = tryNextLink;
|
|
9
|
+
this.name = "InstanceMetadataV1FallbackError";
|
|
10
|
+
Object.setPrototypeOf(this, InstanceMetadataV1FallbackError.prototype);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.InstanceMetadataV1FallbackError = InstanceMetadataV1FallbackError;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fromInstanceMetadata = void 0;
|
|
4
|
+
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
4
5
|
const property_provider_1 = require("@smithy/property-provider");
|
|
6
|
+
const InstanceMetadataV1FallbackError_1 = require("./error/InstanceMetadataV1FallbackError");
|
|
5
7
|
const httpRequest_1 = require("./remoteProvider/httpRequest");
|
|
6
8
|
const ImdsCredentials_1 = require("./remoteProvider/ImdsCredentials");
|
|
7
9
|
const RemoteProviderInit_1 = require("./remoteProvider/RemoteProviderInit");
|
|
@@ -10,13 +12,51 @@ const getInstanceMetadataEndpoint_1 = require("./utils/getInstanceMetadataEndpoi
|
|
|
10
12
|
const staticStabilityProvider_1 = require("./utils/staticStabilityProvider");
|
|
11
13
|
const IMDS_PATH = "/latest/meta-data/iam/security-credentials/";
|
|
12
14
|
const IMDS_TOKEN_PATH = "/latest/api/token";
|
|
15
|
+
const AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
|
|
16
|
+
const PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
|
|
17
|
+
const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
|
|
13
18
|
const fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger });
|
|
14
19
|
exports.fromInstanceMetadata = fromInstanceMetadata;
|
|
15
20
|
const getInstanceImdsProvider = (init) => {
|
|
16
21
|
let disableFetchToken = false;
|
|
22
|
+
const { logger, profile } = init;
|
|
17
23
|
const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init);
|
|
18
24
|
const getCredentials = async (maxRetries, options) => {
|
|
19
|
-
|
|
25
|
+
var _a;
|
|
26
|
+
const isImdsV1Fallback = disableFetchToken || ((_a = options.headers) === null || _a === void 0 ? void 0 : _a[X_AWS_EC2_METADATA_TOKEN]) == null;
|
|
27
|
+
if (isImdsV1Fallback) {
|
|
28
|
+
let fallbackBlockedFromProfile = false;
|
|
29
|
+
let fallbackBlockedFromProcessEnv = false;
|
|
30
|
+
const configValue = await (0, node_config_provider_1.loadConfig)({
|
|
31
|
+
environmentVariableSelector: (env) => {
|
|
32
|
+
const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
|
|
33
|
+
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
34
|
+
if (envValue === undefined) {
|
|
35
|
+
throw new property_provider_1.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`);
|
|
36
|
+
}
|
|
37
|
+
return fallbackBlockedFromProcessEnv;
|
|
38
|
+
},
|
|
39
|
+
configFileSelector: (profile) => {
|
|
40
|
+
const profileValue = profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
|
|
41
|
+
fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
|
|
42
|
+
return fallbackBlockedFromProfile;
|
|
43
|
+
},
|
|
44
|
+
default: false,
|
|
45
|
+
}, {
|
|
46
|
+
profile,
|
|
47
|
+
})();
|
|
48
|
+
if (init.ec2MetadataV1Disabled || configValue) {
|
|
49
|
+
const causes = [];
|
|
50
|
+
if (init.ec2MetadataV1Disabled)
|
|
51
|
+
causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");
|
|
52
|
+
if (fallbackBlockedFromProfile)
|
|
53
|
+
causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);
|
|
54
|
+
if (fallbackBlockedFromProcessEnv)
|
|
55
|
+
causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);
|
|
56
|
+
throw new InstanceMetadataV1FallbackError_1.InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
const imdsProfile = (await (0, retry_1.retry)(async () => {
|
|
20
60
|
let profile;
|
|
21
61
|
try {
|
|
22
62
|
profile = await getProfile(options);
|
|
@@ -32,7 +72,7 @@ const getInstanceImdsProvider = (init) => {
|
|
|
32
72
|
return (0, retry_1.retry)(async () => {
|
|
33
73
|
let creds;
|
|
34
74
|
try {
|
|
35
|
-
creds = await getCredentialsFromProfile(
|
|
75
|
+
creds = await getCredentialsFromProfile(imdsProfile, options);
|
|
36
76
|
}
|
|
37
77
|
catch (err) {
|
|
38
78
|
if (err.statusCode === 401) {
|
|
@@ -46,6 +86,7 @@ const getInstanceImdsProvider = (init) => {
|
|
|
46
86
|
return async () => {
|
|
47
87
|
const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)();
|
|
48
88
|
if (disableFetchToken) {
|
|
89
|
+
logger === null || logger === void 0 ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
|
|
49
90
|
return getCredentials(maxRetries, { ...endpoint, timeout });
|
|
50
91
|
}
|
|
51
92
|
else {
|
|
@@ -62,12 +103,13 @@ const getInstanceImdsProvider = (init) => {
|
|
|
62
103
|
else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) {
|
|
63
104
|
disableFetchToken = true;
|
|
64
105
|
}
|
|
106
|
+
logger === null || logger === void 0 ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
|
|
65
107
|
return getCredentials(maxRetries, { ...endpoint, timeout });
|
|
66
108
|
}
|
|
67
109
|
return getCredentials(maxRetries, {
|
|
68
110
|
...endpoint,
|
|
69
111
|
headers: {
|
|
70
|
-
|
|
112
|
+
[X_AWS_EC2_METADATA_TOKEN]: token,
|
|
71
113
|
},
|
|
72
114
|
timeout,
|
|
73
115
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CredentialsProviderError } from "@smithy/property-provider";
|
|
2
|
+
export class InstanceMetadataV1FallbackError extends CredentialsProviderError {
|
|
3
|
+
constructor(message, tryNextLink = true) {
|
|
4
|
+
super(message, tryNextLink);
|
|
5
|
+
this.tryNextLink = tryNextLink;
|
|
6
|
+
this.name = "InstanceMetadataV1FallbackError";
|
|
7
|
+
Object.setPrototypeOf(this, InstanceMetadataV1FallbackError.prototype);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { loadConfig } from "@smithy/node-config-provider";
|
|
1
2
|
import { CredentialsProviderError } from "@smithy/property-provider";
|
|
3
|
+
import { InstanceMetadataV1FallbackError } from "./error/InstanceMetadataV1FallbackError";
|
|
2
4
|
import { httpRequest } from "./remoteProvider/httpRequest";
|
|
3
5
|
import { fromImdsCredentials, isImdsCredentials } from "./remoteProvider/ImdsCredentials";
|
|
4
6
|
import { providerConfigFromInit } from "./remoteProvider/RemoteProviderInit";
|
|
@@ -7,12 +9,49 @@ import { getInstanceMetadataEndpoint } from "./utils/getInstanceMetadataEndpoint
|
|
|
7
9
|
import { staticStabilityProvider } from "./utils/staticStabilityProvider";
|
|
8
10
|
const IMDS_PATH = "/latest/meta-data/iam/security-credentials/";
|
|
9
11
|
const IMDS_TOKEN_PATH = "/latest/api/token";
|
|
12
|
+
const AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
|
|
13
|
+
const PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
|
|
14
|
+
const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
|
|
10
15
|
export const fromInstanceMetadata = (init = {}) => staticStabilityProvider(getInstanceImdsProvider(init), { logger: init.logger });
|
|
11
16
|
const getInstanceImdsProvider = (init) => {
|
|
12
17
|
let disableFetchToken = false;
|
|
18
|
+
const { logger, profile } = init;
|
|
13
19
|
const { timeout, maxRetries } = providerConfigFromInit(init);
|
|
14
20
|
const getCredentials = async (maxRetries, options) => {
|
|
15
|
-
const
|
|
21
|
+
const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
|
|
22
|
+
if (isImdsV1Fallback) {
|
|
23
|
+
let fallbackBlockedFromProfile = false;
|
|
24
|
+
let fallbackBlockedFromProcessEnv = false;
|
|
25
|
+
const configValue = await loadConfig({
|
|
26
|
+
environmentVariableSelector: (env) => {
|
|
27
|
+
const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
|
|
28
|
+
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
29
|
+
if (envValue === undefined) {
|
|
30
|
+
throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`);
|
|
31
|
+
}
|
|
32
|
+
return fallbackBlockedFromProcessEnv;
|
|
33
|
+
},
|
|
34
|
+
configFileSelector: (profile) => {
|
|
35
|
+
const profileValue = profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
|
|
36
|
+
fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
|
|
37
|
+
return fallbackBlockedFromProfile;
|
|
38
|
+
},
|
|
39
|
+
default: false,
|
|
40
|
+
}, {
|
|
41
|
+
profile,
|
|
42
|
+
})();
|
|
43
|
+
if (init.ec2MetadataV1Disabled || configValue) {
|
|
44
|
+
const causes = [];
|
|
45
|
+
if (init.ec2MetadataV1Disabled)
|
|
46
|
+
causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");
|
|
47
|
+
if (fallbackBlockedFromProfile)
|
|
48
|
+
causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);
|
|
49
|
+
if (fallbackBlockedFromProcessEnv)
|
|
50
|
+
causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);
|
|
51
|
+
throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const imdsProfile = (await retry(async () => {
|
|
16
55
|
let profile;
|
|
17
56
|
try {
|
|
18
57
|
profile = await getProfile(options);
|
|
@@ -28,7 +67,7 @@ const getInstanceImdsProvider = (init) => {
|
|
|
28
67
|
return retry(async () => {
|
|
29
68
|
let creds;
|
|
30
69
|
try {
|
|
31
|
-
creds = await getCredentialsFromProfile(
|
|
70
|
+
creds = await getCredentialsFromProfile(imdsProfile, options);
|
|
32
71
|
}
|
|
33
72
|
catch (err) {
|
|
34
73
|
if (err.statusCode === 401) {
|
|
@@ -42,6 +81,7 @@ const getInstanceImdsProvider = (init) => {
|
|
|
42
81
|
return async () => {
|
|
43
82
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
44
83
|
if (disableFetchToken) {
|
|
84
|
+
logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
|
|
45
85
|
return getCredentials(maxRetries, { ...endpoint, timeout });
|
|
46
86
|
}
|
|
47
87
|
else {
|
|
@@ -58,12 +98,13 @@ const getInstanceImdsProvider = (init) => {
|
|
|
58
98
|
else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) {
|
|
59
99
|
disableFetchToken = true;
|
|
60
100
|
}
|
|
101
|
+
logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
|
|
61
102
|
return getCredentials(maxRetries, { ...endpoint, timeout });
|
|
62
103
|
}
|
|
63
104
|
return getCredentials(maxRetries, {
|
|
64
105
|
...endpoint,
|
|
65
106
|
headers: {
|
|
66
|
-
|
|
107
|
+
[X_AWS_EC2_METADATA_TOKEN]: token,
|
|
67
108
|
},
|
|
68
109
|
timeout,
|
|
69
110
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CredentialsProviderError } from "@smithy/property-provider";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*
|
|
5
|
+
* A specific sub-case of CredentialsProviderError, when the IMDSv1 fallback
|
|
6
|
+
* has been attempted but shut off by SDK configuration.
|
|
7
|
+
*/
|
|
8
|
+
export declare class InstanceMetadataV1FallbackError extends CredentialsProviderError {
|
|
9
|
+
readonly tryNextLink: boolean;
|
|
10
|
+
name: string;
|
|
11
|
+
constructor(message: string, tryNextLink?: boolean);
|
|
12
|
+
}
|
|
@@ -8,7 +8,7 @@ export declare const DEFAULT_TIMEOUT = 1000;
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const DEFAULT_MAX_RETRIES = 0;
|
|
10
10
|
/**
|
|
11
|
-
* @
|
|
11
|
+
* @public
|
|
12
12
|
*/
|
|
13
13
|
export interface RemoteProviderConfig {
|
|
14
14
|
/**
|
|
@@ -21,10 +21,18 @@ export interface RemoteProviderConfig {
|
|
|
21
21
|
maxRetries: number;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* @
|
|
24
|
+
* @public
|
|
25
25
|
*/
|
|
26
26
|
export interface RemoteProviderInit extends Partial<RemoteProviderConfig> {
|
|
27
27
|
logger?: Logger;
|
|
28
|
+
/**
|
|
29
|
+
* Only used in the IMDS credential provider.
|
|
30
|
+
*/
|
|
31
|
+
ec2MetadataV1Disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* AWS_PROFILE.
|
|
34
|
+
*/
|
|
35
|
+
profile?: string;
|
|
28
36
|
}
|
|
29
37
|
/**
|
|
30
38
|
* @internal
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CredentialsProviderError } from "@smithy/property-provider";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*
|
|
5
|
+
* A specific sub-case of CredentialsProviderError, when the IMDSv1 fallback
|
|
6
|
+
* has been attempted but shut off by SDK configuration.
|
|
7
|
+
*/
|
|
8
|
+
export declare class InstanceMetadataV1FallbackError extends CredentialsProviderError {
|
|
9
|
+
readonly tryNextLink: boolean;
|
|
10
|
+
name: string;
|
|
11
|
+
constructor(message: string, tryNextLink?: boolean);
|
|
12
|
+
}
|
|
@@ -8,7 +8,7 @@ export declare const DEFAULT_TIMEOUT = 1000;
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const DEFAULT_MAX_RETRIES = 0;
|
|
10
10
|
/**
|
|
11
|
-
* @
|
|
11
|
+
* @public
|
|
12
12
|
*/
|
|
13
13
|
export interface RemoteProviderConfig {
|
|
14
14
|
/**
|
|
@@ -21,10 +21,18 @@ export interface RemoteProviderConfig {
|
|
|
21
21
|
maxRetries: number;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* @
|
|
24
|
+
* @public
|
|
25
25
|
*/
|
|
26
26
|
export interface RemoteProviderInit extends Partial<RemoteProviderConfig> {
|
|
27
27
|
logger?: Logger;
|
|
28
|
+
/**
|
|
29
|
+
* Only used in the IMDS credential provider.
|
|
30
|
+
*/
|
|
31
|
+
ec2MetadataV1Disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* AWS_PROFILE.
|
|
34
|
+
*/
|
|
35
|
+
profile?: string;
|
|
28
36
|
}
|
|
29
37
|
/**
|
|
30
38
|
* @internal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/node-config-provider": "^2.
|
|
30
|
-
"@smithy/property-provider": "^2.0.
|
|
31
|
-
"@smithy/types": "^2.
|
|
32
|
-
"@smithy/url-parser": "^2.0.
|
|
29
|
+
"@smithy/node-config-provider": "^2.1.5",
|
|
30
|
+
"@smithy/property-provider": "^2.0.14",
|
|
31
|
+
"@smithy/types": "^2.5.0",
|
|
32
|
+
"@smithy/url-parser": "^2.0.13",
|
|
33
33
|
"tslib": "^2.5.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-codec",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@aws-crypto/crc32": "3.0.0",
|
|
26
|
-
"@smithy/types": "^2.
|
|
26
|
+
"@smithy/types": "^2.5.0",
|
|
27
27
|
"@smithy/util-hex-encoding": "^2.0.0",
|
|
28
28
|
"tslib": "^2.5.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@smithy/util-utf8": "^2.0.
|
|
31
|
+
"@smithy/util-utf8": "^2.0.2",
|
|
32
32
|
"@tsconfig/recommended": "1.0.1",
|
|
33
33
|
"@types/node": "^14.14.31",
|
|
34
34
|
"concurrently": "7.0.0",
|
|
@@ -20,12 +20,12 @@ class FetchHttpHandler {
|
|
|
20
20
|
destroy() {
|
|
21
21
|
}
|
|
22
22
|
async handle(request, { abortSignal } = {}) {
|
|
23
|
-
var _a, _b
|
|
23
|
+
var _a, _b;
|
|
24
24
|
if (!this.config) {
|
|
25
25
|
this.config = await this.configProvider;
|
|
26
26
|
}
|
|
27
27
|
const requestTimeoutInMs = this.config.requestTimeout;
|
|
28
|
-
const keepAlive =
|
|
28
|
+
const keepAlive = this.config.keepAlive === true;
|
|
29
29
|
if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) {
|
|
30
30
|
const abortError = new Error("Request aborted");
|
|
31
31
|
abortError.name = "AbortError";
|
|
@@ -41,8 +41,8 @@ class FetchHttpHandler {
|
|
|
41
41
|
}
|
|
42
42
|
let auth = "";
|
|
43
43
|
if (request.username != null || request.password != null) {
|
|
44
|
-
const username = (
|
|
45
|
-
const password = (
|
|
44
|
+
const username = (_a = request.username) !== null && _a !== void 0 ? _a : "";
|
|
45
|
+
const password = (_b = request.password) !== null && _b !== void 0 ? _b : "";
|
|
46
46
|
auth = `${username}:${password}@`;
|
|
47
47
|
}
|
|
48
48
|
const { port, method } = request;
|
|
@@ -21,7 +21,7 @@ export class FetchHttpHandler {
|
|
|
21
21
|
this.config = await this.configProvider;
|
|
22
22
|
}
|
|
23
23
|
const requestTimeoutInMs = this.config.requestTimeout;
|
|
24
|
-
const keepAlive = this.config.keepAlive
|
|
24
|
+
const keepAlive = this.config.keepAlive === true;
|
|
25
25
|
if (abortSignal?.aborted) {
|
|
26
26
|
const abortError = new Error("Request aborted");
|
|
27
27
|
abortError.name = "AbortError";
|
|
@@ -10,7 +10,13 @@ export interface FetchHttpHandlerOptions {
|
|
|
10
10
|
*/
|
|
11
11
|
requestTimeout?: number;
|
|
12
12
|
/**
|
|
13
|
-
* Whether to allow the request to outlive the page. Default value is
|
|
13
|
+
* Whether to allow the request to outlive the page. Default value is false.
|
|
14
|
+
*
|
|
15
|
+
* There may be limitations to the payload size, number of concurrent requests,
|
|
16
|
+
* request duration etc. when using keepalive in browsers.
|
|
17
|
+
*
|
|
18
|
+
* These may change over time, so look for up to date information about
|
|
19
|
+
* these limitations before enabling keepalive.
|
|
14
20
|
*/
|
|
15
21
|
keepAlive?: boolean;
|
|
16
22
|
}
|
|
@@ -10,7 +10,13 @@ export interface FetchHttpHandlerOptions {
|
|
|
10
10
|
*/
|
|
11
11
|
requestTimeout?: number;
|
|
12
12
|
/**
|
|
13
|
-
* Whether to allow the request to outlive the page. Default value is
|
|
13
|
+
* Whether to allow the request to outlive the page. Default value is false.
|
|
14
|
+
*
|
|
15
|
+
* There may be limitations to the payload size, number of concurrent requests,
|
|
16
|
+
* request duration etc. when using keepalive in browsers.
|
|
17
|
+
*
|
|
18
|
+
* These may change over time, so look for up to date information about
|
|
19
|
+
* these limitations before enabling keepalive.
|
|
14
20
|
*/
|
|
15
21
|
keepAlive?: boolean;
|
|
16
22
|
}
|