@aws-sdk/client-sfn 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 +2344 -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 -50
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/SFNServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -405
- 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 -1679
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: SFNClientConfig) => {
|
|
|
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: SFNClientConfig) => {
|
|
|
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: SFNClientConfig) => {
|
|
|
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: SFNClientConfig) => {
|
|
|
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: SFNClientConfig) => {
|
|
|
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: SFNClientConfig) => {
|
|
|
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-sfn",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sfn 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",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
27
|
-
"@smithy/core": "^3.
|
|
28
|
-
"@smithy/fetch-http-handler": "^5.
|
|
29
|
-
"@smithy/node-http-handler": "^4.
|
|
30
|
-
"@smithy/types": "^4.
|
|
24
|
+
"@aws-sdk/core": "^3.974.24",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
26
|
+
"@aws-sdk/types": "^3.973.14",
|
|
27
|
+
"@smithy/core": "^3.27.0",
|
|
28
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
29
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
30
|
+
"@smithy/types": "^4.15.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultSFNHttpAuthSchemeParametersProvider = 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: "states",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultSFNHttpAuthSchemeProvider = (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,50 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const m = "ref";
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = { [m]: "Endpoint" }, i = { [m]: "Region" }, j = { [m]: d }, k = {}, l = [i];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[c, [h]],
|
|
7
|
-
[c, l],
|
|
8
|
-
["aws.partition", l, d],
|
|
9
|
-
[e, [{ [m]: "UseFIPS" }, b]],
|
|
10
|
-
[e, [{ [m]: "UseDualStack" }, b]],
|
|
11
|
-
[f, [i, "us-gov-west-1"]],
|
|
12
|
-
[e, [{ fn: g, argv: [j, "supportsFIPS"] }, b]],
|
|
13
|
-
[f, [{ fn: g, argv: [j, "name"] }, "aws-us-gov"]],
|
|
14
|
-
[e, [{ fn: g, argv: [j, "supportsDualStack"] }, b]]
|
|
15
|
-
],
|
|
16
|
-
results: [
|
|
17
|
-
[a],
|
|
18
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
19
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
20
|
-
[h, k],
|
|
21
|
-
["https://states.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
22
|
-
["https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
23
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
24
|
-
["https://states-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
25
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
26
|
-
["https://states.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
27
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
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, 14, 3,
|
|
36
|
-
1, 4, r + 11,
|
|
37
|
-
2, 5, r + 11,
|
|
38
|
-
3, 9, 6,
|
|
39
|
-
4, 7, r + 4,
|
|
40
|
-
7, r + 5, 8,
|
|
41
|
-
8, r + 9, r + 10,
|
|
42
|
-
4, 12, 10,
|
|
43
|
-
5, r + 4, 11,
|
|
44
|
-
6, r + 7, r + 8,
|
|
45
|
-
6, 13, r + 6,
|
|
46
|
-
8, r + 5, r + 6,
|
|
47
|
-
3, r + 1, 15,
|
|
48
|
-
4, r + 2, r + 3,
|
|
49
|
-
]);
|
|
50
|
-
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.SFNServiceException = class SFNServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, SFNServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
const { SFNServiceException: __BaseException } = require("./SFNServiceException");
|
|
2
|
-
exports.ActivityAlreadyExists = class ActivityAlreadyExists extends __BaseException {
|
|
3
|
-
name = "ActivityAlreadyExists";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "ActivityAlreadyExists",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, ActivityAlreadyExists.prototype);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
exports.ActivityDoesNotExist = class ActivityDoesNotExist extends __BaseException {
|
|
15
|
-
name = "ActivityDoesNotExist";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "ActivityDoesNotExist",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, ActivityDoesNotExist.prototype);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.ActivityLimitExceeded = class ActivityLimitExceeded extends __BaseException {
|
|
27
|
-
name = "ActivityLimitExceeded";
|
|
28
|
-
$fault = "client";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "ActivityLimitExceeded",
|
|
32
|
-
$fault: "client",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, ActivityLimitExceeded.prototype);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.ActivityWorkerLimitExceeded = class ActivityWorkerLimitExceeded extends __BaseException {
|
|
39
|
-
name = "ActivityWorkerLimitExceeded";
|
|
40
|
-
$fault = "client";
|
|
41
|
-
constructor(opts) {
|
|
42
|
-
super({
|
|
43
|
-
name: "ActivityWorkerLimitExceeded",
|
|
44
|
-
$fault: "client",
|
|
45
|
-
...opts,
|
|
46
|
-
});
|
|
47
|
-
Object.setPrototypeOf(this, ActivityWorkerLimitExceeded.prototype);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
exports.InvalidEncryptionConfiguration = class InvalidEncryptionConfiguration extends __BaseException {
|
|
51
|
-
name = "InvalidEncryptionConfiguration";
|
|
52
|
-
$fault = "client";
|
|
53
|
-
constructor(opts) {
|
|
54
|
-
super({
|
|
55
|
-
name: "InvalidEncryptionConfiguration",
|
|
56
|
-
$fault: "client",
|
|
57
|
-
...opts,
|
|
58
|
-
});
|
|
59
|
-
Object.setPrototypeOf(this, InvalidEncryptionConfiguration.prototype);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
exports.InvalidName = class InvalidName extends __BaseException {
|
|
63
|
-
name = "InvalidName";
|
|
64
|
-
$fault = "client";
|
|
65
|
-
constructor(opts) {
|
|
66
|
-
super({
|
|
67
|
-
name: "InvalidName",
|
|
68
|
-
$fault: "client",
|
|
69
|
-
...opts,
|
|
70
|
-
});
|
|
71
|
-
Object.setPrototypeOf(this, InvalidName.prototype);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
exports.KmsAccessDeniedException = class KmsAccessDeniedException extends __BaseException {
|
|
75
|
-
name = "KmsAccessDeniedException";
|
|
76
|
-
$fault = "client";
|
|
77
|
-
constructor(opts) {
|
|
78
|
-
super({
|
|
79
|
-
name: "KmsAccessDeniedException",
|
|
80
|
-
$fault: "client",
|
|
81
|
-
...opts,
|
|
82
|
-
});
|
|
83
|
-
Object.setPrototypeOf(this, KmsAccessDeniedException.prototype);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
exports.KmsThrottlingException = class KmsThrottlingException extends __BaseException {
|
|
87
|
-
name = "KmsThrottlingException";
|
|
88
|
-
$fault = "client";
|
|
89
|
-
constructor(opts) {
|
|
90
|
-
super({
|
|
91
|
-
name: "KmsThrottlingException",
|
|
92
|
-
$fault: "client",
|
|
93
|
-
...opts,
|
|
94
|
-
});
|
|
95
|
-
Object.setPrototypeOf(this, KmsThrottlingException.prototype);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
exports.TooManyTags = class TooManyTags extends __BaseException {
|
|
99
|
-
name = "TooManyTags";
|
|
100
|
-
$fault = "client";
|
|
101
|
-
resourceName;
|
|
102
|
-
constructor(opts) {
|
|
103
|
-
super({
|
|
104
|
-
name: "TooManyTags",
|
|
105
|
-
$fault: "client",
|
|
106
|
-
...opts,
|
|
107
|
-
});
|
|
108
|
-
Object.setPrototypeOf(this, TooManyTags.prototype);
|
|
109
|
-
this.resourceName = opts.resourceName;
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
exports.ConflictException = class ConflictException extends __BaseException {
|
|
113
|
-
name = "ConflictException";
|
|
114
|
-
$fault = "client";
|
|
115
|
-
constructor(opts) {
|
|
116
|
-
super({
|
|
117
|
-
name: "ConflictException",
|
|
118
|
-
$fault: "client",
|
|
119
|
-
...opts,
|
|
120
|
-
});
|
|
121
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
exports.InvalidArn = class InvalidArn extends __BaseException {
|
|
125
|
-
name = "InvalidArn";
|
|
126
|
-
$fault = "client";
|
|
127
|
-
constructor(opts) {
|
|
128
|
-
super({
|
|
129
|
-
name: "InvalidArn",
|
|
130
|
-
$fault: "client",
|
|
131
|
-
...opts,
|
|
132
|
-
});
|
|
133
|
-
Object.setPrototypeOf(this, InvalidArn.prototype);
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
exports.InvalidDefinition = class InvalidDefinition extends __BaseException {
|
|
137
|
-
name = "InvalidDefinition";
|
|
138
|
-
$fault = "client";
|
|
139
|
-
constructor(opts) {
|
|
140
|
-
super({
|
|
141
|
-
name: "InvalidDefinition",
|
|
142
|
-
$fault: "client",
|
|
143
|
-
...opts,
|
|
144
|
-
});
|
|
145
|
-
Object.setPrototypeOf(this, InvalidDefinition.prototype);
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
exports.InvalidLoggingConfiguration = class InvalidLoggingConfiguration extends __BaseException {
|
|
149
|
-
name = "InvalidLoggingConfiguration";
|
|
150
|
-
$fault = "client";
|
|
151
|
-
constructor(opts) {
|
|
152
|
-
super({
|
|
153
|
-
name: "InvalidLoggingConfiguration",
|
|
154
|
-
$fault: "client",
|
|
155
|
-
...opts,
|
|
156
|
-
});
|
|
157
|
-
Object.setPrototypeOf(this, InvalidLoggingConfiguration.prototype);
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
exports.InvalidTracingConfiguration = class InvalidTracingConfiguration extends __BaseException {
|
|
161
|
-
name = "InvalidTracingConfiguration";
|
|
162
|
-
$fault = "client";
|
|
163
|
-
constructor(opts) {
|
|
164
|
-
super({
|
|
165
|
-
name: "InvalidTracingConfiguration",
|
|
166
|
-
$fault: "client",
|
|
167
|
-
...opts,
|
|
168
|
-
});
|
|
169
|
-
Object.setPrototypeOf(this, InvalidTracingConfiguration.prototype);
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
exports.StateMachineAlreadyExists = class StateMachineAlreadyExists extends __BaseException {
|
|
173
|
-
name = "StateMachineAlreadyExists";
|
|
174
|
-
$fault = "client";
|
|
175
|
-
constructor(opts) {
|
|
176
|
-
super({
|
|
177
|
-
name: "StateMachineAlreadyExists",
|
|
178
|
-
$fault: "client",
|
|
179
|
-
...opts,
|
|
180
|
-
});
|
|
181
|
-
Object.setPrototypeOf(this, StateMachineAlreadyExists.prototype);
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
exports.StateMachineDeleting = class StateMachineDeleting extends __BaseException {
|
|
185
|
-
name = "StateMachineDeleting";
|
|
186
|
-
$fault = "client";
|
|
187
|
-
constructor(opts) {
|
|
188
|
-
super({
|
|
189
|
-
name: "StateMachineDeleting",
|
|
190
|
-
$fault: "client",
|
|
191
|
-
...opts,
|
|
192
|
-
});
|
|
193
|
-
Object.setPrototypeOf(this, StateMachineDeleting.prototype);
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
exports.StateMachineLimitExceeded = class StateMachineLimitExceeded extends __BaseException {
|
|
197
|
-
name = "StateMachineLimitExceeded";
|
|
198
|
-
$fault = "client";
|
|
199
|
-
constructor(opts) {
|
|
200
|
-
super({
|
|
201
|
-
name: "StateMachineLimitExceeded",
|
|
202
|
-
$fault: "client",
|
|
203
|
-
...opts,
|
|
204
|
-
});
|
|
205
|
-
Object.setPrototypeOf(this, StateMachineLimitExceeded.prototype);
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
exports.StateMachineTypeNotSupported = class StateMachineTypeNotSupported extends __BaseException {
|
|
209
|
-
name = "StateMachineTypeNotSupported";
|
|
210
|
-
$fault = "client";
|
|
211
|
-
constructor(opts) {
|
|
212
|
-
super({
|
|
213
|
-
name: "StateMachineTypeNotSupported",
|
|
214
|
-
$fault: "client",
|
|
215
|
-
...opts,
|
|
216
|
-
});
|
|
217
|
-
Object.setPrototypeOf(this, StateMachineTypeNotSupported.prototype);
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
exports.ValidationException = class ValidationException extends __BaseException {
|
|
221
|
-
name = "ValidationException";
|
|
222
|
-
$fault = "client";
|
|
223
|
-
reason;
|
|
224
|
-
constructor(opts) {
|
|
225
|
-
super({
|
|
226
|
-
name: "ValidationException",
|
|
227
|
-
$fault: "client",
|
|
228
|
-
...opts,
|
|
229
|
-
});
|
|
230
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
231
|
-
this.reason = opts.reason;
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
exports.ResourceNotFound = class ResourceNotFound extends __BaseException {
|
|
235
|
-
name = "ResourceNotFound";
|
|
236
|
-
$fault = "client";
|
|
237
|
-
resourceName;
|
|
238
|
-
constructor(opts) {
|
|
239
|
-
super({
|
|
240
|
-
name: "ResourceNotFound",
|
|
241
|
-
$fault: "client",
|
|
242
|
-
...opts,
|
|
243
|
-
});
|
|
244
|
-
Object.setPrototypeOf(this, ResourceNotFound.prototype);
|
|
245
|
-
this.resourceName = opts.resourceName;
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
|
|
249
|
-
name = "ServiceQuotaExceededException";
|
|
250
|
-
$fault = "client";
|
|
251
|
-
constructor(opts) {
|
|
252
|
-
super({
|
|
253
|
-
name: "ServiceQuotaExceededException",
|
|
254
|
-
$fault: "client",
|
|
255
|
-
...opts,
|
|
256
|
-
});
|
|
257
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
exports.ExecutionDoesNotExist = class ExecutionDoesNotExist extends __BaseException {
|
|
261
|
-
name = "ExecutionDoesNotExist";
|
|
262
|
-
$fault = "client";
|
|
263
|
-
constructor(opts) {
|
|
264
|
-
super({
|
|
265
|
-
name: "ExecutionDoesNotExist",
|
|
266
|
-
$fault: "client",
|
|
267
|
-
...opts,
|
|
268
|
-
});
|
|
269
|
-
Object.setPrototypeOf(this, ExecutionDoesNotExist.prototype);
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
exports.KmsInvalidStateException = class KmsInvalidStateException extends __BaseException {
|
|
273
|
-
name = "KmsInvalidStateException";
|
|
274
|
-
$fault = "client";
|
|
275
|
-
kmsKeyState;
|
|
276
|
-
constructor(opts) {
|
|
277
|
-
super({
|
|
278
|
-
name: "KmsInvalidStateException",
|
|
279
|
-
$fault: "client",
|
|
280
|
-
...opts,
|
|
281
|
-
});
|
|
282
|
-
Object.setPrototypeOf(this, KmsInvalidStateException.prototype);
|
|
283
|
-
this.kmsKeyState = opts.kmsKeyState;
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
|
-
exports.StateMachineDoesNotExist = class StateMachineDoesNotExist extends __BaseException {
|
|
287
|
-
name = "StateMachineDoesNotExist";
|
|
288
|
-
$fault = "client";
|
|
289
|
-
constructor(opts) {
|
|
290
|
-
super({
|
|
291
|
-
name: "StateMachineDoesNotExist",
|
|
292
|
-
$fault: "client",
|
|
293
|
-
...opts,
|
|
294
|
-
});
|
|
295
|
-
Object.setPrototypeOf(this, StateMachineDoesNotExist.prototype);
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
exports.InvalidToken = class InvalidToken extends __BaseException {
|
|
299
|
-
name = "InvalidToken";
|
|
300
|
-
$fault = "client";
|
|
301
|
-
constructor(opts) {
|
|
302
|
-
super({
|
|
303
|
-
name: "InvalidToken",
|
|
304
|
-
$fault: "client",
|
|
305
|
-
...opts,
|
|
306
|
-
});
|
|
307
|
-
Object.setPrototypeOf(this, InvalidToken.prototype);
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
exports.ExecutionLimitExceeded = class ExecutionLimitExceeded extends __BaseException {
|
|
311
|
-
name = "ExecutionLimitExceeded";
|
|
312
|
-
$fault = "client";
|
|
313
|
-
constructor(opts) {
|
|
314
|
-
super({
|
|
315
|
-
name: "ExecutionLimitExceeded",
|
|
316
|
-
$fault: "client",
|
|
317
|
-
...opts,
|
|
318
|
-
});
|
|
319
|
-
Object.setPrototypeOf(this, ExecutionLimitExceeded.prototype);
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
exports.ExecutionNotRedrivable = class ExecutionNotRedrivable extends __BaseException {
|
|
323
|
-
name = "ExecutionNotRedrivable";
|
|
324
|
-
$fault = "client";
|
|
325
|
-
constructor(opts) {
|
|
326
|
-
super({
|
|
327
|
-
name: "ExecutionNotRedrivable",
|
|
328
|
-
$fault: "client",
|
|
329
|
-
...opts,
|
|
330
|
-
});
|
|
331
|
-
Object.setPrototypeOf(this, ExecutionNotRedrivable.prototype);
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
exports.TaskDoesNotExist = class TaskDoesNotExist extends __BaseException {
|
|
335
|
-
name = "TaskDoesNotExist";
|
|
336
|
-
$fault = "client";
|
|
337
|
-
constructor(opts) {
|
|
338
|
-
super({
|
|
339
|
-
name: "TaskDoesNotExist",
|
|
340
|
-
$fault: "client",
|
|
341
|
-
...opts,
|
|
342
|
-
});
|
|
343
|
-
Object.setPrototypeOf(this, TaskDoesNotExist.prototype);
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
exports.TaskTimedOut = class TaskTimedOut extends __BaseException {
|
|
347
|
-
name = "TaskTimedOut";
|
|
348
|
-
$fault = "client";
|
|
349
|
-
constructor(opts) {
|
|
350
|
-
super({
|
|
351
|
-
name: "TaskTimedOut",
|
|
352
|
-
$fault: "client",
|
|
353
|
-
...opts,
|
|
354
|
-
});
|
|
355
|
-
Object.setPrototypeOf(this, TaskTimedOut.prototype);
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
exports.InvalidOutput = class InvalidOutput extends __BaseException {
|
|
359
|
-
name = "InvalidOutput";
|
|
360
|
-
$fault = "client";
|
|
361
|
-
constructor(opts) {
|
|
362
|
-
super({
|
|
363
|
-
name: "InvalidOutput",
|
|
364
|
-
$fault: "client",
|
|
365
|
-
...opts,
|
|
366
|
-
});
|
|
367
|
-
Object.setPrototypeOf(this, InvalidOutput.prototype);
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
exports.ExecutionAlreadyExists = class ExecutionAlreadyExists extends __BaseException {
|
|
371
|
-
name = "ExecutionAlreadyExists";
|
|
372
|
-
$fault = "client";
|
|
373
|
-
constructor(opts) {
|
|
374
|
-
super({
|
|
375
|
-
name: "ExecutionAlreadyExists",
|
|
376
|
-
$fault: "client",
|
|
377
|
-
...opts,
|
|
378
|
-
});
|
|
379
|
-
Object.setPrototypeOf(this, ExecutionAlreadyExists.prototype);
|
|
380
|
-
}
|
|
381
|
-
};
|
|
382
|
-
exports.InvalidExecutionInput = class InvalidExecutionInput extends __BaseException {
|
|
383
|
-
name = "InvalidExecutionInput";
|
|
384
|
-
$fault = "client";
|
|
385
|
-
constructor(opts) {
|
|
386
|
-
super({
|
|
387
|
-
name: "InvalidExecutionInput",
|
|
388
|
-
$fault: "client",
|
|
389
|
-
...opts,
|
|
390
|
-
});
|
|
391
|
-
Object.setPrototypeOf(this, InvalidExecutionInput.prototype);
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
exports.MissingRequiredParameter = class MissingRequiredParameter extends __BaseException {
|
|
395
|
-
name = "MissingRequiredParameter";
|
|
396
|
-
$fault = "client";
|
|
397
|
-
constructor(opts) {
|
|
398
|
-
super({
|
|
399
|
-
name: "MissingRequiredParameter",
|
|
400
|
-
$fault: "client",
|
|
401
|
-
...opts,
|
|
402
|
-
});
|
|
403
|
-
Object.setPrototypeOf(this, MissingRequiredParameter.prototype);
|
|
404
|
-
}
|
|
405
|
-
};
|
|
@@ -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;
|