# Result

The result of a Pass operation.

- Source: [`aws-stepfunctions/lib/states/pass.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-stepfunctions/lib/states/pass.ts#L13)

## Example

```ts
// 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);
```

## Properties

- `value`: any — result of the Pass operation.

## Methods

- `fromArray(value: any[]): Result // chainable` (static) — The result of the operation is an array.

- `fromBoolean(value: boolean): Result // chainable` (static) — The result of the operation is a boolean.

- `fromNumber(value: number): Result // chainable` (static) — The result of the operation is a number.

- `fromObject(value: { [key: string]: any }): Result // chainable` (static) — The result of the operation is an object.

- `fromString(value: string): Result // chainable` (static) — The result of the operation is a string.
