@aws-sdk/client-sfn 3.454.0 → 3.458.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 +43 -35
- package/dist-cjs/SFN.js +2 -0
- package/dist-cjs/commands/TestStateCommand.js +52 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +37 -2
- package/dist-cjs/protocols/Aws_json1_0.js +61 -2
- package/dist-es/SFN.js +2 -0
- package/dist-es/commands/TestStateCommand.js +48 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +32 -0
- package/dist-es/protocols/Aws_json1_0.js +57 -0
- package/dist-types/SFN.d.ts +7 -0
- package/dist-types/SFNClient.d.ts +3 -2
- package/dist-types/commands/RedriveExecutionCommand.d.ts +1 -1
- package/dist-types/commands/TestStateCommand.d.ts +164 -0
- package/dist-types/commands/UpdateStateMachineAliasCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +235 -6
- 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 +6 -0
- package/dist-types/ts3.4/commands/TestStateCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +63 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +3 -3
|
@@ -1009,7 +1009,7 @@ export interface DescribeExecutionOutput {
|
|
|
1009
1009
|
stateMachineAliasArn?: string;
|
|
1010
1010
|
/**
|
|
1011
1011
|
* @public
|
|
1012
|
-
* <p>The number of times you've redriven an execution. If you have not yet redriven an execution, the <code>redriveCount</code> is 0. This count is
|
|
1012
|
+
* <p>The number of times you've redriven an execution. If you have not yet redriven an execution, the <code>redriveCount</code> is 0. This count is only updated if you successfully redrive an execution.</p>
|
|
1013
1013
|
*/
|
|
1014
1014
|
redriveCount?: number;
|
|
1015
1015
|
/**
|
|
@@ -1148,7 +1148,7 @@ export interface MapRunExecutionCounts {
|
|
|
1148
1148
|
resultsWritten: number | undefined;
|
|
1149
1149
|
/**
|
|
1150
1150
|
* @public
|
|
1151
|
-
* <p>The number of <code>FAILED</code>, <code>ABORTED</code>, or <code>TIMED_OUT</code> child workflow executions that cannot be redriven because their execution status is terminal. For example,
|
|
1151
|
+
* <p>The number of <code>FAILED</code>, <code>ABORTED</code>, or <code>TIMED_OUT</code> child workflow executions that cannot be redriven because their execution status is terminal. For example, child workflows with an execution status of <code>FAILED</code>, <code>ABORTED</code>, or <code>TIMED_OUT</code> and a <code>redriveStatus</code> of <code>NOT_REDRIVABLE</code>.</p>
|
|
1152
1152
|
*/
|
|
1153
1153
|
failuresNotRedrivable?: number;
|
|
1154
1154
|
/**
|
|
@@ -1204,7 +1204,7 @@ export interface MapRunItemCounts {
|
|
|
1204
1204
|
resultsWritten: number | undefined;
|
|
1205
1205
|
/**
|
|
1206
1206
|
* @public
|
|
1207
|
-
* <p>The number of <code>FAILED</code>, <code>ABORTED</code>, or <code>TIMED_OUT</code> items in child workflow executions that cannot be redriven because the execution status of those child workflows is terminal. For example,
|
|
1207
|
+
* <p>The number of <code>FAILED</code>, <code>ABORTED</code>, or <code>TIMED_OUT</code> items in child workflow executions that cannot be redriven because the execution status of those child workflows is terminal. For example, child workflows with an execution status of <code>FAILED</code>, <code>ABORTED</code>, or <code>TIMED_OUT</code> and a <code>redriveStatus</code> of <code>NOT_REDRIVABLE</code>.</p>
|
|
1208
1208
|
*/
|
|
1209
1209
|
failuresNotRedrivable?: number;
|
|
1210
1210
|
/**
|
|
@@ -1283,7 +1283,7 @@ export interface DescribeMapRunOutput {
|
|
|
1283
1283
|
executionCounts: MapRunExecutionCounts | undefined;
|
|
1284
1284
|
/**
|
|
1285
1285
|
* @public
|
|
1286
|
-
* <p>The number of times you've redriven a Map Run. If you have not yet redriven a Map Run, the <code>redriveCount</code> is 0. This count is
|
|
1286
|
+
* <p>The number of times you've redriven a Map Run. If you have not yet redriven a Map Run, the <code>redriveCount</code> is 0. This count is only updated if you successfully redrive a Map Run.</p>
|
|
1287
1287
|
*/
|
|
1288
1288
|
redriveCount?: number;
|
|
1289
1289
|
/**
|
|
@@ -2665,7 +2665,7 @@ export interface ExecutionListItem {
|
|
|
2665
2665
|
stateMachineAliasArn?: string;
|
|
2666
2666
|
/**
|
|
2667
2667
|
* @public
|
|
2668
|
-
* <p>The number of times you've redriven an execution. If you have not yet redriven an execution, the <code>redriveCount</code> is 0. This count is
|
|
2668
|
+
* <p>The number of times you've redriven an execution. If you have not yet redriven an execution, the <code>redriveCount</code> is 0. This count is only updated when you successfully redrive an execution.</p>
|
|
2669
2669
|
*/
|
|
2670
2670
|
redriveCount?: number;
|
|
2671
2671
|
/**
|
|
@@ -3049,7 +3049,7 @@ export interface RedriveExecutionInput {
|
|
|
3049
3049
|
executionArn: string | undefined;
|
|
3050
3050
|
/**
|
|
3051
3051
|
* @public
|
|
3052
|
-
* <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. The API
|
|
3052
|
+
* <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. The API will return idempotent responses for the last 10 client tokens used to successfully redrive the execution. These client tokens are valid for up to 15 minutes after they are first used.</p>
|
|
3053
3053
|
*/
|
|
3054
3054
|
clientToken?: string;
|
|
3055
3055
|
}
|
|
@@ -3494,6 +3494,223 @@ export interface TagResourceInput {
|
|
|
3494
3494
|
*/
|
|
3495
3495
|
export interface TagResourceOutput {
|
|
3496
3496
|
}
|
|
3497
|
+
/**
|
|
3498
|
+
* @public
|
|
3499
|
+
* @enum
|
|
3500
|
+
*/
|
|
3501
|
+
export declare const InspectionLevel: {
|
|
3502
|
+
readonly DEBUG: "DEBUG";
|
|
3503
|
+
readonly INFO: "INFO";
|
|
3504
|
+
readonly TRACE: "TRACE";
|
|
3505
|
+
};
|
|
3506
|
+
/**
|
|
3507
|
+
* @public
|
|
3508
|
+
*/
|
|
3509
|
+
export type InspectionLevel = (typeof InspectionLevel)[keyof typeof InspectionLevel];
|
|
3510
|
+
/**
|
|
3511
|
+
* @public
|
|
3512
|
+
*/
|
|
3513
|
+
export interface TestStateInput {
|
|
3514
|
+
/**
|
|
3515
|
+
* @public
|
|
3516
|
+
* <p>The <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon States Language</a> (ASL) definition of the state.</p>
|
|
3517
|
+
*/
|
|
3518
|
+
definition: string | undefined;
|
|
3519
|
+
/**
|
|
3520
|
+
* @public
|
|
3521
|
+
* <p>The Amazon Resource Name (ARN) of the execution role with the required IAM permissions for the state.</p>
|
|
3522
|
+
*/
|
|
3523
|
+
roleArn: string | undefined;
|
|
3524
|
+
/**
|
|
3525
|
+
* @public
|
|
3526
|
+
* <p>A string that contains the JSON input data for the state.</p>
|
|
3527
|
+
*/
|
|
3528
|
+
input?: string;
|
|
3529
|
+
/**
|
|
3530
|
+
* @public
|
|
3531
|
+
* <p>Determines the values to return when a state is tested. You can specify one of the following types:</p>
|
|
3532
|
+
* <ul>
|
|
3533
|
+
* <li>
|
|
3534
|
+
* <p>
|
|
3535
|
+
* <code>INFO</code>: Shows the final state output. By default, Step Functions sets <code>inspectionLevel</code> to <code>INFO</code> if you don't specify a level.</p>
|
|
3536
|
+
* </li>
|
|
3537
|
+
* <li>
|
|
3538
|
+
* <p>
|
|
3539
|
+
* <code>DEBUG</code>: Shows the final state output along with the input and output data processing result.</p>
|
|
3540
|
+
* </li>
|
|
3541
|
+
* <li>
|
|
3542
|
+
* <p>
|
|
3543
|
+
* <code>TRACE</code>: Shows the HTTP request and response for an HTTP Task. This level also shows the final state output along with the input and output data processing result.</p>
|
|
3544
|
+
* </li>
|
|
3545
|
+
* </ul>
|
|
3546
|
+
* <p>Each of these levels also provide information about the status of the state execution and the next state to transition to.</p>
|
|
3547
|
+
*/
|
|
3548
|
+
inspectionLevel?: InspectionLevel;
|
|
3549
|
+
/**
|
|
3550
|
+
* @public
|
|
3551
|
+
* <p>Specifies whether or not to include secret information in the test result. For HTTP Tasks, a secret includes the data that an EventBridge connection adds to modify the HTTP request headers, query parameters, and body. Step Functions doesn't omit any information included in the state definition or the HTTP response.</p>
|
|
3552
|
+
* <p>If you set <code>revealSecrets</code> to <code>true</code>, you must make sure that the IAM user that calls the <code>TestState</code> API has permission for the <code>states:RevealSecrets</code> action. For an example of IAM policy that sets the <code>states:RevealSecrets</code> permission, see <a href="https://docs.aws.amazon.com/step-functions/latest/dg/test-state-isolation.html#test-state-permissions">IAM permissions to test a state</a>. Without this permission, Step Functions throws an access denied error.</p>
|
|
3553
|
+
* <p>By default, <code>revealSecrets</code> is set to <code>false</code>.</p>
|
|
3554
|
+
*/
|
|
3555
|
+
revealSecrets?: boolean;
|
|
3556
|
+
}
|
|
3557
|
+
/**
|
|
3558
|
+
* @public
|
|
3559
|
+
* <p>Contains additional details about the state's execution, including its input and output data processing flow, and HTTP request information.</p>
|
|
3560
|
+
*/
|
|
3561
|
+
export interface InspectionDataRequest {
|
|
3562
|
+
/**
|
|
3563
|
+
* @public
|
|
3564
|
+
* <p>The protocol used to make the HTTP request.</p>
|
|
3565
|
+
*/
|
|
3566
|
+
protocol?: string;
|
|
3567
|
+
/**
|
|
3568
|
+
* @public
|
|
3569
|
+
* <p>The HTTP method used for the HTTP request.</p>
|
|
3570
|
+
*/
|
|
3571
|
+
method?: string;
|
|
3572
|
+
/**
|
|
3573
|
+
* @public
|
|
3574
|
+
* <p>The API endpoint used for the HTTP request.</p>
|
|
3575
|
+
*/
|
|
3576
|
+
url?: string;
|
|
3577
|
+
/**
|
|
3578
|
+
* @public
|
|
3579
|
+
* <p>The request headers associated with the HTTP request.</p>
|
|
3580
|
+
*/
|
|
3581
|
+
headers?: string;
|
|
3582
|
+
/**
|
|
3583
|
+
* @public
|
|
3584
|
+
* <p>The request body for the HTTP request.</p>
|
|
3585
|
+
*/
|
|
3586
|
+
body?: string;
|
|
3587
|
+
}
|
|
3588
|
+
/**
|
|
3589
|
+
* @public
|
|
3590
|
+
* <p>Contains additional details about the state's execution, including its input and output data processing flow, and HTTP response information. The <code>inspectionLevel</code> request parameter specifies which details are returned.</p>
|
|
3591
|
+
*/
|
|
3592
|
+
export interface InspectionDataResponse {
|
|
3593
|
+
/**
|
|
3594
|
+
* @public
|
|
3595
|
+
* <p>The protocol used to return the HTTP response.</p>
|
|
3596
|
+
*/
|
|
3597
|
+
protocol?: string;
|
|
3598
|
+
/**
|
|
3599
|
+
* @public
|
|
3600
|
+
* <p>The HTTP response status code for the HTTP response.</p>
|
|
3601
|
+
*/
|
|
3602
|
+
statusCode?: string;
|
|
3603
|
+
/**
|
|
3604
|
+
* @public
|
|
3605
|
+
* <p>The message associated with the HTTP status code.</p>
|
|
3606
|
+
*/
|
|
3607
|
+
statusMessage?: string;
|
|
3608
|
+
/**
|
|
3609
|
+
* @public
|
|
3610
|
+
* <p>The response headers associated with the HTTP response.</p>
|
|
3611
|
+
*/
|
|
3612
|
+
headers?: string;
|
|
3613
|
+
/**
|
|
3614
|
+
* @public
|
|
3615
|
+
* <p>The HTTP response returned.</p>
|
|
3616
|
+
*/
|
|
3617
|
+
body?: string;
|
|
3618
|
+
}
|
|
3619
|
+
/**
|
|
3620
|
+
* @public
|
|
3621
|
+
* <p>Contains additional details about the state's execution, including its input and output data processing flow, and HTTP request and response information.</p>
|
|
3622
|
+
*/
|
|
3623
|
+
export interface InspectionData {
|
|
3624
|
+
/**
|
|
3625
|
+
* @public
|
|
3626
|
+
* <p>The raw state input.</p>
|
|
3627
|
+
*/
|
|
3628
|
+
input?: string;
|
|
3629
|
+
/**
|
|
3630
|
+
* @public
|
|
3631
|
+
* <p>The input after Step Functions applies the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-inputpath">InputPath</a> filter.</p>
|
|
3632
|
+
*/
|
|
3633
|
+
afterInputPath?: string;
|
|
3634
|
+
/**
|
|
3635
|
+
* @public
|
|
3636
|
+
* <p>The effective input after Step Functions applies the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-parameters">Parameters</a> filter.</p>
|
|
3637
|
+
*/
|
|
3638
|
+
afterParameters?: string;
|
|
3639
|
+
/**
|
|
3640
|
+
* @public
|
|
3641
|
+
* <p>The state's raw result.</p>
|
|
3642
|
+
*/
|
|
3643
|
+
result?: string;
|
|
3644
|
+
/**
|
|
3645
|
+
* @public
|
|
3646
|
+
* <p>The effective result after Step Functions applies the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector">ResultSelector</a> filter.</p>
|
|
3647
|
+
*/
|
|
3648
|
+
afterResultSelector?: string;
|
|
3649
|
+
/**
|
|
3650
|
+
* @public
|
|
3651
|
+
* <p>The effective result combined with the raw state input after Step Functions applies the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-resultpath.html">ResultPath</a> filter.</p>
|
|
3652
|
+
*/
|
|
3653
|
+
afterResultPath?: string;
|
|
3654
|
+
/**
|
|
3655
|
+
* @public
|
|
3656
|
+
* <p>The raw HTTP request that is sent when you test an HTTP Task.</p>
|
|
3657
|
+
*/
|
|
3658
|
+
request?: InspectionDataRequest;
|
|
3659
|
+
/**
|
|
3660
|
+
* @public
|
|
3661
|
+
* <p>The raw HTTP response that is returned when you test an HTTP Task.</p>
|
|
3662
|
+
*/
|
|
3663
|
+
response?: InspectionDataResponse;
|
|
3664
|
+
}
|
|
3665
|
+
/**
|
|
3666
|
+
* @public
|
|
3667
|
+
* @enum
|
|
3668
|
+
*/
|
|
3669
|
+
export declare const TestExecutionStatus: {
|
|
3670
|
+
readonly CAUGHT_ERROR: "CAUGHT_ERROR";
|
|
3671
|
+
readonly FAILED: "FAILED";
|
|
3672
|
+
readonly RETRIABLE: "RETRIABLE";
|
|
3673
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
3674
|
+
};
|
|
3675
|
+
/**
|
|
3676
|
+
* @public
|
|
3677
|
+
*/
|
|
3678
|
+
export type TestExecutionStatus = (typeof TestExecutionStatus)[keyof typeof TestExecutionStatus];
|
|
3679
|
+
/**
|
|
3680
|
+
* @public
|
|
3681
|
+
*/
|
|
3682
|
+
export interface TestStateOutput {
|
|
3683
|
+
/**
|
|
3684
|
+
* @public
|
|
3685
|
+
* <p>The JSON output data of the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
|
|
3686
|
+
*/
|
|
3687
|
+
output?: string;
|
|
3688
|
+
/**
|
|
3689
|
+
* @public
|
|
3690
|
+
* <p>The error returned when the execution of a state fails.</p>
|
|
3691
|
+
*/
|
|
3692
|
+
error?: string;
|
|
3693
|
+
/**
|
|
3694
|
+
* @public
|
|
3695
|
+
* <p>A detailed explanation of the cause for the error when the execution of a state fails.</p>
|
|
3696
|
+
*/
|
|
3697
|
+
cause?: string;
|
|
3698
|
+
/**
|
|
3699
|
+
* @public
|
|
3700
|
+
* <p>Returns additional details about the state's execution, including its input and output data processing flow, and HTTP request and response information. The <code>inspectionLevel</code> request parameter specifies which details are returned.</p>
|
|
3701
|
+
*/
|
|
3702
|
+
inspectionData?: InspectionData;
|
|
3703
|
+
/**
|
|
3704
|
+
* @public
|
|
3705
|
+
* <p>The name of the next state to transition to. If you haven't defined a next state in your definition or if the execution of the state fails, this field doesn't contain a value.</p>
|
|
3706
|
+
*/
|
|
3707
|
+
nextState?: string;
|
|
3708
|
+
/**
|
|
3709
|
+
* @public
|
|
3710
|
+
* <p>The execution status of the state.</p>
|
|
3711
|
+
*/
|
|
3712
|
+
status?: TestExecutionStatus;
|
|
3713
|
+
}
|
|
3497
3714
|
/**
|
|
3498
3715
|
* @public
|
|
3499
3716
|
*/
|
|
@@ -3821,6 +4038,18 @@ export declare const StartSyncExecutionOutputFilterSensitiveLog: (obj: StartSync
|
|
|
3821
4038
|
* @internal
|
|
3822
4039
|
*/
|
|
3823
4040
|
export declare const StopExecutionInputFilterSensitiveLog: (obj: StopExecutionInput) => any;
|
|
4041
|
+
/**
|
|
4042
|
+
* @internal
|
|
4043
|
+
*/
|
|
4044
|
+
export declare const TestStateInputFilterSensitiveLog: (obj: TestStateInput) => any;
|
|
4045
|
+
/**
|
|
4046
|
+
* @internal
|
|
4047
|
+
*/
|
|
4048
|
+
export declare const InspectionDataFilterSensitiveLog: (obj: InspectionData) => any;
|
|
4049
|
+
/**
|
|
4050
|
+
* @internal
|
|
4051
|
+
*/
|
|
4052
|
+
export declare const TestStateOutputFilterSensitiveLog: (obj: TestStateOutput) => any;
|
|
3824
4053
|
/**
|
|
3825
4054
|
* @internal
|
|
3826
4055
|
*/
|
|
@@ -31,6 +31,7 @@ import { StartExecutionCommandInput, StartExecutionCommandOutput } from "../comm
|
|
|
31
31
|
import { StartSyncExecutionCommandInput, StartSyncExecutionCommandOutput } from "../commands/StartSyncExecutionCommand";
|
|
32
32
|
import { StopExecutionCommandInput, StopExecutionCommandOutput } from "../commands/StopExecutionCommand";
|
|
33
33
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
34
|
+
import { TestStateCommandInput, TestStateCommandOutput } from "../commands/TestStateCommand";
|
|
34
35
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
35
36
|
import { UpdateMapRunCommandInput, UpdateMapRunCommandOutput } from "../commands/UpdateMapRunCommand";
|
|
36
37
|
import { UpdateStateMachineAliasCommandInput, UpdateStateMachineAliasCommandOutput } from "../commands/UpdateStateMachineAliasCommand";
|
|
@@ -159,6 +160,10 @@ export declare const se_StopExecutionCommand: (input: StopExecutionCommandInput,
|
|
|
159
160
|
* serializeAws_json1_0TagResourceCommand
|
|
160
161
|
*/
|
|
161
162
|
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
163
|
+
/**
|
|
164
|
+
* serializeAws_json1_0TestStateCommand
|
|
165
|
+
*/
|
|
166
|
+
export declare const se_TestStateCommand: (input: TestStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
162
167
|
/**
|
|
163
168
|
* serializeAws_json1_0UntagResourceCommand
|
|
164
169
|
*/
|
|
@@ -299,6 +304,10 @@ export declare const de_StopExecutionCommand: (output: __HttpResponse, context:
|
|
|
299
304
|
* deserializeAws_json1_0TagResourceCommand
|
|
300
305
|
*/
|
|
301
306
|
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
307
|
+
/**
|
|
308
|
+
* deserializeAws_json1_0TestStateCommand
|
|
309
|
+
*/
|
|
310
|
+
export declare const de_TestStateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TestStateCommandOutput>;
|
|
302
311
|
/**
|
|
303
312
|
* deserializeAws_json1_0UntagResourceCommand
|
|
304
313
|
*/
|
|
@@ -123,6 +123,10 @@ import {
|
|
|
123
123
|
TagResourceCommandInput,
|
|
124
124
|
TagResourceCommandOutput,
|
|
125
125
|
} from "./commands/TagResourceCommand";
|
|
126
|
+
import {
|
|
127
|
+
TestStateCommandInput,
|
|
128
|
+
TestStateCommandOutput,
|
|
129
|
+
} from "./commands/TestStateCommand";
|
|
126
130
|
import {
|
|
127
131
|
UntagResourceCommandInput,
|
|
128
132
|
UntagResourceCommandOutput,
|
|
@@ -544,6 +548,19 @@ export interface SFN {
|
|
|
544
548
|
options: __HttpHandlerOptions,
|
|
545
549
|
cb: (err: any, data?: TagResourceCommandOutput) => void
|
|
546
550
|
): void;
|
|
551
|
+
testState(
|
|
552
|
+
args: TestStateCommandInput,
|
|
553
|
+
options?: __HttpHandlerOptions
|
|
554
|
+
): Promise<TestStateCommandOutput>;
|
|
555
|
+
testState(
|
|
556
|
+
args: TestStateCommandInput,
|
|
557
|
+
cb: (err: any, data?: TestStateCommandOutput) => void
|
|
558
|
+
): void;
|
|
559
|
+
testState(
|
|
560
|
+
args: TestStateCommandInput,
|
|
561
|
+
options: __HttpHandlerOptions,
|
|
562
|
+
cb: (err: any, data?: TestStateCommandOutput) => void
|
|
563
|
+
): void;
|
|
547
564
|
untagResource(
|
|
548
565
|
args: UntagResourceCommandInput,
|
|
549
566
|
options?: __HttpHandlerOptions
|
|
@@ -169,6 +169,10 @@ import {
|
|
|
169
169
|
TagResourceCommandInput,
|
|
170
170
|
TagResourceCommandOutput,
|
|
171
171
|
} from "./commands/TagResourceCommand";
|
|
172
|
+
import {
|
|
173
|
+
TestStateCommandInput,
|
|
174
|
+
TestStateCommandOutput,
|
|
175
|
+
} from "./commands/TestStateCommand";
|
|
172
176
|
import {
|
|
173
177
|
UntagResourceCommandInput,
|
|
174
178
|
UntagResourceCommandOutput,
|
|
@@ -224,6 +228,7 @@ export type ServiceInputTypes =
|
|
|
224
228
|
| StartSyncExecutionCommandInput
|
|
225
229
|
| StopExecutionCommandInput
|
|
226
230
|
| TagResourceCommandInput
|
|
231
|
+
| TestStateCommandInput
|
|
227
232
|
| UntagResourceCommandInput
|
|
228
233
|
| UpdateMapRunCommandInput
|
|
229
234
|
| UpdateStateMachineAliasCommandInput
|
|
@@ -260,6 +265,7 @@ export type ServiceOutputTypes =
|
|
|
260
265
|
| StartSyncExecutionCommandOutput
|
|
261
266
|
| StopExecutionCommandOutput
|
|
262
267
|
| TagResourceCommandOutput
|
|
268
|
+
| TestStateCommandOutput
|
|
263
269
|
| UntagResourceCommandOutput
|
|
264
270
|
| UpdateMapRunCommandOutput
|
|
265
271
|
| UpdateStateMachineAliasCommandOutput
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import { TestStateInput, TestStateOutput } from "../models/models_0";
|
|
10
|
+
import {
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
SFNClientResolvedConfig,
|
|
14
|
+
} from "../SFNClient";
|
|
15
|
+
export { __MetadataBearer, $Command };
|
|
16
|
+
export interface TestStateCommandInput extends TestStateInput {}
|
|
17
|
+
export interface TestStateCommandOutput
|
|
18
|
+
extends TestStateOutput,
|
|
19
|
+
__MetadataBearer {}
|
|
20
|
+
export declare class TestStateCommand extends $Command<
|
|
21
|
+
TestStateCommandInput,
|
|
22
|
+
TestStateCommandOutput,
|
|
23
|
+
SFNClientResolvedConfig
|
|
24
|
+
> {
|
|
25
|
+
readonly input: TestStateCommandInput;
|
|
26
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
27
|
+
constructor(input: TestStateCommandInput);
|
|
28
|
+
resolveMiddleware(
|
|
29
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
30
|
+
configuration: SFNClientResolvedConfig,
|
|
31
|
+
options?: __HttpHandlerOptions
|
|
32
|
+
): Handler<TestStateCommandInput, TestStateCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -29,6 +29,7 @@ export * from "./StartExecutionCommand";
|
|
|
29
29
|
export * from "./StartSyncExecutionCommand";
|
|
30
30
|
export * from "./StopExecutionCommand";
|
|
31
31
|
export * from "./TagResourceCommand";
|
|
32
|
+
export * from "./TestStateCommand";
|
|
32
33
|
export * from "./UntagResourceCommand";
|
|
33
34
|
export * from "./UpdateMapRunCommand";
|
|
34
35
|
export * from "./UpdateStateMachineAliasCommand";
|
|
@@ -896,6 +896,60 @@ export interface TagResourceInput {
|
|
|
896
896
|
tags: Tag[] | undefined;
|
|
897
897
|
}
|
|
898
898
|
export interface TagResourceOutput {}
|
|
899
|
+
export declare const InspectionLevel: {
|
|
900
|
+
readonly DEBUG: "DEBUG";
|
|
901
|
+
readonly INFO: "INFO";
|
|
902
|
+
readonly TRACE: "TRACE";
|
|
903
|
+
};
|
|
904
|
+
export type InspectionLevel =
|
|
905
|
+
(typeof InspectionLevel)[keyof typeof InspectionLevel];
|
|
906
|
+
export interface TestStateInput {
|
|
907
|
+
definition: string | undefined;
|
|
908
|
+
roleArn: string | undefined;
|
|
909
|
+
input?: string;
|
|
910
|
+
inspectionLevel?: InspectionLevel;
|
|
911
|
+
revealSecrets?: boolean;
|
|
912
|
+
}
|
|
913
|
+
export interface InspectionDataRequest {
|
|
914
|
+
protocol?: string;
|
|
915
|
+
method?: string;
|
|
916
|
+
url?: string;
|
|
917
|
+
headers?: string;
|
|
918
|
+
body?: string;
|
|
919
|
+
}
|
|
920
|
+
export interface InspectionDataResponse {
|
|
921
|
+
protocol?: string;
|
|
922
|
+
statusCode?: string;
|
|
923
|
+
statusMessage?: string;
|
|
924
|
+
headers?: string;
|
|
925
|
+
body?: string;
|
|
926
|
+
}
|
|
927
|
+
export interface InspectionData {
|
|
928
|
+
input?: string;
|
|
929
|
+
afterInputPath?: string;
|
|
930
|
+
afterParameters?: string;
|
|
931
|
+
result?: string;
|
|
932
|
+
afterResultSelector?: string;
|
|
933
|
+
afterResultPath?: string;
|
|
934
|
+
request?: InspectionDataRequest;
|
|
935
|
+
response?: InspectionDataResponse;
|
|
936
|
+
}
|
|
937
|
+
export declare const TestExecutionStatus: {
|
|
938
|
+
readonly CAUGHT_ERROR: "CAUGHT_ERROR";
|
|
939
|
+
readonly FAILED: "FAILED";
|
|
940
|
+
readonly RETRIABLE: "RETRIABLE";
|
|
941
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
942
|
+
};
|
|
943
|
+
export type TestExecutionStatus =
|
|
944
|
+
(typeof TestExecutionStatus)[keyof typeof TestExecutionStatus];
|
|
945
|
+
export interface TestStateOutput {
|
|
946
|
+
output?: string;
|
|
947
|
+
error?: string;
|
|
948
|
+
cause?: string;
|
|
949
|
+
inspectionData?: InspectionData;
|
|
950
|
+
nextState?: string;
|
|
951
|
+
status?: TestExecutionStatus;
|
|
952
|
+
}
|
|
899
953
|
export interface UntagResourceInput {
|
|
900
954
|
resourceArn: string | undefined;
|
|
901
955
|
tagKeys: string[] | undefined;
|
|
@@ -1061,6 +1115,15 @@ export declare const StartSyncExecutionOutputFilterSensitiveLog: (
|
|
|
1061
1115
|
export declare const StopExecutionInputFilterSensitiveLog: (
|
|
1062
1116
|
obj: StopExecutionInput
|
|
1063
1117
|
) => any;
|
|
1118
|
+
export declare const TestStateInputFilterSensitiveLog: (
|
|
1119
|
+
obj: TestStateInput
|
|
1120
|
+
) => any;
|
|
1121
|
+
export declare const InspectionDataFilterSensitiveLog: (
|
|
1122
|
+
obj: InspectionData
|
|
1123
|
+
) => any;
|
|
1124
|
+
export declare const TestStateOutputFilterSensitiveLog: (
|
|
1125
|
+
obj: TestStateOutput
|
|
1126
|
+
) => any;
|
|
1064
1127
|
export declare const UpdateStateMachineInputFilterSensitiveLog: (
|
|
1065
1128
|
obj: UpdateStateMachineInput
|
|
1066
1129
|
) => any;
|
|
@@ -127,6 +127,10 @@ import {
|
|
|
127
127
|
TagResourceCommandInput,
|
|
128
128
|
TagResourceCommandOutput,
|
|
129
129
|
} from "../commands/TagResourceCommand";
|
|
130
|
+
import {
|
|
131
|
+
TestStateCommandInput,
|
|
132
|
+
TestStateCommandOutput,
|
|
133
|
+
} from "../commands/TestStateCommand";
|
|
130
134
|
import {
|
|
131
135
|
UntagResourceCommandInput,
|
|
132
136
|
UntagResourceCommandOutput,
|
|
@@ -267,6 +271,10 @@ export declare const se_TagResourceCommand: (
|
|
|
267
271
|
input: TagResourceCommandInput,
|
|
268
272
|
context: __SerdeContext
|
|
269
273
|
) => Promise<__HttpRequest>;
|
|
274
|
+
export declare const se_TestStateCommand: (
|
|
275
|
+
input: TestStateCommandInput,
|
|
276
|
+
context: __SerdeContext
|
|
277
|
+
) => Promise<__HttpRequest>;
|
|
270
278
|
export declare const se_UntagResourceCommand: (
|
|
271
279
|
input: UntagResourceCommandInput,
|
|
272
280
|
context: __SerdeContext
|
|
@@ -407,6 +415,10 @@ export declare const de_TagResourceCommand: (
|
|
|
407
415
|
output: __HttpResponse,
|
|
408
416
|
context: __SerdeContext
|
|
409
417
|
) => Promise<TagResourceCommandOutput>;
|
|
418
|
+
export declare const de_TestStateCommand: (
|
|
419
|
+
output: __HttpResponse,
|
|
420
|
+
context: __SerdeContext
|
|
421
|
+
) => Promise<TestStateCommandOutput>;
|
|
410
422
|
export declare const de_UntagResourceCommand: (
|
|
411
423
|
output: __HttpResponse,
|
|
412
424
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sfn",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sfn Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.458.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.458.0",
|
|
25
25
|
"@aws-sdk/core": "3.451.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.458.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.451.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.451.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.451.0",
|