本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
AWS CloudFormation 指定時產生 AWS::Serverless::HttpApi 的資源
指定AWS::Serverless::HttpApi
時, AWS Serverless Application Model
(AWS SAM) 會產生AWS::ApiGatewayV2::Api
基底 AWS CloudFormation 資源。
AWS::ApiGatewayV2::Api
-
LogicalId
:<httpapi‑LogicalId>
可參考屬性:N/A (您必須使用
LogicalId
來參照此 AWS CloudFormation 資源)
除了此資 AWS CloudFormation 源之外,如果AWS::Serverless::HttpApi
有指定, AWS SAM 也會針對下列案例產生 AWS CloudFormation 資源:
StageName屬性已指定
指定的StageName
屬性時, AWS SAM 會產生資AWS::ApiGatewayV2::Stage
AWS CloudFormation
源。AWS::Serverless::HttpApi
AWS::ApiGatewayV2::Stage
-
LogicalId
:<httpapi‑LogicalId>
<stage‑name>
Stage
是屬<stage‑name>
StageName
性設定的字串。例如,如果您設定StageName
為Gamma
,則LogicalId
為:MyHttpApiGamma
舞台。可引用的屬性:
<httpapi‑LogicalId>
.Stage
StageName未指定屬性
未指定的StageName
屬AWS::Serverless::HttpApi
性時, AWS SAM 會產生資AWS::ApiGatewayV2::Stage
AWS CloudFormation 源。
AWS::ApiGatewayV2::Stage
-
LogicalId
:<httpapi‑LogicalId>
ApiGatewayDefaultStage可引用的屬性:
<httpapi‑LogicalId>
.Stage
DomainName屬性已指定
當指定的DomainName
屬Domain
性的屬性AWS::Serverless::HttpApi
時, AWS SAM 會產生資AWS::ApiGatewayV2::DomainName
AWS CloudFormation 源。
AWS::ApiGatewayV2::DomainName
-
LogicalId
:ApiGatewayDomainNameV2
<sha>
是建立堆疊時產生的唯一雜湊值。例如,<sha>
ApiGatewayDomainNameV2
926
電子郵件 1。可引用的屬性:
<httpapi‑LogicalId>
.DomainName