@aws-sdk/client-sfn 3.213.0 → 3.215.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.
@@ -84,7 +84,12 @@ export interface CloudWatchLogsLogGroup {
84
84
  export interface LogDestination {
85
85
  cloudWatchLogsLogGroup?: CloudWatchLogsLogGroup;
86
86
  }
87
- export declare type LogLevel = "ALL" | "ERROR" | "FATAL" | "OFF";
87
+ export declare enum LogLevel {
88
+ ALL = "ALL",
89
+ ERROR = "ERROR",
90
+ FATAL = "FATAL",
91
+ OFF = "OFF",
92
+ }
88
93
  export interface LoggingConfiguration {
89
94
  level?: LogLevel | string;
90
95
  includeExecutionData?: boolean;
@@ -93,7 +98,10 @@ export interface LoggingConfiguration {
93
98
  export interface TracingConfiguration {
94
99
  enabled?: boolean;
95
100
  }
96
- export declare type StateMachineType = "EXPRESS" | "STANDARD";
101
+ export declare enum StateMachineType {
102
+ EXPRESS = "EXPRESS",
103
+ STANDARD = "STANDARD",
104
+ }
97
105
  export interface CreateStateMachineInput {
98
106
  name: string | undefined;
99
107
  definition: string | undefined;
@@ -181,12 +189,13 @@ export interface DescribeExecutionInput {
181
189
  export interface CloudWatchEventsExecutionDataDetails {
182
190
  included?: boolean;
183
191
  }
184
- export declare type ExecutionStatus =
185
- | "ABORTED"
186
- | "FAILED"
187
- | "RUNNING"
188
- | "SUCCEEDED"
189
- | "TIMED_OUT";
192
+ export declare enum ExecutionStatus {
193
+ ABORTED = "ABORTED",
194
+ FAILED = "FAILED",
195
+ RUNNING = "RUNNING",
196
+ SUCCEEDED = "SUCCEEDED",
197
+ TIMED_OUT = "TIMED_OUT",
198
+ }
190
199
  export interface DescribeExecutionOutput {
191
200
  executionArn: string | undefined;
192
201
  stateMachineArn: string | undefined;
@@ -210,7 +219,10 @@ export declare class ExecutionDoesNotExist extends __BaseException {
210
219
  export interface DescribeStateMachineInput {
211
220
  stateMachineArn: string | undefined;
212
221
  }
213
- export declare type StateMachineStatus = "ACTIVE" | "DELETING";
222
+ export declare enum StateMachineStatus {
223
+ ACTIVE = "ACTIVE",
224
+ DELETING = "DELETING",
225
+ }
214
226
  export interface DescribeStateMachineOutput {
215
227
  stateMachineArn: string | undefined;
216
228
  name: string | undefined;
@@ -281,11 +293,15 @@ export interface LambdaFunctionFailedEventDetails {
281
293
  error?: string;
282
294
  cause?: string;
283
295
  }
296
+ export interface TaskCredentials {
297
+ roleArn?: string;
298
+ }
284
299
  export interface LambdaFunctionScheduledEventDetails {
285
300
  resource: string | undefined;
286
301
  input?: string;
287
302
  inputDetails?: HistoryEventExecutionDataDetails;
288
303
  timeoutInSeconds?: number;
304
+ taskCredentials?: TaskCredentials;
289
305
  }
290
306
  export interface LambdaFunctionScheduleFailedEventDetails {
291
307
  error?: string;
@@ -333,6 +349,7 @@ export interface TaskScheduledEventDetails {
333
349
  parameters: string | undefined;
334
350
  timeoutInSeconds?: number;
335
351
  heartbeatInSeconds?: number;
352
+ taskCredentials?: TaskCredentials;
336
353
  }
337
354
  export interface TaskStartedEventDetails {
338
355
  resourceType: string | undefined;
@@ -368,62 +385,63 @@ export interface TaskTimedOutEventDetails {
368
385
  error?: string;
369
386
  cause?: string;
370
387
  }
371
- export declare type HistoryEventType =
372
- | "ActivityFailed"
373
- | "ActivityScheduleFailed"
374
- | "ActivityScheduled"
375
- | "ActivityStarted"
376
- | "ActivitySucceeded"
377
- | "ActivityTimedOut"
378
- | "ChoiceStateEntered"
379
- | "ChoiceStateExited"
380
- | "ExecutionAborted"
381
- | "ExecutionFailed"
382
- | "ExecutionStarted"
383
- | "ExecutionSucceeded"
384
- | "ExecutionTimedOut"
385
- | "FailStateEntered"
386
- | "LambdaFunctionFailed"
387
- | "LambdaFunctionScheduleFailed"
388
- | "LambdaFunctionScheduled"
389
- | "LambdaFunctionStartFailed"
390
- | "LambdaFunctionStarted"
391
- | "LambdaFunctionSucceeded"
392
- | "LambdaFunctionTimedOut"
393
- | "MapIterationAborted"
394
- | "MapIterationFailed"
395
- | "MapIterationStarted"
396
- | "MapIterationSucceeded"
397
- | "MapStateAborted"
398
- | "MapStateEntered"
399
- | "MapStateExited"
400
- | "MapStateFailed"
401
- | "MapStateStarted"
402
- | "MapStateSucceeded"
403
- | "ParallelStateAborted"
404
- | "ParallelStateEntered"
405
- | "ParallelStateExited"
406
- | "ParallelStateFailed"
407
- | "ParallelStateStarted"
408
- | "ParallelStateSucceeded"
409
- | "PassStateEntered"
410
- | "PassStateExited"
411
- | "SucceedStateEntered"
412
- | "SucceedStateExited"
413
- | "TaskFailed"
414
- | "TaskScheduled"
415
- | "TaskStartFailed"
416
- | "TaskStarted"
417
- | "TaskStateAborted"
418
- | "TaskStateEntered"
419
- | "TaskStateExited"
420
- | "TaskSubmitFailed"
421
- | "TaskSubmitted"
422
- | "TaskSucceeded"
423
- | "TaskTimedOut"
424
- | "WaitStateAborted"
425
- | "WaitStateEntered"
426
- | "WaitStateExited";
388
+ export declare enum HistoryEventType {
389
+ ActivityFailed = "ActivityFailed",
390
+ ActivityScheduleFailed = "ActivityScheduleFailed",
391
+ ActivityScheduled = "ActivityScheduled",
392
+ ActivityStarted = "ActivityStarted",
393
+ ActivitySucceeded = "ActivitySucceeded",
394
+ ActivityTimedOut = "ActivityTimedOut",
395
+ ChoiceStateEntered = "ChoiceStateEntered",
396
+ ChoiceStateExited = "ChoiceStateExited",
397
+ ExecutionAborted = "ExecutionAborted",
398
+ ExecutionFailed = "ExecutionFailed",
399
+ ExecutionStarted = "ExecutionStarted",
400
+ ExecutionSucceeded = "ExecutionSucceeded",
401
+ ExecutionTimedOut = "ExecutionTimedOut",
402
+ FailStateEntered = "FailStateEntered",
403
+ LambdaFunctionFailed = "LambdaFunctionFailed",
404
+ LambdaFunctionScheduleFailed = "LambdaFunctionScheduleFailed",
405
+ LambdaFunctionScheduled = "LambdaFunctionScheduled",
406
+ LambdaFunctionStartFailed = "LambdaFunctionStartFailed",
407
+ LambdaFunctionStarted = "LambdaFunctionStarted",
408
+ LambdaFunctionSucceeded = "LambdaFunctionSucceeded",
409
+ LambdaFunctionTimedOut = "LambdaFunctionTimedOut",
410
+ MapIterationAborted = "MapIterationAborted",
411
+ MapIterationFailed = "MapIterationFailed",
412
+ MapIterationStarted = "MapIterationStarted",
413
+ MapIterationSucceeded = "MapIterationSucceeded",
414
+ MapStateAborted = "MapStateAborted",
415
+ MapStateEntered = "MapStateEntered",
416
+ MapStateExited = "MapStateExited",
417
+ MapStateFailed = "MapStateFailed",
418
+ MapStateStarted = "MapStateStarted",
419
+ MapStateSucceeded = "MapStateSucceeded",
420
+ ParallelStateAborted = "ParallelStateAborted",
421
+ ParallelStateEntered = "ParallelStateEntered",
422
+ ParallelStateExited = "ParallelStateExited",
423
+ ParallelStateFailed = "ParallelStateFailed",
424
+ ParallelStateStarted = "ParallelStateStarted",
425
+ ParallelStateSucceeded = "ParallelStateSucceeded",
426
+ PassStateEntered = "PassStateEntered",
427
+ PassStateExited = "PassStateExited",
428
+ SucceedStateEntered = "SucceedStateEntered",
429
+ SucceedStateExited = "SucceedStateExited",
430
+ TaskFailed = "TaskFailed",
431
+ TaskScheduled = "TaskScheduled",
432
+ TaskStartFailed = "TaskStartFailed",
433
+ TaskStarted = "TaskStarted",
434
+ TaskStateAborted = "TaskStateAborted",
435
+ TaskStateEntered = "TaskStateEntered",
436
+ TaskStateExited = "TaskStateExited",
437
+ TaskSubmitFailed = "TaskSubmitFailed",
438
+ TaskSubmitted = "TaskSubmitted",
439
+ TaskSucceeded = "TaskSucceeded",
440
+ TaskTimedOut = "TaskTimedOut",
441
+ WaitStateAborted = "WaitStateAborted",
442
+ WaitStateEntered = "WaitStateEntered",
443
+ WaitStateExited = "WaitStateExited",
444
+ }
427
445
  export interface HistoryEvent {
428
446
  timestamp: Date | undefined;
429
447
  type: HistoryEventType | string | undefined;
@@ -594,7 +612,11 @@ export interface BillingDetails {
594
612
  billedMemoryUsedInMB?: number;
595
613
  billedDurationInMilliseconds?: number;
596
614
  }
597
- export declare type SyncExecutionStatus = "FAILED" | "SUCCEEDED" | "TIMED_OUT";
615
+ export declare enum SyncExecutionStatus {
616
+ FAILED = "FAILED",
617
+ SUCCEEDED = "SUCCEEDED",
618
+ TIMED_OUT = "TIMED_OUT",
619
+ }
598
620
  export interface StartSyncExecutionOutput {
599
621
  executionArn: string | undefined;
600
622
  stateMachineArn?: string;
@@ -761,6 +783,9 @@ export declare const ExecutionTimedOutEventDetailsFilterSensitiveLog: (
761
783
  export declare const LambdaFunctionFailedEventDetailsFilterSensitiveLog: (
762
784
  obj: LambdaFunctionFailedEventDetails
763
785
  ) => any;
786
+ export declare const TaskCredentialsFilterSensitiveLog: (
787
+ obj: TaskCredentials
788
+ ) => any;
764
789
  export declare const LambdaFunctionScheduledEventDetailsFilterSensitiveLog: (
765
790
  obj: LambdaFunctionScheduledEventDetails
766
791
  ) => any;
@@ -64,8 +64,10 @@ export declare const getRuntimeConfig: (config: SFNClientConfig) => {
64
64
  tls?: boolean | undefined;
65
65
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
66
66
  credentials?:
67
- | import("@aws-sdk/types").Credentials
68
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>
67
+ | import("@aws-sdk/types").AwsCredentialIdentity
68
+ | import("@aws-sdk/types").Provider<
69
+ import("@aws-sdk/types").AwsCredentialIdentity
70
+ >
69
71
  | undefined;
70
72
  signer?:
71
73
  | import("@aws-sdk/types").RequestSigner
@@ -64,8 +64,10 @@ export declare const getRuntimeConfig: (config: SFNClientConfig) => {
64
64
  tls?: boolean | undefined;
65
65
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
66
66
  credentials?:
67
- | import("@aws-sdk/types").Credentials
68
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>
67
+ | import("@aws-sdk/types").AwsCredentialIdentity
68
+ | import("@aws-sdk/types").Provider<
69
+ import("@aws-sdk/types").AwsCredentialIdentity
70
+ >
69
71
  | undefined;
70
72
  signer?:
71
73
  | import("@aws-sdk/types").RequestSigner
@@ -53,8 +53,10 @@ export declare const getRuntimeConfig: (config: SFNClientConfig) => {
53
53
  tls?: boolean | undefined;
54
54
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
55
55
  credentials?:
56
- | import("@aws-sdk/types").Credentials
57
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>
56
+ | import("@aws-sdk/types").AwsCredentialIdentity
57
+ | import("@aws-sdk/types").Provider<
58
+ import("@aws-sdk/types").AwsCredentialIdentity
59
+ >
58
60
  | undefined;
59
61
  signer?:
60
62
  | import("@aws-sdk/types").RequestSigner
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.213.0",
4
+ "version": "3.215.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",
@@ -19,36 +19,36 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.213.0",
23
- "@aws-sdk/config-resolver": "3.212.0",
24
- "@aws-sdk/credential-provider-node": "3.212.0",
25
- "@aws-sdk/fetch-http-handler": "3.212.0",
26
- "@aws-sdk/hash-node": "3.212.0",
27
- "@aws-sdk/invalid-dependency": "3.212.0",
28
- "@aws-sdk/middleware-content-length": "3.212.0",
29
- "@aws-sdk/middleware-endpoint": "3.212.0",
30
- "@aws-sdk/middleware-host-header": "3.212.0",
31
- "@aws-sdk/middleware-logger": "3.212.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.212.0",
33
- "@aws-sdk/middleware-retry": "3.212.0",
34
- "@aws-sdk/middleware-serde": "3.212.0",
35
- "@aws-sdk/middleware-signing": "3.212.0",
36
- "@aws-sdk/middleware-stack": "3.212.0",
37
- "@aws-sdk/middleware-user-agent": "3.212.0",
38
- "@aws-sdk/node-config-provider": "3.212.0",
39
- "@aws-sdk/node-http-handler": "3.212.0",
40
- "@aws-sdk/protocol-http": "3.212.0",
41
- "@aws-sdk/smithy-client": "3.212.0",
42
- "@aws-sdk/types": "3.212.0",
43
- "@aws-sdk/url-parser": "3.212.0",
22
+ "@aws-sdk/client-sts": "3.215.0",
23
+ "@aws-sdk/config-resolver": "3.215.0",
24
+ "@aws-sdk/credential-provider-node": "3.215.0",
25
+ "@aws-sdk/fetch-http-handler": "3.215.0",
26
+ "@aws-sdk/hash-node": "3.215.0",
27
+ "@aws-sdk/invalid-dependency": "3.215.0",
28
+ "@aws-sdk/middleware-content-length": "3.215.0",
29
+ "@aws-sdk/middleware-endpoint": "3.215.0",
30
+ "@aws-sdk/middleware-host-header": "3.215.0",
31
+ "@aws-sdk/middleware-logger": "3.215.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.215.0",
33
+ "@aws-sdk/middleware-retry": "3.215.0",
34
+ "@aws-sdk/middleware-serde": "3.215.0",
35
+ "@aws-sdk/middleware-signing": "3.215.0",
36
+ "@aws-sdk/middleware-stack": "3.215.0",
37
+ "@aws-sdk/middleware-user-agent": "3.215.0",
38
+ "@aws-sdk/node-config-provider": "3.215.0",
39
+ "@aws-sdk/node-http-handler": "3.215.0",
40
+ "@aws-sdk/protocol-http": "3.215.0",
41
+ "@aws-sdk/smithy-client": "3.215.0",
42
+ "@aws-sdk/types": "3.215.0",
43
+ "@aws-sdk/url-parser": "3.215.0",
44
44
  "@aws-sdk/util-base64": "3.208.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.212.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.212.0",
49
- "@aws-sdk/util-endpoints": "3.212.0",
50
- "@aws-sdk/util-user-agent-browser": "3.212.0",
51
- "@aws-sdk/util-user-agent-node": "3.212.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.215.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.215.0",
49
+ "@aws-sdk/util-endpoints": "3.215.0",
50
+ "@aws-sdk/util-user-agent-browser": "3.215.0",
51
+ "@aws-sdk/util-user-agent-node": "3.215.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",
53
53
  "@aws-sdk/util-utf8-node": "3.208.0",
54
54
  "tslib": "^2.3.1"