@aws-sdk/client-sfn 3.28.0 → 3.32.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/CHANGELOG.md +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_json1_0.js +28 -28
- package/dist/cjs/protocols/Aws_json1_0.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_json1_0.js +29 -29
- package/dist/es/protocols/Aws_json1_0.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_json1_0.ts +33 -29
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean,
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_json1_0CreateActivityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var headers, body;
|
|
6
6
|
return __generator(this, function (_a) {
|
|
@@ -2349,20 +2349,20 @@ var deserializeAws_json1_0ActivityListItem = function (output, context) {
|
|
|
2349
2349
|
return {
|
|
2350
2350
|
activityArn: __expectString(output.activityArn),
|
|
2351
2351
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
2352
|
-
?
|
|
2352
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
2353
2353
|
: undefined,
|
|
2354
2354
|
name: __expectString(output.name),
|
|
2355
2355
|
};
|
|
2356
2356
|
};
|
|
2357
2357
|
var deserializeAws_json1_0ActivityScheduledEventDetails = function (output, context) {
|
|
2358
2358
|
return {
|
|
2359
|
-
heartbeatInSeconds:
|
|
2359
|
+
heartbeatInSeconds: __expectLong(output.heartbeatInSeconds),
|
|
2360
2360
|
input: __expectString(output.input),
|
|
2361
2361
|
inputDetails: output.inputDetails !== undefined && output.inputDetails !== null
|
|
2362
2362
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
|
|
2363
2363
|
: undefined,
|
|
2364
2364
|
resource: __expectString(output.resource),
|
|
2365
|
-
timeoutInSeconds:
|
|
2365
|
+
timeoutInSeconds: __expectLong(output.timeoutInSeconds),
|
|
2366
2366
|
};
|
|
2367
2367
|
};
|
|
2368
2368
|
var deserializeAws_json1_0ActivityScheduleFailedEventDetails = function (output, context) {
|
|
@@ -2397,8 +2397,8 @@ var deserializeAws_json1_0ActivityWorkerLimitExceeded = function (output, contex
|
|
|
2397
2397
|
};
|
|
2398
2398
|
var deserializeAws_json1_0BillingDetails = function (output, context) {
|
|
2399
2399
|
return {
|
|
2400
|
-
billedDurationInMilliseconds:
|
|
2401
|
-
billedMemoryUsedInMB:
|
|
2400
|
+
billedDurationInMilliseconds: __expectLong(output.billedDurationInMilliseconds),
|
|
2401
|
+
billedMemoryUsedInMB: __expectLong(output.billedMemoryUsedInMB),
|
|
2402
2402
|
};
|
|
2403
2403
|
};
|
|
2404
2404
|
var deserializeAws_json1_0CloudWatchEventsExecutionDataDetails = function (output, context) {
|
|
@@ -2415,14 +2415,14 @@ var deserializeAws_json1_0CreateActivityOutput = function (output, context) {
|
|
|
2415
2415
|
return {
|
|
2416
2416
|
activityArn: __expectString(output.activityArn),
|
|
2417
2417
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
2418
|
-
?
|
|
2418
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
2419
2419
|
: undefined,
|
|
2420
2420
|
};
|
|
2421
2421
|
};
|
|
2422
2422
|
var deserializeAws_json1_0CreateStateMachineOutput = function (output, context) {
|
|
2423
2423
|
return {
|
|
2424
2424
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
2425
|
-
?
|
|
2425
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
2426
2426
|
: undefined,
|
|
2427
2427
|
stateMachineArn: __expectString(output.stateMachineArn),
|
|
2428
2428
|
};
|
|
@@ -2437,7 +2437,7 @@ var deserializeAws_json1_0DescribeActivityOutput = function (output, context) {
|
|
|
2437
2437
|
return {
|
|
2438
2438
|
activityArn: __expectString(output.activityArn),
|
|
2439
2439
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
2440
|
-
?
|
|
2440
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
2441
2441
|
: undefined,
|
|
2442
2442
|
name: __expectString(output.name),
|
|
2443
2443
|
};
|
|
@@ -2455,12 +2455,12 @@ var deserializeAws_json1_0DescribeExecutionOutput = function (output, context) {
|
|
|
2455
2455
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.outputDetails, context)
|
|
2456
2456
|
: undefined,
|
|
2457
2457
|
startDate: output.startDate !== undefined && output.startDate !== null
|
|
2458
|
-
?
|
|
2458
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
|
|
2459
2459
|
: undefined,
|
|
2460
2460
|
stateMachineArn: __expectString(output.stateMachineArn),
|
|
2461
2461
|
status: __expectString(output.status),
|
|
2462
2462
|
stopDate: output.stopDate !== undefined && output.stopDate !== null
|
|
2463
|
-
?
|
|
2463
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
|
|
2464
2464
|
: undefined,
|
|
2465
2465
|
traceHeader: __expectString(output.traceHeader),
|
|
2466
2466
|
};
|
|
@@ -2478,14 +2478,14 @@ var deserializeAws_json1_0DescribeStateMachineForExecutionOutput = function (out
|
|
|
2478
2478
|
? deserializeAws_json1_0TracingConfiguration(output.tracingConfiguration, context)
|
|
2479
2479
|
: undefined,
|
|
2480
2480
|
updateDate: output.updateDate !== undefined && output.updateDate !== null
|
|
2481
|
-
?
|
|
2481
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDate)))
|
|
2482
2482
|
: undefined,
|
|
2483
2483
|
};
|
|
2484
2484
|
};
|
|
2485
2485
|
var deserializeAws_json1_0DescribeStateMachineOutput = function (output, context) {
|
|
2486
2486
|
return {
|
|
2487
2487
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
2488
|
-
?
|
|
2488
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
2489
2489
|
: undefined,
|
|
2490
2490
|
definition: __expectString(output.definition),
|
|
2491
2491
|
loggingConfiguration: output.loggingConfiguration !== undefined && output.loggingConfiguration !== null
|
|
@@ -2543,12 +2543,12 @@ var deserializeAws_json1_0ExecutionListItem = function (output, context) {
|
|
|
2543
2543
|
executionArn: __expectString(output.executionArn),
|
|
2544
2544
|
name: __expectString(output.name),
|
|
2545
2545
|
startDate: output.startDate !== undefined && output.startDate !== null
|
|
2546
|
-
?
|
|
2546
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
|
|
2547
2547
|
: undefined,
|
|
2548
2548
|
stateMachineArn: __expectString(output.stateMachineArn),
|
|
2549
2549
|
status: __expectString(output.status),
|
|
2550
2550
|
stopDate: output.stopDate !== undefined && output.stopDate !== null
|
|
2551
|
-
?
|
|
2551
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
|
|
2552
2552
|
: undefined,
|
|
2553
2553
|
};
|
|
2554
2554
|
};
|
|
@@ -2624,7 +2624,7 @@ var deserializeAws_json1_0HistoryEvent = function (output, context) {
|
|
|
2624
2624
|
executionTimedOutEventDetails: output.executionTimedOutEventDetails !== undefined && output.executionTimedOutEventDetails !== null
|
|
2625
2625
|
? deserializeAws_json1_0ExecutionTimedOutEventDetails(output.executionTimedOutEventDetails, context)
|
|
2626
2626
|
: undefined,
|
|
2627
|
-
id:
|
|
2627
|
+
id: __expectLong(output.id),
|
|
2628
2628
|
lambdaFunctionFailedEventDetails: output.lambdaFunctionFailedEventDetails !== undefined && output.lambdaFunctionFailedEventDetails !== null
|
|
2629
2629
|
? deserializeAws_json1_0LambdaFunctionFailedEventDetails(output.lambdaFunctionFailedEventDetails, context)
|
|
2630
2630
|
: undefined,
|
|
@@ -2660,7 +2660,7 @@ var deserializeAws_json1_0HistoryEvent = function (output, context) {
|
|
|
2660
2660
|
mapStateStartedEventDetails: output.mapStateStartedEventDetails !== undefined && output.mapStateStartedEventDetails !== null
|
|
2661
2661
|
? deserializeAws_json1_0MapStateStartedEventDetails(output.mapStateStartedEventDetails, context)
|
|
2662
2662
|
: undefined,
|
|
2663
|
-
previousEventId:
|
|
2663
|
+
previousEventId: __expectLong(output.previousEventId),
|
|
2664
2664
|
stateEnteredEventDetails: output.stateEnteredEventDetails !== undefined && output.stateEnteredEventDetails !== null
|
|
2665
2665
|
? deserializeAws_json1_0StateEnteredEventDetails(output.stateEnteredEventDetails, context)
|
|
2666
2666
|
: undefined,
|
|
@@ -2692,7 +2692,7 @@ var deserializeAws_json1_0HistoryEvent = function (output, context) {
|
|
|
2692
2692
|
? deserializeAws_json1_0TaskTimedOutEventDetails(output.taskTimedOutEventDetails, context)
|
|
2693
2693
|
: undefined,
|
|
2694
2694
|
timestamp: output.timestamp !== undefined && output.timestamp !== null
|
|
2695
|
-
?
|
|
2695
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp)))
|
|
2696
2696
|
: undefined,
|
|
2697
2697
|
type: __expectString(output.type),
|
|
2698
2698
|
};
|
|
@@ -2765,7 +2765,7 @@ var deserializeAws_json1_0LambdaFunctionScheduledEventDetails = function (output
|
|
|
2765
2765
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
|
|
2766
2766
|
: undefined,
|
|
2767
2767
|
resource: __expectString(output.resource),
|
|
2768
|
-
timeoutInSeconds:
|
|
2768
|
+
timeoutInSeconds: __expectLong(output.timeoutInSeconds),
|
|
2769
2769
|
};
|
|
2770
2770
|
};
|
|
2771
2771
|
var deserializeAws_json1_0LambdaFunctionScheduleFailedEventDetails = function (output, context) {
|
|
@@ -2853,13 +2853,13 @@ var deserializeAws_json1_0LoggingConfiguration = function (output, context) {
|
|
|
2853
2853
|
};
|
|
2854
2854
|
var deserializeAws_json1_0MapIterationEventDetails = function (output, context) {
|
|
2855
2855
|
return {
|
|
2856
|
-
index:
|
|
2856
|
+
index: __expectInt32(output.index),
|
|
2857
2857
|
name: __expectString(output.name),
|
|
2858
2858
|
};
|
|
2859
2859
|
};
|
|
2860
2860
|
var deserializeAws_json1_0MapStateStartedEventDetails = function (output, context) {
|
|
2861
2861
|
return {
|
|
2862
|
-
length:
|
|
2862
|
+
length: __expectInt32(output.length),
|
|
2863
2863
|
};
|
|
2864
2864
|
};
|
|
2865
2865
|
var deserializeAws_json1_0MissingRequiredParameter = function (output, context) {
|
|
@@ -2886,7 +2886,7 @@ var deserializeAws_json1_0StartExecutionOutput = function (output, context) {
|
|
|
2886
2886
|
return {
|
|
2887
2887
|
executionArn: __expectString(output.executionArn),
|
|
2888
2888
|
startDate: output.startDate !== undefined && output.startDate !== null
|
|
2889
|
-
?
|
|
2889
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
|
|
2890
2890
|
: undefined,
|
|
2891
2891
|
};
|
|
2892
2892
|
};
|
|
@@ -2908,12 +2908,12 @@ var deserializeAws_json1_0StartSyncExecutionOutput = function (output, context)
|
|
|
2908
2908
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.outputDetails, context)
|
|
2909
2909
|
: undefined,
|
|
2910
2910
|
startDate: output.startDate !== undefined && output.startDate !== null
|
|
2911
|
-
?
|
|
2911
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
|
|
2912
2912
|
: undefined,
|
|
2913
2913
|
stateMachineArn: __expectString(output.stateMachineArn),
|
|
2914
2914
|
status: __expectString(output.status),
|
|
2915
2915
|
stopDate: output.stopDate !== undefined && output.stopDate !== null
|
|
2916
|
-
?
|
|
2916
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
|
|
2917
2917
|
: undefined,
|
|
2918
2918
|
traceHeader: __expectString(output.traceHeader),
|
|
2919
2919
|
};
|
|
@@ -2969,7 +2969,7 @@ var deserializeAws_json1_0StateMachineList = function (output, context) {
|
|
|
2969
2969
|
var deserializeAws_json1_0StateMachineListItem = function (output, context) {
|
|
2970
2970
|
return {
|
|
2971
2971
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
2972
|
-
?
|
|
2972
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
2973
2973
|
: undefined,
|
|
2974
2974
|
name: __expectString(output.name),
|
|
2975
2975
|
stateMachineArn: __expectString(output.stateMachineArn),
|
|
@@ -2984,7 +2984,7 @@ var deserializeAws_json1_0StateMachineTypeNotSupported = function (output, conte
|
|
|
2984
2984
|
var deserializeAws_json1_0StopExecutionOutput = function (output, context) {
|
|
2985
2985
|
return {
|
|
2986
2986
|
stopDate: output.stopDate !== undefined && output.stopDate !== null
|
|
2987
|
-
?
|
|
2987
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
|
|
2988
2988
|
: undefined,
|
|
2989
2989
|
};
|
|
2990
2990
|
};
|
|
@@ -3022,12 +3022,12 @@ var deserializeAws_json1_0TaskFailedEventDetails = function (output, context) {
|
|
|
3022
3022
|
};
|
|
3023
3023
|
var deserializeAws_json1_0TaskScheduledEventDetails = function (output, context) {
|
|
3024
3024
|
return {
|
|
3025
|
-
heartbeatInSeconds:
|
|
3025
|
+
heartbeatInSeconds: __expectLong(output.heartbeatInSeconds),
|
|
3026
3026
|
parameters: __expectString(output.parameters),
|
|
3027
3027
|
region: __expectString(output.region),
|
|
3028
3028
|
resource: __expectString(output.resource),
|
|
3029
3029
|
resourceType: __expectString(output.resourceType),
|
|
3030
|
-
timeoutInSeconds:
|
|
3030
|
+
timeoutInSeconds: __expectLong(output.timeoutInSeconds),
|
|
3031
3031
|
};
|
|
3032
3032
|
};
|
|
3033
3033
|
var deserializeAws_json1_0TaskStartedEventDetails = function (output, context) {
|
|
@@ -3102,7 +3102,7 @@ var deserializeAws_json1_0UntagResourceOutput = function (output, context) {
|
|
|
3102
3102
|
var deserializeAws_json1_0UpdateStateMachineOutput = function (output, context) {
|
|
3103
3103
|
return {
|
|
3104
3104
|
updateDate: output.updateDate !== undefined && output.updateDate !== null
|
|
3105
|
-
?
|
|
3105
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDate)))
|
|
3106
3106
|
: undefined,
|
|
3107
3107
|
};
|
|
3108
3108
|
};
|