CloudFormation resources generated when AWS::Serverless::StateMachine is specified - AWS Serverless Application Model
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

CloudFormation resources generated when AWS::Serverless::StateMachine is specified

When an AWS::Serverless::StateMachine is specified, AWS Serverless Application Model (AWS SAM) generates an AWS::StepFunctions::StateMachine base CloudFormation resource.

AWS::StepFunctions::StateMachine

LogicalId: <statemachine‑LogicalId>

Referenceable property: N/A (you must use the LogicalId to reference this CloudFormation resource)

In addition to this CloudFormation resource, when AWS::Serverless::StateMachine is specified, AWS SAM also generates CloudFormation resources for the following scenarios:

Role property is not specified

When the Role property of an AWS::Serverless::StateMachine is not specified, AWS SAM generates an AWS::IAM::Role CloudFormation resource.

AWS::IAM::Role

LogicalId: <statemachine‑LogicalId>Role

Referenceable property: N/A (you must use the LogicalId to reference this CloudFormation resource)

An API event source is specified

When the Event property of an AWS::Serverless::StateMachine is set to Api, but the RestApiId property is not specified, AWS SAM generates the AWS::ApiGateway::RestApi CloudFormation resource.

AWS::ApiGateway::RestApi

LogicalId: ServerlessRestApi

Referenceable property: N/A (you must use the LogicalId to reference this CloudFormation resource)

An event bridge (or event bus) event source is specified

When the Event property of an AWS::Serverless::StateMachine is set to one of the event bridge (or event bus) types, AWS SAM generates the AWS::Events::Rule CloudFormation resource. This applies to the following types: EventBridgeRule, Schedule, and CloudWatchEvents.

AWS::Events::Rule

LogicalId: <statemachine‑LogicalId><event‑LogicalId>

Referenceable property: N/A (you must use the LogicalId to reference this CloudFormation resource)