Result Class
The result of a Pass operation.
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
result of the Pass operation.
Methods
fromArray(value: any[]): Result // chainable@staticmethod def from_array(value: typing.List[Any]) -> Resultpublic static Result fromArray(List<Object> value)public static Result FromArray(object[] value)func FromArray(Value *[]interface{}) Resultstatic#The result of the operation is an array.
fromBoolean(value: boolean): Result // chainable@staticmethod def from_boolean(value: bool) -> Resultpublic static Result fromBoolean(Boolean value)public static Result FromBoolean(bool value)func FromBoolean(Value *bool) Resultstatic#The result of the operation is a boolean.
fromNumber(value: number): Result // chainable@staticmethod def from_number(value: int | float) -> Resultpublic static Result fromNumber(Number value)public static Result FromNumber(double value)func FromNumber(Value *float64) Resultstatic#The result of the operation is a number.
fromObject(value: { [key: string]: any }): Result // chainable@staticmethod def from_object(value: typing.Mapping[str, Any]) -> Resultpublic static Result fromObject(Map<String, Object> value)public static Result FromObject(IDictionary<string, object> value)func FromObject(Value *map[string]interface{}) Resultstatic#The result of the operation is an object.