aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
52 lines (51 loc) • 1.45 kB
TypeScript
import { Construct } from 'constructs';
import { State } from './state';
import { INextable } from '../types';
/**
* Properties for defining a Succeed state
*/
export interface SucceedProps {
/**
* Optional name for this state
*
* @default - The construct ID will be used as state name
*/
readonly stateName?: string;
/**
* An optional description for this state
*
* @default No comment
*/
readonly comment?: string;
/**
* JSONPath expression to select part of the state to be the input to this state.
*
* May also be the special value JsonPath.DISCARD, which will cause the effective
* input to be the empty object {}.
*
* @default $
*/
readonly inputPath?: string;
/**
* JSONPath expression to select part of the state to be the output to this state.
*
* May also be the special value JsonPath.DISCARD, which will cause the effective
* output to be the empty object {}.
*
* @default $
*/
readonly outputPath?: string;
}
/**
* Define a Succeed state in the state machine
*
* Reaching a Succeed state terminates the state execution in success.
*/
export declare class Succeed extends State {
readonly endStates: INextable[];
constructor(scope: Construct, id: string, props?: SucceedProps);
/**
* Return the Amazon States Language object for this state
*/
toStateJson(): object;
}