@aws-sdk/client-sfn 3.616.0 → 3.620.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/README.md CHANGED
@@ -8,7 +8,7 @@ AWS SDK for JavaScript SFN Client for Node.js, Browser and React Native.
8
8
 
9
9
  <fullname>Step Functions</fullname>
10
10
 
11
- <p>Step Functions is a service that lets you coordinate the components of distributed applications
11
+ <p>Step Functions coordinates the components of distributed applications
12
12
  and microservices using visual workflows.</p>
13
13
  <p>You can use Step Functions to build applications from individual components, each of which performs
14
14
  a discrete function, or <i>task</i>, allowing you to scale and change
package/dist-cjs/index.js CHANGED
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  // src/index.ts
22
22
  var src_exports = {};
23
23
  __export(src_exports, {
24
+ ActivityAlreadyExists: () => ActivityAlreadyExists,
24
25
  ActivityDoesNotExist: () => ActivityDoesNotExist,
25
26
  ActivityFailedEventDetailsFilterSensitiveLog: () => ActivityFailedEventDetailsFilterSensitiveLog,
26
27
  ActivityLimitExceeded: () => ActivityLimitExceeded,
@@ -49,6 +50,7 @@ __export(src_exports, {
49
50
  DescribeStateMachineForExecutionCommand: () => DescribeStateMachineForExecutionCommand,
50
51
  DescribeStateMachineForExecutionOutputFilterSensitiveLog: () => DescribeStateMachineForExecutionOutputFilterSensitiveLog,
51
52
  DescribeStateMachineOutputFilterSensitiveLog: () => DescribeStateMachineOutputFilterSensitiveLog,
53
+ EncryptionType: () => EncryptionType,
52
54
  ExecutionAbortedEventDetailsFilterSensitiveLog: () => ExecutionAbortedEventDetailsFilterSensitiveLog,
53
55
  ExecutionAlreadyExists: () => ExecutionAlreadyExists,
54
56
  ExecutionDoesNotExist: () => ExecutionDoesNotExist,
@@ -67,16 +69,22 @@ __export(src_exports, {
67
69
  GetExecutionHistoryOutputFilterSensitiveLog: () => GetExecutionHistoryOutputFilterSensitiveLog,
68
70
  HistoryEventFilterSensitiveLog: () => HistoryEventFilterSensitiveLog,
69
71
  HistoryEventType: () => HistoryEventType,
72
+ IncludedData: () => IncludedData,
70
73
  InspectionDataFilterSensitiveLog: () => InspectionDataFilterSensitiveLog,
71
74
  InspectionLevel: () => InspectionLevel,
72
75
  InvalidArn: () => InvalidArn,
73
76
  InvalidDefinition: () => InvalidDefinition,
77
+ InvalidEncryptionConfiguration: () => InvalidEncryptionConfiguration,
74
78
  InvalidExecutionInput: () => InvalidExecutionInput,
75
79
  InvalidLoggingConfiguration: () => InvalidLoggingConfiguration,
76
80
  InvalidName: () => InvalidName,
77
81
  InvalidOutput: () => InvalidOutput,
78
82
  InvalidToken: () => InvalidToken,
79
83
  InvalidTracingConfiguration: () => InvalidTracingConfiguration,
84
+ KmsAccessDeniedException: () => KmsAccessDeniedException,
85
+ KmsInvalidStateException: () => KmsInvalidStateException,
86
+ KmsKeyState: () => KmsKeyState,
87
+ KmsThrottlingException: () => KmsThrottlingException,
80
88
  LambdaFunctionFailedEventDetailsFilterSensitiveLog: () => LambdaFunctionFailedEventDetailsFilterSensitiveLog,
81
89
  LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog: () => LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog,
82
90
  LambdaFunctionScheduledEventDetailsFilterSensitiveLog: () => LambdaFunctionScheduledEventDetailsFilterSensitiveLog,
@@ -335,6 +343,23 @@ __name(_SFNServiceException, "SFNServiceException");
335
343
  var SFNServiceException = _SFNServiceException;
336
344
 
337
345
  // src/models/models_0.ts
346
+ var _ActivityAlreadyExists = class _ActivityAlreadyExists extends SFNServiceException {
347
+ /**
348
+ * @internal
349
+ */
350
+ constructor(opts) {
351
+ super({
352
+ name: "ActivityAlreadyExists",
353
+ $fault: "client",
354
+ ...opts
355
+ });
356
+ this.name = "ActivityAlreadyExists";
357
+ this.$fault = "client";
358
+ Object.setPrototypeOf(this, _ActivityAlreadyExists.prototype);
359
+ }
360
+ };
361
+ __name(_ActivityAlreadyExists, "ActivityAlreadyExists");
362
+ var ActivityAlreadyExists = _ActivityAlreadyExists;
338
363
  var _ActivityDoesNotExist = class _ActivityDoesNotExist extends SFNServiceException {
339
364
  /**
340
365
  * @internal
@@ -386,6 +411,27 @@ var _ActivityWorkerLimitExceeded = class _ActivityWorkerLimitExceeded extends SF
386
411
  };
387
412
  __name(_ActivityWorkerLimitExceeded, "ActivityWorkerLimitExceeded");
388
413
  var ActivityWorkerLimitExceeded = _ActivityWorkerLimitExceeded;
414
+ var EncryptionType = {
415
+ AWS_OWNED_KEY: "AWS_OWNED_KEY",
416
+ CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY"
417
+ };
418
+ var _InvalidEncryptionConfiguration = class _InvalidEncryptionConfiguration extends SFNServiceException {
419
+ /**
420
+ * @internal
421
+ */
422
+ constructor(opts) {
423
+ super({
424
+ name: "InvalidEncryptionConfiguration",
425
+ $fault: "client",
426
+ ...opts
427
+ });
428
+ this.name = "InvalidEncryptionConfiguration";
429
+ this.$fault = "client";
430
+ Object.setPrototypeOf(this, _InvalidEncryptionConfiguration.prototype);
431
+ }
432
+ };
433
+ __name(_InvalidEncryptionConfiguration, "InvalidEncryptionConfiguration");
434
+ var InvalidEncryptionConfiguration = _InvalidEncryptionConfiguration;
389
435
  var _InvalidName = class _InvalidName extends SFNServiceException {
390
436
  /**
391
437
  * @internal
@@ -403,6 +449,40 @@ var _InvalidName = class _InvalidName extends SFNServiceException {
403
449
  };
404
450
  __name(_InvalidName, "InvalidName");
405
451
  var InvalidName = _InvalidName;
452
+ var _KmsAccessDeniedException = class _KmsAccessDeniedException extends SFNServiceException {
453
+ /**
454
+ * @internal
455
+ */
456
+ constructor(opts) {
457
+ super({
458
+ name: "KmsAccessDeniedException",
459
+ $fault: "client",
460
+ ...opts
461
+ });
462
+ this.name = "KmsAccessDeniedException";
463
+ this.$fault = "client";
464
+ Object.setPrototypeOf(this, _KmsAccessDeniedException.prototype);
465
+ }
466
+ };
467
+ __name(_KmsAccessDeniedException, "KmsAccessDeniedException");
468
+ var KmsAccessDeniedException = _KmsAccessDeniedException;
469
+ var _KmsThrottlingException = class _KmsThrottlingException extends SFNServiceException {
470
+ /**
471
+ * @internal
472
+ */
473
+ constructor(opts) {
474
+ super({
475
+ name: "KmsThrottlingException",
476
+ $fault: "client",
477
+ ...opts
478
+ });
479
+ this.name = "KmsThrottlingException";
480
+ this.$fault = "client";
481
+ Object.setPrototypeOf(this, _KmsThrottlingException.prototype);
482
+ }
483
+ };
484
+ __name(_KmsThrottlingException, "KmsThrottlingException");
485
+ var KmsThrottlingException = _KmsThrottlingException;
406
486
  var _TooManyTags = class _TooManyTags extends SFNServiceException {
407
487
  /**
408
488
  * @internal
@@ -643,6 +723,10 @@ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extend
643
723
  };
644
724
  __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
645
725
  var ServiceQuotaExceededException = _ServiceQuotaExceededException;
726
+ var IncludedData = {
727
+ ALL_DATA: "ALL_DATA",
728
+ METADATA_ONLY: "METADATA_ONLY"
729
+ };
646
730
  var ExecutionRedriveStatus = {
647
731
  NOT_REDRIVABLE: "NOT_REDRIVABLE",
648
732
  REDRIVABLE: "REDRIVABLE",
@@ -673,6 +757,31 @@ var _ExecutionDoesNotExist = class _ExecutionDoesNotExist extends SFNServiceExce
673
757
  };
674
758
  __name(_ExecutionDoesNotExist, "ExecutionDoesNotExist");
675
759
  var ExecutionDoesNotExist = _ExecutionDoesNotExist;
760
+ var KmsKeyState = {
761
+ CREATING: "CREATING",
762
+ DISABLED: "DISABLED",
763
+ PENDING_DELETION: "PENDING_DELETION",
764
+ PENDING_IMPORT: "PENDING_IMPORT",
765
+ UNAVAILABLE: "UNAVAILABLE"
766
+ };
767
+ var _KmsInvalidStateException = class _KmsInvalidStateException extends SFNServiceException {
768
+ /**
769
+ * @internal
770
+ */
771
+ constructor(opts) {
772
+ super({
773
+ name: "KmsInvalidStateException",
774
+ $fault: "client",
775
+ ...opts
776
+ });
777
+ this.name = "KmsInvalidStateException";
778
+ this.$fault = "client";
779
+ Object.setPrototypeOf(this, _KmsInvalidStateException.prototype);
780
+ this.kmsKeyState = opts.kmsKeyState;
781
+ }
782
+ };
783
+ __name(_KmsInvalidStateException, "KmsInvalidStateException");
784
+ var KmsInvalidStateException = _KmsInvalidStateException;
676
785
  var MapRunStatus = {
677
786
  ABORTED: "ABORTED",
678
787
  FAILED: "FAILED",
@@ -1990,12 +2099,24 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1990
2099
  };
1991
2100
  const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1992
2101
  switch (errorCode) {
2102
+ case "ActivityAlreadyExists":
2103
+ case "com.amazonaws.sfn#ActivityAlreadyExists":
2104
+ throw await de_ActivityAlreadyExistsRes(parsedOutput, context);
1993
2105
  case "ActivityLimitExceeded":
1994
2106
  case "com.amazonaws.sfn#ActivityLimitExceeded":
1995
2107
  throw await de_ActivityLimitExceededRes(parsedOutput, context);
2108
+ case "InvalidEncryptionConfiguration":
2109
+ case "com.amazonaws.sfn#InvalidEncryptionConfiguration":
2110
+ throw await de_InvalidEncryptionConfigurationRes(parsedOutput, context);
1996
2111
  case "InvalidName":
1997
2112
  case "com.amazonaws.sfn#InvalidName":
1998
2113
  throw await de_InvalidNameRes(parsedOutput, context);
2114
+ case "KmsAccessDeniedException":
2115
+ case "com.amazonaws.sfn#KmsAccessDeniedException":
2116
+ throw await de_KmsAccessDeniedExceptionRes(parsedOutput, context);
2117
+ case "KmsThrottlingException":
2118
+ case "com.amazonaws.sfn#KmsThrottlingException":
2119
+ throw await de_KmsThrottlingExceptionRes(parsedOutput, context);
1999
2120
  case "TooManyTags":
2000
2121
  case "com.amazonaws.sfn#TooManyTags":
2001
2122
  throw await de_TooManyTagsRes(parsedOutput, context);
@@ -2041,6 +2162,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2041
2162
  case "ExecutionDoesNotExist":
2042
2163
  case "com.amazonaws.sfn#ExecutionDoesNotExist":
2043
2164
  throw await de_ExecutionDoesNotExistRes(parsedOutput, context);
2165
+ case "KmsInvalidStateException":
2166
+ case "com.amazonaws.sfn#KmsInvalidStateException":
2167
+ throw await de_KmsInvalidStateExceptionRes(parsedOutput, context);
2044
2168
  case "StateMachineDoesNotExist":
2045
2169
  case "com.amazonaws.sfn#StateMachineDoesNotExist":
2046
2170
  throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
@@ -2083,6 +2207,15 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2083
2207
  });
2084
2208
  }
2085
2209
  }, "de_CommandError");
2210
+ var de_ActivityAlreadyExistsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2211
+ const body = parsedOutput.body;
2212
+ const deserialized = (0, import_smithy_client._json)(body);
2213
+ const exception = new ActivityAlreadyExists({
2214
+ $metadata: deserializeMetadata(parsedOutput),
2215
+ ...deserialized
2216
+ });
2217
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2218
+ }, "de_ActivityAlreadyExistsRes");
2086
2219
  var de_ActivityDoesNotExistRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2087
2220
  const body = parsedOutput.body;
2088
2221
  const deserialized = (0, import_smithy_client._json)(body);
@@ -2173,6 +2306,15 @@ var de_InvalidDefinitionRes = /* @__PURE__ */ __name(async (parsedOutput, contex
2173
2306
  });
2174
2307
  return (0, import_smithy_client.decorateServiceException)(exception, body);
2175
2308
  }, "de_InvalidDefinitionRes");
2309
+ var de_InvalidEncryptionConfigurationRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2310
+ const body = parsedOutput.body;
2311
+ const deserialized = (0, import_smithy_client._json)(body);
2312
+ const exception = new InvalidEncryptionConfiguration({
2313
+ $metadata: deserializeMetadata(parsedOutput),
2314
+ ...deserialized
2315
+ });
2316
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2317
+ }, "de_InvalidEncryptionConfigurationRes");
2176
2318
  var de_InvalidExecutionInputRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2177
2319
  const body = parsedOutput.body;
2178
2320
  const deserialized = (0, import_smithy_client._json)(body);
@@ -2227,6 +2369,33 @@ var de_InvalidTracingConfigurationRes = /* @__PURE__ */ __name(async (parsedOutp
2227
2369
  });
2228
2370
  return (0, import_smithy_client.decorateServiceException)(exception, body);
2229
2371
  }, "de_InvalidTracingConfigurationRes");
2372
+ var de_KmsAccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2373
+ const body = parsedOutput.body;
2374
+ const deserialized = (0, import_smithy_client._json)(body);
2375
+ const exception = new KmsAccessDeniedException({
2376
+ $metadata: deserializeMetadata(parsedOutput),
2377
+ ...deserialized
2378
+ });
2379
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2380
+ }, "de_KmsAccessDeniedExceptionRes");
2381
+ var de_KmsInvalidStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2382
+ const body = parsedOutput.body;
2383
+ const deserialized = (0, import_smithy_client._json)(body);
2384
+ const exception = new KmsInvalidStateException({
2385
+ $metadata: deserializeMetadata(parsedOutput),
2386
+ ...deserialized
2387
+ });
2388
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2389
+ }, "de_KmsInvalidStateExceptionRes");
2390
+ var de_KmsThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2391
+ const body = parsedOutput.body;
2392
+ const deserialized = (0, import_smithy_client._json)(body);
2393
+ const exception = new KmsThrottlingException({
2394
+ $metadata: deserializeMetadata(parsedOutput),
2395
+ ...deserialized
2396
+ });
2397
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2398
+ }, "de_KmsThrottlingExceptionRes");
2230
2399
  var de_MissingRequiredParameterRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2231
2400
  const body = parsedOutput.body;
2232
2401
  const deserialized = (0, import_smithy_client._json)(body);
@@ -2385,6 +2554,7 @@ var de_DescribeActivityOutput = /* @__PURE__ */ __name((output, context) => {
2385
2554
  return (0, import_smithy_client.take)(output, {
2386
2555
  activityArn: import_smithy_client.expectString,
2387
2556
  creationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2557
+ encryptionConfiguration: import_smithy_client._json,
2388
2558
  name: import_smithy_client.expectString
2389
2559
  });
2390
2560
  }, "de_DescribeActivityOutput");
@@ -2441,6 +2611,7 @@ var de_DescribeStateMachineAliasOutput = /* @__PURE__ */ __name((output, context
2441
2611
  var de_DescribeStateMachineForExecutionOutput = /* @__PURE__ */ __name((output, context) => {
2442
2612
  return (0, import_smithy_client.take)(output, {
2443
2613
  definition: import_smithy_client.expectString,
2614
+ encryptionConfiguration: import_smithy_client._json,
2444
2615
  label: import_smithy_client.expectString,
2445
2616
  loggingConfiguration: import_smithy_client._json,
2446
2617
  mapRunArn: import_smithy_client.expectString,
@@ -2457,6 +2628,7 @@ var de_DescribeStateMachineOutput = /* @__PURE__ */ __name((output, context) =>
2457
2628
  creationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2458
2629
  definition: import_smithy_client.expectString,
2459
2630
  description: import_smithy_client.expectString,
2631
+ encryptionConfiguration: import_smithy_client._json,
2460
2632
  label: import_smithy_client.expectString,
2461
2633
  loggingConfiguration: import_smithy_client._json,
2462
2634
  name: import_smithy_client.expectString,
@@ -3424,10 +3596,15 @@ var paginateListStateMachines = (0, import_core.createPaginator)(SFNClient, List
3424
3596
  paginateListExecutions,
3425
3597
  paginateListMapRuns,
3426
3598
  paginateListStateMachines,
3599
+ ActivityAlreadyExists,
3427
3600
  ActivityDoesNotExist,
3428
3601
  ActivityLimitExceeded,
3429
3602
  ActivityWorkerLimitExceeded,
3603
+ EncryptionType,
3604
+ InvalidEncryptionConfiguration,
3430
3605
  InvalidName,
3606
+ KmsAccessDeniedException,
3607
+ KmsThrottlingException,
3431
3608
  TooManyTags,
3432
3609
  ConflictException,
3433
3610
  LogLevel,
@@ -3444,9 +3621,12 @@ var paginateListStateMachines = (0, import_core.createPaginator)(SFNClient, List
3444
3621
  ValidationException,
3445
3622
  ResourceNotFound,
3446
3623
  ServiceQuotaExceededException,
3624
+ IncludedData,
3447
3625
  ExecutionRedriveStatus,
3448
3626
  ExecutionStatus,
3449
3627
  ExecutionDoesNotExist,
3628
+ KmsKeyState,
3629
+ KmsInvalidStateException,
3450
3630
  MapRunStatus,
3451
3631
  StateMachineStatus,
3452
3632
  StateMachineDoesNotExist,
@@ -1,5 +1,17 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { SFNServiceException as __BaseException } from "./SFNServiceException";
3
+ export class ActivityAlreadyExists extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "ActivityAlreadyExists",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "ActivityAlreadyExists";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, ActivityAlreadyExists.prototype);
13
+ }
14
+ }
3
15
  export class ActivityDoesNotExist extends __BaseException {
4
16
  constructor(opts) {
5
17
  super({
@@ -36,6 +48,22 @@ export class ActivityWorkerLimitExceeded extends __BaseException {
36
48
  Object.setPrototypeOf(this, ActivityWorkerLimitExceeded.prototype);
37
49
  }
38
50
  }
51
+ export const EncryptionType = {
52
+ AWS_OWNED_KEY: "AWS_OWNED_KEY",
53
+ CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
54
+ };
55
+ export class InvalidEncryptionConfiguration extends __BaseException {
56
+ constructor(opts) {
57
+ super({
58
+ name: "InvalidEncryptionConfiguration",
59
+ $fault: "client",
60
+ ...opts,
61
+ });
62
+ this.name = "InvalidEncryptionConfiguration";
63
+ this.$fault = "client";
64
+ Object.setPrototypeOf(this, InvalidEncryptionConfiguration.prototype);
65
+ }
66
+ }
39
67
  export class InvalidName extends __BaseException {
40
68
  constructor(opts) {
41
69
  super({
@@ -48,6 +76,30 @@ export class InvalidName extends __BaseException {
48
76
  Object.setPrototypeOf(this, InvalidName.prototype);
49
77
  }
50
78
  }
79
+ export class KmsAccessDeniedException extends __BaseException {
80
+ constructor(opts) {
81
+ super({
82
+ name: "KmsAccessDeniedException",
83
+ $fault: "client",
84
+ ...opts,
85
+ });
86
+ this.name = "KmsAccessDeniedException";
87
+ this.$fault = "client";
88
+ Object.setPrototypeOf(this, KmsAccessDeniedException.prototype);
89
+ }
90
+ }
91
+ export class KmsThrottlingException extends __BaseException {
92
+ constructor(opts) {
93
+ super({
94
+ name: "KmsThrottlingException",
95
+ $fault: "client",
96
+ ...opts,
97
+ });
98
+ this.name = "KmsThrottlingException";
99
+ this.$fault = "client";
100
+ Object.setPrototypeOf(this, KmsThrottlingException.prototype);
101
+ }
102
+ }
51
103
  export class TooManyTags extends __BaseException {
52
104
  constructor(opts) {
53
105
  super({
@@ -223,6 +275,10 @@ export class ServiceQuotaExceededException extends __BaseException {
223
275
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
224
276
  }
225
277
  }
278
+ export const IncludedData = {
279
+ ALL_DATA: "ALL_DATA",
280
+ METADATA_ONLY: "METADATA_ONLY",
281
+ };
226
282
  export const ExecutionRedriveStatus = {
227
283
  NOT_REDRIVABLE: "NOT_REDRIVABLE",
228
284
  REDRIVABLE: "REDRIVABLE",
@@ -248,6 +304,26 @@ export class ExecutionDoesNotExist extends __BaseException {
248
304
  Object.setPrototypeOf(this, ExecutionDoesNotExist.prototype);
249
305
  }
250
306
  }
307
+ export const KmsKeyState = {
308
+ CREATING: "CREATING",
309
+ DISABLED: "DISABLED",
310
+ PENDING_DELETION: "PENDING_DELETION",
311
+ PENDING_IMPORT: "PENDING_IMPORT",
312
+ UNAVAILABLE: "UNAVAILABLE",
313
+ };
314
+ export class KmsInvalidStateException extends __BaseException {
315
+ constructor(opts) {
316
+ super({
317
+ name: "KmsInvalidStateException",
318
+ $fault: "client",
319
+ ...opts,
320
+ });
321
+ this.name = "KmsInvalidStateException";
322
+ this.$fault = "client";
323
+ Object.setPrototypeOf(this, KmsInvalidStateException.prototype);
324
+ this.kmsKeyState = opts.kmsKeyState;
325
+ }
326
+ }
251
327
  export const MapRunStatus = {
252
328
  ABORTED: "ABORTED",
253
329
  FAILED: "FAILED",
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
2
2
  import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
- import { ActivityDoesNotExist, ActivityLimitExceeded, ActivityWorkerLimitExceeded, ConflictException, ExecutionAlreadyExists, ExecutionDoesNotExist, ExecutionLimitExceeded, ExecutionNotRedrivable, InvalidArn, InvalidDefinition, InvalidExecutionInput, InvalidLoggingConfiguration, InvalidName, InvalidOutput, InvalidToken, InvalidTracingConfiguration, MissingRequiredParameter, ResourceNotFound, ServiceQuotaExceededException, StateMachineAlreadyExists, StateMachineDeleting, StateMachineDoesNotExist, StateMachineLimitExceeded, StateMachineTypeNotSupported, TaskDoesNotExist, TaskTimedOut, TooManyTags, ValidationException, } from "../models/models_0";
5
+ import { ActivityAlreadyExists, ActivityDoesNotExist, ActivityLimitExceeded, ActivityWorkerLimitExceeded, ConflictException, ExecutionAlreadyExists, ExecutionDoesNotExist, ExecutionLimitExceeded, ExecutionNotRedrivable, InvalidArn, InvalidDefinition, InvalidEncryptionConfiguration, InvalidExecutionInput, InvalidLoggingConfiguration, InvalidName, InvalidOutput, InvalidToken, InvalidTracingConfiguration, KmsAccessDeniedException, KmsInvalidStateException, KmsThrottlingException, MissingRequiredParameter, ResourceNotFound, ServiceQuotaExceededException, StateMachineAlreadyExists, StateMachineDeleting, StateMachineDoesNotExist, StateMachineLimitExceeded, StateMachineTypeNotSupported, TaskDoesNotExist, TaskTimedOut, TooManyTags, ValidationException, } from "../models/models_0";
6
6
  import { SFNServiceException as __BaseException } from "../models/SFNServiceException";
7
7
  export const se_CreateActivityCommand = async (input, context) => {
8
8
  const headers = sharedHeaders("CreateActivity");
@@ -728,12 +728,24 @@ const de_CommandError = async (output, context) => {
728
728
  };
729
729
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
730
730
  switch (errorCode) {
731
+ case "ActivityAlreadyExists":
732
+ case "com.amazonaws.sfn#ActivityAlreadyExists":
733
+ throw await de_ActivityAlreadyExistsRes(parsedOutput, context);
731
734
  case "ActivityLimitExceeded":
732
735
  case "com.amazonaws.sfn#ActivityLimitExceeded":
733
736
  throw await de_ActivityLimitExceededRes(parsedOutput, context);
737
+ case "InvalidEncryptionConfiguration":
738
+ case "com.amazonaws.sfn#InvalidEncryptionConfiguration":
739
+ throw await de_InvalidEncryptionConfigurationRes(parsedOutput, context);
734
740
  case "InvalidName":
735
741
  case "com.amazonaws.sfn#InvalidName":
736
742
  throw await de_InvalidNameRes(parsedOutput, context);
743
+ case "KmsAccessDeniedException":
744
+ case "com.amazonaws.sfn#KmsAccessDeniedException":
745
+ throw await de_KmsAccessDeniedExceptionRes(parsedOutput, context);
746
+ case "KmsThrottlingException":
747
+ case "com.amazonaws.sfn#KmsThrottlingException":
748
+ throw await de_KmsThrottlingExceptionRes(parsedOutput, context);
737
749
  case "TooManyTags":
738
750
  case "com.amazonaws.sfn#TooManyTags":
739
751
  throw await de_TooManyTagsRes(parsedOutput, context);
@@ -779,6 +791,9 @@ const de_CommandError = async (output, context) => {
779
791
  case "ExecutionDoesNotExist":
780
792
  case "com.amazonaws.sfn#ExecutionDoesNotExist":
781
793
  throw await de_ExecutionDoesNotExistRes(parsedOutput, context);
794
+ case "KmsInvalidStateException":
795
+ case "com.amazonaws.sfn#KmsInvalidStateException":
796
+ throw await de_KmsInvalidStateExceptionRes(parsedOutput, context);
782
797
  case "StateMachineDoesNotExist":
783
798
  case "com.amazonaws.sfn#StateMachineDoesNotExist":
784
799
  throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
@@ -821,6 +836,15 @@ const de_CommandError = async (output, context) => {
821
836
  });
822
837
  }
823
838
  };
839
+ const de_ActivityAlreadyExistsRes = async (parsedOutput, context) => {
840
+ const body = parsedOutput.body;
841
+ const deserialized = _json(body);
842
+ const exception = new ActivityAlreadyExists({
843
+ $metadata: deserializeMetadata(parsedOutput),
844
+ ...deserialized,
845
+ });
846
+ return __decorateServiceException(exception, body);
847
+ };
824
848
  const de_ActivityDoesNotExistRes = async (parsedOutput, context) => {
825
849
  const body = parsedOutput.body;
826
850
  const deserialized = _json(body);
@@ -911,6 +935,15 @@ const de_InvalidDefinitionRes = async (parsedOutput, context) => {
911
935
  });
912
936
  return __decorateServiceException(exception, body);
913
937
  };
938
+ const de_InvalidEncryptionConfigurationRes = async (parsedOutput, context) => {
939
+ const body = parsedOutput.body;
940
+ const deserialized = _json(body);
941
+ const exception = new InvalidEncryptionConfiguration({
942
+ $metadata: deserializeMetadata(parsedOutput),
943
+ ...deserialized,
944
+ });
945
+ return __decorateServiceException(exception, body);
946
+ };
914
947
  const de_InvalidExecutionInputRes = async (parsedOutput, context) => {
915
948
  const body = parsedOutput.body;
916
949
  const deserialized = _json(body);
@@ -965,6 +998,33 @@ const de_InvalidTracingConfigurationRes = async (parsedOutput, context) => {
965
998
  });
966
999
  return __decorateServiceException(exception, body);
967
1000
  };
1001
+ const de_KmsAccessDeniedExceptionRes = async (parsedOutput, context) => {
1002
+ const body = parsedOutput.body;
1003
+ const deserialized = _json(body);
1004
+ const exception = new KmsAccessDeniedException({
1005
+ $metadata: deserializeMetadata(parsedOutput),
1006
+ ...deserialized,
1007
+ });
1008
+ return __decorateServiceException(exception, body);
1009
+ };
1010
+ const de_KmsInvalidStateExceptionRes = async (parsedOutput, context) => {
1011
+ const body = parsedOutput.body;
1012
+ const deserialized = _json(body);
1013
+ const exception = new KmsInvalidStateException({
1014
+ $metadata: deserializeMetadata(parsedOutput),
1015
+ ...deserialized,
1016
+ });
1017
+ return __decorateServiceException(exception, body);
1018
+ };
1019
+ const de_KmsThrottlingExceptionRes = async (parsedOutput, context) => {
1020
+ const body = parsedOutput.body;
1021
+ const deserialized = _json(body);
1022
+ const exception = new KmsThrottlingException({
1023
+ $metadata: deserializeMetadata(parsedOutput),
1024
+ ...deserialized,
1025
+ });
1026
+ return __decorateServiceException(exception, body);
1027
+ };
968
1028
  const de_MissingRequiredParameterRes = async (parsedOutput, context) => {
969
1029
  const body = parsedOutput.body;
970
1030
  const deserialized = _json(body);
@@ -1125,6 +1185,7 @@ const de_DescribeActivityOutput = (output, context) => {
1125
1185
  return take(output, {
1126
1186
  activityArn: __expectString,
1127
1187
  creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1188
+ encryptionConfiguration: _json,
1128
1189
  name: __expectString,
1129
1190
  });
1130
1191
  };
@@ -1181,6 +1242,7 @@ const de_DescribeStateMachineAliasOutput = (output, context) => {
1181
1242
  const de_DescribeStateMachineForExecutionOutput = (output, context) => {
1182
1243
  return take(output, {
1183
1244
  definition: __expectString,
1245
+ encryptionConfiguration: _json,
1184
1246
  label: __expectString,
1185
1247
  loggingConfiguration: _json,
1186
1248
  mapRunArn: __expectString,
@@ -1197,6 +1259,7 @@ const de_DescribeStateMachineOutput = (output, context) => {
1197
1259
  creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1198
1260
  definition: __expectString,
1199
1261
  description: __expectString,
1262
+ encryptionConfiguration: _json,
1200
1263
  label: __expectString,
1201
1264
  loggingConfiguration: _json,
1202
1265
  name: __expectString,
@@ -266,7 +266,7 @@ export interface SFN {
266
266
  }
267
267
  /**
268
268
  * <fullname>Step Functions</fullname>
269
- * <p>Step Functions is a service that lets you coordinate the components of distributed applications
269
+ * <p>Step Functions coordinates the components of distributed applications
270
270
  * and microservices using visual workflows.</p>
271
271
  * <p>You can use Step Functions to build applications from individual components, each of which performs
272
272
  * a discrete function, or <i>task</i>, allowing you to scale and change
@@ -189,7 +189,7 @@ export interface SFNClientResolvedConfig extends SFNClientResolvedConfigType {
189
189
  }
190
190
  /**
191
191
  * <fullname>Step Functions</fullname>
192
- * <p>Step Functions is a service that lets you coordinate the components of distributed applications
192
+ * <p>Step Functions coordinates the components of distributed applications
193
193
  * and microservices using visual workflows.</p>
194
194
  * <p>You can use Step Functions to build applications from individual components, each of which performs
195
195
  * a discrete function, or <i>task</i>, allowing you to scale and change
@@ -58,6 +58,11 @@ declare const CreateActivityCommand_base: {
58
58
  * value: "STRING_VALUE",
59
59
  * },
60
60
  * ],
61
+ * encryptionConfiguration: { // EncryptionConfiguration
62
+ * kmsKeyId: "STRING_VALUE",
63
+ * kmsDataKeyReusePeriodSeconds: Number("int"),
64
+ * type: "AWS_OWNED_KEY" || "CUSTOMER_MANAGED_KMS_KEY", // required
65
+ * },
61
66
  * };
62
67
  * const command = new CreateActivityCommand(input);
63
68
  * const response = await client.send(command);
@@ -74,13 +79,25 @@ declare const CreateActivityCommand_base: {
74
79
  * @see {@link CreateActivityCommandOutput} for command's `response` shape.
75
80
  * @see {@link SFNClientResolvedConfig | config} for SFNClient's `config` shape.
76
81
  *
82
+ * @throws {@link ActivityAlreadyExists} (client fault)
83
+ * <p>Activity already exists. <code>EncryptionConfiguration</code> may not be updated.</p>
84
+ *
77
85
  * @throws {@link ActivityLimitExceeded} (client fault)
78
86
  * <p>The maximum number of activities has been reached. Existing activities must be deleted
79
87
  * before a new activity can be created.</p>
80
88
  *
89
+ * @throws {@link InvalidEncryptionConfiguration} (client fault)
90
+ * <p>Received when <code>encryptionConfiguration</code> is specified but various conditions exist which make the configuration invalid. For example, if <code>type</code> is set to <code>CUSTOMER_MANAGED_KMS_KEY</code>, but <code>kmsKeyId</code> is null, or <code>kmsDataKeyReusePeriodSeconds</code> is not between 60 and 900, or the KMS key is not symmetric or inactive.</p>
91
+ *
81
92
  * @throws {@link InvalidName} (client fault)
82
93
  * <p>The provided name is not valid.</p>
83
94
  *
95
+ * @throws {@link KmsAccessDeniedException} (client fault)
96
+ * <p>Either your KMS key policy or API caller does not have the required permissions.</p>
97
+ *
98
+ * @throws {@link KmsThrottlingException} (client fault)
99
+ * <p>Received when KMS returns <code>ThrottlingException</code> for a KMS call that Step Functions makes on behalf of the caller.</p>
100
+ *
84
101
  * @throws {@link TooManyTags} (client fault)
85
102
  * <p>You've exceeded the number of tags allowed for a resource. See the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/limits.html"> Limits Topic</a> in the
86
103
  * Step Functions Developer Guide.</p>