@cdklabs/cdk-ecs-codedeploy 0.0.415 → 0.0.416
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/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/dist-types/endpoint/EndpointParameters.d.ts +7 -7
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/node_modules/@aws-sdk/client-codedeploy/package.json +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts +7 -7
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/node_modules/@aws-sdk/client-sso/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/EndpointParameters.d.ts +9 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +9 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +8 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +4 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +8 -3
- package/node_modules/@aws-sdk/nested-clients/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +16 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointRequiredConfig.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/index.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointRequiredConfig.js +9 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointRequiredConfig.d.ts +32 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointRequiredConfig.d.ts +32 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +1 -1
- package/node_modules/@smithy/middleware-retry/package.json +4 -4
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/service-error-classification/dist-es/constants.js +1 -0
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +2 -1
- package/node_modules/@smithy/service-error-classification/dist-types/constants.d.ts +4 -0
- package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/constants.d.ts +4 -0
- package/node_modules/@smithy/service-error-classification/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +2 -2
- package/package.json +4 -4
@@ -53,5 +53,5 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
53
53
|
systemClockOffset?: number;
|
54
54
|
signingRegion?: string;
|
55
55
|
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
56
|
-
useGlobalEndpoint?: boolean | import("@smithy/types").Provider<boolean>;
|
56
|
+
useGlobalEndpoint?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
|
57
57
|
};
|
package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts
CHANGED
@@ -17,8 +17,8 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
17
17
|
utf8Encoder: (input: Uint8Array | string) => string;
|
18
18
|
disableHostPrefix: boolean;
|
19
19
|
serviceId: string;
|
20
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
21
|
-
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean
|
20
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
21
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
22
22
|
region: string | import("@smithy/types").Provider<any>;
|
23
23
|
profile?: string;
|
24
24
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
@@ -54,5 +54,5 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
54
54
|
systemClockOffset?: number;
|
55
55
|
signingRegion?: string;
|
56
56
|
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
57
|
-
useGlobalEndpoint?: boolean | import("@smithy/types").Provider<boolean>;
|
57
|
+
useGlobalEndpoint?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
|
58
58
|
};
|
@@ -5,9 +5,9 @@ import {
|
|
5
5
|
Provider,
|
6
6
|
} from "@smithy/types";
|
7
7
|
export interface ClientInputEndpointParameters {
|
8
|
-
region?: string | Provider<string>;
|
9
|
-
useDualstackEndpoint?: boolean | Provider<boolean>;
|
10
|
-
useFipsEndpoint?: boolean | Provider<boolean>;
|
8
|
+
region?: string | undefined | Provider<string | undefined>;
|
9
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
10
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
11
11
|
endpoint?:
|
12
12
|
| string
|
13
13
|
| Provider<string>
|
@@ -41,8 +41,8 @@ export declare const commonParams: {
|
|
41
41
|
};
|
42
42
|
};
|
43
43
|
export interface EndpointParameters extends __EndpointParameters {
|
44
|
-
Region?: string;
|
45
|
-
UseDualStack?: boolean;
|
46
|
-
UseFIPS?: boolean;
|
47
|
-
Endpoint?: string;
|
44
|
+
Region?: string | undefined;
|
45
|
+
UseDualStack?: boolean | undefined;
|
46
|
+
UseFIPS?: boolean | undefined;
|
47
|
+
Endpoint?: string | undefined;
|
48
48
|
}
|
@@ -17,8 +17,10 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
17
17
|
retryMode: string | import("@smithy/types").Provider<string>;
|
18
18
|
sha256: import("@smithy/types").HashConstructor;
|
19
19
|
streamCollector: import("@smithy/types").StreamCollector;
|
20
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
21
|
-
|
20
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
21
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
22
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
23
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
22
24
|
apiVersion: string;
|
23
25
|
cacheMiddleware?: boolean | undefined;
|
24
26
|
urlParser: import("@smithy/types").UrlParser;
|
@@ -19,8 +19,10 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
19
19
|
utf8Encoder: (input: Uint8Array | string) => string;
|
20
20
|
disableHostPrefix: boolean;
|
21
21
|
serviceId: string;
|
22
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
23
|
-
|
22
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
23
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
24
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
25
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
24
26
|
region: string | import("@smithy/types").Provider<any>;
|
25
27
|
profile?: string;
|
26
28
|
defaultUserAgentProvider: (
|
@@ -5,9 +5,9 @@ import {
|
|
5
5
|
Provider,
|
6
6
|
} from "@smithy/types";
|
7
7
|
export interface ClientInputEndpointParameters {
|
8
|
-
region?: string | Provider<string>;
|
9
|
-
useDualstackEndpoint?: boolean | Provider<boolean>;
|
10
|
-
useFipsEndpoint?: boolean | Provider<boolean>;
|
8
|
+
region?: string | undefined | Provider<string | undefined>;
|
9
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
10
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
11
11
|
endpoint?:
|
12
12
|
| string
|
13
13
|
| Provider<string>
|
@@ -15,7 +15,7 @@ export interface ClientInputEndpointParameters {
|
|
15
15
|
| Provider<Endpoint>
|
16
16
|
| EndpointV2
|
17
17
|
| Provider<EndpointV2>;
|
18
|
-
useGlobalEndpoint?: boolean | Provider<boolean>;
|
18
|
+
useGlobalEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
19
19
|
}
|
20
20
|
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
21
21
|
defaultSigningName: string;
|
@@ -46,9 +46,9 @@ export declare const commonParams: {
|
|
46
46
|
};
|
47
47
|
};
|
48
48
|
export interface EndpointParameters extends __EndpointParameters {
|
49
|
-
Region?: string;
|
50
|
-
UseDualStack?: boolean;
|
51
|
-
UseFIPS?: boolean;
|
52
|
-
Endpoint?: string;
|
53
|
-
UseGlobalEndpoint?: boolean;
|
49
|
+
Region?: string | undefined;
|
50
|
+
UseDualStack?: boolean | undefined;
|
51
|
+
UseFIPS?: boolean | undefined;
|
52
|
+
Endpoint?: string | undefined;
|
53
|
+
UseGlobalEndpoint?: boolean | undefined;
|
54
54
|
}
|
@@ -22,8 +22,10 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
22
22
|
retryMode: string | import("@smithy/types").Provider<string>;
|
23
23
|
sha256: import("@smithy/types").HashConstructor;
|
24
24
|
streamCollector: import("@smithy/types").StreamCollector;
|
25
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
26
|
-
|
25
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
26
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
27
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
28
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
27
29
|
apiVersion: string;
|
28
30
|
cacheMiddleware?: boolean | undefined;
|
29
31
|
urlParser: import("@smithy/types").UrlParser;
|
@@ -112,5 +114,8 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
112
114
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
113
115
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
114
116
|
) => import("@smithy/types").RequestSigner;
|
115
|
-
useGlobalEndpoint?:
|
117
|
+
useGlobalEndpoint?:
|
118
|
+
| boolean
|
119
|
+
| undefined
|
120
|
+
| import("@smithy/types").Provider<boolean | undefined>;
|
116
121
|
};
|
package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts
CHANGED
@@ -96,5 +96,8 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
96
96
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
97
97
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
98
98
|
) => import("@smithy/types").RequestSigner;
|
99
|
-
useGlobalEndpoint?:
|
99
|
+
useGlobalEndpoint?:
|
100
|
+
| boolean
|
101
|
+
| undefined
|
102
|
+
| import("@smithy/types").Provider<boolean | undefined>;
|
100
103
|
};
|
@@ -19,8 +19,10 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
19
19
|
utf8Encoder: (input: Uint8Array | string) => string;
|
20
20
|
disableHostPrefix: boolean;
|
21
21
|
serviceId: string;
|
22
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
23
|
-
|
22
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
23
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
24
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
25
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
24
26
|
region: string | import("@smithy/types").Provider<any>;
|
25
27
|
profile?: string;
|
26
28
|
defaultUserAgentProvider: (
|
@@ -116,5 +118,8 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
116
118
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
117
119
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
118
120
|
) => import("@smithy/types").RequestSigner;
|
119
|
-
useGlobalEndpoint?:
|
121
|
+
useGlobalEndpoint?:
|
122
|
+
| boolean
|
123
|
+
| undefined
|
124
|
+
| import("@smithy/types").Provider<boolean | undefined>;
|
120
125
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/token-providers",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.830.0",
|
4
4
|
"description": "A collection of token providers",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"license": "Apache-2.0",
|
29
29
|
"dependencies": {
|
30
30
|
"@aws-sdk/core": "3.826.0",
|
31
|
-
"@aws-sdk/nested-clients": "3.
|
31
|
+
"@aws-sdk/nested-clients": "3.830.0",
|
32
32
|
"@aws-sdk/types": "3.821.0",
|
33
33
|
"@smithy/property-provider": "^4.0.4",
|
34
34
|
"@smithy/shared-ini-file-loader": "^4.0.4",
|
@@ -25,6 +25,7 @@ __export(src_exports, {
|
|
25
25
|
getEndpointFromInstructions: () => getEndpointFromInstructions,
|
26
26
|
getEndpointPlugin: () => getEndpointPlugin,
|
27
27
|
resolveEndpointConfig: () => resolveEndpointConfig,
|
28
|
+
resolveEndpointRequiredConfig: () => resolveEndpointRequiredConfig,
|
28
29
|
resolveParams: () => resolveParams,
|
29
30
|
toEndpointV1: () => toEndpointV1
|
30
31
|
});
|
@@ -265,6 +266,19 @@ var resolveEndpointConfig = /* @__PURE__ */ __name((input) => {
|
|
265
266
|
};
|
266
267
|
return resolvedConfig;
|
267
268
|
}, "resolveEndpointConfig");
|
269
|
+
|
270
|
+
// src/resolveEndpointRequiredConfig.ts
|
271
|
+
var resolveEndpointRequiredConfig = /* @__PURE__ */ __name((input) => {
|
272
|
+
const { endpoint } = input;
|
273
|
+
if (endpoint === void 0) {
|
274
|
+
input.endpoint = async () => {
|
275
|
+
throw new Error(
|
276
|
+
"@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint."
|
277
|
+
);
|
278
|
+
};
|
279
|
+
}
|
280
|
+
return input;
|
281
|
+
}, "resolveEndpointRequiredConfig");
|
268
282
|
// Annotate the CommonJS export names for ESM import in node:
|
269
283
|
|
270
284
|
0 && (module.exports = {
|
@@ -274,6 +288,7 @@ var resolveEndpointConfig = /* @__PURE__ */ __name((input) => {
|
|
274
288
|
endpointMiddleware,
|
275
289
|
endpointMiddlewareOptions,
|
276
290
|
getEndpointPlugin,
|
277
|
-
resolveEndpointConfig
|
291
|
+
resolveEndpointConfig,
|
292
|
+
resolveEndpointRequiredConfig
|
278
293
|
});
|
279
294
|
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require("./index.js");
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export const resolveEndpointRequiredConfig = (input) => {
|
2
|
+
const { endpoint } = input;
|
3
|
+
if (endpoint === undefined) {
|
4
|
+
input.endpoint = async () => {
|
5
|
+
throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.");
|
6
|
+
};
|
7
|
+
}
|
8
|
+
return input;
|
9
|
+
};
|
package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointRequiredConfig.d.ts
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
import { Endpoint, EndpointV2, Provider } from "@smithy/types";
|
2
|
+
/**
|
3
|
+
* This is an additional config resolver layer for clients using the default
|
4
|
+
* endpoints ruleset. It modifies the input and output config types to make
|
5
|
+
* the endpoint configuration property required.
|
6
|
+
*
|
7
|
+
* It must be placed after the `resolveEndpointConfig`
|
8
|
+
* resolver. This replaces the "CustomEndpoints" config resolver, which was used
|
9
|
+
* prior to default endpoint rulesets.
|
10
|
+
*
|
11
|
+
* @public
|
12
|
+
*/
|
13
|
+
export interface EndpointRequiredInputConfig {
|
14
|
+
endpoint: string | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @internal
|
18
|
+
*/
|
19
|
+
interface PreviouslyResolved {
|
20
|
+
endpoint?: Provider<Endpoint>;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* @internal
|
24
|
+
*/
|
25
|
+
export interface EndpointRequiredResolvedConfig {
|
26
|
+
endpoint: Provider<Endpoint>;
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* @internal
|
30
|
+
*/
|
31
|
+
export declare const resolveEndpointRequiredConfig: <T>(input: T & EndpointRequiredInputConfig & PreviouslyResolved) => T & EndpointRequiredResolvedConfig;
|
32
|
+
export {};
|
package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointRequiredConfig.d.ts
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
import { Endpoint, EndpointV2, Provider } from "@smithy/types";
|
2
|
+
/**
|
3
|
+
* This is an additional config resolver layer for clients using the default
|
4
|
+
* endpoints ruleset. It modifies the input and output config types to make
|
5
|
+
* the endpoint configuration property required.
|
6
|
+
*
|
7
|
+
* It must be placed after the `resolveEndpointConfig`
|
8
|
+
* resolver. This replaces the "CustomEndpoints" config resolver, which was used
|
9
|
+
* prior to default endpoint rulesets.
|
10
|
+
*
|
11
|
+
* @public
|
12
|
+
*/
|
13
|
+
export interface EndpointRequiredInputConfig {
|
14
|
+
endpoint: string | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @internal
|
18
|
+
*/
|
19
|
+
interface PreviouslyResolved {
|
20
|
+
endpoint?: Provider<Endpoint>;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* @internal
|
24
|
+
*/
|
25
|
+
export interface EndpointRequiredResolvedConfig {
|
26
|
+
endpoint: Provider<Endpoint>;
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* @internal
|
30
|
+
*/
|
31
|
+
export declare const resolveEndpointRequiredConfig: <T>(input: T & EndpointRequiredInputConfig & PreviouslyResolved) => T & EndpointRequiredResolvedConfig;
|
32
|
+
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
3
|
-
"version": "4.1.
|
3
|
+
"version": "4.1.12",
|
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",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/middleware-retry",
|
3
|
-
"version": "4.1.
|
3
|
+
"version": "4.1.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": "node ../../scripts/inline middleware-retry",
|
@@ -35,11 +35,11 @@
|
|
35
35
|
"dependencies": {
|
36
36
|
"@smithy/node-config-provider": "^4.1.3",
|
37
37
|
"@smithy/protocol-http": "^5.1.2",
|
38
|
-
"@smithy/service-error-classification": "^4.0.
|
39
|
-
"@smithy/smithy-client": "^4.4.
|
38
|
+
"@smithy/service-error-classification": "^4.0.6",
|
39
|
+
"@smithy/smithy-client": "^4.4.4",
|
40
40
|
"@smithy/types": "^4.3.1",
|
41
41
|
"@smithy/util-middleware": "^4.0.4",
|
42
|
-
"@smithy/util-retry": "^4.0.
|
42
|
+
"@smithy/util-retry": "^4.0.6",
|
43
43
|
"tslib": "^2.6.2",
|
44
44
|
"uuid": "^9.0.1"
|
45
45
|
},
|
@@ -59,6 +59,7 @@ var THROTTLING_ERROR_CODES = [
|
|
59
59
|
var TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
|
60
60
|
var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
|
61
61
|
var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
|
62
|
+
var NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
|
62
63
|
|
63
64
|
// src/index.ts
|
64
65
|
var isRetryableByTrait = /* @__PURE__ */ __name((error) => error.$retryable !== void 0, "isRetryableByTrait");
|
@@ -84,7 +85,7 @@ var isBrowserNetworkError = /* @__PURE__ */ __name((error) => {
|
|
84
85
|
return errorMessages.has(error.message);
|
85
86
|
}, "isBrowserNetworkError");
|
86
87
|
var isThrottlingError = /* @__PURE__ */ __name((error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true, "isThrottlingError");
|
87
|
-
var isTransientError = /* @__PURE__ */ __name((error, depth = 0) => isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1), "isTransientError");
|
88
|
+
var isTransientError = /* @__PURE__ */ __name((error, depth = 0) => isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1), "isTransientError");
|
88
89
|
var isServerError = /* @__PURE__ */ __name((error) => {
|
89
90
|
if (error.$metadata?.httpStatusCode !== void 0) {
|
90
91
|
const statusCode = error.$metadata.httpStatusCode;
|
@@ -25,3 +25,4 @@ export const THROTTLING_ERROR_CODES = [
|
|
25
25
|
export const TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
|
26
26
|
export const TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
|
27
27
|
export const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
|
28
|
+
export const NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CLOCK_SKEW_ERROR_CODES, NODEJS_TIMEOUT_ERROR_CODES, THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES, } from "./constants";
|
1
|
+
import { CLOCK_SKEW_ERROR_CODES, NODEJS_NETWORK_ERROR_CODES, NODEJS_TIMEOUT_ERROR_CODES, THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES, } from "./constants";
|
2
2
|
export const isRetryableByTrait = (error) => error.$retryable !== undefined;
|
3
3
|
export const isClockSkewError = (error) => CLOCK_SKEW_ERROR_CODES.includes(error.name);
|
4
4
|
export const isClockSkewCorrectedError = (error) => error.$metadata?.clockSkewCorrected;
|
@@ -22,6 +22,7 @@ export const isThrottlingError = (error) => error.$metadata?.httpStatusCode ===
|
|
22
22
|
export const isTransientError = (error, depth = 0) => isClockSkewCorrectedError(error) ||
|
23
23
|
TRANSIENT_ERROR_CODES.includes(error.name) ||
|
24
24
|
NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
|
25
|
+
NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
|
25
26
|
TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
|
26
27
|
isBrowserNetworkError(error) ||
|
27
28
|
(error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1));
|
@@ -24,3 +24,7 @@ export declare const TRANSIENT_ERROR_STATUS_CODES: number[];
|
|
24
24
|
* Node.js system error codes that indicate timeout.
|
25
25
|
*/
|
26
26
|
export declare const NODEJS_TIMEOUT_ERROR_CODES: string[];
|
27
|
+
/**
|
28
|
+
* Node.js system error codes that indicate network error.
|
29
|
+
*/
|
30
|
+
export declare const NODEJS_NETWORK_ERROR_CODES: string[];
|
@@ -24,3 +24,7 @@ export declare const TRANSIENT_ERROR_STATUS_CODES: number[];
|
|
24
24
|
* Node.js system error codes that indicate timeout.
|
25
25
|
*/
|
26
26
|
export declare const NODEJS_TIMEOUT_ERROR_CODES: string[];
|
27
|
+
/**
|
28
|
+
* Node.js system error codes that indicate network error.
|
29
|
+
*/
|
30
|
+
export declare const NODEJS_NETWORK_ERROR_CODES: string[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/service-error-classification",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.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 service-error-classification",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/smithy-client",
|
3
|
-
"version": "4.4.
|
3
|
+
"version": "4.4.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 smithy-client",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
27
|
"@smithy/core": "^3.5.3",
|
28
|
-
"@smithy/middleware-endpoint": "^4.1.
|
28
|
+
"@smithy/middleware-endpoint": "^4.1.12",
|
29
29
|
"@smithy/middleware-stack": "^4.0.4",
|
30
30
|
"@smithy/protocol-http": "^5.1.2",
|
31
31
|
"@smithy/types": "^4.3.1",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.20",
|
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 util-defaults-mode-browser",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"license": "Apache-2.0",
|
25
25
|
"dependencies": {
|
26
26
|
"@smithy/property-provider": "^4.0.4",
|
27
|
-
"@smithy/smithy-client": "^4.4.
|
27
|
+
"@smithy/smithy-client": "^4.4.4",
|
28
28
|
"@smithy/types": "^4.3.1",
|
29
29
|
"bowser": "^2.11.0",
|
30
30
|
"tslib": "^2.6.2"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.20",
|
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 util-defaults-mode-node",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"@smithy/credential-provider-imds": "^4.0.6",
|
28
28
|
"@smithy/node-config-provider": "^4.1.3",
|
29
29
|
"@smithy/property-provider": "^4.0.4",
|
30
|
-
"@smithy/smithy-client": "^4.4.
|
30
|
+
"@smithy/smithy-client": "^4.4.4",
|
31
31
|
"@smithy/types": "^4.3.1",
|
32
32
|
"tslib": "^2.6.2"
|
33
33
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/util-retry",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.6",
|
4
4
|
"description": "Shared retry utilities to be used in middleware packages.",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
},
|
29
29
|
"license": "Apache-2.0",
|
30
30
|
"dependencies": {
|
31
|
-
"@smithy/service-error-classification": "^4.0.
|
31
|
+
"@smithy/service-error-classification": "^4.0.6",
|
32
32
|
"@smithy/types": "^4.3.1",
|
33
33
|
"tslib": "^2.6.2"
|
34
34
|
},
|
package/package.json
CHANGED
@@ -74,7 +74,7 @@
|
|
74
74
|
"@aws-cdk/integ-runner": "latest",
|
75
75
|
"@aws-cdk/integ-tests-alpha": "latest",
|
76
76
|
"@stylistic/eslint-plugin": "^2",
|
77
|
-
"@types/aws-lambda": "^8.10.
|
77
|
+
"@types/aws-lambda": "^8.10.150",
|
78
78
|
"@types/jest": "^27",
|
79
79
|
"@types/lambda-tester": "^3.6.2",
|
80
80
|
"@types/node": "^18",
|
@@ -84,7 +84,7 @@
|
|
84
84
|
"aws-cdk-lib": "2.139.0",
|
85
85
|
"aws-sdk-client-mock": "^4.1.0",
|
86
86
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
87
|
-
"cdk-nag": "^2.36.
|
87
|
+
"cdk-nag": "^2.36.18",
|
88
88
|
"cdklabs-projen-project-types": "^0.3.1",
|
89
89
|
"commit-and-tag-version": "^12",
|
90
90
|
"constructs": "10.0.5",
|
@@ -110,7 +110,7 @@
|
|
110
110
|
"constructs": "^10.0.5"
|
111
111
|
},
|
112
112
|
"dependencies": {
|
113
|
-
"@aws-sdk/client-codedeploy": "^3.
|
113
|
+
"@aws-sdk/client-codedeploy": "^3.830.0",
|
114
114
|
"jmespath": "^0.16.0"
|
115
115
|
},
|
116
116
|
"bundledDependencies": [
|
@@ -128,7 +128,7 @@
|
|
128
128
|
"publishConfig": {
|
129
129
|
"access": "public"
|
130
130
|
},
|
131
|
-
"version": "0.0.
|
131
|
+
"version": "0.0.416",
|
132
132
|
"jest": {
|
133
133
|
"coverageProvider": "v8",
|
134
134
|
"testMatch": [
|