@aws-sdk/client-sfn 3.987.0 → 3.989.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SFNServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class SFNServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, SFNServiceException.prototype);
10
+ }
11
+ }
12
+ exports.SFNServiceException = SFNServiceException;
@@ -0,0 +1,441 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MissingRequiredParameter = exports.InvalidExecutionInput = exports.ExecutionAlreadyExists = exports.InvalidOutput = exports.TaskTimedOut = exports.TaskDoesNotExist = exports.ExecutionNotRedrivable = exports.ExecutionLimitExceeded = exports.InvalidToken = exports.StateMachineDoesNotExist = exports.KmsInvalidStateException = exports.ExecutionDoesNotExist = exports.ServiceQuotaExceededException = exports.ResourceNotFound = exports.ValidationException = exports.StateMachineTypeNotSupported = exports.StateMachineLimitExceeded = exports.StateMachineDeleting = exports.StateMachineAlreadyExists = exports.InvalidTracingConfiguration = exports.InvalidLoggingConfiguration = exports.InvalidDefinition = exports.InvalidArn = exports.ConflictException = exports.TooManyTags = exports.KmsThrottlingException = exports.KmsAccessDeniedException = exports.InvalidName = exports.InvalidEncryptionConfiguration = exports.ActivityWorkerLimitExceeded = exports.ActivityLimitExceeded = exports.ActivityDoesNotExist = exports.ActivityAlreadyExists = void 0;
4
+ const SFNServiceException_1 = require("./SFNServiceException");
5
+ class ActivityAlreadyExists extends SFNServiceException_1.SFNServiceException {
6
+ name = "ActivityAlreadyExists";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "ActivityAlreadyExists",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, ActivityAlreadyExists.prototype);
15
+ }
16
+ }
17
+ exports.ActivityAlreadyExists = ActivityAlreadyExists;
18
+ class ActivityDoesNotExist extends SFNServiceException_1.SFNServiceException {
19
+ name = "ActivityDoesNotExist";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ActivityDoesNotExist",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ActivityDoesNotExist.prototype);
28
+ }
29
+ }
30
+ exports.ActivityDoesNotExist = ActivityDoesNotExist;
31
+ class ActivityLimitExceeded extends SFNServiceException_1.SFNServiceException {
32
+ name = "ActivityLimitExceeded";
33
+ $fault = "client";
34
+ constructor(opts) {
35
+ super({
36
+ name: "ActivityLimitExceeded",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, ActivityLimitExceeded.prototype);
41
+ }
42
+ }
43
+ exports.ActivityLimitExceeded = ActivityLimitExceeded;
44
+ class ActivityWorkerLimitExceeded extends SFNServiceException_1.SFNServiceException {
45
+ name = "ActivityWorkerLimitExceeded";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "ActivityWorkerLimitExceeded",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, ActivityWorkerLimitExceeded.prototype);
54
+ }
55
+ }
56
+ exports.ActivityWorkerLimitExceeded = ActivityWorkerLimitExceeded;
57
+ class InvalidEncryptionConfiguration extends SFNServiceException_1.SFNServiceException {
58
+ name = "InvalidEncryptionConfiguration";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "InvalidEncryptionConfiguration",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, InvalidEncryptionConfiguration.prototype);
67
+ }
68
+ }
69
+ exports.InvalidEncryptionConfiguration = InvalidEncryptionConfiguration;
70
+ class InvalidName extends SFNServiceException_1.SFNServiceException {
71
+ name = "InvalidName";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "InvalidName",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, InvalidName.prototype);
80
+ }
81
+ }
82
+ exports.InvalidName = InvalidName;
83
+ class KmsAccessDeniedException extends SFNServiceException_1.SFNServiceException {
84
+ name = "KmsAccessDeniedException";
85
+ $fault = "client";
86
+ constructor(opts) {
87
+ super({
88
+ name: "KmsAccessDeniedException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ Object.setPrototypeOf(this, KmsAccessDeniedException.prototype);
93
+ }
94
+ }
95
+ exports.KmsAccessDeniedException = KmsAccessDeniedException;
96
+ class KmsThrottlingException extends SFNServiceException_1.SFNServiceException {
97
+ name = "KmsThrottlingException";
98
+ $fault = "client";
99
+ constructor(opts) {
100
+ super({
101
+ name: "KmsThrottlingException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, KmsThrottlingException.prototype);
106
+ }
107
+ }
108
+ exports.KmsThrottlingException = KmsThrottlingException;
109
+ class TooManyTags extends SFNServiceException_1.SFNServiceException {
110
+ name = "TooManyTags";
111
+ $fault = "client";
112
+ resourceName;
113
+ constructor(opts) {
114
+ super({
115
+ name: "TooManyTags",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ Object.setPrototypeOf(this, TooManyTags.prototype);
120
+ this.resourceName = opts.resourceName;
121
+ }
122
+ }
123
+ exports.TooManyTags = TooManyTags;
124
+ class ConflictException extends SFNServiceException_1.SFNServiceException {
125
+ name = "ConflictException";
126
+ $fault = "client";
127
+ constructor(opts) {
128
+ super({
129
+ name: "ConflictException",
130
+ $fault: "client",
131
+ ...opts,
132
+ });
133
+ Object.setPrototypeOf(this, ConflictException.prototype);
134
+ }
135
+ }
136
+ exports.ConflictException = ConflictException;
137
+ class InvalidArn extends SFNServiceException_1.SFNServiceException {
138
+ name = "InvalidArn";
139
+ $fault = "client";
140
+ constructor(opts) {
141
+ super({
142
+ name: "InvalidArn",
143
+ $fault: "client",
144
+ ...opts,
145
+ });
146
+ Object.setPrototypeOf(this, InvalidArn.prototype);
147
+ }
148
+ }
149
+ exports.InvalidArn = InvalidArn;
150
+ class InvalidDefinition extends SFNServiceException_1.SFNServiceException {
151
+ name = "InvalidDefinition";
152
+ $fault = "client";
153
+ constructor(opts) {
154
+ super({
155
+ name: "InvalidDefinition",
156
+ $fault: "client",
157
+ ...opts,
158
+ });
159
+ Object.setPrototypeOf(this, InvalidDefinition.prototype);
160
+ }
161
+ }
162
+ exports.InvalidDefinition = InvalidDefinition;
163
+ class InvalidLoggingConfiguration extends SFNServiceException_1.SFNServiceException {
164
+ name = "InvalidLoggingConfiguration";
165
+ $fault = "client";
166
+ constructor(opts) {
167
+ super({
168
+ name: "InvalidLoggingConfiguration",
169
+ $fault: "client",
170
+ ...opts,
171
+ });
172
+ Object.setPrototypeOf(this, InvalidLoggingConfiguration.prototype);
173
+ }
174
+ }
175
+ exports.InvalidLoggingConfiguration = InvalidLoggingConfiguration;
176
+ class InvalidTracingConfiguration extends SFNServiceException_1.SFNServiceException {
177
+ name = "InvalidTracingConfiguration";
178
+ $fault = "client";
179
+ constructor(opts) {
180
+ super({
181
+ name: "InvalidTracingConfiguration",
182
+ $fault: "client",
183
+ ...opts,
184
+ });
185
+ Object.setPrototypeOf(this, InvalidTracingConfiguration.prototype);
186
+ }
187
+ }
188
+ exports.InvalidTracingConfiguration = InvalidTracingConfiguration;
189
+ class StateMachineAlreadyExists extends SFNServiceException_1.SFNServiceException {
190
+ name = "StateMachineAlreadyExists";
191
+ $fault = "client";
192
+ constructor(opts) {
193
+ super({
194
+ name: "StateMachineAlreadyExists",
195
+ $fault: "client",
196
+ ...opts,
197
+ });
198
+ Object.setPrototypeOf(this, StateMachineAlreadyExists.prototype);
199
+ }
200
+ }
201
+ exports.StateMachineAlreadyExists = StateMachineAlreadyExists;
202
+ class StateMachineDeleting extends SFNServiceException_1.SFNServiceException {
203
+ name = "StateMachineDeleting";
204
+ $fault = "client";
205
+ constructor(opts) {
206
+ super({
207
+ name: "StateMachineDeleting",
208
+ $fault: "client",
209
+ ...opts,
210
+ });
211
+ Object.setPrototypeOf(this, StateMachineDeleting.prototype);
212
+ }
213
+ }
214
+ exports.StateMachineDeleting = StateMachineDeleting;
215
+ class StateMachineLimitExceeded extends SFNServiceException_1.SFNServiceException {
216
+ name = "StateMachineLimitExceeded";
217
+ $fault = "client";
218
+ constructor(opts) {
219
+ super({
220
+ name: "StateMachineLimitExceeded",
221
+ $fault: "client",
222
+ ...opts,
223
+ });
224
+ Object.setPrototypeOf(this, StateMachineLimitExceeded.prototype);
225
+ }
226
+ }
227
+ exports.StateMachineLimitExceeded = StateMachineLimitExceeded;
228
+ class StateMachineTypeNotSupported extends SFNServiceException_1.SFNServiceException {
229
+ name = "StateMachineTypeNotSupported";
230
+ $fault = "client";
231
+ constructor(opts) {
232
+ super({
233
+ name: "StateMachineTypeNotSupported",
234
+ $fault: "client",
235
+ ...opts,
236
+ });
237
+ Object.setPrototypeOf(this, StateMachineTypeNotSupported.prototype);
238
+ }
239
+ }
240
+ exports.StateMachineTypeNotSupported = StateMachineTypeNotSupported;
241
+ class ValidationException extends SFNServiceException_1.SFNServiceException {
242
+ name = "ValidationException";
243
+ $fault = "client";
244
+ reason;
245
+ constructor(opts) {
246
+ super({
247
+ name: "ValidationException",
248
+ $fault: "client",
249
+ ...opts,
250
+ });
251
+ Object.setPrototypeOf(this, ValidationException.prototype);
252
+ this.reason = opts.reason;
253
+ }
254
+ }
255
+ exports.ValidationException = ValidationException;
256
+ class ResourceNotFound extends SFNServiceException_1.SFNServiceException {
257
+ name = "ResourceNotFound";
258
+ $fault = "client";
259
+ resourceName;
260
+ constructor(opts) {
261
+ super({
262
+ name: "ResourceNotFound",
263
+ $fault: "client",
264
+ ...opts,
265
+ });
266
+ Object.setPrototypeOf(this, ResourceNotFound.prototype);
267
+ this.resourceName = opts.resourceName;
268
+ }
269
+ }
270
+ exports.ResourceNotFound = ResourceNotFound;
271
+ class ServiceQuotaExceededException extends SFNServiceException_1.SFNServiceException {
272
+ name = "ServiceQuotaExceededException";
273
+ $fault = "client";
274
+ constructor(opts) {
275
+ super({
276
+ name: "ServiceQuotaExceededException",
277
+ $fault: "client",
278
+ ...opts,
279
+ });
280
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
281
+ }
282
+ }
283
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
284
+ class ExecutionDoesNotExist extends SFNServiceException_1.SFNServiceException {
285
+ name = "ExecutionDoesNotExist";
286
+ $fault = "client";
287
+ constructor(opts) {
288
+ super({
289
+ name: "ExecutionDoesNotExist",
290
+ $fault: "client",
291
+ ...opts,
292
+ });
293
+ Object.setPrototypeOf(this, ExecutionDoesNotExist.prototype);
294
+ }
295
+ }
296
+ exports.ExecutionDoesNotExist = ExecutionDoesNotExist;
297
+ class KmsInvalidStateException extends SFNServiceException_1.SFNServiceException {
298
+ name = "KmsInvalidStateException";
299
+ $fault = "client";
300
+ kmsKeyState;
301
+ constructor(opts) {
302
+ super({
303
+ name: "KmsInvalidStateException",
304
+ $fault: "client",
305
+ ...opts,
306
+ });
307
+ Object.setPrototypeOf(this, KmsInvalidStateException.prototype);
308
+ this.kmsKeyState = opts.kmsKeyState;
309
+ }
310
+ }
311
+ exports.KmsInvalidStateException = KmsInvalidStateException;
312
+ class StateMachineDoesNotExist extends SFNServiceException_1.SFNServiceException {
313
+ name = "StateMachineDoesNotExist";
314
+ $fault = "client";
315
+ constructor(opts) {
316
+ super({
317
+ name: "StateMachineDoesNotExist",
318
+ $fault: "client",
319
+ ...opts,
320
+ });
321
+ Object.setPrototypeOf(this, StateMachineDoesNotExist.prototype);
322
+ }
323
+ }
324
+ exports.StateMachineDoesNotExist = StateMachineDoesNotExist;
325
+ class InvalidToken extends SFNServiceException_1.SFNServiceException {
326
+ name = "InvalidToken";
327
+ $fault = "client";
328
+ constructor(opts) {
329
+ super({
330
+ name: "InvalidToken",
331
+ $fault: "client",
332
+ ...opts,
333
+ });
334
+ Object.setPrototypeOf(this, InvalidToken.prototype);
335
+ }
336
+ }
337
+ exports.InvalidToken = InvalidToken;
338
+ class ExecutionLimitExceeded extends SFNServiceException_1.SFNServiceException {
339
+ name = "ExecutionLimitExceeded";
340
+ $fault = "client";
341
+ constructor(opts) {
342
+ super({
343
+ name: "ExecutionLimitExceeded",
344
+ $fault: "client",
345
+ ...opts,
346
+ });
347
+ Object.setPrototypeOf(this, ExecutionLimitExceeded.prototype);
348
+ }
349
+ }
350
+ exports.ExecutionLimitExceeded = ExecutionLimitExceeded;
351
+ class ExecutionNotRedrivable extends SFNServiceException_1.SFNServiceException {
352
+ name = "ExecutionNotRedrivable";
353
+ $fault = "client";
354
+ constructor(opts) {
355
+ super({
356
+ name: "ExecutionNotRedrivable",
357
+ $fault: "client",
358
+ ...opts,
359
+ });
360
+ Object.setPrototypeOf(this, ExecutionNotRedrivable.prototype);
361
+ }
362
+ }
363
+ exports.ExecutionNotRedrivable = ExecutionNotRedrivable;
364
+ class TaskDoesNotExist extends SFNServiceException_1.SFNServiceException {
365
+ name = "TaskDoesNotExist";
366
+ $fault = "client";
367
+ constructor(opts) {
368
+ super({
369
+ name: "TaskDoesNotExist",
370
+ $fault: "client",
371
+ ...opts,
372
+ });
373
+ Object.setPrototypeOf(this, TaskDoesNotExist.prototype);
374
+ }
375
+ }
376
+ exports.TaskDoesNotExist = TaskDoesNotExist;
377
+ class TaskTimedOut extends SFNServiceException_1.SFNServiceException {
378
+ name = "TaskTimedOut";
379
+ $fault = "client";
380
+ constructor(opts) {
381
+ super({
382
+ name: "TaskTimedOut",
383
+ $fault: "client",
384
+ ...opts,
385
+ });
386
+ Object.setPrototypeOf(this, TaskTimedOut.prototype);
387
+ }
388
+ }
389
+ exports.TaskTimedOut = TaskTimedOut;
390
+ class InvalidOutput extends SFNServiceException_1.SFNServiceException {
391
+ name = "InvalidOutput";
392
+ $fault = "client";
393
+ constructor(opts) {
394
+ super({
395
+ name: "InvalidOutput",
396
+ $fault: "client",
397
+ ...opts,
398
+ });
399
+ Object.setPrototypeOf(this, InvalidOutput.prototype);
400
+ }
401
+ }
402
+ exports.InvalidOutput = InvalidOutput;
403
+ class ExecutionAlreadyExists extends SFNServiceException_1.SFNServiceException {
404
+ name = "ExecutionAlreadyExists";
405
+ $fault = "client";
406
+ constructor(opts) {
407
+ super({
408
+ name: "ExecutionAlreadyExists",
409
+ $fault: "client",
410
+ ...opts,
411
+ });
412
+ Object.setPrototypeOf(this, ExecutionAlreadyExists.prototype);
413
+ }
414
+ }
415
+ exports.ExecutionAlreadyExists = ExecutionAlreadyExists;
416
+ class InvalidExecutionInput extends SFNServiceException_1.SFNServiceException {
417
+ name = "InvalidExecutionInput";
418
+ $fault = "client";
419
+ constructor(opts) {
420
+ super({
421
+ name: "InvalidExecutionInput",
422
+ $fault: "client",
423
+ ...opts,
424
+ });
425
+ Object.setPrototypeOf(this, InvalidExecutionInput.prototype);
426
+ }
427
+ }
428
+ exports.InvalidExecutionInput = InvalidExecutionInput;
429
+ class MissingRequiredParameter extends SFNServiceException_1.SFNServiceException {
430
+ name = "MissingRequiredParameter";
431
+ $fault = "client";
432
+ constructor(opts) {
433
+ super({
434
+ name: "MissingRequiredParameter",
435
+ $fault: "client",
436
+ ...opts,
437
+ });
438
+ Object.setPrototypeOf(this, MissingRequiredParameter.prototype);
439
+ }
440
+ }
441
+ exports.MissingRequiredParameter = MissingRequiredParameter;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2016-11-23",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsJson1_0Protocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.sfn",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  xmlNamespace: "http://swf.amazonaws.com/doc/2015-07-20/",
33
35
  version: "2016-11-23",
34
36
  serviceTarget: "AWSStepFunctions",