@aws-sdk/client-sfn 3.450.0 → 3.454.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.
Files changed (33) hide show
  1. package/README.md +11 -0
  2. package/dist-cjs/SFN.js +2 -0
  3. package/dist-cjs/commands/RedriveExecutionCommand.js +51 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +41 -15
  6. package/dist-cjs/protocols/Aws_json1_0.js +82 -2
  7. package/dist-es/SFN.js +2 -0
  8. package/dist-es/commands/RedriveExecutionCommand.js +47 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/models/models_0.js +37 -12
  11. package/dist-es/protocols/Aws_json1_0.js +79 -1
  12. package/dist-types/SFN.d.ts +10 -0
  13. package/dist-types/SFNClient.d.ts +6 -2
  14. package/dist-types/commands/DeleteStateMachineCommand.d.ts +2 -2
  15. package/dist-types/commands/DescribeExecutionCommand.d.ts +7 -6
  16. package/dist-types/commands/DescribeMapRunCommand.d.ts +7 -1
  17. package/dist-types/commands/GetExecutionHistoryCommand.d.ts +8 -1
  18. package/dist-types/commands/ListExecutionsCommand.d.ts +6 -3
  19. package/dist-types/commands/RedriveExecutionCommand.d.ts +108 -0
  20. package/dist-types/commands/SendTaskFailureCommand.d.ts +4 -2
  21. package/dist-types/commands/SendTaskHeartbeatCommand.d.ts +5 -3
  22. package/dist-types/commands/SendTaskSuccessCommand.d.ts +4 -2
  23. package/dist-types/commands/index.d.ts +1 -0
  24. package/dist-types/index.d.ts +3 -0
  25. package/dist-types/models/models_0.d.ts +238 -14
  26. package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
  27. package/dist-types/ts3.4/SFN.d.ts +17 -0
  28. package/dist-types/ts3.4/SFNClient.d.ts +6 -0
  29. package/dist-types/ts3.4/commands/RedriveExecutionCommand.d.ts +38 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +59 -7
  32. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
  33. package/package.json +38 -36
@@ -250,9 +250,17 @@ export interface DescribeExecutionInput {
250
250
  export interface CloudWatchEventsExecutionDataDetails {
251
251
  included?: boolean;
252
252
  }
253
+ export declare const ExecutionRedriveStatus: {
254
+ readonly NOT_REDRIVABLE: "NOT_REDRIVABLE";
255
+ readonly REDRIVABLE: "REDRIVABLE";
256
+ readonly REDRIVABLE_BY_MAP_RUN: "REDRIVABLE_BY_MAP_RUN";
257
+ };
258
+ export type ExecutionRedriveStatus =
259
+ (typeof ExecutionRedriveStatus)[keyof typeof ExecutionRedriveStatus];
253
260
  export declare const ExecutionStatus: {
254
261
  readonly ABORTED: "ABORTED";
255
262
  readonly FAILED: "FAILED";
263
+ readonly PENDING_REDRIVE: "PENDING_REDRIVE";
256
264
  readonly RUNNING: "RUNNING";
257
265
  readonly SUCCEEDED: "SUCCEEDED";
258
266
  readonly TIMED_OUT: "TIMED_OUT";
@@ -276,6 +284,10 @@ export interface DescribeExecutionOutput {
276
284
  cause?: string;
277
285
  stateMachineVersionArn?: string;
278
286
  stateMachineAliasArn?: string;
287
+ redriveCount?: number;
288
+ redriveDate?: Date;
289
+ redriveStatus?: ExecutionRedriveStatus;
290
+ redriveStatusReason?: string;
279
291
  }
280
292
  export declare class ExecutionDoesNotExist extends __BaseException {
281
293
  readonly name: "ExecutionDoesNotExist";
@@ -296,6 +308,8 @@ export interface MapRunExecutionCounts {
296
308
  aborted: number | undefined;
297
309
  total: number | undefined;
298
310
  resultsWritten: number | undefined;
311
+ failuresNotRedrivable?: number;
312
+ pendingRedrive?: number;
299
313
  }
300
314
  export interface MapRunItemCounts {
301
315
  pending: number | undefined;
@@ -306,6 +320,8 @@ export interface MapRunItemCounts {
306
320
  aborted: number | undefined;
307
321
  total: number | undefined;
308
322
  resultsWritten: number | undefined;
323
+ failuresNotRedrivable?: number;
324
+ pendingRedrive?: number;
309
325
  }
310
326
  export declare const MapRunStatus: {
311
327
  readonly ABORTED: "ABORTED";
@@ -325,6 +341,8 @@ export interface DescribeMapRunOutput {
325
341
  toleratedFailureCount: number | undefined;
326
342
  itemCounts: MapRunItemCounts | undefined;
327
343
  executionCounts: MapRunExecutionCounts | undefined;
344
+ redriveCount?: number;
345
+ redriveDate?: Date;
328
346
  }
329
347
  export interface DescribeStateMachineInput {
330
348
  stateMachineArn: string | undefined;
@@ -405,6 +423,9 @@ export interface ExecutionFailedEventDetails {
405
423
  error?: string;
406
424
  cause?: string;
407
425
  }
426
+ export interface ExecutionRedrivenEventDetails {
427
+ redriveCount?: number;
428
+ }
408
429
  export interface ExecutionStartedEventDetails {
409
430
  input?: string;
410
431
  inputDetails?: HistoryEventExecutionDataDetails;
@@ -458,6 +479,10 @@ export interface MapRunFailedEventDetails {
458
479
  error?: string;
459
480
  cause?: string;
460
481
  }
482
+ export interface MapRunRedrivenEventDetails {
483
+ mapRunArn?: string;
484
+ redriveCount?: number;
485
+ }
461
486
  export interface MapRunStartedEventDetails {
462
487
  mapRunArn?: string;
463
488
  }
@@ -534,6 +559,7 @@ export declare const HistoryEventType: {
534
559
  readonly ChoiceStateExited: "ChoiceStateExited";
535
560
  readonly ExecutionAborted: "ExecutionAborted";
536
561
  readonly ExecutionFailed: "ExecutionFailed";
562
+ readonly ExecutionRedriven: "ExecutionRedriven";
537
563
  readonly ExecutionStarted: "ExecutionStarted";
538
564
  readonly ExecutionSucceeded: "ExecutionSucceeded";
539
565
  readonly ExecutionTimedOut: "ExecutionTimedOut";
@@ -551,6 +577,7 @@ export declare const HistoryEventType: {
551
577
  readonly MapIterationSucceeded: "MapIterationSucceeded";
552
578
  readonly MapRunAborted: "MapRunAborted";
553
579
  readonly MapRunFailed: "MapRunFailed";
580
+ readonly MapRunRedriven: "MapRunRedriven";
554
581
  readonly MapRunStarted: "MapRunStarted";
555
582
  readonly MapRunSucceeded: "MapRunSucceeded";
556
583
  readonly MapStateAborted: "MapStateAborted";
@@ -610,6 +637,7 @@ export interface HistoryEvent {
610
637
  executionSucceededEventDetails?: ExecutionSucceededEventDetails;
611
638
  executionAbortedEventDetails?: ExecutionAbortedEventDetails;
612
639
  executionTimedOutEventDetails?: ExecutionTimedOutEventDetails;
640
+ executionRedrivenEventDetails?: ExecutionRedrivenEventDetails;
613
641
  mapStateStartedEventDetails?: MapStateStartedEventDetails;
614
642
  mapIterationStartedEventDetails?: MapIterationEventDetails;
615
643
  mapIterationSucceededEventDetails?: MapIterationEventDetails;
@@ -625,6 +653,7 @@ export interface HistoryEvent {
625
653
  stateExitedEventDetails?: StateExitedEventDetails;
626
654
  mapRunStartedEventDetails?: MapRunStartedEventDetails;
627
655
  mapRunFailedEventDetails?: MapRunFailedEventDetails;
656
+ mapRunRedrivenEventDetails?: MapRunRedrivenEventDetails;
628
657
  }
629
658
  export interface GetExecutionHistoryOutput {
630
659
  events: HistoryEvent[] | undefined;
@@ -643,12 +672,19 @@ export interface ListActivitiesOutput {
643
672
  activities: ActivityListItem[] | undefined;
644
673
  nextToken?: string;
645
674
  }
675
+ export declare const ExecutionRedriveFilter: {
676
+ readonly NOT_REDRIVEN: "NOT_REDRIVEN";
677
+ readonly REDRIVEN: "REDRIVEN";
678
+ };
679
+ export type ExecutionRedriveFilter =
680
+ (typeof ExecutionRedriveFilter)[keyof typeof ExecutionRedriveFilter];
646
681
  export interface ListExecutionsInput {
647
682
  stateMachineArn?: string;
648
683
  statusFilter?: ExecutionStatus;
649
684
  maxResults?: number;
650
685
  nextToken?: string;
651
686
  mapRunArn?: string;
687
+ redriveFilter?: ExecutionRedriveFilter;
652
688
  }
653
689
  export interface ExecutionListItem {
654
690
  executionArn: string | undefined;
@@ -661,6 +697,8 @@ export interface ExecutionListItem {
661
697
  itemCount?: number;
662
698
  stateMachineVersionArn?: string;
663
699
  stateMachineAliasArn?: string;
700
+ redriveCount?: number;
701
+ redriveDate?: Date;
664
702
  }
665
703
  export interface ListExecutionsOutput {
666
704
  executions: ExecutionListItem[] | undefined;
@@ -737,6 +775,27 @@ export interface PublishStateMachineVersionOutput {
737
775
  creationDate: Date | undefined;
738
776
  stateMachineVersionArn: string | undefined;
739
777
  }
778
+ export declare class ExecutionLimitExceeded extends __BaseException {
779
+ readonly name: "ExecutionLimitExceeded";
780
+ readonly $fault: "client";
781
+ constructor(
782
+ opts: __ExceptionOptionType<ExecutionLimitExceeded, __BaseException>
783
+ );
784
+ }
785
+ export declare class ExecutionNotRedrivable extends __BaseException {
786
+ readonly name: "ExecutionNotRedrivable";
787
+ readonly $fault: "client";
788
+ constructor(
789
+ opts: __ExceptionOptionType<ExecutionNotRedrivable, __BaseException>
790
+ );
791
+ }
792
+ export interface RedriveExecutionInput {
793
+ executionArn: string | undefined;
794
+ clientToken?: string;
795
+ }
796
+ export interface RedriveExecutionOutput {
797
+ redriveDate: Date | undefined;
798
+ }
740
799
  export interface SendTaskFailureInput {
741
800
  taskToken: string | undefined;
742
801
  error?: string;
@@ -774,13 +833,6 @@ export declare class ExecutionAlreadyExists extends __BaseException {
774
833
  opts: __ExceptionOptionType<ExecutionAlreadyExists, __BaseException>
775
834
  );
776
835
  }
777
- export declare class ExecutionLimitExceeded extends __BaseException {
778
- readonly name: "ExecutionLimitExceeded";
779
- readonly $fault: "client";
780
- constructor(
781
- opts: __ExceptionOptionType<ExecutionLimitExceeded, __BaseException>
782
- );
783
- }
784
836
  export declare class InvalidExecutionInput extends __BaseException {
785
837
  readonly name: "InvalidExecutionInput";
786
838
  readonly $fault: "client";
@@ -95,6 +95,10 @@ import {
95
95
  PublishStateMachineVersionCommandInput,
96
96
  PublishStateMachineVersionCommandOutput,
97
97
  } from "../commands/PublishStateMachineVersionCommand";
98
+ import {
99
+ RedriveExecutionCommandInput,
100
+ RedriveExecutionCommandOutput,
101
+ } from "../commands/RedriveExecutionCommand";
98
102
  import {
99
103
  SendTaskFailureCommandInput,
100
104
  SendTaskFailureCommandOutput,
@@ -231,6 +235,10 @@ export declare const se_PublishStateMachineVersionCommand: (
231
235
  input: PublishStateMachineVersionCommandInput,
232
236
  context: __SerdeContext
233
237
  ) => Promise<__HttpRequest>;
238
+ export declare const se_RedriveExecutionCommand: (
239
+ input: RedriveExecutionCommandInput,
240
+ context: __SerdeContext
241
+ ) => Promise<__HttpRequest>;
234
242
  export declare const se_SendTaskFailureCommand: (
235
243
  input: SendTaskFailureCommandInput,
236
244
  context: __SerdeContext
@@ -367,6 +375,10 @@ export declare const de_PublishStateMachineVersionCommand: (
367
375
  output: __HttpResponse,
368
376
  context: __SerdeContext
369
377
  ) => Promise<PublishStateMachineVersionCommandOutput>;
378
+ export declare const de_RedriveExecutionCommand: (
379
+ output: __HttpResponse,
380
+ context: __SerdeContext
381
+ ) => Promise<RedriveExecutionCommandOutput>;
370
382
  export declare const de_SendTaskFailureCommand: (
371
383
  output: __HttpResponse,
372
384
  context: __SerdeContext
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.450.0",
4
+ "version": "3.454.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,48 +21,50 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.450.0",
25
- "@aws-sdk/core": "3.445.0",
26
- "@aws-sdk/credential-provider-node": "3.450.0",
27
- "@aws-sdk/middleware-host-header": "3.449.0",
28
- "@aws-sdk/middleware-logger": "3.449.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.449.0",
30
- "@aws-sdk/middleware-signing": "3.449.0",
31
- "@aws-sdk/middleware-user-agent": "3.449.0",
32
- "@aws-sdk/region-config-resolver": "3.433.0",
33
- "@aws-sdk/types": "3.449.0",
34
- "@aws-sdk/util-endpoints": "3.449.0",
35
- "@aws-sdk/util-user-agent-browser": "3.449.0",
36
- "@aws-sdk/util-user-agent-node": "3.449.0",
37
- "@smithy/config-resolver": "^2.0.16",
38
- "@smithy/fetch-http-handler": "^2.2.4",
39
- "@smithy/hash-node": "^2.0.12",
40
- "@smithy/invalid-dependency": "^2.0.12",
41
- "@smithy/middleware-content-length": "^2.0.14",
42
- "@smithy/middleware-endpoint": "^2.1.3",
43
- "@smithy/middleware-retry": "^2.0.18",
44
- "@smithy/middleware-serde": "^2.0.12",
45
- "@smithy/middleware-stack": "^2.0.6",
46
- "@smithy/node-config-provider": "^2.1.3",
47
- "@smithy/node-http-handler": "^2.1.8",
48
- "@smithy/protocol-http": "^3.0.8",
49
- "@smithy/smithy-client": "^2.1.12",
50
- "@smithy/types": "^2.4.0",
51
- "@smithy/url-parser": "^2.0.12",
52
- "@smithy/util-base64": "^2.0.0",
24
+ "@aws-sdk/client-sts": "3.454.0",
25
+ "@aws-sdk/core": "3.451.0",
26
+ "@aws-sdk/credential-provider-node": "3.451.0",
27
+ "@aws-sdk/middleware-host-header": "3.451.0",
28
+ "@aws-sdk/middleware-logger": "3.451.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.451.0",
30
+ "@aws-sdk/middleware-signing": "3.451.0",
31
+ "@aws-sdk/middleware-user-agent": "3.451.0",
32
+ "@aws-sdk/region-config-resolver": "3.451.0",
33
+ "@aws-sdk/types": "3.451.0",
34
+ "@aws-sdk/util-endpoints": "3.451.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.451.0",
36
+ "@aws-sdk/util-user-agent-node": "3.451.0",
37
+ "@smithy/config-resolver": "^2.0.18",
38
+ "@smithy/fetch-http-handler": "^2.2.6",
39
+ "@smithy/hash-node": "^2.0.15",
40
+ "@smithy/invalid-dependency": "^2.0.13",
41
+ "@smithy/middleware-content-length": "^2.0.15",
42
+ "@smithy/middleware-endpoint": "^2.2.0",
43
+ "@smithy/middleware-retry": "^2.0.20",
44
+ "@smithy/middleware-serde": "^2.0.13",
45
+ "@smithy/middleware-stack": "^2.0.7",
46
+ "@smithy/node-config-provider": "^2.1.5",
47
+ "@smithy/node-http-handler": "^2.1.9",
48
+ "@smithy/protocol-http": "^3.0.9",
49
+ "@smithy/smithy-client": "^2.1.15",
50
+ "@smithy/types": "^2.5.0",
51
+ "@smithy/url-parser": "^2.0.13",
52
+ "@smithy/util-base64": "^2.0.1",
53
53
  "@smithy/util-body-length-browser": "^2.0.0",
54
54
  "@smithy/util-body-length-node": "^2.1.0",
55
- "@smithy/util-defaults-mode-browser": "^2.0.16",
56
- "@smithy/util-defaults-mode-node": "^2.0.21",
57
- "@smithy/util-endpoints": "^1.0.2",
58
- "@smithy/util-retry": "^2.0.5",
59
- "@smithy/util-utf8": "^2.0.0",
60
- "tslib": "^2.5.0"
55
+ "@smithy/util-defaults-mode-browser": "^2.0.19",
56
+ "@smithy/util-defaults-mode-node": "^2.0.25",
57
+ "@smithy/util-endpoints": "^1.0.4",
58
+ "@smithy/util-retry": "^2.0.6",
59
+ "@smithy/util-utf8": "^2.0.2",
60
+ "tslib": "^2.5.0",
61
+ "uuid": "^8.3.2"
61
62
  },
62
63
  "devDependencies": {
63
64
  "@smithy/service-client-documentation-generator": "^2.0.0",
64
65
  "@tsconfig/node14": "1.0.3",
65
66
  "@types/node": "^14.14.31",
67
+ "@types/uuid": "^8.3.0",
66
68
  "concurrently": "7.0.0",
67
69
  "downlevel-dts": "0.10.1",
68
70
  "rimraf": "3.0.2",