class Result
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.StepFunctions.Result |
![]() | software.amazon.awscdk.services.stepfunctions.Result |
![]() | aws_cdk.aws_stepfunctions.Result |
![]() | @aws-cdk/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. |
static fromArray(value)
public static fromArray(value: any[]): Result
Parameters
- value
any[]
Returns
The result of the operation is an array.
static fromBoolean(value)
public static fromBoolean(value: boolean): Result
Parameters
- value
boolean
Returns
The result of the operation is a boolean.
static fromNumber(value)
public static fromNumber(value: number): Result
Parameters
- value
number
Returns
The result of the operation is a number.
static fromObject(value)
public static fromObject(value: { [string]: any }): Result
Parameters
- value
{ [string]: any }
Returns
The result of the operation is an object.
static fromString(value)
public static fromString(value: string): Result
Parameters
- value
string
Returns
The result of the operation is a string.