AWS CloudFormationAWS::Serverless::HttpApi が指定されている時に生成された リソース - AWS Serverless Application Model

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

AWS CloudFormationAWS::Serverless::HttpApi が指定されている時に生成された リソース

AWS::Serverless::HttpApi が指定されている場合、AWS Serverless Application Model (AWS SAM) は AWS::ApiGatewayV2::Api のベース AWS CloudFormation リソースを生成します。

AWS::ApiGatewayV2::Api

LogicalId: <httpapi‑LogicalId>

参照可能なプロパティ: なし (この AWS CloudFormation リソースを参照するには、LogicalId を使用する必要があります)

AWS::Serverless::HttpApi が指定されている場合、AWS SAM はこの AWS CloudFormation リソースに加えて、以下のシナリオに対する AWS CloudFormation リソースも生成します。

StageName プロパティが指定されている

AWS::Serverless::HttpApiStageName プロパティが指定されていない場合、AWS SAM は AWS::ApiGatewayV2::Stage AWS CloudFormation リソースを生成します。

AWS::ApiGatewayV2::Stage

LogicalId: <httpapi‑LogicalId><stage‑name>Stage

<stage‑name> は、StageName プロパティが設定されている文字列です。例えば、StageNameGamma に設定すると、LogicalIdMyHttpapigammaStage になります。

参照可能なプロパティ: <httpapi‑LogicalId>.Stage

StageName プロパティが指定されていない

AWS::Serverless::HttpApiStageName プロパティが指定されていない場合、AWS SAM は AWS::ApiGatewayV2::Stage AWS CloudFormation リソースを生成します。

AWS::ApiGatewayV2::Stage

LogicalId: <httpapi‑LogicalId>ApiGatewayDefaultStage

参照可能なプロパティ: <httpapi‑LogicalId>.Stage

DomainName プロパティが指定されている

AWS::Serverless::HttpApiDomain プロパティの DomainName プロパティが指定されている場合、AWS SAM は AWS::ApiGatewayV2::DomainName AWS CloudFormation リソースを生成します。

AWS::ApiGatewayV2::DomainName

LogicalId: ApiGatewayDomainNameV2<sha>

<sha> は、スタックが作成されるときに生成される一意のハッシュ値です。例えば、ApiGatewayDomainNameV2926eeb5ff1 などです。

参照可能なプロパティ: <httpapi‑LogicalId>.DomainName