import * as cdk from "../../core/lib"; import * as constructs from "constructs"; import * as cfn_parse from "../../core/lib/helpers-internal"; import { ExecutionReference, IExecutionRef } from "../../interfaces/generated/aws-states-interfaces.generated"; /** * Represents an AWS Step Functions state machine execution. * * @cloudformationResource AWS::States::Execution * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-states-execution.html */ export declare class CfnExecution extends cdk.CfnResource implements cdk.IInspectable, IExecutionRef { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME: string; /** * Build a CfnExecution from CloudFormation properties * * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnExecution; /** * Checks whether the given object is a CfnExecution */ static isCfnExecution(x: any): x is CfnExecution; static arnForExecution(resource: IExecutionRef): string; /** * The string that contains the JSON input data for the execution. */ private _input?; /** * The name of the execution. */ private _name?; /** * The Amazon Resource Name (ARN) of the state machine that was executed. */ private _stateMachineArn; protected readonly cfnPropertyNames: Record; /** * Create a new `AWS::States::Execution`. * * @param scope Scope in which this resource is defined * @param id Construct identifier for this resource (unique in its scope) * @param props Resource properties */ constructor(scope: constructs.Construct, id: string, props: CfnExecutionProps); get executionRef(): ExecutionReference; /** * The string that contains the JSON input data for the execution. */ get input(): string | undefined; /** * The string that contains the JSON input data for the execution. */ set input(value: string | undefined); /** * The name of the execution. */ get name(): string | undefined; /** * The name of the execution. */ set name(value: string | undefined); /** * The Amazon Resource Name (ARN) of the state machine that was executed. */ get stateMachineArn(): string; /** * The Amazon Resource Name (ARN) of the state machine that was executed. */ set stateMachineArn(value: string); /** * The Amazon Resource Name (ARN) that identifies the execution. * * @cloudformationAttribute ExecutionArn */ get attrExecutionArn(): string; /** * The number of times the execution has been redriven. * * @cloudformationAttribute RedriveCount */ get attrRedriveCount(): number; /** * Indicates whether or not an execution can be redriven. * * @cloudformationAttribute RedriveStatus */ get attrRedriveStatus(): string; /** * The date the execution started. * * @cloudformationAttribute StartDate */ get attrStartDate(): string; /** * The name of the state machine, extracted from the execution ARN. * * @cloudformationAttribute StateMachineName */ get attrStateMachineName(): string; /** * The current status of the execution. * * @cloudformationAttribute Status */ get attrStatus(): string; protected get cfnProperties(): Record; /** * Examines the CloudFormation resource and discloses attributes * * @param inspector tree inspector to collect and process attributes */ inspect(inspector: cdk.TreeInspector): void; protected renderProperties(props: Record): Record; } /** * Properties for defining a `CfnExecution` * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-states-execution.html */ export interface CfnExecutionProps { /** * The string that contains the JSON input data for the execution. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-states-execution.html#cfn-states-execution-input */ readonly input?: string; /** * The name of the execution. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-states-execution.html#cfn-states-execution-name */ readonly name?: string; /** * The Amazon Resource Name (ARN) of the state machine that was executed. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-states-execution.html#cfn-states-execution-statemachinearn */ readonly stateMachineArn: string; } export type { IExecutionRef, ExecutionReference };