Data Source: awsSfnStateMachine
Use this data source to get the ARN of a State Machine in AWS Step Function (SFN). By using this data source, you can reference a state machine without having to hard code the ARNs as input.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsSfnStateMachine.DataAwsSfnStateMachine(this, "example", {
name: "an_example_sfn_name",
});
Argument Reference
name
- (Required) Friendly name of the state machine to match.
Attributes Reference
id
- Set to the ARN of the found state machine, suitable for referencing in other resources that support State Machines.arn
- Set to the arn of the state function.roleArn
- Set to the role_arn used by the state function.definition
- Set to the state machine definition.creationDate
- Date the state machine was created.status
- Set to the current status of the state machine.