@aws-sdk/client-sfn 3.1075.0 → 3.1077.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.
@@ -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;
@@ -1,45 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
- const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
- const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
- const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
6
- const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
7
- const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
8
- const { calculateBodyLength, Hash } = require("@smithy/core/serde");
9
- const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
10
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
11
- const getRuntimeConfig = (config) => {
12
- emitWarningIfUnsupportedVersion(process.version);
13
- const defaultsMode = resolveDefaultsModeConfig(config);
14
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
- const clientSharedValues = getSharedRuntimeConfig(config);
16
- awsCheckVersion(process.version);
17
- const loaderConfig = {
18
- profile: config?.profile,
19
- logger: clientSharedValues.logger,
20
- };
21
- return {
22
- ...clientSharedValues,
23
- ...config,
24
- runtime: "node",
25
- defaultsMode,
26
- authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
33
- retryMode: config?.retryMode ??
34
- loadNodeConfig({
35
- ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
- default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
- }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
- streamCollector: config?.streamCollector ?? streamCollector,
40
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
43
- };
44
- };
45
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,12 +0,0 @@
1
- const { Sha256 } = require("@aws-crypto/sha256-js");
2
- const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
3
- const getRuntimeConfig = (config) => {
4
- const browserDefaults = getBrowserRuntimeConfig(config);
5
- return {
6
- ...browserDefaults,
7
- ...config,
8
- runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
- };
11
- };
12
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,39 +0,0 @@
1
- const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
3
- const { NoOpLogger } = require("@smithy/core/client");
4
- const { parseUrl } = require("@smithy/core/protocols");
5
- const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
6
- const { defaultSFNHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
- const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
- const { errorTypeRegistries } = require("./schemas/schemas_0");
9
- exports.getRuntimeConfig = (config) => {
10
- return {
11
- apiVersion: "2016-11-23",
12
- base64Decoder: config?.base64Decoder ?? fromBase64,
13
- base64Encoder: config?.base64Encoder ?? toBase64,
14
- disableHostPrefix: config?.disableHostPrefix ?? false,
15
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
16
- extensions: config?.extensions ?? [],
17
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSFNHttpAuthSchemeProvider,
18
- httpAuthSchemes: config?.httpAuthSchemes ?? [
19
- {
20
- schemeId: "aws.auth#sigv4",
21
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
- signer: new AwsSdkSigV4Signer(),
23
- },
24
- ],
25
- logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? AwsJson1_0Protocol,
27
- protocolSettings: config?.protocolSettings ?? {
28
- defaultNamespace: "com.amazonaws.sfn",
29
- errorTypeRegistries,
30
- xmlNamespace: "http://swf.amazonaws.com/doc/2015-07-20/",
31
- version: "2016-11-23",
32
- serviceTarget: "AWSStepFunctions",
33
- },
34
- serviceId: config?.serviceId ?? "SFN",
35
- urlParser: config?.urlParser ?? parseUrl,
36
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
38
- };
39
- };