

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# CloudFormation AWS::Serverless::StateMachine가 지정될 때 생성되는 리소스
<a name="sam-specification-generated-resources-statemachine"></a>

`AWS::Serverless::StateMachine`이 지정되면 AWS Serverless Application Model (AWS SAM)은 `AWS::StepFunctions::StateMachine` 기본 CloudFormation 리소스를 생성합니다.

**`AWS::StepFunctions::StateMachine`**  
*`LogicalId`: *`<statemachine‑LogicalId>`  
*참조 가능한 속성: *N/A(이 CloudFormation 리소스를 참조`LogicalId`하려면를 사용해야 함)

이 CloudFormation 리소스 외에도이 `AWS::Serverless::StateMachine` 지정되면는 다음 시나리오에 대한 CloudFormation 리소스 AWS SAM 도 생성합니다.

**Topics**
+ [역할 속성이 지정되지 않음](#sam-specification-generated-resources-statemachine-not-role)
+ [API 이벤트 소스 지정됨](#sam-specification-generated-resources-statemachine-api)
+ [이벤트 브리지(또는 이벤트 버스) 이벤트 소스 지정됨](#sam-specification-generated-resources-statemachine-eventbridge)

## 역할 속성이 지정되지 않음
<a name="sam-specification-generated-resources-statemachine-not-role"></a>

의 `Role` 속성`AWS::Serverless::StateMachine`이 지정*되지 않으면*가 `AWS::IAM::Role` CloudFormation 리소스를 AWS SAM 생성합니다.

**`AWS::IAM::Role`**  
*`LogicalId`: *`<statemachine‑LogicalId>Role`  
*참조 가능한 속성: *N/A(이 CloudFormation 리소스를 참조`LogicalId`하려면를 사용해야 함)

## API 이벤트 소스 지정됨
<a name="sam-specification-generated-resources-statemachine-api"></a>

의 `Event` 속성`AWS::Serverless::StateMachine`이 로 설정`Api`되었지만 `RestApiId` 속성이 지정*되지 않은* 경우는 `AWS::ApiGateway::RestApi` CloudFormation 리소스를 AWS SAM 생성합니다.

**`AWS::ApiGateway::RestApi`**  
*`LogicalId`: *`ServerlessRestApi`  
*참조 가능한 속성: *N/A(이 CloudFormation 리소스를 참조`LogicalId`하려면를 사용해야 함)

## 이벤트 브리지(또는 이벤트 버스) 이벤트 소스 지정됨
<a name="sam-specification-generated-resources-statemachine-eventbridge"></a>

의 `Event` 속성`AWS::Serverless::StateMachine`이 이벤트 브리지(또는 이벤트 버스) 유형 중 하나로 설정되면가 `AWS::Events::Rule` CloudFormation 리소스를 AWS SAM 생성합니다. 이는`EventBridgeRule`, `Schedule`, 및 `CloudWatchEvents` 유형에 적용됩니다.

**`AWS::Events::Rule`**  
*`LogicalId`: *`<statemachine‑LogicalId><event‑LogicalId>`  
*참조 가능한 속성: *N/A(이 CloudFormation 리소스를 참조`LogicalId`하려면를 사용해야 함)