EndpointConfiguration - Amazon Serverless Application Model
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

EndpointConfiguration

REST API 的终端节点类型。

语法

要在您的Amazon Serverless Application Model(Amazon SAM) 模板,请使用以下语法。

YAML

Type: String VPCEndpointIds: List

属性

Type

REST API 的终端节点类型。

有效值EDGE要么REGIONAL要么PRIVATE

类型:字符串

必需:否

Amazon CloudFormation兼容性:此属性将直接传递给Types的财产AWS::ApiGateway::RestApi EndpointConfiguration数据类型。

VPCEndpointIds

要创建 Route53 别名的 REST API 的 VPC 终端节点 ID 列表。

类型:List

必需:否

Amazon CloudFormation兼容性:此属性将直接传递给VpcEndpointIds的财产AWS::ApiGateway::RestApi EndpointConfiguration数据类型。

示例

EndpointConfiguration

端点配置示例

YAML

EndpointConfiguration: Type: PRIVATE VPCEndpointIds: - vpce-123a123a - vpce-321a321a