interface StateProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.StateProps |
Java | software.amazon.awscdk.services.stepfunctions.StateProps |
Python | aws_cdk.aws_stepfunctions.StateProps |
TypeScript (source) | @aws-cdk/aws-stepfunctions » StateProps |
Properties shared by all states.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
declare const parameters: any;
declare const resultSelector: any;
const stateProps: stepfunctions.StateProps = {
comment: 'comment',
inputPath: 'inputPath',
outputPath: 'outputPath',
parameters: {
parametersKey: parameters,
},
resultPath: 'resultPath',
resultSelector: {
resultSelectorKey: resultSelector,
},
};
Properties
Name | Type | Description |
---|---|---|
comment? | string | A comment describing this state. |
input | string | JSONPath expression to select part of the state to be the input to this state. |
output | string | JSONPath expression to select part of the state to be the output to this state. |
parameters? | { [string]: any } | Parameters pass a collection of key-value pairs, either static values or JSONPath expressions that select from the input. |
result | string | JSONPath expression to indicate where to inject the state's output. |
result | { [string]: any } | The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. |
comment?
Type:
string
(optional, default: No comment)
A comment describing this state.
inputPath?
Type:
string
(optional, default: $)
JSONPath expression to select part of the state to be the input to this state.
May also be the special value JsonPath.DISCARD, which will cause the effective input to be the empty object {}.
outputPath?
Type:
string
(optional, default: $)
JSONPath expression to select part of the state to be the output to this state.
May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}.
parameters?
Type:
{ [string]: any }
(optional, default: No parameters)
Parameters pass a collection of key-value pairs, either static values or JSONPath expressions that select from the input.
resultPath?
Type:
string
(optional, default: $)
JSONPath expression to indicate where to inject the state's output.
May also be the special value JsonPath.DISCARD, which will cause the state's input to become its output.
resultSelector?
Type:
{ [string]: any }
(optional, default: None)
The JSON that will replace the state's raw result and become the effective result before ResultPath is applied.
You can use ResultSelector to create a payload with values that are static or selected from the state's raw result.