

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

# 에 대해 생성된 CloudFormation 리소스 AWS SAM
<a name="sam-specification-generated-resources"></a>

이 섹션에서는가 AWS 템플릿을 AWS SAM 처리할 때 생성되는 CloudFormation 리소스에 대한 세부 정보를 제공합니다. 에서 AWS SAM 생성하는 CloudFormation 리소스 세트는 지정한 시나리오에 따라 다릅니다. *시나리오*는 템플릿 파일에 지정된 AWS SAM 리소스와 속성의 조합입니다. 템플릿 파일에서 명시적으로 선언한 CloudFormation 리소스를 참조하는 것과 마찬가지로 템플릿 파일 내 다른 곳에서 생성된 리소스를 참조할 수 있습니다.

예를 들어 `AWS::Serverless::Function` 템플릿 파일에 AWS SAM 리소스를 지정하면 항상 AWS SAM 기본 리소스가 `AWS::Lambda::Function`생성됩니다. 선택적 `AutoPublishAlias` 속성도 지정하면가 `AWS::Lambda::Alias` 및 `AWS::Lambda::Version` 리소스를 AWS SAM 추가로 생성합니다.

이 섹션에서는 시나리오와 시나리오가 생성하는 CloudFormation 리소스를 나열하고 AWS SAM 템플릿 파일에서 생성된 CloudFormation 리소스를 참조하는 방법을 보여줍니다.

## 생성된 CloudFormation 리소스 참조
<a name="sam-specification-generated-resources-referencing"></a>

 AWS SAM 템플릿 파일 내에서 생성된 CloudFormation 리소스를 참조하거나 참조 가능한 속성을 `LogicalId` 기준으로 참조하는 두 가지 옵션이 있습니다.

### LogicalId로 생성된 CloudFormation 리소스 참조
<a name="sam-specification-generated-resources-referencing-logicalid"></a>

가 각각 AWS SAM 생성하는 CloudFormation 리소스에는 템플릿 파일 내에서 고유한 `[LogicalId](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html#resources-section-structure-logicalid)`영숫자(A-Z, a-z, 0-9) 식별자인가 있습니다.는 템플릿 파일에 있는 AWS SAM 리소스`LogicalIds`의를 AWS SAM 사용하여 생성하는 CloudFormation 리소스`LogicalIds`의를 구성합니다. 명시적으로 선언한 CloudFormation 리소스와 마찬가지로 생성된 리소스`LogicalId`의를 사용하여 템플릿 파일 내에서 해당 리소스의 속성에 CloudFormation 액세스할 수 있습니다. CloudFormation 및 AWS SAM 템플릿`LogicalIds`의에 대한 자세한 내용은 *AWS CloudFormation 사용 설명서*의 [리소스를](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html) 참조하세요.

**참고**  
생성된 일부 리소스의 `LogicalIds`에는 네임스페이스 충돌을 방지하기 위한 고유한 해시 값이 포함되어 있습니다. 이러한 리소스의 `LogicalIds`는 스택이 생성될 때 파생됩니다. AWS Management Console AWS CLI또는 AWS SDKs. 해시 값이 변경될 수 있으므로 이러한 `LogicalId` 리소스를 참조하지 않는 것이 좋습니다.

### 참조 가능한 속성으로 생성된 CloudFormation 리소스 참조
<a name="sam-specification-generated-resources-referencing-referenceable-property"></a>

일부 생성된 리소스의 AWS SAM 경우는 리소스의 참조 가능한 속성을 AWS SAM 제공합니다. 이 속성을 사용하여 AWS SAM 템플릿 파일 내에서 생성된 CloudFormation 리소스와 해당 속성을 참조할 수 있습니다.

**참고**  
생성된 모든 CloudFormation 리소스에 참조 가능한 속성이 있는 것은 아닙니다. 이러한 리소스의 경우 `LogicalId`를 사용해야 합니다.

## 생성된 CloudFormation 리소스 시나리오
<a name="sam-specification-generated-resources-scenarios"></a>

다음 표에는 AWS SAM 리소스를 생성하는 시나리오를 구성하는 CloudFormation 리소스와 속성이 요약되어 있습니다. **시나리오** 열의 주제는가 해당 시나리오에 대해 생성하는 AWS SAM 추가 CloudFormation 리소스에 대한 세부 정보를 제공합니다.


| AWS SAM 리소스 | 기본 CloudFormation 리소스 | 시나리오 | 
| --- | --- | --- | 
| AWS::Serverless::Api  | [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html) |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/serverless-application-model/latest/developerguide/sam-specification-generated-resources.html)  | 
| AWS::Serverless::Application  | [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack.html) |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/serverless-application-model/latest/developerguide/sam-specification-generated-resources.html)  | 
| AWS::Serverless::CapacityProvider  | [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html) |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/serverless-application-model/latest/developerguide/sam-specification-generated-resources.html)  | 
| AWS::Serverless::Function | [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html) |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/serverless-application-model/latest/developerguide/sam-specification-generated-resources.html)  | 
| AWS::Serverless::HttpApi | [AWS::ApiGatewayV2::Api](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html) |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/serverless-application-model/latest/developerguide/sam-specification-generated-resources.html)  | 
| AWS::Serverless::LayerVersion  | [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html) |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/serverless-application-model/latest/developerguide/sam-specification-generated-resources.html)  | 
| AWS::Serverless::SimpleTable  | [AWS::DynamoDB::Table](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html) |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/serverless-application-model/latest/developerguide/sam-specification-generated-resources.html)  | 
| AWS::Serverless::StateMachine  | [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html) |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/serverless-application-model/latest/developerguide/sam-specification-generated-resources.html)  | 

**Topics**
+ [생성된 CloudFormation 리소스 참조](#sam-specification-generated-resources-referencing)
+ [생성된 CloudFormation 리소스 시나리오](#sam-specification-generated-resources-scenarios)
+ [CloudFormation AWS::Serverless::Api가 지정될 때 생성되는 리소스](sam-specification-generated-resources-api.md)
+ [CloudFormation AWS::Serverless::Application가 지정될 때 생성되는 리소스](sam-specification-generated-resources-application.md)
+ [CloudFormation AWS::Serverless::CapacityProvider가 지정될 때 생성되는 리소스](sam-specification-generated-resources-capacityprovider.md)
+ [CloudFormation 지정할 때 생성된 리소스 AWS::Serverless::Connector](sam-specification-generated-resources-connector.md)
+ [CloudFormation AWS::Serverless::Function가 지정될 때 생성되는 리소스](sam-specification-generated-resources-function.md)
+ [CloudFormation AWS::Serverless::GraphQLApi가 지정될 때 생성되는 리소스](sam-specification-generated-resources-graphqlapi.md)
+ [CloudFormation AWS::Serverless::HttpApi가 지정될 때 생성되는 리소스](sam-specification-generated-resources-httpapi.md)
+ [CloudFormation AWS::Serverless::WebSocketApi가 지정될 때 생성되는 리소스](sam-specification-generated-resources-websocketapi.md)
+ [CloudFormation AWS::Serverless::LayerVersion가 지정될 때 생성되는 리소스](sam-specification-generated-resources-layerversion.md)
+ [CloudFormation AWS::Serverless::SimpleTable가 지정될 때 생성되는 리소스](sam-specification-generated-resources-simpletable.md)
+ [CloudFormation AWS::Serverless::StateMachine가 지정될 때 생성되는 리소스](sam-specification-generated-resources-statemachine.md)