@aws-sdk/client-sfn 3.216.0 → 3.222.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/dist-cjs/SFN.js +45 -0
- package/dist-cjs/commands/DescribeMapRunCommand.js +46 -0
- package/dist-cjs/commands/ListMapRunsCommand.js +46 -0
- package/dist-cjs/commands/UpdateMapRunCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +99 -17
- package/dist-cjs/pagination/ListMapRunsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +299 -1
- package/dist-es/SFN.js +45 -0
- package/dist-es/commands/DescribeMapRunCommand.js +42 -0
- package/dist-es/commands/ListMapRunsCommand.js +42 -0
- package/dist-es/commands/UpdateMapRunCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +83 -13
- package/dist-es/pagination/ListMapRunsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +293 -2
- package/dist-types/SFN.d.ts +44 -6
- package/dist-types/SFNClient.d.ts +5 -2
- package/dist-types/commands/DeleteStateMachineCommand.d.ts +5 -0
- package/dist-types/commands/DescribeExecutionCommand.d.ts +2 -2
- package/dist-types/commands/DescribeMapRunCommand.d.ts +37 -0
- package/dist-types/commands/DescribeStateMachineCommand.d.ts +4 -1
- package/dist-types/commands/DescribeStateMachineForExecutionCommand.d.ts +1 -1
- package/dist-types/commands/ListExecutionsCommand.d.ts +2 -1
- package/dist-types/commands/ListMapRunsCommand.d.ts +37 -0
- package/dist-types/commands/StartExecutionCommand.d.ts +4 -1
- package/dist-types/commands/UpdateMapRunCommand.d.ts +37 -0
- package/dist-types/commands/UpdateStateMachineCommand.d.ts +5 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +357 -20
- package/dist-types/pagination/ListMapRunsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
- package/dist-types/ts3.4/SFN.d.ts +51 -0
- package/dist-types/ts3.4/SFNClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DescribeMapRunCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListMapRunsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateMapRunCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +139 -7
- package/dist-types/ts3.4/pagination/ListMapRunsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
- package/package.json +29 -28
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0StopExecutionCommand = exports.deserializeAws_json1_0StartSyncExecutionCommand = exports.deserializeAws_json1_0StartExecutionCommand = exports.deserializeAws_json1_0SendTaskSuccessCommand = exports.deserializeAws_json1_0SendTaskHeartbeatCommand = exports.deserializeAws_json1_0SendTaskFailureCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListStateMachinesCommand = exports.deserializeAws_json1_0ListMapRunsCommand = exports.deserializeAws_json1_0ListExecutionsCommand = exports.deserializeAws_json1_0ListActivitiesCommand = exports.deserializeAws_json1_0GetExecutionHistoryCommand = exports.deserializeAws_json1_0GetActivityTaskCommand = exports.deserializeAws_json1_0DescribeStateMachineForExecutionCommand = exports.deserializeAws_json1_0DescribeStateMachineCommand = exports.deserializeAws_json1_0DescribeMapRunCommand = exports.deserializeAws_json1_0DescribeExecutionCommand = exports.deserializeAws_json1_0DescribeActivityCommand = exports.deserializeAws_json1_0DeleteStateMachineCommand = exports.deserializeAws_json1_0DeleteActivityCommand = exports.deserializeAws_json1_0CreateStateMachineCommand = exports.deserializeAws_json1_0CreateActivityCommand = exports.serializeAws_json1_0UpdateStateMachineCommand = exports.serializeAws_json1_0UpdateMapRunCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0StopExecutionCommand = exports.serializeAws_json1_0StartSyncExecutionCommand = exports.serializeAws_json1_0StartExecutionCommand = exports.serializeAws_json1_0SendTaskSuccessCommand = exports.serializeAws_json1_0SendTaskHeartbeatCommand = exports.serializeAws_json1_0SendTaskFailureCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListStateMachinesCommand = exports.serializeAws_json1_0ListMapRunsCommand = exports.serializeAws_json1_0ListExecutionsCommand = exports.serializeAws_json1_0ListActivitiesCommand = exports.serializeAws_json1_0GetExecutionHistoryCommand = exports.serializeAws_json1_0GetActivityTaskCommand = exports.serializeAws_json1_0DescribeStateMachineForExecutionCommand = exports.serializeAws_json1_0DescribeStateMachineCommand = exports.serializeAws_json1_0DescribeMapRunCommand = exports.serializeAws_json1_0DescribeExecutionCommand = exports.serializeAws_json1_0DescribeActivityCommand = exports.serializeAws_json1_0DeleteStateMachineCommand = exports.serializeAws_json1_0DeleteActivityCommand = exports.serializeAws_json1_0CreateStateMachineCommand = exports.serializeAws_json1_0CreateActivityCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_0UpdateStateMachineCommand = exports.deserializeAws_json1_0UpdateMapRunCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const models_0_1 = require("../models/models_0");
|
|
@@ -65,6 +66,16 @@ const serializeAws_json1_0DescribeExecutionCommand = async (input, context) => {
|
|
|
65
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
67
|
};
|
|
67
68
|
exports.serializeAws_json1_0DescribeExecutionCommand = serializeAws_json1_0DescribeExecutionCommand;
|
|
69
|
+
const serializeAws_json1_0DescribeMapRunCommand = async (input, context) => {
|
|
70
|
+
const headers = {
|
|
71
|
+
"content-type": "application/x-amz-json-1.0",
|
|
72
|
+
"x-amz-target": "AWSStepFunctions.DescribeMapRun",
|
|
73
|
+
};
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify(serializeAws_json1_0DescribeMapRunInput(input, context));
|
|
76
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
+
};
|
|
78
|
+
exports.serializeAws_json1_0DescribeMapRunCommand = serializeAws_json1_0DescribeMapRunCommand;
|
|
68
79
|
const serializeAws_json1_0DescribeStateMachineCommand = async (input, context) => {
|
|
69
80
|
const headers = {
|
|
70
81
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -125,6 +136,16 @@ const serializeAws_json1_0ListExecutionsCommand = async (input, context) => {
|
|
|
125
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
137
|
};
|
|
127
138
|
exports.serializeAws_json1_0ListExecutionsCommand = serializeAws_json1_0ListExecutionsCommand;
|
|
139
|
+
const serializeAws_json1_0ListMapRunsCommand = async (input, context) => {
|
|
140
|
+
const headers = {
|
|
141
|
+
"content-type": "application/x-amz-json-1.0",
|
|
142
|
+
"x-amz-target": "AWSStepFunctions.ListMapRuns",
|
|
143
|
+
};
|
|
144
|
+
let body;
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_0ListMapRunsInput(input, context));
|
|
146
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
+
};
|
|
148
|
+
exports.serializeAws_json1_0ListMapRunsCommand = serializeAws_json1_0ListMapRunsCommand;
|
|
128
149
|
const serializeAws_json1_0ListStateMachinesCommand = async (input, context) => {
|
|
129
150
|
const headers = {
|
|
130
151
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -232,6 +253,16 @@ const serializeAws_json1_0UntagResourceCommand = async (input, context) => {
|
|
|
232
253
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
254
|
};
|
|
234
255
|
exports.serializeAws_json1_0UntagResourceCommand = serializeAws_json1_0UntagResourceCommand;
|
|
256
|
+
const serializeAws_json1_0UpdateMapRunCommand = async (input, context) => {
|
|
257
|
+
const headers = {
|
|
258
|
+
"content-type": "application/x-amz-json-1.0",
|
|
259
|
+
"x-amz-target": "AWSStepFunctions.UpdateMapRun",
|
|
260
|
+
};
|
|
261
|
+
let body;
|
|
262
|
+
body = JSON.stringify(serializeAws_json1_0UpdateMapRunInput(input, context));
|
|
263
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
264
|
+
};
|
|
265
|
+
exports.serializeAws_json1_0UpdateMapRunCommand = serializeAws_json1_0UpdateMapRunCommand;
|
|
235
266
|
const serializeAws_json1_0UpdateStateMachineCommand = async (input, context) => {
|
|
236
267
|
const headers = {
|
|
237
268
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -401,6 +432,9 @@ const deserializeAws_json1_0DeleteStateMachineCommandError = async (output, cont
|
|
|
401
432
|
case "InvalidArn":
|
|
402
433
|
case "com.amazonaws.sfn#InvalidArn":
|
|
403
434
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
435
|
+
case "ValidationException":
|
|
436
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
437
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
404
438
|
default:
|
|
405
439
|
const parsedBody = parsedOutput.body;
|
|
406
440
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -485,6 +519,43 @@ const deserializeAws_json1_0DescribeExecutionCommandError = async (output, conte
|
|
|
485
519
|
});
|
|
486
520
|
}
|
|
487
521
|
};
|
|
522
|
+
const deserializeAws_json1_0DescribeMapRunCommand = async (output, context) => {
|
|
523
|
+
if (output.statusCode >= 300) {
|
|
524
|
+
return deserializeAws_json1_0DescribeMapRunCommandError(output, context);
|
|
525
|
+
}
|
|
526
|
+
const data = await parseBody(output.body, context);
|
|
527
|
+
let contents = {};
|
|
528
|
+
contents = deserializeAws_json1_0DescribeMapRunOutput(data, context);
|
|
529
|
+
const response = {
|
|
530
|
+
$metadata: deserializeMetadata(output),
|
|
531
|
+
...contents,
|
|
532
|
+
};
|
|
533
|
+
return Promise.resolve(response);
|
|
534
|
+
};
|
|
535
|
+
exports.deserializeAws_json1_0DescribeMapRunCommand = deserializeAws_json1_0DescribeMapRunCommand;
|
|
536
|
+
const deserializeAws_json1_0DescribeMapRunCommandError = async (output, context) => {
|
|
537
|
+
const parsedOutput = {
|
|
538
|
+
...output,
|
|
539
|
+
body: await parseErrorBody(output.body, context),
|
|
540
|
+
};
|
|
541
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
|
+
switch (errorCode) {
|
|
543
|
+
case "InvalidArn":
|
|
544
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
545
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
546
|
+
case "ResourceNotFound":
|
|
547
|
+
case "com.amazonaws.sfn#ResourceNotFound":
|
|
548
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
549
|
+
default:
|
|
550
|
+
const parsedBody = parsedOutput.body;
|
|
551
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
552
|
+
output,
|
|
553
|
+
parsedBody,
|
|
554
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
555
|
+
errorCode,
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
};
|
|
488
559
|
const deserializeAws_json1_0DescribeStateMachineCommand = async (output, context) => {
|
|
489
560
|
if (output.statusCode >= 300) {
|
|
490
561
|
return deserializeAws_json1_0DescribeStateMachineCommandError(output, context);
|
|
@@ -700,12 +771,58 @@ const deserializeAws_json1_0ListExecutionsCommandError = async (output, context)
|
|
|
700
771
|
case "InvalidToken":
|
|
701
772
|
case "com.amazonaws.sfn#InvalidToken":
|
|
702
773
|
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
774
|
+
case "ResourceNotFound":
|
|
775
|
+
case "com.amazonaws.sfn#ResourceNotFound":
|
|
776
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
703
777
|
case "StateMachineDoesNotExist":
|
|
704
778
|
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
705
779
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
706
780
|
case "StateMachineTypeNotSupported":
|
|
707
781
|
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
708
782
|
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
783
|
+
case "ValidationException":
|
|
784
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
785
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
786
|
+
default:
|
|
787
|
+
const parsedBody = parsedOutput.body;
|
|
788
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
789
|
+
output,
|
|
790
|
+
parsedBody,
|
|
791
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
792
|
+
errorCode,
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
const deserializeAws_json1_0ListMapRunsCommand = async (output, context) => {
|
|
797
|
+
if (output.statusCode >= 300) {
|
|
798
|
+
return deserializeAws_json1_0ListMapRunsCommandError(output, context);
|
|
799
|
+
}
|
|
800
|
+
const data = await parseBody(output.body, context);
|
|
801
|
+
let contents = {};
|
|
802
|
+
contents = deserializeAws_json1_0ListMapRunsOutput(data, context);
|
|
803
|
+
const response = {
|
|
804
|
+
$metadata: deserializeMetadata(output),
|
|
805
|
+
...contents,
|
|
806
|
+
};
|
|
807
|
+
return Promise.resolve(response);
|
|
808
|
+
};
|
|
809
|
+
exports.deserializeAws_json1_0ListMapRunsCommand = deserializeAws_json1_0ListMapRunsCommand;
|
|
810
|
+
const deserializeAws_json1_0ListMapRunsCommandError = async (output, context) => {
|
|
811
|
+
const parsedOutput = {
|
|
812
|
+
...output,
|
|
813
|
+
body: await parseErrorBody(output.body, context),
|
|
814
|
+
};
|
|
815
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
|
+
switch (errorCode) {
|
|
817
|
+
case "ExecutionDoesNotExist":
|
|
818
|
+
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
819
|
+
throw await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context);
|
|
820
|
+
case "InvalidArn":
|
|
821
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
822
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
823
|
+
case "InvalidToken":
|
|
824
|
+
case "com.amazonaws.sfn#InvalidToken":
|
|
825
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
709
826
|
default:
|
|
710
827
|
const parsedBody = parsedOutput.body;
|
|
711
828
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -952,6 +1069,9 @@ const deserializeAws_json1_0StartExecutionCommandError = async (output, context)
|
|
|
952
1069
|
case "StateMachineDoesNotExist":
|
|
953
1070
|
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
954
1071
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
1072
|
+
case "ValidationException":
|
|
1073
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
1074
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
955
1075
|
default:
|
|
956
1076
|
const parsedBody = parsedOutput.body;
|
|
957
1077
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1038,6 +1158,9 @@ const deserializeAws_json1_0StopExecutionCommandError = async (output, context)
|
|
|
1038
1158
|
case "InvalidArn":
|
|
1039
1159
|
case "com.amazonaws.sfn#InvalidArn":
|
|
1040
1160
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1161
|
+
case "ValidationException":
|
|
1162
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
1163
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1041
1164
|
default:
|
|
1042
1165
|
const parsedBody = parsedOutput.body;
|
|
1043
1166
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1125,6 +1248,46 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1125
1248
|
});
|
|
1126
1249
|
}
|
|
1127
1250
|
};
|
|
1251
|
+
const deserializeAws_json1_0UpdateMapRunCommand = async (output, context) => {
|
|
1252
|
+
if (output.statusCode >= 300) {
|
|
1253
|
+
return deserializeAws_json1_0UpdateMapRunCommandError(output, context);
|
|
1254
|
+
}
|
|
1255
|
+
const data = await parseBody(output.body, context);
|
|
1256
|
+
let contents = {};
|
|
1257
|
+
contents = deserializeAws_json1_0UpdateMapRunOutput(data, context);
|
|
1258
|
+
const response = {
|
|
1259
|
+
$metadata: deserializeMetadata(output),
|
|
1260
|
+
...contents,
|
|
1261
|
+
};
|
|
1262
|
+
return Promise.resolve(response);
|
|
1263
|
+
};
|
|
1264
|
+
exports.deserializeAws_json1_0UpdateMapRunCommand = deserializeAws_json1_0UpdateMapRunCommand;
|
|
1265
|
+
const deserializeAws_json1_0UpdateMapRunCommandError = async (output, context) => {
|
|
1266
|
+
const parsedOutput = {
|
|
1267
|
+
...output,
|
|
1268
|
+
body: await parseErrorBody(output.body, context),
|
|
1269
|
+
};
|
|
1270
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
|
+
switch (errorCode) {
|
|
1272
|
+
case "InvalidArn":
|
|
1273
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
1274
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1275
|
+
case "ResourceNotFound":
|
|
1276
|
+
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1277
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
1278
|
+
case "ValidationException":
|
|
1279
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
1280
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1281
|
+
default:
|
|
1282
|
+
const parsedBody = parsedOutput.body;
|
|
1283
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1284
|
+
output,
|
|
1285
|
+
parsedBody,
|
|
1286
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1287
|
+
errorCode,
|
|
1288
|
+
});
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1128
1291
|
const deserializeAws_json1_0UpdateStateMachineCommand = async (output, context) => {
|
|
1129
1292
|
if (output.statusCode >= 300) {
|
|
1130
1293
|
return deserializeAws_json1_0UpdateStateMachineCommandError(output, context);
|
|
@@ -1167,6 +1330,9 @@ const deserializeAws_json1_0UpdateStateMachineCommandError = async (output, cont
|
|
|
1167
1330
|
case "StateMachineDoesNotExist":
|
|
1168
1331
|
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
1169
1332
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
1333
|
+
case "ValidationException":
|
|
1334
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
1335
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1170
1336
|
default:
|
|
1171
1337
|
const parsedBody = parsedOutput.body;
|
|
1172
1338
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1393,6 +1559,15 @@ const deserializeAws_json1_0TooManyTagsResponse = async (parsedOutput, context)
|
|
|
1393
1559
|
});
|
|
1394
1560
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1395
1561
|
};
|
|
1562
|
+
const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1563
|
+
const body = parsedOutput.body;
|
|
1564
|
+
const deserialized = deserializeAws_json1_0ValidationException(body, context);
|
|
1565
|
+
const exception = new models_0_1.ValidationException({
|
|
1566
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1567
|
+
...deserialized,
|
|
1568
|
+
});
|
|
1569
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1570
|
+
};
|
|
1396
1571
|
const serializeAws_json1_0CloudWatchLogsLogGroup = (input, context) => {
|
|
1397
1572
|
return {
|
|
1398
1573
|
...(input.logGroupArn != null && { logGroupArn: input.logGroupArn }),
|
|
@@ -1439,6 +1614,11 @@ const serializeAws_json1_0DescribeExecutionInput = (input, context) => {
|
|
|
1439
1614
|
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1440
1615
|
};
|
|
1441
1616
|
};
|
|
1617
|
+
const serializeAws_json1_0DescribeMapRunInput = (input, context) => {
|
|
1618
|
+
return {
|
|
1619
|
+
...(input.mapRunArn != null && { mapRunArn: input.mapRunArn }),
|
|
1620
|
+
};
|
|
1621
|
+
};
|
|
1442
1622
|
const serializeAws_json1_0DescribeStateMachineForExecutionInput = (input, context) => {
|
|
1443
1623
|
return {
|
|
1444
1624
|
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
@@ -1472,12 +1652,20 @@ const serializeAws_json1_0ListActivitiesInput = (input, context) => {
|
|
|
1472
1652
|
};
|
|
1473
1653
|
const serializeAws_json1_0ListExecutionsInput = (input, context) => {
|
|
1474
1654
|
return {
|
|
1655
|
+
...(input.mapRunArn != null && { mapRunArn: input.mapRunArn }),
|
|
1475
1656
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1476
1657
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1477
1658
|
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1478
1659
|
...(input.statusFilter != null && { statusFilter: input.statusFilter }),
|
|
1479
1660
|
};
|
|
1480
1661
|
};
|
|
1662
|
+
const serializeAws_json1_0ListMapRunsInput = (input, context) => {
|
|
1663
|
+
return {
|
|
1664
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1665
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1666
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1667
|
+
};
|
|
1668
|
+
};
|
|
1481
1669
|
const serializeAws_json1_0ListStateMachinesInput = (input, context) => {
|
|
1482
1670
|
return {
|
|
1483
1671
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
@@ -1590,6 +1778,16 @@ const serializeAws_json1_0UntagResourceInput = (input, context) => {
|
|
|
1590
1778
|
...(input.tagKeys != null && { tagKeys: serializeAws_json1_0TagKeyList(input.tagKeys, context) }),
|
|
1591
1779
|
};
|
|
1592
1780
|
};
|
|
1781
|
+
const serializeAws_json1_0UpdateMapRunInput = (input, context) => {
|
|
1782
|
+
return {
|
|
1783
|
+
...(input.mapRunArn != null && { mapRunArn: input.mapRunArn }),
|
|
1784
|
+
...(input.maxConcurrency != null && { maxConcurrency: input.maxConcurrency }),
|
|
1785
|
+
...(input.toleratedFailureCount != null && { toleratedFailureCount: input.toleratedFailureCount }),
|
|
1786
|
+
...(input.toleratedFailurePercentage != null && {
|
|
1787
|
+
toleratedFailurePercentage: (0, smithy_client_1.serializeFloat)(input.toleratedFailurePercentage),
|
|
1788
|
+
}),
|
|
1789
|
+
};
|
|
1790
|
+
};
|
|
1593
1791
|
const serializeAws_json1_0UpdateStateMachineInput = (input, context) => {
|
|
1594
1792
|
return {
|
|
1595
1793
|
...(input.definition != null && { definition: input.definition }),
|
|
@@ -1729,11 +1927,14 @@ const deserializeAws_json1_0DescribeActivityOutput = (output, context) => {
|
|
|
1729
1927
|
};
|
|
1730
1928
|
const deserializeAws_json1_0DescribeExecutionOutput = (output, context) => {
|
|
1731
1929
|
return {
|
|
1930
|
+
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
1931
|
+
error: (0, smithy_client_1.expectString)(output.error),
|
|
1732
1932
|
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
1733
1933
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
1734
1934
|
inputDetails: output.inputDetails != null
|
|
1735
1935
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.inputDetails, context)
|
|
1736
1936
|
: undefined,
|
|
1937
|
+
mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
|
|
1737
1938
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1738
1939
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
1739
1940
|
outputDetails: output.outputDetails != null
|
|
@@ -1746,12 +1947,30 @@ const deserializeAws_json1_0DescribeExecutionOutput = (output, context) => {
|
|
|
1746
1947
|
traceHeader: (0, smithy_client_1.expectString)(output.traceHeader),
|
|
1747
1948
|
};
|
|
1748
1949
|
};
|
|
1950
|
+
const deserializeAws_json1_0DescribeMapRunOutput = (output, context) => {
|
|
1951
|
+
return {
|
|
1952
|
+
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
1953
|
+
executionCounts: output.executionCounts != null
|
|
1954
|
+
? deserializeAws_json1_0MapRunExecutionCounts(output.executionCounts, context)
|
|
1955
|
+
: undefined,
|
|
1956
|
+
itemCounts: output.itemCounts != null ? deserializeAws_json1_0MapRunItemCounts(output.itemCounts, context) : undefined,
|
|
1957
|
+
mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
|
|
1958
|
+
maxConcurrency: (0, smithy_client_1.expectInt32)(output.maxConcurrency),
|
|
1959
|
+
startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
|
|
1960
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1961
|
+
stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
|
|
1962
|
+
toleratedFailureCount: (0, smithy_client_1.expectLong)(output.toleratedFailureCount),
|
|
1963
|
+
toleratedFailurePercentage: (0, smithy_client_1.limitedParseFloat32)(output.toleratedFailurePercentage),
|
|
1964
|
+
};
|
|
1965
|
+
};
|
|
1749
1966
|
const deserializeAws_json1_0DescribeStateMachineForExecutionOutput = (output, context) => {
|
|
1750
1967
|
return {
|
|
1751
1968
|
definition: (0, smithy_client_1.expectString)(output.definition),
|
|
1969
|
+
label: (0, smithy_client_1.expectString)(output.label),
|
|
1752
1970
|
loggingConfiguration: output.loggingConfiguration != null
|
|
1753
1971
|
? deserializeAws_json1_0LoggingConfiguration(output.loggingConfiguration, context)
|
|
1754
1972
|
: undefined,
|
|
1973
|
+
mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
|
|
1755
1974
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1756
1975
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
1757
1976
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
@@ -1767,6 +1986,7 @@ const deserializeAws_json1_0DescribeStateMachineOutput = (output, context) => {
|
|
|
1767
1986
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
1768
1987
|
: undefined,
|
|
1769
1988
|
definition: (0, smithy_client_1.expectString)(output.definition),
|
|
1989
|
+
label: (0, smithy_client_1.expectString)(output.label),
|
|
1770
1990
|
loggingConfiguration: output.loggingConfiguration != null
|
|
1771
1991
|
? deserializeAws_json1_0LoggingConfiguration(output.loggingConfiguration, context)
|
|
1772
1992
|
: undefined,
|
|
@@ -1821,6 +2041,8 @@ const deserializeAws_json1_0ExecutionList = (output, context) => {
|
|
|
1821
2041
|
const deserializeAws_json1_0ExecutionListItem = (output, context) => {
|
|
1822
2042
|
return {
|
|
1823
2043
|
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
2044
|
+
itemCount: (0, smithy_client_1.expectInt32)(output.itemCount),
|
|
2045
|
+
mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
|
|
1824
2046
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1825
2047
|
startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
|
|
1826
2048
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
@@ -1929,6 +2151,12 @@ const deserializeAws_json1_0HistoryEvent = (output, context) => {
|
|
|
1929
2151
|
mapIterationSucceededEventDetails: output.mapIterationSucceededEventDetails != null
|
|
1930
2152
|
? deserializeAws_json1_0MapIterationEventDetails(output.mapIterationSucceededEventDetails, context)
|
|
1931
2153
|
: undefined,
|
|
2154
|
+
mapRunFailedEventDetails: output.mapRunFailedEventDetails != null
|
|
2155
|
+
? deserializeAws_json1_0MapRunFailedEventDetails(output.mapRunFailedEventDetails, context)
|
|
2156
|
+
: undefined,
|
|
2157
|
+
mapRunStartedEventDetails: output.mapRunStartedEventDetails != null
|
|
2158
|
+
? deserializeAws_json1_0MapRunStartedEventDetails(output.mapRunStartedEventDetails, context)
|
|
2159
|
+
: undefined,
|
|
1932
2160
|
mapStateStartedEventDetails: output.mapStateStartedEventDetails != null
|
|
1933
2161
|
? deserializeAws_json1_0MapStateStartedEventDetails(output.mapStateStartedEventDetails, context)
|
|
1934
2162
|
: undefined,
|
|
@@ -2080,6 +2308,12 @@ const deserializeAws_json1_0ListExecutionsOutput = (output, context) => {
|
|
|
2080
2308
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2081
2309
|
};
|
|
2082
2310
|
};
|
|
2311
|
+
const deserializeAws_json1_0ListMapRunsOutput = (output, context) => {
|
|
2312
|
+
return {
|
|
2313
|
+
mapRuns: output.mapRuns != null ? deserializeAws_json1_0MapRunList(output.mapRuns, context) : undefined,
|
|
2314
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2315
|
+
};
|
|
2316
|
+
};
|
|
2083
2317
|
const deserializeAws_json1_0ListStateMachinesOutput = (output, context) => {
|
|
2084
2318
|
return {
|
|
2085
2319
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -2122,6 +2356,61 @@ const deserializeAws_json1_0MapIterationEventDetails = (output, context) => {
|
|
|
2122
2356
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2123
2357
|
};
|
|
2124
2358
|
};
|
|
2359
|
+
const deserializeAws_json1_0MapRunExecutionCounts = (output, context) => {
|
|
2360
|
+
return {
|
|
2361
|
+
aborted: (0, smithy_client_1.expectLong)(output.aborted),
|
|
2362
|
+
failed: (0, smithy_client_1.expectLong)(output.failed),
|
|
2363
|
+
pending: (0, smithy_client_1.expectLong)(output.pending),
|
|
2364
|
+
resultsWritten: (0, smithy_client_1.expectLong)(output.resultsWritten),
|
|
2365
|
+
running: (0, smithy_client_1.expectLong)(output.running),
|
|
2366
|
+
succeeded: (0, smithy_client_1.expectLong)(output.succeeded),
|
|
2367
|
+
timedOut: (0, smithy_client_1.expectLong)(output.timedOut),
|
|
2368
|
+
total: (0, smithy_client_1.expectLong)(output.total),
|
|
2369
|
+
};
|
|
2370
|
+
};
|
|
2371
|
+
const deserializeAws_json1_0MapRunFailedEventDetails = (output, context) => {
|
|
2372
|
+
return {
|
|
2373
|
+
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2374
|
+
error: (0, smithy_client_1.expectString)(output.error),
|
|
2375
|
+
};
|
|
2376
|
+
};
|
|
2377
|
+
const deserializeAws_json1_0MapRunItemCounts = (output, context) => {
|
|
2378
|
+
return {
|
|
2379
|
+
aborted: (0, smithy_client_1.expectLong)(output.aborted),
|
|
2380
|
+
failed: (0, smithy_client_1.expectLong)(output.failed),
|
|
2381
|
+
pending: (0, smithy_client_1.expectLong)(output.pending),
|
|
2382
|
+
resultsWritten: (0, smithy_client_1.expectLong)(output.resultsWritten),
|
|
2383
|
+
running: (0, smithy_client_1.expectLong)(output.running),
|
|
2384
|
+
succeeded: (0, smithy_client_1.expectLong)(output.succeeded),
|
|
2385
|
+
timedOut: (0, smithy_client_1.expectLong)(output.timedOut),
|
|
2386
|
+
total: (0, smithy_client_1.expectLong)(output.total),
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
2389
|
+
const deserializeAws_json1_0MapRunList = (output, context) => {
|
|
2390
|
+
const retVal = (output || [])
|
|
2391
|
+
.filter((e) => e != null)
|
|
2392
|
+
.map((entry) => {
|
|
2393
|
+
if (entry === null) {
|
|
2394
|
+
return null;
|
|
2395
|
+
}
|
|
2396
|
+
return deserializeAws_json1_0MapRunListItem(entry, context);
|
|
2397
|
+
});
|
|
2398
|
+
return retVal;
|
|
2399
|
+
};
|
|
2400
|
+
const deserializeAws_json1_0MapRunListItem = (output, context) => {
|
|
2401
|
+
return {
|
|
2402
|
+
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
2403
|
+
mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
|
|
2404
|
+
startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
|
|
2405
|
+
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
2406
|
+
stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
|
|
2407
|
+
};
|
|
2408
|
+
};
|
|
2409
|
+
const deserializeAws_json1_0MapRunStartedEventDetails = (output, context) => {
|
|
2410
|
+
return {
|
|
2411
|
+
mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
|
|
2412
|
+
};
|
|
2413
|
+
};
|
|
2125
2414
|
const deserializeAws_json1_0MapStateStartedEventDetails = (output, context) => {
|
|
2126
2415
|
return {
|
|
2127
2416
|
length: (0, smithy_client_1.expectInt32)(output.length),
|
|
@@ -2364,11 +2653,20 @@ const deserializeAws_json1_0TracingConfiguration = (output, context) => {
|
|
|
2364
2653
|
const deserializeAws_json1_0UntagResourceOutput = (output, context) => {
|
|
2365
2654
|
return {};
|
|
2366
2655
|
};
|
|
2656
|
+
const deserializeAws_json1_0UpdateMapRunOutput = (output, context) => {
|
|
2657
|
+
return {};
|
|
2658
|
+
};
|
|
2367
2659
|
const deserializeAws_json1_0UpdateStateMachineOutput = (output, context) => {
|
|
2368
2660
|
return {
|
|
2369
2661
|
updateDate: output.updateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDate))) : undefined,
|
|
2370
2662
|
};
|
|
2371
2663
|
};
|
|
2664
|
+
const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
2665
|
+
return {
|
|
2666
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2667
|
+
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2668
|
+
};
|
|
2669
|
+
};
|
|
2372
2670
|
const deserializeMetadata = (output) => ({
|
|
2373
2671
|
httpStatusCode: output.statusCode,
|
|
2374
2672
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/SFN.js
CHANGED
|
@@ -4,12 +4,14 @@ import { DeleteActivityCommand, } from "./commands/DeleteActivityCommand";
|
|
|
4
4
|
import { DeleteStateMachineCommand, } from "./commands/DeleteStateMachineCommand";
|
|
5
5
|
import { DescribeActivityCommand, } from "./commands/DescribeActivityCommand";
|
|
6
6
|
import { DescribeExecutionCommand, } from "./commands/DescribeExecutionCommand";
|
|
7
|
+
import { DescribeMapRunCommand, } from "./commands/DescribeMapRunCommand";
|
|
7
8
|
import { DescribeStateMachineCommand, } from "./commands/DescribeStateMachineCommand";
|
|
8
9
|
import { DescribeStateMachineForExecutionCommand, } from "./commands/DescribeStateMachineForExecutionCommand";
|
|
9
10
|
import { GetActivityTaskCommand, } from "./commands/GetActivityTaskCommand";
|
|
10
11
|
import { GetExecutionHistoryCommand, } from "./commands/GetExecutionHistoryCommand";
|
|
11
12
|
import { ListActivitiesCommand, } from "./commands/ListActivitiesCommand";
|
|
12
13
|
import { ListExecutionsCommand, } from "./commands/ListExecutionsCommand";
|
|
14
|
+
import { ListMapRunsCommand } from "./commands/ListMapRunsCommand";
|
|
13
15
|
import { ListStateMachinesCommand, } from "./commands/ListStateMachinesCommand";
|
|
14
16
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
15
17
|
import { SendTaskFailureCommand, } from "./commands/SendTaskFailureCommand";
|
|
@@ -20,6 +22,7 @@ import { StartSyncExecutionCommand, } from "./commands/StartSyncExecutionCommand
|
|
|
20
22
|
import { StopExecutionCommand, } from "./commands/StopExecutionCommand";
|
|
21
23
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
22
24
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
25
|
+
import { UpdateMapRunCommand, } from "./commands/UpdateMapRunCommand";
|
|
23
26
|
import { UpdateStateMachineCommand, } from "./commands/UpdateStateMachineCommand";
|
|
24
27
|
import { SFNClient } from "./SFNClient";
|
|
25
28
|
export class SFN extends SFNClient {
|
|
@@ -107,6 +110,20 @@ export class SFN extends SFNClient {
|
|
|
107
110
|
return this.send(command, optionsOrCb);
|
|
108
111
|
}
|
|
109
112
|
}
|
|
113
|
+
describeMapRun(args, optionsOrCb, cb) {
|
|
114
|
+
const command = new DescribeMapRunCommand(args);
|
|
115
|
+
if (typeof optionsOrCb === "function") {
|
|
116
|
+
this.send(command, optionsOrCb);
|
|
117
|
+
}
|
|
118
|
+
else if (typeof cb === "function") {
|
|
119
|
+
if (typeof optionsOrCb !== "object")
|
|
120
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
return this.send(command, optionsOrCb);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
110
127
|
describeStateMachine(args, optionsOrCb, cb) {
|
|
111
128
|
const command = new DescribeStateMachineCommand(args);
|
|
112
129
|
if (typeof optionsOrCb === "function") {
|
|
@@ -191,6 +208,20 @@ export class SFN extends SFNClient {
|
|
|
191
208
|
return this.send(command, optionsOrCb);
|
|
192
209
|
}
|
|
193
210
|
}
|
|
211
|
+
listMapRuns(args, optionsOrCb, cb) {
|
|
212
|
+
const command = new ListMapRunsCommand(args);
|
|
213
|
+
if (typeof optionsOrCb === "function") {
|
|
214
|
+
this.send(command, optionsOrCb);
|
|
215
|
+
}
|
|
216
|
+
else if (typeof cb === "function") {
|
|
217
|
+
if (typeof optionsOrCb !== "object")
|
|
218
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
219
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
return this.send(command, optionsOrCb);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
194
225
|
listStateMachines(args, optionsOrCb, cb) {
|
|
195
226
|
const command = new ListStateMachinesCommand(args);
|
|
196
227
|
if (typeof optionsOrCb === "function") {
|
|
@@ -331,6 +362,20 @@ export class SFN extends SFNClient {
|
|
|
331
362
|
return this.send(command, optionsOrCb);
|
|
332
363
|
}
|
|
333
364
|
}
|
|
365
|
+
updateMapRun(args, optionsOrCb, cb) {
|
|
366
|
+
const command = new UpdateMapRunCommand(args);
|
|
367
|
+
if (typeof optionsOrCb === "function") {
|
|
368
|
+
this.send(command, optionsOrCb);
|
|
369
|
+
}
|
|
370
|
+
else if (typeof cb === "function") {
|
|
371
|
+
if (typeof optionsOrCb !== "object")
|
|
372
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
373
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
return this.send(command, optionsOrCb);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
334
379
|
updateStateMachine(args, optionsOrCb, cb) {
|
|
335
380
|
const command = new UpdateStateMachineCommand(args);
|
|
336
381
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeMapRunInputFilterSensitiveLog, DescribeMapRunOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0DescribeMapRunCommand, serializeAws_json1_0DescribeMapRunCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export class DescribeMapRunCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeMapRunCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SFNClient";
|
|
25
|
+
const commandName = "DescribeMapRunCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DescribeMapRunInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DescribeMapRunOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_0DescribeMapRunCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_0DescribeMapRunCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListMapRunsInputFilterSensitiveLog, ListMapRunsOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0ListMapRunsCommand, serializeAws_json1_0ListMapRunsCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export class ListMapRunsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListMapRunsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SFNClient";
|
|
25
|
+
const commandName = "ListMapRunsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListMapRunsInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListMapRunsOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_0ListMapRunsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_0ListMapRunsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|