@aws-sdk/client-sfn 3.556.0 → 3.564.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 +8 -0
- package/dist-cjs/index.js +58 -2
- package/dist-es/SFN.js +2 -0
- package/dist-es/commands/ValidateStateMachineDefinitionCommand.js +25 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +11 -0
- package/dist-es/protocols/Aws_json1_0.js +19 -0
- package/dist-types/SFN.d.ts +7 -0
- package/dist-types/SFNClient.d.ts +3 -2
- package/dist-types/commands/RedriveExecutionCommand.d.ts +3 -0
- package/dist-types/commands/ValidateStateMachineDefinitionCommand.d.ts +91 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +90 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
- package/dist-types/ts3.4/SFN.d.ts +17 -0
- package/dist-types/ts3.4/SFNClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/ValidateStateMachineDefinitionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +28 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -510,3 +510,11 @@ UpdateStateMachineAlias
|
|
|
510
510
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sfn/command/UpdateStateMachineAliasCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sfn/Interface/UpdateStateMachineAliasCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sfn/Interface/UpdateStateMachineAliasCommandOutput/)
|
|
511
511
|
|
|
512
512
|
</details>
|
|
513
|
+
<details>
|
|
514
|
+
<summary>
|
|
515
|
+
ValidateStateMachineDefinition
|
|
516
|
+
</summary>
|
|
517
|
+
|
|
518
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sfn/command/ValidateStateMachineDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sfn/Interface/ValidateStateMachineDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sfn/Interface/ValidateStateMachineDefinitionCommandOutput/)
|
|
519
|
+
|
|
520
|
+
</details>
|
package/dist-cjs/index.js
CHANGED
|
@@ -145,6 +145,10 @@ __export(src_exports, {
|
|
|
145
145
|
UpdateStateMachineAliasInputFilterSensitiveLog: () => UpdateStateMachineAliasInputFilterSensitiveLog,
|
|
146
146
|
UpdateStateMachineCommand: () => UpdateStateMachineCommand,
|
|
147
147
|
UpdateStateMachineInputFilterSensitiveLog: () => UpdateStateMachineInputFilterSensitiveLog,
|
|
148
|
+
ValidateStateMachineDefinitionCommand: () => ValidateStateMachineDefinitionCommand,
|
|
149
|
+
ValidateStateMachineDefinitionInputFilterSensitiveLog: () => ValidateStateMachineDefinitionInputFilterSensitiveLog,
|
|
150
|
+
ValidateStateMachineDefinitionResultCode: () => ValidateStateMachineDefinitionResultCode,
|
|
151
|
+
ValidateStateMachineDefinitionSeverity: () => ValidateStateMachineDefinitionSeverity,
|
|
148
152
|
ValidationException: () => ValidationException,
|
|
149
153
|
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
150
154
|
__Client: () => import_smithy_client.Client,
|
|
@@ -933,6 +937,13 @@ var _MissingRequiredParameter = class _MissingRequiredParameter extends SFNServi
|
|
|
933
937
|
};
|
|
934
938
|
__name(_MissingRequiredParameter, "MissingRequiredParameter");
|
|
935
939
|
var MissingRequiredParameter = _MissingRequiredParameter;
|
|
940
|
+
var ValidateStateMachineDefinitionSeverity = {
|
|
941
|
+
ERROR: "ERROR"
|
|
942
|
+
};
|
|
943
|
+
var ValidateStateMachineDefinitionResultCode = {
|
|
944
|
+
FAIL: "FAIL",
|
|
945
|
+
OK: "OK"
|
|
946
|
+
};
|
|
936
947
|
var ActivityFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
937
948
|
...obj,
|
|
938
949
|
...obj.error && { error: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -1250,6 +1261,10 @@ var UpdateStateMachineAliasInputFilterSensitiveLog = /* @__PURE__ */ __name((obj
|
|
|
1250
1261
|
...obj,
|
|
1251
1262
|
...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
|
|
1252
1263
|
}), "UpdateStateMachineAliasInputFilterSensitiveLog");
|
|
1264
|
+
var ValidateStateMachineDefinitionInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1265
|
+
...obj,
|
|
1266
|
+
...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
|
|
1267
|
+
}), "ValidateStateMachineDefinitionInputFilterSensitiveLog");
|
|
1253
1268
|
|
|
1254
1269
|
// src/protocols/Aws_json1_0.ts
|
|
1255
1270
|
var se_CreateActivityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -1482,6 +1497,12 @@ var se_UpdateStateMachineAliasCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
1482
1497
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1483
1498
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1484
1499
|
}, "se_UpdateStateMachineAliasCommand");
|
|
1500
|
+
var se_ValidateStateMachineDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1501
|
+
const headers = sharedHeaders("ValidateStateMachineDefinition");
|
|
1502
|
+
let body;
|
|
1503
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1504
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1505
|
+
}, "se_ValidateStateMachineDefinitionCommand");
|
|
1485
1506
|
var de_CreateActivityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1486
1507
|
if (output.statusCode >= 300) {
|
|
1487
1508
|
return de_CommandError(output, context);
|
|
@@ -1950,6 +1971,19 @@ var de_UpdateStateMachineAliasCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1950
1971
|
};
|
|
1951
1972
|
return response;
|
|
1952
1973
|
}, "de_UpdateStateMachineAliasCommand");
|
|
1974
|
+
var de_ValidateStateMachineDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1975
|
+
if (output.statusCode >= 300) {
|
|
1976
|
+
return de_CommandError(output, context);
|
|
1977
|
+
}
|
|
1978
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1979
|
+
let contents = {};
|
|
1980
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1981
|
+
const response = {
|
|
1982
|
+
$metadata: deserializeMetadata(output),
|
|
1983
|
+
...contents
|
|
1984
|
+
};
|
|
1985
|
+
return response;
|
|
1986
|
+
}, "de_ValidateStateMachineDefinitionCommand");
|
|
1953
1987
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1954
1988
|
const parsedOutput = {
|
|
1955
1989
|
...output,
|
|
@@ -3295,6 +3329,23 @@ var _UpdateStateMachineCommand = class _UpdateStateMachineCommand extends import
|
|
|
3295
3329
|
__name(_UpdateStateMachineCommand, "UpdateStateMachineCommand");
|
|
3296
3330
|
var UpdateStateMachineCommand = _UpdateStateMachineCommand;
|
|
3297
3331
|
|
|
3332
|
+
// src/commands/ValidateStateMachineDefinitionCommand.ts
|
|
3333
|
+
|
|
3334
|
+
|
|
3335
|
+
|
|
3336
|
+
|
|
3337
|
+
var _ValidateStateMachineDefinitionCommand = class _ValidateStateMachineDefinitionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3338
|
+
...commonParams
|
|
3339
|
+
}).m(function(Command, cs, config, o) {
|
|
3340
|
+
return [
|
|
3341
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3342
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3343
|
+
];
|
|
3344
|
+
}).s("AWSStepFunctions", "ValidateStateMachineDefinition", {}).n("SFNClient", "ValidateStateMachineDefinitionCommand").f(ValidateStateMachineDefinitionInputFilterSensitiveLog, void 0).ser(se_ValidateStateMachineDefinitionCommand).de(de_ValidateStateMachineDefinitionCommand).build() {
|
|
3345
|
+
};
|
|
3346
|
+
__name(_ValidateStateMachineDefinitionCommand, "ValidateStateMachineDefinitionCommand");
|
|
3347
|
+
var ValidateStateMachineDefinitionCommand = _ValidateStateMachineDefinitionCommand;
|
|
3348
|
+
|
|
3298
3349
|
// src/SFN.ts
|
|
3299
3350
|
var commands = {
|
|
3300
3351
|
CreateActivityCommand,
|
|
@@ -3332,7 +3383,8 @@ var commands = {
|
|
|
3332
3383
|
UntagResourceCommand,
|
|
3333
3384
|
UpdateMapRunCommand,
|
|
3334
3385
|
UpdateStateMachineCommand,
|
|
3335
|
-
UpdateStateMachineAliasCommand
|
|
3386
|
+
UpdateStateMachineAliasCommand,
|
|
3387
|
+
ValidateStateMachineDefinitionCommand
|
|
3336
3388
|
};
|
|
3337
3389
|
var _SFN = class _SFN extends SFNClient {
|
|
3338
3390
|
};
|
|
@@ -3403,6 +3455,7 @@ var paginateListStateMachines = (0, import_core.createPaginator)(SFNClient, List
|
|
|
3403
3455
|
UpdateMapRunCommand,
|
|
3404
3456
|
UpdateStateMachineAliasCommand,
|
|
3405
3457
|
UpdateStateMachineCommand,
|
|
3458
|
+
ValidateStateMachineDefinitionCommand,
|
|
3406
3459
|
paginateGetExecutionHistory,
|
|
3407
3460
|
paginateListActivities,
|
|
3408
3461
|
paginateListExecutions,
|
|
@@ -3448,6 +3501,8 @@ var paginateListStateMachines = (0, import_core.createPaginator)(SFNClient, List
|
|
|
3448
3501
|
InspectionLevel,
|
|
3449
3502
|
TestExecutionStatus,
|
|
3450
3503
|
MissingRequiredParameter,
|
|
3504
|
+
ValidateStateMachineDefinitionSeverity,
|
|
3505
|
+
ValidateStateMachineDefinitionResultCode,
|
|
3451
3506
|
ActivityFailedEventDetailsFilterSensitiveLog,
|
|
3452
3507
|
ActivityScheduledEventDetailsFilterSensitiveLog,
|
|
3453
3508
|
ActivityScheduleFailedEventDetailsFilterSensitiveLog,
|
|
@@ -3494,6 +3549,7 @@ var paginateListStateMachines = (0, import_core.createPaginator)(SFNClient, List
|
|
|
3494
3549
|
InspectionDataFilterSensitiveLog,
|
|
3495
3550
|
TestStateOutputFilterSensitiveLog,
|
|
3496
3551
|
UpdateStateMachineInputFilterSensitiveLog,
|
|
3497
|
-
UpdateStateMachineAliasInputFilterSensitiveLog
|
|
3552
|
+
UpdateStateMachineAliasInputFilterSensitiveLog,
|
|
3553
|
+
ValidateStateMachineDefinitionInputFilterSensitiveLog
|
|
3498
3554
|
});
|
|
3499
3555
|
|
package/dist-es/SFN.js
CHANGED
|
@@ -35,6 +35,7 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
35
35
|
import { UpdateMapRunCommand, } from "./commands/UpdateMapRunCommand";
|
|
36
36
|
import { UpdateStateMachineAliasCommand, } from "./commands/UpdateStateMachineAliasCommand";
|
|
37
37
|
import { UpdateStateMachineCommand, } from "./commands/UpdateStateMachineCommand";
|
|
38
|
+
import { ValidateStateMachineDefinitionCommand, } from "./commands/ValidateStateMachineDefinitionCommand";
|
|
38
39
|
import { SFNClient } from "./SFNClient";
|
|
39
40
|
const commands = {
|
|
40
41
|
CreateActivityCommand,
|
|
@@ -73,6 +74,7 @@ const commands = {
|
|
|
73
74
|
UpdateMapRunCommand,
|
|
74
75
|
UpdateStateMachineCommand,
|
|
75
76
|
UpdateStateMachineAliasCommand,
|
|
77
|
+
ValidateStateMachineDefinitionCommand,
|
|
76
78
|
};
|
|
77
79
|
export class SFN extends SFNClient {
|
|
78
80
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { ValidateStateMachineDefinitionInputFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_ValidateStateMachineDefinitionCommand, se_ValidateStateMachineDefinitionCommand, } from "../protocols/Aws_json1_0";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class ValidateStateMachineDefinitionCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AWSStepFunctions", "ValidateStateMachineDefinition", {})
|
|
20
|
+
.n("SFNClient", "ValidateStateMachineDefinitionCommand")
|
|
21
|
+
.f(ValidateStateMachineDefinitionInputFilterSensitiveLog, void 0)
|
|
22
|
+
.ser(se_ValidateStateMachineDefinitionCommand)
|
|
23
|
+
.de(de_ValidateStateMachineDefinitionCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -461,6 +461,13 @@ export class MissingRequiredParameter extends __BaseException {
|
|
|
461
461
|
Object.setPrototypeOf(this, MissingRequiredParameter.prototype);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
+
export const ValidateStateMachineDefinitionSeverity = {
|
|
465
|
+
ERROR: "ERROR",
|
|
466
|
+
};
|
|
467
|
+
export const ValidateStateMachineDefinitionResultCode = {
|
|
468
|
+
FAIL: "FAIL",
|
|
469
|
+
OK: "OK",
|
|
470
|
+
};
|
|
464
471
|
export const ActivityFailedEventDetailsFilterSensitiveLog = (obj) => ({
|
|
465
472
|
...obj,
|
|
466
473
|
...(obj.error && { error: SENSITIVE_STRING }),
|
|
@@ -762,3 +769,7 @@ export const UpdateStateMachineAliasInputFilterSensitiveLog = (obj) => ({
|
|
|
762
769
|
...obj,
|
|
763
770
|
...(obj.description && { description: SENSITIVE_STRING }),
|
|
764
771
|
});
|
|
772
|
+
export const ValidateStateMachineDefinitionInputFilterSensitiveLog = (obj) => ({
|
|
773
|
+
...obj,
|
|
774
|
+
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
775
|
+
});
|
|
@@ -234,6 +234,12 @@ export const se_UpdateStateMachineAliasCommand = async (input, context) => {
|
|
|
234
234
|
body = JSON.stringify(_json(input));
|
|
235
235
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
236
|
};
|
|
237
|
+
export const se_ValidateStateMachineDefinitionCommand = async (input, context) => {
|
|
238
|
+
const headers = sharedHeaders("ValidateStateMachineDefinition");
|
|
239
|
+
let body;
|
|
240
|
+
body = JSON.stringify(_json(input));
|
|
241
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
242
|
+
};
|
|
237
243
|
export const de_CreateActivityCommand = async (output, context) => {
|
|
238
244
|
if (output.statusCode >= 300) {
|
|
239
245
|
return de_CommandError(output, context);
|
|
@@ -702,6 +708,19 @@ export const de_UpdateStateMachineAliasCommand = async (output, context) => {
|
|
|
702
708
|
};
|
|
703
709
|
return response;
|
|
704
710
|
};
|
|
711
|
+
export const de_ValidateStateMachineDefinitionCommand = async (output, context) => {
|
|
712
|
+
if (output.statusCode >= 300) {
|
|
713
|
+
return de_CommandError(output, context);
|
|
714
|
+
}
|
|
715
|
+
const data = await parseBody(output.body, context);
|
|
716
|
+
let contents = {};
|
|
717
|
+
contents = _json(data);
|
|
718
|
+
const response = {
|
|
719
|
+
$metadata: deserializeMetadata(output),
|
|
720
|
+
...contents,
|
|
721
|
+
};
|
|
722
|
+
return response;
|
|
723
|
+
};
|
|
705
724
|
const de_CommandError = async (output, context) => {
|
|
706
725
|
const parsedOutput = {
|
|
707
726
|
...output,
|
package/dist-types/SFN.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
35
35
|
import { UpdateMapRunCommandInput, UpdateMapRunCommandOutput } from "./commands/UpdateMapRunCommand";
|
|
36
36
|
import { UpdateStateMachineAliasCommandInput, UpdateStateMachineAliasCommandOutput } from "./commands/UpdateStateMachineAliasCommand";
|
|
37
37
|
import { UpdateStateMachineCommandInput, UpdateStateMachineCommandOutput } from "./commands/UpdateStateMachineCommand";
|
|
38
|
+
import { ValidateStateMachineDefinitionCommandInput, ValidateStateMachineDefinitionCommandOutput } from "./commands/ValidateStateMachineDefinitionCommand";
|
|
38
39
|
import { SFNClient } from "./SFNClient";
|
|
39
40
|
export interface SFN {
|
|
40
41
|
/**
|
|
@@ -256,6 +257,12 @@ export interface SFN {
|
|
|
256
257
|
updateStateMachineAlias(args: UpdateStateMachineAliasCommandInput, options?: __HttpHandlerOptions): Promise<UpdateStateMachineAliasCommandOutput>;
|
|
257
258
|
updateStateMachineAlias(args: UpdateStateMachineAliasCommandInput, cb: (err: any, data?: UpdateStateMachineAliasCommandOutput) => void): void;
|
|
258
259
|
updateStateMachineAlias(args: UpdateStateMachineAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateStateMachineAliasCommandOutput) => void): void;
|
|
260
|
+
/**
|
|
261
|
+
* @see {@link ValidateStateMachineDefinitionCommand}
|
|
262
|
+
*/
|
|
263
|
+
validateStateMachineDefinition(args: ValidateStateMachineDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<ValidateStateMachineDefinitionCommandOutput>;
|
|
264
|
+
validateStateMachineDefinition(args: ValidateStateMachineDefinitionCommandInput, cb: (err: any, data?: ValidateStateMachineDefinitionCommandOutput) => void): void;
|
|
265
|
+
validateStateMachineDefinition(args: ValidateStateMachineDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ValidateStateMachineDefinitionCommandOutput) => void): void;
|
|
259
266
|
}
|
|
260
267
|
/**
|
|
261
268
|
* <fullname>Step Functions</fullname>
|
|
@@ -43,17 +43,18 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
43
43
|
import { UpdateMapRunCommandInput, UpdateMapRunCommandOutput } from "./commands/UpdateMapRunCommand";
|
|
44
44
|
import { UpdateStateMachineAliasCommandInput, UpdateStateMachineAliasCommandOutput } from "./commands/UpdateStateMachineAliasCommand";
|
|
45
45
|
import { UpdateStateMachineCommandInput, UpdateStateMachineCommandOutput } from "./commands/UpdateStateMachineCommand";
|
|
46
|
+
import { ValidateStateMachineDefinitionCommandInput, ValidateStateMachineDefinitionCommandOutput } from "./commands/ValidateStateMachineDefinitionCommand";
|
|
46
47
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
47
48
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
48
49
|
export { __Client };
|
|
49
50
|
/**
|
|
50
51
|
* @public
|
|
51
52
|
*/
|
|
52
|
-
export type ServiceInputTypes = CreateActivityCommandInput | CreateStateMachineAliasCommandInput | CreateStateMachineCommandInput | DeleteActivityCommandInput | DeleteStateMachineAliasCommandInput | DeleteStateMachineCommandInput | DeleteStateMachineVersionCommandInput | DescribeActivityCommandInput | DescribeExecutionCommandInput | DescribeMapRunCommandInput | DescribeStateMachineAliasCommandInput | DescribeStateMachineCommandInput | DescribeStateMachineForExecutionCommandInput | GetActivityTaskCommandInput | GetExecutionHistoryCommandInput | ListActivitiesCommandInput | ListExecutionsCommandInput | ListMapRunsCommandInput | ListStateMachineAliasesCommandInput | ListStateMachineVersionsCommandInput | ListStateMachinesCommandInput | ListTagsForResourceCommandInput | PublishStateMachineVersionCommandInput | RedriveExecutionCommandInput | SendTaskFailureCommandInput | SendTaskHeartbeatCommandInput | SendTaskSuccessCommandInput | StartExecutionCommandInput | StartSyncExecutionCommandInput | StopExecutionCommandInput | TagResourceCommandInput | TestStateCommandInput | UntagResourceCommandInput | UpdateMapRunCommandInput | UpdateStateMachineAliasCommandInput | UpdateStateMachineCommandInput;
|
|
53
|
+
export type ServiceInputTypes = CreateActivityCommandInput | CreateStateMachineAliasCommandInput | CreateStateMachineCommandInput | DeleteActivityCommandInput | DeleteStateMachineAliasCommandInput | DeleteStateMachineCommandInput | DeleteStateMachineVersionCommandInput | DescribeActivityCommandInput | DescribeExecutionCommandInput | DescribeMapRunCommandInput | DescribeStateMachineAliasCommandInput | DescribeStateMachineCommandInput | DescribeStateMachineForExecutionCommandInput | GetActivityTaskCommandInput | GetExecutionHistoryCommandInput | ListActivitiesCommandInput | ListExecutionsCommandInput | ListMapRunsCommandInput | ListStateMachineAliasesCommandInput | ListStateMachineVersionsCommandInput | ListStateMachinesCommandInput | ListTagsForResourceCommandInput | PublishStateMachineVersionCommandInput | RedriveExecutionCommandInput | SendTaskFailureCommandInput | SendTaskHeartbeatCommandInput | SendTaskSuccessCommandInput | StartExecutionCommandInput | StartSyncExecutionCommandInput | StopExecutionCommandInput | TagResourceCommandInput | TestStateCommandInput | UntagResourceCommandInput | UpdateMapRunCommandInput | UpdateStateMachineAliasCommandInput | UpdateStateMachineCommandInput | ValidateStateMachineDefinitionCommandInput;
|
|
53
54
|
/**
|
|
54
55
|
* @public
|
|
55
56
|
*/
|
|
56
|
-
export type ServiceOutputTypes = CreateActivityCommandOutput | CreateStateMachineAliasCommandOutput | CreateStateMachineCommandOutput | DeleteActivityCommandOutput | DeleteStateMachineAliasCommandOutput | DeleteStateMachineCommandOutput | DeleteStateMachineVersionCommandOutput | DescribeActivityCommandOutput | DescribeExecutionCommandOutput | DescribeMapRunCommandOutput | DescribeStateMachineAliasCommandOutput | DescribeStateMachineCommandOutput | DescribeStateMachineForExecutionCommandOutput | GetActivityTaskCommandOutput | GetExecutionHistoryCommandOutput | ListActivitiesCommandOutput | ListExecutionsCommandOutput | ListMapRunsCommandOutput | ListStateMachineAliasesCommandOutput | ListStateMachineVersionsCommandOutput | ListStateMachinesCommandOutput | ListTagsForResourceCommandOutput | PublishStateMachineVersionCommandOutput | RedriveExecutionCommandOutput | SendTaskFailureCommandOutput | SendTaskHeartbeatCommandOutput | SendTaskSuccessCommandOutput | StartExecutionCommandOutput | StartSyncExecutionCommandOutput | StopExecutionCommandOutput | TagResourceCommandOutput | TestStateCommandOutput | UntagResourceCommandOutput | UpdateMapRunCommandOutput | UpdateStateMachineAliasCommandOutput | UpdateStateMachineCommandOutput;
|
|
57
|
+
export type ServiceOutputTypes = CreateActivityCommandOutput | CreateStateMachineAliasCommandOutput | CreateStateMachineCommandOutput | DeleteActivityCommandOutput | DeleteStateMachineAliasCommandOutput | DeleteStateMachineCommandOutput | DeleteStateMachineVersionCommandOutput | DescribeActivityCommandOutput | DescribeExecutionCommandOutput | DescribeMapRunCommandOutput | DescribeStateMachineAliasCommandOutput | DescribeStateMachineCommandOutput | DescribeStateMachineForExecutionCommandOutput | GetActivityTaskCommandOutput | GetExecutionHistoryCommandOutput | ListActivitiesCommandOutput | ListExecutionsCommandOutput | ListMapRunsCommandOutput | ListStateMachineAliasesCommandOutput | ListStateMachineVersionsCommandOutput | ListStateMachinesCommandOutput | ListTagsForResourceCommandOutput | PublishStateMachineVersionCommandOutput | RedriveExecutionCommandOutput | SendTaskFailureCommandOutput | SendTaskHeartbeatCommandOutput | SendTaskSuccessCommandOutput | StartExecutionCommandOutput | StartSyncExecutionCommandOutput | StopExecutionCommandOutput | TagResourceCommandOutput | TestStateCommandOutput | UntagResourceCommandOutput | UpdateMapRunCommandOutput | UpdateStateMachineAliasCommandOutput | UpdateStateMachineCommandOutput | ValidateStateMachineDefinitionCommandOutput;
|
|
57
58
|
/**
|
|
58
59
|
* @public
|
|
59
60
|
*/
|
|
@@ -85,6 +85,9 @@ declare const RedriveExecutionCommand_base: {
|
|
|
85
85
|
* @throws {@link InvalidArn} (client fault)
|
|
86
86
|
* <p>The provided Amazon Resource Name (ARN) is not valid.</p>
|
|
87
87
|
*
|
|
88
|
+
* @throws {@link ValidationException} (client fault)
|
|
89
|
+
* <p>The input does not satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
90
|
+
*
|
|
88
91
|
* @throws {@link SFNServiceException}
|
|
89
92
|
* <p>Base exception class for all service exceptions from SFN service.</p>
|
|
90
93
|
*
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ValidateStateMachineDefinitionInput, ValidateStateMachineDefinitionOutput } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SFNClientResolvedConfig } from "../SFNClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link ValidateStateMachineDefinitionCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface ValidateStateMachineDefinitionCommandInput extends ValidateStateMachineDefinitionInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link ValidateStateMachineDefinitionCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface ValidateStateMachineDefinitionCommandOutput extends ValidateStateMachineDefinitionOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const ValidateStateMachineDefinitionCommand_base: {
|
|
24
|
+
new (input: ValidateStateMachineDefinitionCommandInput): import("@smithy/smithy-client").CommandImpl<ValidateStateMachineDefinitionCommandInput, ValidateStateMachineDefinitionCommandOutput, SFNClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: ValidateStateMachineDefinitionCommandInput): import("@smithy/smithy-client").CommandImpl<ValidateStateMachineDefinitionCommandInput, ValidateStateMachineDefinitionCommandOutput, SFNClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* <p>Validates the syntax of a state machine definition.</p>
|
|
30
|
+
* <p>You can validate that a state machine definition is correct without
|
|
31
|
+
* creating a state machine resource. Step Functions will implicitly perform the same
|
|
32
|
+
* syntax check when you invoke <code>CreateStateMachine</code> and
|
|
33
|
+
* <code>UpdateStateMachine</code>. State machine definitions are specified using a
|
|
34
|
+
* JSON-based, structured language. For more information on Amazon States Language see <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon States Language</a> (ASL). </p>
|
|
35
|
+
* <p>Suggested uses for <code>ValidateStateMachineDefinition</code>:</p>
|
|
36
|
+
* <ul>
|
|
37
|
+
* <li>
|
|
38
|
+
* <p>Integrate automated checks into your code review or Continuous Integration
|
|
39
|
+
* (CI) process to validate state machine definitions before starting
|
|
40
|
+
* deployments.</p>
|
|
41
|
+
* </li>
|
|
42
|
+
* <li>
|
|
43
|
+
* <p>Run the validation from a Git pre-commit hook to check your state machine
|
|
44
|
+
* definitions before committing them to your source repository.</p>
|
|
45
|
+
* </li>
|
|
46
|
+
* </ul>
|
|
47
|
+
* <note>
|
|
48
|
+
* <p>Errors found in the state machine definition will be returned in the response as a list of <b>diagnostic elements</b>, rather than raise an exception.</p>
|
|
49
|
+
* </note>
|
|
50
|
+
* @example
|
|
51
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
52
|
+
* ```javascript
|
|
53
|
+
* import { SFNClient, ValidateStateMachineDefinitionCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
54
|
+
* // const { SFNClient, ValidateStateMachineDefinitionCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
55
|
+
* const client = new SFNClient(config);
|
|
56
|
+
* const input = { // ValidateStateMachineDefinitionInput
|
|
57
|
+
* definition: "STRING_VALUE", // required
|
|
58
|
+
* type: "STANDARD" || "EXPRESS",
|
|
59
|
+
* };
|
|
60
|
+
* const command = new ValidateStateMachineDefinitionCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // { // ValidateStateMachineDefinitionOutput
|
|
63
|
+
* // result: "OK" || "FAIL", // required
|
|
64
|
+
* // diagnostics: [ // ValidateStateMachineDefinitionDiagnosticList // required
|
|
65
|
+
* // { // ValidateStateMachineDefinitionDiagnostic
|
|
66
|
+
* // severity: "ERROR", // required
|
|
67
|
+
* // code: "STRING_VALUE", // required
|
|
68
|
+
* // message: "STRING_VALUE", // required
|
|
69
|
+
* // location: "STRING_VALUE",
|
|
70
|
+
* // },
|
|
71
|
+
* // ],
|
|
72
|
+
* // };
|
|
73
|
+
*
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @param ValidateStateMachineDefinitionCommandInput - {@link ValidateStateMachineDefinitionCommandInput}
|
|
77
|
+
* @returns {@link ValidateStateMachineDefinitionCommandOutput}
|
|
78
|
+
* @see {@link ValidateStateMachineDefinitionCommandInput} for command's `input` shape.
|
|
79
|
+
* @see {@link ValidateStateMachineDefinitionCommandOutput} for command's `response` shape.
|
|
80
|
+
* @see {@link SFNClientResolvedConfig | config} for SFNClient's `config` shape.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ValidationException} (client fault)
|
|
83
|
+
* <p>The input does not satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link SFNServiceException}
|
|
86
|
+
* <p>Base exception class for all service exceptions from SFN service.</p>
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class ValidateStateMachineDefinitionCommand extends ValidateStateMachineDefinitionCommand_base {
|
|
91
|
+
}
|
|
@@ -3870,6 +3870,92 @@ export interface UpdateStateMachineAliasOutput {
|
|
|
3870
3870
|
*/
|
|
3871
3871
|
updateDate: Date | undefined;
|
|
3872
3872
|
}
|
|
3873
|
+
/**
|
|
3874
|
+
* @public
|
|
3875
|
+
*/
|
|
3876
|
+
export interface ValidateStateMachineDefinitionInput {
|
|
3877
|
+
/**
|
|
3878
|
+
* <p>The Amazon States Language definition of the state machine. For more information, see
|
|
3879
|
+
* <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon States Language</a> (ASL).</p>
|
|
3880
|
+
* @public
|
|
3881
|
+
*/
|
|
3882
|
+
definition: string | undefined;
|
|
3883
|
+
/**
|
|
3884
|
+
* <p>The target type of state machine for this definition. The default is <code>STANDARD</code>.</p>
|
|
3885
|
+
* @public
|
|
3886
|
+
*/
|
|
3887
|
+
type?: StateMachineType;
|
|
3888
|
+
}
|
|
3889
|
+
/**
|
|
3890
|
+
* @public
|
|
3891
|
+
* @enum
|
|
3892
|
+
*/
|
|
3893
|
+
export declare const ValidateStateMachineDefinitionSeverity: {
|
|
3894
|
+
readonly ERROR: "ERROR";
|
|
3895
|
+
};
|
|
3896
|
+
/**
|
|
3897
|
+
* @public
|
|
3898
|
+
*/
|
|
3899
|
+
export type ValidateStateMachineDefinitionSeverity = (typeof ValidateStateMachineDefinitionSeverity)[keyof typeof ValidateStateMachineDefinitionSeverity];
|
|
3900
|
+
/**
|
|
3901
|
+
* <p>Describes an error found during validation. Validation errors found in the definition
|
|
3902
|
+
* return in the response as <b>diagnostic elements</b>, rather
|
|
3903
|
+
* than raise an exception.</p>
|
|
3904
|
+
* @public
|
|
3905
|
+
*/
|
|
3906
|
+
export interface ValidateStateMachineDefinitionDiagnostic {
|
|
3907
|
+
/**
|
|
3908
|
+
* <p>A value of <code>ERROR</code> means that you cannot create or update a state machine with this definition.</p>
|
|
3909
|
+
* @public
|
|
3910
|
+
*/
|
|
3911
|
+
severity: ValidateStateMachineDefinitionSeverity | undefined;
|
|
3912
|
+
/**
|
|
3913
|
+
* <p>Identifying code for the diagnostic.</p>
|
|
3914
|
+
* @public
|
|
3915
|
+
*/
|
|
3916
|
+
code: string | undefined;
|
|
3917
|
+
/**
|
|
3918
|
+
* <p>Message describing the diagnostic condition.</p>
|
|
3919
|
+
* @public
|
|
3920
|
+
*/
|
|
3921
|
+
message: string | undefined;
|
|
3922
|
+
/**
|
|
3923
|
+
* <p>Location of the issue in the state machine, if available.</p>
|
|
3924
|
+
* <p>For errors specific to a field, the location could be in the format: <code>/States/<StateName>/<FieldName></code>, for example: <code>/States/FailState/ErrorPath</code>.</p>
|
|
3925
|
+
* @public
|
|
3926
|
+
*/
|
|
3927
|
+
location?: string;
|
|
3928
|
+
}
|
|
3929
|
+
/**
|
|
3930
|
+
* @public
|
|
3931
|
+
* @enum
|
|
3932
|
+
*/
|
|
3933
|
+
export declare const ValidateStateMachineDefinitionResultCode: {
|
|
3934
|
+
readonly FAIL: "FAIL";
|
|
3935
|
+
readonly OK: "OK";
|
|
3936
|
+
};
|
|
3937
|
+
/**
|
|
3938
|
+
* @public
|
|
3939
|
+
*/
|
|
3940
|
+
export type ValidateStateMachineDefinitionResultCode = (typeof ValidateStateMachineDefinitionResultCode)[keyof typeof ValidateStateMachineDefinitionResultCode];
|
|
3941
|
+
/**
|
|
3942
|
+
* @public
|
|
3943
|
+
*/
|
|
3944
|
+
export interface ValidateStateMachineDefinitionOutput {
|
|
3945
|
+
/**
|
|
3946
|
+
* <p>The result value will be <code>OK</code> when no syntax errors are found, or
|
|
3947
|
+
* <code>FAIL</code> if the workflow definition does not pass verification.</p>
|
|
3948
|
+
* @public
|
|
3949
|
+
*/
|
|
3950
|
+
result: ValidateStateMachineDefinitionResultCode | undefined;
|
|
3951
|
+
/**
|
|
3952
|
+
* <p>If the result is <code>OK</code>, this field will be empty. When there are errors,
|
|
3953
|
+
* this field will contain an array of <b>Diagnostic</b> objects
|
|
3954
|
+
* to help you troubleshoot.</p>
|
|
3955
|
+
* @public
|
|
3956
|
+
*/
|
|
3957
|
+
diagnostics: ValidateStateMachineDefinitionDiagnostic[] | undefined;
|
|
3958
|
+
}
|
|
3873
3959
|
/**
|
|
3874
3960
|
* @internal
|
|
3875
3961
|
*/
|
|
@@ -4058,3 +4144,7 @@ export declare const UpdateStateMachineInputFilterSensitiveLog: (obj: UpdateStat
|
|
|
4058
4144
|
* @internal
|
|
4059
4145
|
*/
|
|
4060
4146
|
export declare const UpdateStateMachineAliasInputFilterSensitiveLog: (obj: UpdateStateMachineAliasInput) => any;
|
|
4147
|
+
/**
|
|
4148
|
+
* @internal
|
|
4149
|
+
*/
|
|
4150
|
+
export declare const ValidateStateMachineDefinitionInputFilterSensitiveLog: (obj: ValidateStateMachineDefinitionInput) => any;
|
|
@@ -36,6 +36,7 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../comman
|
|
|
36
36
|
import { UpdateMapRunCommandInput, UpdateMapRunCommandOutput } from "../commands/UpdateMapRunCommand";
|
|
37
37
|
import { UpdateStateMachineAliasCommandInput, UpdateStateMachineAliasCommandOutput } from "../commands/UpdateStateMachineAliasCommand";
|
|
38
38
|
import { UpdateStateMachineCommandInput, UpdateStateMachineCommandOutput } from "../commands/UpdateStateMachineCommand";
|
|
39
|
+
import { ValidateStateMachineDefinitionCommandInput, ValidateStateMachineDefinitionCommandOutput } from "../commands/ValidateStateMachineDefinitionCommand";
|
|
39
40
|
/**
|
|
40
41
|
* serializeAws_json1_0CreateActivityCommand
|
|
41
42
|
*/
|
|
@@ -180,6 +181,10 @@ export declare const se_UpdateStateMachineCommand: (input: UpdateStateMachineCom
|
|
|
180
181
|
* serializeAws_json1_0UpdateStateMachineAliasCommand
|
|
181
182
|
*/
|
|
182
183
|
export declare const se_UpdateStateMachineAliasCommand: (input: UpdateStateMachineAliasCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
184
|
+
/**
|
|
185
|
+
* serializeAws_json1_0ValidateStateMachineDefinitionCommand
|
|
186
|
+
*/
|
|
187
|
+
export declare const se_ValidateStateMachineDefinitionCommand: (input: ValidateStateMachineDefinitionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
183
188
|
/**
|
|
184
189
|
* deserializeAws_json1_0CreateActivityCommand
|
|
185
190
|
*/
|
|
@@ -324,3 +329,7 @@ export declare const de_UpdateStateMachineCommand: (output: __HttpResponse, cont
|
|
|
324
329
|
* deserializeAws_json1_0UpdateStateMachineAliasCommand
|
|
325
330
|
*/
|
|
326
331
|
export declare const de_UpdateStateMachineAliasCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateStateMachineAliasCommandOutput>;
|
|
332
|
+
/**
|
|
333
|
+
* deserializeAws_json1_0ValidateStateMachineDefinitionCommand
|
|
334
|
+
*/
|
|
335
|
+
export declare const de_ValidateStateMachineDefinitionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ValidateStateMachineDefinitionCommandOutput>;
|
|
@@ -143,6 +143,10 @@ import {
|
|
|
143
143
|
UpdateStateMachineCommandInput,
|
|
144
144
|
UpdateStateMachineCommandOutput,
|
|
145
145
|
} from "./commands/UpdateStateMachineCommand";
|
|
146
|
+
import {
|
|
147
|
+
ValidateStateMachineDefinitionCommandInput,
|
|
148
|
+
ValidateStateMachineDefinitionCommandOutput,
|
|
149
|
+
} from "./commands/ValidateStateMachineDefinitionCommand";
|
|
146
150
|
import { SFNClient } from "./SFNClient";
|
|
147
151
|
export interface SFN {
|
|
148
152
|
createActivity(
|
|
@@ -616,5 +620,18 @@ export interface SFN {
|
|
|
616
620
|
options: __HttpHandlerOptions,
|
|
617
621
|
cb: (err: any, data?: UpdateStateMachineAliasCommandOutput) => void
|
|
618
622
|
): void;
|
|
623
|
+
validateStateMachineDefinition(
|
|
624
|
+
args: ValidateStateMachineDefinitionCommandInput,
|
|
625
|
+
options?: __HttpHandlerOptions
|
|
626
|
+
): Promise<ValidateStateMachineDefinitionCommandOutput>;
|
|
627
|
+
validateStateMachineDefinition(
|
|
628
|
+
args: ValidateStateMachineDefinitionCommandInput,
|
|
629
|
+
cb: (err: any, data?: ValidateStateMachineDefinitionCommandOutput) => void
|
|
630
|
+
): void;
|
|
631
|
+
validateStateMachineDefinition(
|
|
632
|
+
args: ValidateStateMachineDefinitionCommandInput,
|
|
633
|
+
options: __HttpHandlerOptions,
|
|
634
|
+
cb: (err: any, data?: ValidateStateMachineDefinitionCommandOutput) => void
|
|
635
|
+
): void;
|
|
619
636
|
}
|
|
620
637
|
export declare class SFN extends SFNClient implements SFN {}
|
|
@@ -189,6 +189,10 @@ import {
|
|
|
189
189
|
UpdateStateMachineCommandInput,
|
|
190
190
|
UpdateStateMachineCommandOutput,
|
|
191
191
|
} from "./commands/UpdateStateMachineCommand";
|
|
192
|
+
import {
|
|
193
|
+
ValidateStateMachineDefinitionCommandInput,
|
|
194
|
+
ValidateStateMachineDefinitionCommandOutput,
|
|
195
|
+
} from "./commands/ValidateStateMachineDefinitionCommand";
|
|
192
196
|
import {
|
|
193
197
|
ClientInputEndpointParameters,
|
|
194
198
|
ClientResolvedEndpointParameters,
|
|
@@ -232,7 +236,8 @@ export type ServiceInputTypes =
|
|
|
232
236
|
| UntagResourceCommandInput
|
|
233
237
|
| UpdateMapRunCommandInput
|
|
234
238
|
| UpdateStateMachineAliasCommandInput
|
|
235
|
-
| UpdateStateMachineCommandInput
|
|
239
|
+
| UpdateStateMachineCommandInput
|
|
240
|
+
| ValidateStateMachineDefinitionCommandInput;
|
|
236
241
|
export type ServiceOutputTypes =
|
|
237
242
|
| CreateActivityCommandOutput
|
|
238
243
|
| CreateStateMachineAliasCommandOutput
|
|
@@ -269,7 +274,8 @@ export type ServiceOutputTypes =
|
|
|
269
274
|
| UntagResourceCommandOutput
|
|
270
275
|
| UpdateMapRunCommandOutput
|
|
271
276
|
| UpdateStateMachineAliasCommandOutput
|
|
272
|
-
| UpdateStateMachineCommandOutput
|
|
277
|
+
| UpdateStateMachineCommandOutput
|
|
278
|
+
| ValidateStateMachineDefinitionCommandOutput;
|
|
273
279
|
export interface ClientDefaults
|
|
274
280
|
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
275
281
|
requestHandler?: __HttpHandlerUserInput;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
ValidateStateMachineDefinitionInput,
|
|
5
|
+
ValidateStateMachineDefinitionOutput,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import {
|
|
8
|
+
ServiceInputTypes,
|
|
9
|
+
ServiceOutputTypes,
|
|
10
|
+
SFNClientResolvedConfig,
|
|
11
|
+
} from "../SFNClient";
|
|
12
|
+
export { __MetadataBearer, $Command };
|
|
13
|
+
export interface ValidateStateMachineDefinitionCommandInput
|
|
14
|
+
extends ValidateStateMachineDefinitionInput {}
|
|
15
|
+
export interface ValidateStateMachineDefinitionCommandOutput
|
|
16
|
+
extends ValidateStateMachineDefinitionOutput,
|
|
17
|
+
__MetadataBearer {}
|
|
18
|
+
declare const ValidateStateMachineDefinitionCommand_base: {
|
|
19
|
+
new (
|
|
20
|
+
input: ValidateStateMachineDefinitionCommandInput
|
|
21
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
22
|
+
ValidateStateMachineDefinitionCommandInput,
|
|
23
|
+
ValidateStateMachineDefinitionCommandOutput,
|
|
24
|
+
SFNClientResolvedConfig,
|
|
25
|
+
ServiceInputTypes,
|
|
26
|
+
ServiceOutputTypes
|
|
27
|
+
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: ValidateStateMachineDefinitionCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
ValidateStateMachineDefinitionCommandInput,
|
|
32
|
+
ValidateStateMachineDefinitionCommandOutput,
|
|
33
|
+
SFNClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
37
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
38
|
+
};
|
|
39
|
+
export declare class ValidateStateMachineDefinitionCommand extends ValidateStateMachineDefinitionCommand_base {}
|
|
@@ -991,6 +991,31 @@ export interface UpdateStateMachineAliasInput {
|
|
|
991
991
|
export interface UpdateStateMachineAliasOutput {
|
|
992
992
|
updateDate: Date | undefined;
|
|
993
993
|
}
|
|
994
|
+
export interface ValidateStateMachineDefinitionInput {
|
|
995
|
+
definition: string | undefined;
|
|
996
|
+
type?: StateMachineType;
|
|
997
|
+
}
|
|
998
|
+
export declare const ValidateStateMachineDefinitionSeverity: {
|
|
999
|
+
readonly ERROR: "ERROR";
|
|
1000
|
+
};
|
|
1001
|
+
export type ValidateStateMachineDefinitionSeverity =
|
|
1002
|
+
(typeof ValidateStateMachineDefinitionSeverity)[keyof typeof ValidateStateMachineDefinitionSeverity];
|
|
1003
|
+
export interface ValidateStateMachineDefinitionDiagnostic {
|
|
1004
|
+
severity: ValidateStateMachineDefinitionSeverity | undefined;
|
|
1005
|
+
code: string | undefined;
|
|
1006
|
+
message: string | undefined;
|
|
1007
|
+
location?: string;
|
|
1008
|
+
}
|
|
1009
|
+
export declare const ValidateStateMachineDefinitionResultCode: {
|
|
1010
|
+
readonly FAIL: "FAIL";
|
|
1011
|
+
readonly OK: "OK";
|
|
1012
|
+
};
|
|
1013
|
+
export type ValidateStateMachineDefinitionResultCode =
|
|
1014
|
+
(typeof ValidateStateMachineDefinitionResultCode)[keyof typeof ValidateStateMachineDefinitionResultCode];
|
|
1015
|
+
export interface ValidateStateMachineDefinitionOutput {
|
|
1016
|
+
result: ValidateStateMachineDefinitionResultCode | undefined;
|
|
1017
|
+
diagnostics: ValidateStateMachineDefinitionDiagnostic[] | undefined;
|
|
1018
|
+
}
|
|
994
1019
|
export declare const ActivityFailedEventDetailsFilterSensitiveLog: (
|
|
995
1020
|
obj: ActivityFailedEventDetails
|
|
996
1021
|
) => any;
|
|
@@ -1130,3 +1155,6 @@ export declare const UpdateStateMachineInputFilterSensitiveLog: (
|
|
|
1130
1155
|
export declare const UpdateStateMachineAliasInputFilterSensitiveLog: (
|
|
1131
1156
|
obj: UpdateStateMachineAliasInput
|
|
1132
1157
|
) => any;
|
|
1158
|
+
export declare const ValidateStateMachineDefinitionInputFilterSensitiveLog: (
|
|
1159
|
+
obj: ValidateStateMachineDefinitionInput
|
|
1160
|
+
) => any;
|
|
@@ -147,6 +147,10 @@ import {
|
|
|
147
147
|
UpdateStateMachineCommandInput,
|
|
148
148
|
UpdateStateMachineCommandOutput,
|
|
149
149
|
} from "../commands/UpdateStateMachineCommand";
|
|
150
|
+
import {
|
|
151
|
+
ValidateStateMachineDefinitionCommandInput,
|
|
152
|
+
ValidateStateMachineDefinitionCommandOutput,
|
|
153
|
+
} from "../commands/ValidateStateMachineDefinitionCommand";
|
|
150
154
|
export declare const se_CreateActivityCommand: (
|
|
151
155
|
input: CreateActivityCommandInput,
|
|
152
156
|
context: __SerdeContext
|
|
@@ -291,6 +295,10 @@ export declare const se_UpdateStateMachineAliasCommand: (
|
|
|
291
295
|
input: UpdateStateMachineAliasCommandInput,
|
|
292
296
|
context: __SerdeContext
|
|
293
297
|
) => Promise<__HttpRequest>;
|
|
298
|
+
export declare const se_ValidateStateMachineDefinitionCommand: (
|
|
299
|
+
input: ValidateStateMachineDefinitionCommandInput,
|
|
300
|
+
context: __SerdeContext
|
|
301
|
+
) => Promise<__HttpRequest>;
|
|
294
302
|
export declare const de_CreateActivityCommand: (
|
|
295
303
|
output: __HttpResponse,
|
|
296
304
|
context: __SerdeContext
|
|
@@ -435,3 +443,7 @@ export declare const de_UpdateStateMachineAliasCommand: (
|
|
|
435
443
|
output: __HttpResponse,
|
|
436
444
|
context: __SerdeContext
|
|
437
445
|
) => Promise<UpdateStateMachineAliasCommandOutput>;
|
|
446
|
+
export declare const de_ValidateStateMachineDefinitionCommand: (
|
|
447
|
+
output: __HttpResponse,
|
|
448
|
+
context: __SerdeContext
|
|
449
|
+
) => Promise<ValidateStateMachineDefinitionCommandOutput>;
|
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.
|
|
4
|
+
"version": "3.564.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sfn",
|
|
@@ -20,9 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.556.0",
|
|
24
23
|
"@aws-sdk/core": "3.556.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.564.0",
|
|
26
25
|
"@aws-sdk/middleware-host-header": "3.535.0",
|
|
27
26
|
"@aws-sdk/middleware-logger": "3.535.0",
|
|
28
27
|
"@aws-sdk/middleware-recursion-detection": "3.535.0",
|