class Result
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Result |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#Result |
Java | software.amazon.awscdk.services.stepfunctions.Result |
Python | aws_cdk.aws_stepfunctions.Result |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions » Result |
The result of a Pass operation.
Example
// Makes the current JSON state { ..., "subObject": { "hello": "world" } }
const pass = new sfn.Pass(this, 'Add Hello World', {
result: sfn.Result.fromObject({ hello: 'world' }),
resultPath: '$.subObject',
});
// Set the next state
const nextState = new sfn.Pass(this, 'NextState');
pass.next(nextState);
Initializer (protected)
super(value: any)
Parameters
- value
any
— result of the Pass operation.
Properties
Name | Type | Description |
---|---|---|
value | any | result of the Pass operation. |
value
Type:
any
result of the Pass operation.
Methods
Name | Description |
---|---|
static from | The result of the operation is an array. |
static from | The result of the operation is a boolean. |
static from | The result of the operation is a number. |
static from | The result of the operation is an object. |
static from | The result of the operation is a string. |
Array(value)
static frompublic static fromArray(value: any[]): Result
Parameters
- value
any[]
Returns
The result of the operation is an array.
Boolean(value)
static frompublic static fromBoolean(value: boolean): Result
Parameters
- value
boolean
Returns
The result of the operation is a boolean.
Number(value)
static frompublic static fromNumber(value: number): Result
Parameters
- value
number
Returns
The result of the operation is a number.
Object(value)
static frompublic static fromObject(value: { [string]: any }): Result
Parameters
- value
{ [string]: any }
Returns
The result of the operation is an object.
String(value)
static frompublic static fromString(value: string): Result
Parameters
- value
string
Returns
The result of the operation is a string.