@cdklabs/cdk-ecs-codedeploy 0.0.316 → 0.0.318
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 +3 -3
- package/.jsii.tabl.json +1 -1
- package/API.md +0 -162
- 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/@aws-sdk/client-codedeploy/package.json +6 -6
- package/node_modules/@aws-sdk/client-sso/package.json +3 -3
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +5 -5
- package/node_modules/@aws-sdk/client-sts/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/package.json +8 -8
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-node/package.json +2 -2
- 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.js +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +16 -2
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +7 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js +10 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.d.ts +4 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +11 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.d.ts +4 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +11 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +7 -7
- package/node_modules/@smithy/middleware-retry/package.json +9 -9
- 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/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +86 -46
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +10 -10
- package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +27 -13
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +18 -5
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +12 -4
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +6 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +6 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +2 -1
- 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/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +21 -4
- package/node_modules/@smithy/smithy-client/dist-es/client.js +22 -4
- package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +22 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +22 -1
- package/node_modules/@smithy/smithy-client/package.json +6 -6
- package/node_modules/@smithy/types/README.md +36 -1
- package/node_modules/@smithy/types/dist-types/command.d.ts +14 -1
- package/node_modules/@smithy/types/dist-types/endpoint.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts +6 -6
- package/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +12 -6
- package/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +8 -3
- package/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +14 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts +6 -6
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +8 -10
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +6 -9
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/dist-cjs/cache/EndpointCache.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +73 -11
- package/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js +49 -0
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js +0 -10
- package/node_modules/@smithy/util-endpoints/dist-types/cache/EndpointCache.d.ts +34 -0
- package/node_modules/@smithy/util-endpoints/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/cache/EndpointCache.d.ts +34 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- 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 +5 -5
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +13 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.645.0",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
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
|
-
"@aws-sdk/client-sso": "3.
|
|
27
|
+
"@aws-sdk/client-sso": "3.645.0",
|
|
28
28
|
"@aws-sdk/token-providers": "3.614.0",
|
|
29
29
|
"@aws-sdk/types": "3.609.0",
|
|
30
30
|
"@smithy/property-provider": "^3.1.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.645.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@aws-sdk/types": "3.609.0",
|
|
26
|
-
"@aws-sdk/util-endpoints": "3.
|
|
26
|
+
"@aws-sdk/util-endpoints": "3.645.0",
|
|
27
27
|
"@smithy/protocol-http": "^4.1.0",
|
|
28
28
|
"@smithy/types": "^3.3.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -118,7 +118,7 @@ var partitions_default = {
|
|
|
118
118
|
supportsDualStack: true,
|
|
119
119
|
supportsFIPS: true
|
|
120
120
|
},
|
|
121
|
-
regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",
|
|
121
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
|
122
122
|
regions: {
|
|
123
123
|
"af-south-1": {
|
|
124
124
|
description: "Africa (Cape Town)"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/abort-controller",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
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": "^3.
|
|
27
|
+
"@smithy/types": "^3.4.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/config-resolver",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline config-resolver",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/node-config-provider": "^3.1.
|
|
27
|
-
"@smithy/types": "^3.
|
|
26
|
+
"@smithy/node-config-provider": "^3.1.5",
|
|
27
|
+
"@smithy/types": "^3.4.0",
|
|
28
28
|
"@smithy/util-config-provider": "^3.0.0",
|
|
29
|
-
"@smithy/util-middleware": "^3.0.
|
|
29
|
+
"@smithy/util-middleware": "^3.0.4",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline core",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
},
|
|
47
47
|
"license": "Apache-2.0",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@smithy/middleware-endpoint": "^3.1.
|
|
50
|
-
"@smithy/middleware-retry": "^3.0.
|
|
51
|
-
"@smithy/middleware-serde": "^3.0.
|
|
52
|
-
"@smithy/protocol-http": "^4.1.
|
|
53
|
-
"@smithy/smithy-client": "^3.
|
|
54
|
-
"@smithy/types": "^3.
|
|
49
|
+
"@smithy/middleware-endpoint": "^3.1.1",
|
|
50
|
+
"@smithy/middleware-retry": "^3.0.16",
|
|
51
|
+
"@smithy/middleware-serde": "^3.0.4",
|
|
52
|
+
"@smithy/protocol-http": "^4.1.1",
|
|
53
|
+
"@smithy/smithy-client": "^3.3.0",
|
|
54
|
+
"@smithy/types": "^3.4.0",
|
|
55
55
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
56
|
-
"@smithy/util-middleware": "^3.0.
|
|
56
|
+
"@smithy/util-middleware": "^3.0.4",
|
|
57
57
|
"@smithy/util-utf8": "^3.0.0",
|
|
58
58
|
"tslib": "^2.6.2"
|
|
59
59
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.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": "^3.1.
|
|
30
|
-
"@smithy/property-provider": "^3.1.
|
|
31
|
-
"@smithy/types": "^3.
|
|
32
|
-
"@smithy/url-parser": "^3.0.
|
|
29
|
+
"@smithy/node-config-provider": "^3.1.5",
|
|
30
|
+
"@smithy/property-provider": "^3.1.4",
|
|
31
|
+
"@smithy/types": "^3.4.0",
|
|
32
|
+
"@smithy/url-parser": "^3.0.4",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.5",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"module": "./dist-es/index.js",
|
|
25
25
|
"types": "./dist-types/index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/protocol-http": "^4.1.
|
|
28
|
-
"@smithy/querystring-builder": "^3.0.
|
|
29
|
-
"@smithy/types": "^3.
|
|
27
|
+
"@smithy/protocol-http": "^4.1.1",
|
|
28
|
+
"@smithy/querystring-builder": "^3.0.4",
|
|
29
|
+
"@smithy/types": "^3.4.0",
|
|
30
30
|
"@smithy/util-base64": "^3.0.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@smithy/abort-controller": "^3.1.
|
|
34
|
+
"@smithy/abort-controller": "^3.1.2",
|
|
35
35
|
"concurrently": "7.0.0",
|
|
36
36
|
"downlevel-dts": "0.10.1",
|
|
37
37
|
"rimraf": "3.0.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-node",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline hash-node",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"typedoc": "0.23.23"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@smithy/types": "^3.
|
|
33
|
+
"@smithy/types": "^3.4.0",
|
|
34
34
|
"@smithy/util-buffer-from": "^3.0.0",
|
|
35
35
|
"@smithy/util-utf8": "^3.0.0",
|
|
36
36
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/invalid-dependency",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline invalid-dependency",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/types": "^3.
|
|
25
|
+
"@smithy/types": "^3.4.0",
|
|
26
26
|
"tslib": "^2.6.2"
|
|
27
27
|
},
|
|
28
28
|
"typesVersions": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-content-length",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-content-length",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/protocol-http": "^4.1.
|
|
27
|
-
"@smithy/types": "^3.
|
|
26
|
+
"@smithy/protocol-http": "^4.1.1",
|
|
27
|
+
"@smithy/types": "^3.4.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"directory": "packages/middleware-content-length"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@smithy/util-test": "^0.2.
|
|
50
|
+
"@smithy/util-test": "^0.2.7",
|
|
51
51
|
"concurrently": "7.0.0",
|
|
52
52
|
"downlevel-dts": "0.10.1",
|
|
53
53
|
"rimraf": "3.0.2",
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getEndpointFromConfig = void 0;
|
|
4
4
|
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
5
5
|
const getEndpointUrlConfig_1 = require("./getEndpointUrlConfig");
|
|
6
|
-
const getEndpointFromConfig = async (serviceId) => (0, node_config_provider_1.loadConfig)((0, getEndpointUrlConfig_1.getEndpointUrlConfig)(serviceId))();
|
|
6
|
+
const getEndpointFromConfig = async (serviceId) => (0, node_config_provider_1.loadConfig)((0, getEndpointUrlConfig_1.getEndpointUrlConfig)(serviceId !== null && serviceId !== void 0 ? serviceId : ""))();
|
|
7
7
|
exports.getEndpointFromConfig = getEndpointFromConfig;
|
|
@@ -122,7 +122,12 @@ var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => {
|
|
|
122
122
|
// src/adaptors/getEndpointFromInstructions.ts
|
|
123
123
|
var getEndpointFromInstructions = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig, context) => {
|
|
124
124
|
if (!clientConfig.endpoint) {
|
|
125
|
-
|
|
125
|
+
let endpointFromConfig;
|
|
126
|
+
if (clientConfig.serviceConfiguredEndpoint) {
|
|
127
|
+
endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
|
|
128
|
+
} else {
|
|
129
|
+
endpointFromConfig = await (0, import_getEndpointFromConfig.getEndpointFromConfig)(clientConfig.serviceId);
|
|
130
|
+
}
|
|
126
131
|
if (endpointFromConfig) {
|
|
127
132
|
clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
|
|
128
133
|
}
|
|
@@ -233,12 +238,13 @@ var getEndpointPlugin = /* @__PURE__ */ __name((config, instructions) => ({
|
|
|
233
238
|
|
|
234
239
|
// src/resolveEndpointConfig.ts
|
|
235
240
|
|
|
241
|
+
var import_getEndpointFromConfig2 = require("./adaptors/getEndpointFromConfig");
|
|
236
242
|
var resolveEndpointConfig = /* @__PURE__ */ __name((input) => {
|
|
237
243
|
const tls = input.tls ?? true;
|
|
238
244
|
const { endpoint } = input;
|
|
239
245
|
const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await (0, import_util_middleware.normalizeProvider)(endpoint)()) : void 0;
|
|
240
246
|
const isCustomEndpoint = !!endpoint;
|
|
241
|
-
|
|
247
|
+
const resolvedConfig = {
|
|
242
248
|
...input,
|
|
243
249
|
endpoint: customEndpointProvider,
|
|
244
250
|
tls,
|
|
@@ -246,6 +252,14 @@ var resolveEndpointConfig = /* @__PURE__ */ __name((input) => {
|
|
|
246
252
|
useDualstackEndpoint: (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false),
|
|
247
253
|
useFipsEndpoint: (0, import_util_middleware.normalizeProvider)(input.useFipsEndpoint ?? false)
|
|
248
254
|
};
|
|
255
|
+
let configuredEndpointPromise = void 0;
|
|
256
|
+
resolvedConfig.serviceConfiguredEndpoint = async () => {
|
|
257
|
+
if (input.serviceId && !configuredEndpointPromise) {
|
|
258
|
+
configuredEndpointPromise = (0, import_getEndpointFromConfig2.getEndpointFromConfig)(input.serviceId);
|
|
259
|
+
}
|
|
260
|
+
return configuredEndpointPromise;
|
|
261
|
+
};
|
|
262
|
+
return resolvedConfig;
|
|
249
263
|
}, "resolveEndpointConfig");
|
|
250
264
|
// Annotate the CommonJS export names for ESM import in node:
|
|
251
265
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { loadConfig } from "@smithy/node-config-provider";
|
|
2
2
|
import { getEndpointUrlConfig } from "./getEndpointUrlConfig";
|
|
3
|
-
export const getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId))();
|
|
3
|
+
export const getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
|
package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
CHANGED
|
@@ -4,7 +4,13 @@ import { getEndpointFromConfig } from "./getEndpointFromConfig";
|
|
|
4
4
|
import { toEndpointV1 } from "./toEndpointV1";
|
|
5
5
|
export const getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => {
|
|
6
6
|
if (!clientConfig.endpoint) {
|
|
7
|
-
|
|
7
|
+
let endpointFromConfig;
|
|
8
|
+
if (clientConfig.serviceConfiguredEndpoint) {
|
|
9
|
+
endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
endpointFromConfig = await getEndpointFromConfig(clientConfig.serviceId);
|
|
13
|
+
}
|
|
8
14
|
if (endpointFromConfig) {
|
|
9
15
|
clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
|
|
10
16
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { normalizeProvider } from "@smithy/util-middleware";
|
|
2
|
+
import { getEndpointFromConfig } from "./adaptors/getEndpointFromConfig";
|
|
2
3
|
import { toEndpointV1 } from "./adaptors/toEndpointV1";
|
|
3
4
|
export const resolveEndpointConfig = (input) => {
|
|
4
5
|
const tls = input.tls ?? true;
|
|
5
6
|
const { endpoint } = input;
|
|
6
7
|
const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await normalizeProvider(endpoint)()) : undefined;
|
|
7
8
|
const isCustomEndpoint = !!endpoint;
|
|
8
|
-
|
|
9
|
+
const resolvedConfig = {
|
|
9
10
|
...input,
|
|
10
11
|
endpoint: customEndpointProvider,
|
|
11
12
|
tls,
|
|
@@ -13,4 +14,12 @@ export const resolveEndpointConfig = (input) => {
|
|
|
13
14
|
useDualstackEndpoint: normalizeProvider(input.useDualstackEndpoint ?? false),
|
|
14
15
|
useFipsEndpoint: normalizeProvider(input.useFipsEndpoint ?? false),
|
|
15
16
|
};
|
|
17
|
+
let configuredEndpointPromise = undefined;
|
|
18
|
+
resolvedConfig.serviceConfiguredEndpoint = async () => {
|
|
19
|
+
if (input.serviceId && !configuredEndpointPromise) {
|
|
20
|
+
configuredEndpointPromise = getEndpointFromConfig(input.serviceId);
|
|
21
|
+
}
|
|
22
|
+
return configuredEndpointPromise;
|
|
23
|
+
};
|
|
24
|
+
return resolvedConfig;
|
|
16
25
|
};
|
|
@@ -36,6 +36,11 @@ export interface EndpointInputConfig<T extends EndpointParameters = EndpointPara
|
|
|
36
36
|
* Enables FIPS compatible endpoints.
|
|
37
37
|
*/
|
|
38
38
|
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* This field is used internally so you should not fill any value to this field.
|
|
42
|
+
*/
|
|
43
|
+
serviceConfiguredEndpoint?: never;
|
|
39
44
|
}
|
|
40
45
|
interface PreviouslyResolved<T extends EndpointParameters = EndpointParameters> {
|
|
41
46
|
urlParser: UrlParser;
|
|
@@ -44,6 +49,7 @@ interface PreviouslyResolved<T extends EndpointParameters = EndpointParameters>
|
|
|
44
49
|
logger?: Logger;
|
|
45
50
|
}) => EndpointV2;
|
|
46
51
|
logger?: Logger;
|
|
52
|
+
serviceId?: string;
|
|
47
53
|
}
|
|
48
54
|
/**
|
|
49
55
|
* @internal
|
|
@@ -85,6 +91,11 @@ export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointP
|
|
|
85
91
|
* @internal
|
|
86
92
|
*/
|
|
87
93
|
serviceId?: string;
|
|
94
|
+
/**
|
|
95
|
+
* A configured endpoint global or specific to the service from ENV or AWS SDK configuration files.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
serviceConfiguredEndpoint?: Provider<string | undefined>;
|
|
88
99
|
}
|
|
89
100
|
/**
|
|
90
101
|
* @internal
|
package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts
CHANGED
|
@@ -36,6 +36,11 @@ export interface EndpointInputConfig<T extends EndpointParameters = EndpointPara
|
|
|
36
36
|
* Enables FIPS compatible endpoints.
|
|
37
37
|
*/
|
|
38
38
|
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* This field is used internally so you should not fill any value to this field.
|
|
42
|
+
*/
|
|
43
|
+
serviceConfiguredEndpoint?: never;
|
|
39
44
|
}
|
|
40
45
|
interface PreviouslyResolved<T extends EndpointParameters = EndpointParameters> {
|
|
41
46
|
urlParser: UrlParser;
|
|
@@ -44,6 +49,7 @@ interface PreviouslyResolved<T extends EndpointParameters = EndpointParameters>
|
|
|
44
49
|
logger?: Logger;
|
|
45
50
|
}) => EndpointV2;
|
|
46
51
|
logger?: Logger;
|
|
52
|
+
serviceId?: string;
|
|
47
53
|
}
|
|
48
54
|
/**
|
|
49
55
|
* @internal
|
|
@@ -85,6 +91,11 @@ export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointP
|
|
|
85
91
|
* @internal
|
|
86
92
|
*/
|
|
87
93
|
serviceId?: string;
|
|
94
|
+
/**
|
|
95
|
+
* A configured endpoint global or specific to the service from ENV or AWS SDK configuration files.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
serviceConfiguredEndpoint?: Provider<string | undefined>;
|
|
88
99
|
}
|
|
89
100
|
/**
|
|
90
101
|
* @internal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-endpoint",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/middleware-serde": "^3.0.
|
|
27
|
-
"@smithy/node-config-provider": "^3.1.
|
|
28
|
-
"@smithy/shared-ini-file-loader": "^3.1.
|
|
29
|
-
"@smithy/types": "^3.
|
|
30
|
-
"@smithy/url-parser": "^3.0.
|
|
31
|
-
"@smithy/util-middleware": "^3.0.
|
|
26
|
+
"@smithy/middleware-serde": "^3.0.4",
|
|
27
|
+
"@smithy/node-config-provider": "^3.1.5",
|
|
28
|
+
"@smithy/shared-ini-file-loader": "^3.1.5",
|
|
29
|
+
"@smithy/types": "^3.4.0",
|
|
30
|
+
"@smithy/url-parser": "^3.0.4",
|
|
31
|
+
"@smithy/util-middleware": "^3.0.4",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.16",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-retry",
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@smithy/node-config-provider": "^3.1.
|
|
35
|
-
"@smithy/protocol-http": "^4.1.
|
|
36
|
-
"@smithy/service-error-classification": "^3.0.
|
|
37
|
-
"@smithy/smithy-client": "^3.
|
|
38
|
-
"@smithy/types": "^3.
|
|
39
|
-
"@smithy/util-middleware": "^3.0.
|
|
40
|
-
"@smithy/util-retry": "^3.0.
|
|
34
|
+
"@smithy/node-config-provider": "^3.1.5",
|
|
35
|
+
"@smithy/protocol-http": "^4.1.1",
|
|
36
|
+
"@smithy/service-error-classification": "^3.0.4",
|
|
37
|
+
"@smithy/smithy-client": "^3.3.0",
|
|
38
|
+
"@smithy/types": "^3.4.0",
|
|
39
|
+
"@smithy/util-middleware": "^3.0.4",
|
|
40
|
+
"@smithy/util-retry": "^3.0.4",
|
|
41
41
|
"tslib": "^2.6.2",
|
|
42
42
|
"uuid": "^9.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@smithy/util-test": "^0.2.
|
|
45
|
+
"@smithy/util-test": "^0.2.7",
|
|
46
46
|
"@types/uuid": "^8.3.0",
|
|
47
47
|
"concurrently": "7.0.0",
|
|
48
48
|
"downlevel-dts": "0.10.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-serde",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-serde",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^3.
|
|
26
|
+
"@smithy/types": "^3.4.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"directory": "packages/middleware-serde"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@smithy/util-test": "^0.2.
|
|
49
|
+
"@smithy/util-test": "^0.2.7",
|
|
50
50
|
"concurrently": "7.0.0",
|
|
51
51
|
"downlevel-dts": "0.10.1",
|
|
52
52
|
"rimraf": "3.0.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-stack",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Provides a means for composing multiple middleware functions into a single handler",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"module": "./dist-es/index.js",
|
|
26
26
|
"types": "./dist-types/index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/types": "^3.
|
|
28
|
+
"@smithy/types": "^3.4.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-config-provider",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"description": "Load config default values from ini config files and environmental variable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"module": "./dist-es/index.js",
|
|
25
25
|
"types": "./dist-types/index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/property-provider": "^3.1.
|
|
28
|
-
"@smithy/shared-ini-file-loader": "^3.1.
|
|
29
|
-
"@smithy/types": "^3.
|
|
27
|
+
"@smithy/property-provider": "^3.1.4",
|
|
28
|
+
"@smithy/shared-ini-file-loader": "^3.1.5",
|
|
29
|
+
"@smithy/types": "^3.4.0",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|