aws-cdk-lib.aws_stepfunctions.Result

class Result

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Result
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#Result
Javasoftware.amazon.awscdk.services.stepfunctions.Result
Pythonaws_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

NameTypeDescription
valueanyresult of the Pass operation.

value

Type: any

result of the Pass operation.

Methods

NameDescription
static fromArray(value)The result of the operation is an array.
static fromBoolean(value)The result of the operation is a boolean.
static fromNumber(value)The result of the operation is a number.
static fromObject(value)The result of the operation is an object.
static fromString(value)The result of the operation is a string.

static fromArray(value)

public static fromArray(value: any[]): Result

Parameters

  • value any[]

Returns

  • Result

The result of the operation is an array.


static fromBoolean(value)

public static fromBoolean(value: boolean): Result

Parameters

  • value boolean

Returns

  • Result

The result of the operation is a boolean.


static fromNumber(value)

public static fromNumber(value: number): Result

Parameters

  • value number

Returns

  • Result

The result of the operation is a number.


static fromObject(value)

public static fromObject(value: { [string]: any }): Result

Parameters

  • value { [string]: any }

Returns

  • Result

The result of the operation is an object.


static fromString(value)

public static fromString(value: string): Result

Parameters

  • value string

Returns

  • Result

The result of the operation is a string.