@aws-sdk/client-cloudformation 3.1075.0 → 3.1076.0
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/dist-cjs/index.js +3710 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -49
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/CloudFormationServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -407
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -39
- package/dist-cjs/schemas/schemas_0.js +0 -3022
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -21,7 +21,13 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
|
21
21
|
| RequestHandler;
|
|
22
22
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
23
|
sha256: import("@smithy/types").HashConstructor;
|
|
24
|
-
streamCollector:
|
|
24
|
+
streamCollector: (
|
|
25
|
+
stream:
|
|
26
|
+
| import("stream").Readable
|
|
27
|
+
| import("stream/web").ReadableStream
|
|
28
|
+
| ReadableStream
|
|
29
|
+
| Blob
|
|
30
|
+
) => Promise<Uint8Array>;
|
|
25
31
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
26
32
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
27
33
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
|
22
22
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
23
23
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
24
|
sha256: import("@smithy/types").HashConstructor;
|
|
25
|
-
streamCollector:
|
|
25
|
+
streamCollector: (
|
|
26
|
+
stream:
|
|
27
|
+
| import("stream").Readable
|
|
28
|
+
| import("stream/web").ReadableStream
|
|
29
|
+
| ReadableStream
|
|
30
|
+
| Blob
|
|
31
|
+
) => Promise<Uint8Array>;
|
|
26
32
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
27
33
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
28
34
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
|
-
streamCollector:
|
|
23
|
+
streamCollector: (
|
|
24
|
+
stream:
|
|
25
|
+
| import("stream").Readable
|
|
26
|
+
| import("stream/web").ReadableStream
|
|
27
|
+
| ReadableStream
|
|
28
|
+
| Blob
|
|
29
|
+
) => Promise<Uint8Array>;
|
|
24
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
25
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
26
32
|
utf8Decoder: import("@smithy/types").Decoder;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudformation",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1076.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.974.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
28
|
-
"@aws-sdk/types": "^3.973.
|
|
29
|
-
"@smithy/core": "^3.
|
|
30
|
-
"@smithy/fetch-http-handler": "^5.
|
|
31
|
-
"@smithy/node-http-handler": "^4.
|
|
32
|
-
"@smithy/types": "^4.
|
|
26
|
+
"@aws-sdk/core": "^3.974.24",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
28
|
+
"@aws-sdk/types": "^3.973.14",
|
|
29
|
+
"@smithy/core": "^3.27.0",
|
|
30
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
31
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
32
|
+
"@smithy/types": "^4.15.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultCloudFormationHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
-
return {
|
|
5
|
-
operation: getSmithyContext(context).operation,
|
|
6
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
-
})(),
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
-
return {
|
|
13
|
-
schemeId: "aws.auth#sigv4",
|
|
14
|
-
signingProperties: {
|
|
15
|
-
name: "cloudformation",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultCloudFormationHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
-
const options = [];
|
|
28
|
-
switch (authParameters.operation) {
|
|
29
|
-
default: {
|
|
30
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return options;
|
|
34
|
-
};
|
|
35
|
-
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
-
return Object.assign(config_0, {
|
|
38
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
-
});
|
|
40
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const k = "ref";
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[c, [g]],
|
|
7
|
-
[c, j],
|
|
8
|
-
["aws.partition", j, d],
|
|
9
|
-
[e, [{ [k]: "UseFIPS" }, b]],
|
|
10
|
-
[e, [{ [k]: "UseDualStack" }, b]],
|
|
11
|
-
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
12
|
-
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
13
|
-
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
|
|
14
|
-
],
|
|
15
|
-
results: [
|
|
16
|
-
[a],
|
|
17
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
18
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
19
|
-
[g, i],
|
|
20
|
-
["https://cloudformation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
21
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
22
|
-
["https://cloudformation.{Region}.amazonaws.com", i],
|
|
23
|
-
["https://cloudformation-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
24
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
25
|
-
["https://cloudformation.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
26
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
27
|
-
["https://cloudformation.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
28
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
29
|
-
]
|
|
30
|
-
};
|
|
31
|
-
const root = 2;
|
|
32
|
-
const r = 100_000_000;
|
|
33
|
-
const nodes = new Int32Array([
|
|
34
|
-
-1, 1, -1,
|
|
35
|
-
0, 13, 3,
|
|
36
|
-
1, 4, r + 12,
|
|
37
|
-
2, 5, r + 12,
|
|
38
|
-
3, 8, 6,
|
|
39
|
-
4, 7, r + 11,
|
|
40
|
-
5, r + 9, r + 10,
|
|
41
|
-
4, 11, 9,
|
|
42
|
-
6, 10, r + 8,
|
|
43
|
-
7, r + 6, r + 7,
|
|
44
|
-
5, 12, r + 5,
|
|
45
|
-
6, r + 4, r + 5,
|
|
46
|
-
3, r + 1, 14,
|
|
47
|
-
4, r + 2, r + 3,
|
|
48
|
-
]);
|
|
49
|
-
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
-
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
-
const { bdd } = require("./bdd");
|
|
4
|
-
const cache = new EndpointCache({
|
|
5
|
-
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
|
-
});
|
|
8
|
-
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
-
endpointParams: endpointParams,
|
|
11
|
-
logger: context.logger,
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
-
exports.__ServiceException = __ServiceException;
|
|
3
|
-
exports.CloudFormationServiceException = class CloudFormationServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, CloudFormationServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
const { CloudFormationServiceException: __BaseException } = require("./CloudFormationServiceException");
|
|
2
|
-
exports.InvalidOperationException = class InvalidOperationException extends __BaseException {
|
|
3
|
-
name = "InvalidOperationException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
Message;
|
|
6
|
-
constructor(opts) {
|
|
7
|
-
super({
|
|
8
|
-
name: "InvalidOperationException",
|
|
9
|
-
$fault: "client",
|
|
10
|
-
...opts,
|
|
11
|
-
});
|
|
12
|
-
Object.setPrototypeOf(this, InvalidOperationException.prototype);
|
|
13
|
-
this.Message = opts.Message;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
exports.OperationNotFoundException = class OperationNotFoundException extends __BaseException {
|
|
17
|
-
name = "OperationNotFoundException";
|
|
18
|
-
$fault = "client";
|
|
19
|
-
Message;
|
|
20
|
-
constructor(opts) {
|
|
21
|
-
super({
|
|
22
|
-
name: "OperationNotFoundException",
|
|
23
|
-
$fault: "client",
|
|
24
|
-
...opts,
|
|
25
|
-
});
|
|
26
|
-
Object.setPrototypeOf(this, OperationNotFoundException.prototype);
|
|
27
|
-
this.Message = opts.Message;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.CFNRegistryException = class CFNRegistryException extends __BaseException {
|
|
31
|
-
name = "CFNRegistryException";
|
|
32
|
-
$fault = "client";
|
|
33
|
-
Message;
|
|
34
|
-
constructor(opts) {
|
|
35
|
-
super({
|
|
36
|
-
name: "CFNRegistryException",
|
|
37
|
-
$fault: "client",
|
|
38
|
-
...opts,
|
|
39
|
-
});
|
|
40
|
-
Object.setPrototypeOf(this, CFNRegistryException.prototype);
|
|
41
|
-
this.Message = opts.Message;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.TypeNotFoundException = class TypeNotFoundException extends __BaseException {
|
|
45
|
-
name = "TypeNotFoundException";
|
|
46
|
-
$fault = "client";
|
|
47
|
-
Message;
|
|
48
|
-
constructor(opts) {
|
|
49
|
-
super({
|
|
50
|
-
name: "TypeNotFoundException",
|
|
51
|
-
$fault: "client",
|
|
52
|
-
...opts,
|
|
53
|
-
});
|
|
54
|
-
Object.setPrototypeOf(this, TypeNotFoundException.prototype);
|
|
55
|
-
this.Message = opts.Message;
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
exports.AlreadyExistsException = class AlreadyExistsException extends __BaseException {
|
|
59
|
-
name = "AlreadyExistsException";
|
|
60
|
-
$fault = "client";
|
|
61
|
-
Message;
|
|
62
|
-
constructor(opts) {
|
|
63
|
-
super({
|
|
64
|
-
name: "AlreadyExistsException",
|
|
65
|
-
$fault: "client",
|
|
66
|
-
...opts,
|
|
67
|
-
});
|
|
68
|
-
Object.setPrototypeOf(this, AlreadyExistsException.prototype);
|
|
69
|
-
this.Message = opts.Message;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
exports.TypeConfigurationNotFoundException = class TypeConfigurationNotFoundException extends __BaseException {
|
|
73
|
-
name = "TypeConfigurationNotFoundException";
|
|
74
|
-
$fault = "client";
|
|
75
|
-
Message;
|
|
76
|
-
constructor(opts) {
|
|
77
|
-
super({
|
|
78
|
-
name: "TypeConfigurationNotFoundException",
|
|
79
|
-
$fault: "client",
|
|
80
|
-
...opts,
|
|
81
|
-
});
|
|
82
|
-
Object.setPrototypeOf(this, TypeConfigurationNotFoundException.prototype);
|
|
83
|
-
this.Message = opts.Message;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
exports.TokenAlreadyExistsException = class TokenAlreadyExistsException extends __BaseException {
|
|
87
|
-
name = "TokenAlreadyExistsException";
|
|
88
|
-
$fault = "client";
|
|
89
|
-
Message;
|
|
90
|
-
constructor(opts) {
|
|
91
|
-
super({
|
|
92
|
-
name: "TokenAlreadyExistsException",
|
|
93
|
-
$fault: "client",
|
|
94
|
-
...opts,
|
|
95
|
-
});
|
|
96
|
-
Object.setPrototypeOf(this, TokenAlreadyExistsException.prototype);
|
|
97
|
-
this.Message = opts.Message;
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
exports.ChangeSetNotFoundException = class ChangeSetNotFoundException extends __BaseException {
|
|
101
|
-
name = "ChangeSetNotFoundException";
|
|
102
|
-
$fault = "client";
|
|
103
|
-
Message;
|
|
104
|
-
constructor(opts) {
|
|
105
|
-
super({
|
|
106
|
-
name: "ChangeSetNotFoundException",
|
|
107
|
-
$fault: "client",
|
|
108
|
-
...opts,
|
|
109
|
-
});
|
|
110
|
-
Object.setPrototypeOf(this, ChangeSetNotFoundException.prototype);
|
|
111
|
-
this.Message = opts.Message;
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
exports.InsufficientCapabilitiesException = class InsufficientCapabilitiesException extends __BaseException {
|
|
115
|
-
name = "InsufficientCapabilitiesException";
|
|
116
|
-
$fault = "client";
|
|
117
|
-
Message;
|
|
118
|
-
constructor(opts) {
|
|
119
|
-
super({
|
|
120
|
-
name: "InsufficientCapabilitiesException",
|
|
121
|
-
$fault: "client",
|
|
122
|
-
...opts,
|
|
123
|
-
});
|
|
124
|
-
Object.setPrototypeOf(this, InsufficientCapabilitiesException.prototype);
|
|
125
|
-
this.Message = opts.Message;
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
exports.LimitExceededException = class LimitExceededException extends __BaseException {
|
|
129
|
-
name = "LimitExceededException";
|
|
130
|
-
$fault = "client";
|
|
131
|
-
Message;
|
|
132
|
-
constructor(opts) {
|
|
133
|
-
super({
|
|
134
|
-
name: "LimitExceededException",
|
|
135
|
-
$fault: "client",
|
|
136
|
-
...opts,
|
|
137
|
-
});
|
|
138
|
-
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
139
|
-
this.Message = opts.Message;
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
exports.ConcurrentResourcesLimitExceededException = class ConcurrentResourcesLimitExceededException extends __BaseException {
|
|
143
|
-
name = "ConcurrentResourcesLimitExceededException";
|
|
144
|
-
$fault = "client";
|
|
145
|
-
Message;
|
|
146
|
-
constructor(opts) {
|
|
147
|
-
super({
|
|
148
|
-
name: "ConcurrentResourcesLimitExceededException",
|
|
149
|
-
$fault: "client",
|
|
150
|
-
...opts,
|
|
151
|
-
});
|
|
152
|
-
Object.setPrototypeOf(this, ConcurrentResourcesLimitExceededException.prototype);
|
|
153
|
-
this.Message = opts.Message;
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
exports.OperationIdAlreadyExistsException = class OperationIdAlreadyExistsException extends __BaseException {
|
|
157
|
-
name = "OperationIdAlreadyExistsException";
|
|
158
|
-
$fault = "client";
|
|
159
|
-
Message;
|
|
160
|
-
constructor(opts) {
|
|
161
|
-
super({
|
|
162
|
-
name: "OperationIdAlreadyExistsException",
|
|
163
|
-
$fault: "client",
|
|
164
|
-
...opts,
|
|
165
|
-
});
|
|
166
|
-
Object.setPrototypeOf(this, OperationIdAlreadyExistsException.prototype);
|
|
167
|
-
this.Message = opts.Message;
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
exports.OperationInProgressException = class OperationInProgressException extends __BaseException {
|
|
171
|
-
name = "OperationInProgressException";
|
|
172
|
-
$fault = "client";
|
|
173
|
-
Message;
|
|
174
|
-
constructor(opts) {
|
|
175
|
-
super({
|
|
176
|
-
name: "OperationInProgressException",
|
|
177
|
-
$fault: "client",
|
|
178
|
-
...opts,
|
|
179
|
-
});
|
|
180
|
-
Object.setPrototypeOf(this, OperationInProgressException.prototype);
|
|
181
|
-
this.Message = opts.Message;
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
exports.StackSetNotFoundException = class StackSetNotFoundException extends __BaseException {
|
|
185
|
-
name = "StackSetNotFoundException";
|
|
186
|
-
$fault = "client";
|
|
187
|
-
Message;
|
|
188
|
-
constructor(opts) {
|
|
189
|
-
super({
|
|
190
|
-
name: "StackSetNotFoundException",
|
|
191
|
-
$fault: "client",
|
|
192
|
-
...opts,
|
|
193
|
-
});
|
|
194
|
-
Object.setPrototypeOf(this, StackSetNotFoundException.prototype);
|
|
195
|
-
this.Message = opts.Message;
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
exports.StaleRequestException = class StaleRequestException extends __BaseException {
|
|
199
|
-
name = "StaleRequestException";
|
|
200
|
-
$fault = "client";
|
|
201
|
-
Message;
|
|
202
|
-
constructor(opts) {
|
|
203
|
-
super({
|
|
204
|
-
name: "StaleRequestException",
|
|
205
|
-
$fault: "client",
|
|
206
|
-
...opts,
|
|
207
|
-
});
|
|
208
|
-
Object.setPrototypeOf(this, StaleRequestException.prototype);
|
|
209
|
-
this.Message = opts.Message;
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
exports.CreatedButModifiedException = class CreatedButModifiedException extends __BaseException {
|
|
213
|
-
name = "CreatedButModifiedException";
|
|
214
|
-
$fault = "client";
|
|
215
|
-
Message;
|
|
216
|
-
constructor(opts) {
|
|
217
|
-
super({
|
|
218
|
-
name: "CreatedButModifiedException",
|
|
219
|
-
$fault: "client",
|
|
220
|
-
...opts,
|
|
221
|
-
});
|
|
222
|
-
Object.setPrototypeOf(this, CreatedButModifiedException.prototype);
|
|
223
|
-
this.Message = opts.Message;
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
exports.NameAlreadyExistsException = class NameAlreadyExistsException extends __BaseException {
|
|
227
|
-
name = "NameAlreadyExistsException";
|
|
228
|
-
$fault = "client";
|
|
229
|
-
Message;
|
|
230
|
-
constructor(opts) {
|
|
231
|
-
super({
|
|
232
|
-
name: "NameAlreadyExistsException",
|
|
233
|
-
$fault: "client",
|
|
234
|
-
...opts,
|
|
235
|
-
});
|
|
236
|
-
Object.setPrototypeOf(this, NameAlreadyExistsException.prototype);
|
|
237
|
-
this.Message = opts.Message;
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
exports.InvalidChangeSetStatusException = class InvalidChangeSetStatusException extends __BaseException {
|
|
241
|
-
name = "InvalidChangeSetStatusException";
|
|
242
|
-
$fault = "client";
|
|
243
|
-
Message;
|
|
244
|
-
constructor(opts) {
|
|
245
|
-
super({
|
|
246
|
-
name: "InvalidChangeSetStatusException",
|
|
247
|
-
$fault: "client",
|
|
248
|
-
...opts,
|
|
249
|
-
});
|
|
250
|
-
Object.setPrototypeOf(this, InvalidChangeSetStatusException.prototype);
|
|
251
|
-
this.Message = opts.Message;
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
exports.GeneratedTemplateNotFoundException = class GeneratedTemplateNotFoundException extends __BaseException {
|
|
255
|
-
name = "GeneratedTemplateNotFoundException";
|
|
256
|
-
$fault = "client";
|
|
257
|
-
Message;
|
|
258
|
-
constructor(opts) {
|
|
259
|
-
super({
|
|
260
|
-
name: "GeneratedTemplateNotFoundException",
|
|
261
|
-
$fault: "client",
|
|
262
|
-
...opts,
|
|
263
|
-
});
|
|
264
|
-
Object.setPrototypeOf(this, GeneratedTemplateNotFoundException.prototype);
|
|
265
|
-
this.Message = opts.Message;
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
exports.StackSetNotEmptyException = class StackSetNotEmptyException extends __BaseException {
|
|
269
|
-
name = "StackSetNotEmptyException";
|
|
270
|
-
$fault = "client";
|
|
271
|
-
Message;
|
|
272
|
-
constructor(opts) {
|
|
273
|
-
super({
|
|
274
|
-
name: "StackSetNotEmptyException",
|
|
275
|
-
$fault: "client",
|
|
276
|
-
...opts,
|
|
277
|
-
});
|
|
278
|
-
Object.setPrototypeOf(this, StackSetNotEmptyException.prototype);
|
|
279
|
-
this.Message = opts.Message;
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
exports.ResourceScanNotFoundException = class ResourceScanNotFoundException extends __BaseException {
|
|
283
|
-
name = "ResourceScanNotFoundException";
|
|
284
|
-
$fault = "client";
|
|
285
|
-
Message;
|
|
286
|
-
constructor(opts) {
|
|
287
|
-
super({
|
|
288
|
-
name: "ResourceScanNotFoundException",
|
|
289
|
-
$fault: "client",
|
|
290
|
-
...opts,
|
|
291
|
-
});
|
|
292
|
-
Object.setPrototypeOf(this, ResourceScanNotFoundException.prototype);
|
|
293
|
-
this.Message = opts.Message;
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
exports.StackInstanceNotFoundException = class StackInstanceNotFoundException extends __BaseException {
|
|
297
|
-
name = "StackInstanceNotFoundException";
|
|
298
|
-
$fault = "client";
|
|
299
|
-
Message;
|
|
300
|
-
constructor(opts) {
|
|
301
|
-
super({
|
|
302
|
-
name: "StackInstanceNotFoundException",
|
|
303
|
-
$fault: "client",
|
|
304
|
-
...opts,
|
|
305
|
-
});
|
|
306
|
-
Object.setPrototypeOf(this, StackInstanceNotFoundException.prototype);
|
|
307
|
-
this.Message = opts.Message;
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
exports.StackRefactorNotFoundException = class StackRefactorNotFoundException extends __BaseException {
|
|
311
|
-
name = "StackRefactorNotFoundException";
|
|
312
|
-
$fault = "client";
|
|
313
|
-
Message;
|
|
314
|
-
constructor(opts) {
|
|
315
|
-
super({
|
|
316
|
-
name: "StackRefactorNotFoundException",
|
|
317
|
-
$fault: "client",
|
|
318
|
-
...opts,
|
|
319
|
-
});
|
|
320
|
-
Object.setPrototypeOf(this, StackRefactorNotFoundException.prototype);
|
|
321
|
-
this.Message = opts.Message;
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
exports.HookResultNotFoundException = class HookResultNotFoundException extends __BaseException {
|
|
325
|
-
name = "HookResultNotFoundException";
|
|
326
|
-
$fault = "client";
|
|
327
|
-
Message;
|
|
328
|
-
constructor(opts) {
|
|
329
|
-
super({
|
|
330
|
-
name: "HookResultNotFoundException",
|
|
331
|
-
$fault: "client",
|
|
332
|
-
...opts,
|
|
333
|
-
});
|
|
334
|
-
Object.setPrototypeOf(this, HookResultNotFoundException.prototype);
|
|
335
|
-
this.Message = opts.Message;
|
|
336
|
-
}
|
|
337
|
-
};
|
|
338
|
-
exports.StackNotFoundException = class StackNotFoundException extends __BaseException {
|
|
339
|
-
name = "StackNotFoundException";
|
|
340
|
-
$fault = "client";
|
|
341
|
-
Message;
|
|
342
|
-
constructor(opts) {
|
|
343
|
-
super({
|
|
344
|
-
name: "StackNotFoundException",
|
|
345
|
-
$fault: "client",
|
|
346
|
-
...opts,
|
|
347
|
-
});
|
|
348
|
-
Object.setPrototypeOf(this, StackNotFoundException.prototype);
|
|
349
|
-
this.Message = opts.Message;
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
exports.ResourceScanInProgressException = class ResourceScanInProgressException extends __BaseException {
|
|
353
|
-
name = "ResourceScanInProgressException";
|
|
354
|
-
$fault = "client";
|
|
355
|
-
Message;
|
|
356
|
-
constructor(opts) {
|
|
357
|
-
super({
|
|
358
|
-
name: "ResourceScanInProgressException",
|
|
359
|
-
$fault: "client",
|
|
360
|
-
...opts,
|
|
361
|
-
});
|
|
362
|
-
Object.setPrototypeOf(this, ResourceScanInProgressException.prototype);
|
|
363
|
-
this.Message = opts.Message;
|
|
364
|
-
}
|
|
365
|
-
};
|
|
366
|
-
exports.InvalidStateTransitionException = class InvalidStateTransitionException extends __BaseException {
|
|
367
|
-
name = "InvalidStateTransitionException";
|
|
368
|
-
$fault = "client";
|
|
369
|
-
Message;
|
|
370
|
-
constructor(opts) {
|
|
371
|
-
super({
|
|
372
|
-
name: "InvalidStateTransitionException",
|
|
373
|
-
$fault: "client",
|
|
374
|
-
...opts,
|
|
375
|
-
});
|
|
376
|
-
Object.setPrototypeOf(this, InvalidStateTransitionException.prototype);
|
|
377
|
-
this.Message = opts.Message;
|
|
378
|
-
}
|
|
379
|
-
};
|
|
380
|
-
exports.OperationStatusCheckFailedException = class OperationStatusCheckFailedException extends __BaseException {
|
|
381
|
-
name = "OperationStatusCheckFailedException";
|
|
382
|
-
$fault = "client";
|
|
383
|
-
Message;
|
|
384
|
-
constructor(opts) {
|
|
385
|
-
super({
|
|
386
|
-
name: "OperationStatusCheckFailedException",
|
|
387
|
-
$fault: "client",
|
|
388
|
-
...opts,
|
|
389
|
-
});
|
|
390
|
-
Object.setPrototypeOf(this, OperationStatusCheckFailedException.prototype);
|
|
391
|
-
this.Message = opts.Message;
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
exports.ResourceScanLimitExceededException = class ResourceScanLimitExceededException extends __BaseException {
|
|
395
|
-
name = "ResourceScanLimitExceededException";
|
|
396
|
-
$fault = "client";
|
|
397
|
-
Message;
|
|
398
|
-
constructor(opts) {
|
|
399
|
-
super({
|
|
400
|
-
name: "ResourceScanLimitExceededException",
|
|
401
|
-
$fault: "client",
|
|
402
|
-
...opts,
|
|
403
|
-
});
|
|
404
|
-
Object.setPrototypeOf(this, ResourceScanLimitExceededException.prototype);
|
|
405
|
-
this.Message = opts.Message;
|
|
406
|
-
}
|
|
407
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
-
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
-
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
-
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
-
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
-
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
-
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
10
|
-
const getRuntimeConfig = (config) => {
|
|
11
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
-
return {
|
|
15
|
-
...clientSharedValues,
|
|
16
|
-
...config,
|
|
17
|
-
runtime: "browser",
|
|
18
|
-
defaultsMode,
|
|
19
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
21
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|