使用连接器定义资源属性 Amazon SAM - Amazon Serverless Application Model
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

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

使用连接器定义资源属性 Amazon SAM

可以为资源定义资源属性,以指定其他行为和关系。要了解有关资源属性的更多信息,请参阅《Amazon CloudFormation 用户指南》中的资源属性参考

您可以将资源属性添加到嵌入式连接器,方法是在与连接器属性相同的级别上对其进行定义。在部署时转换 Amazon SAM 模板时,属性将传递给生成的资源。

AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 ... Resources: MyFunction: Type: AWS::Serverless::Function Connectors: MyConn: DeletionPolicy: Retain DependsOn: AnotherFunction Properties: ...

有关使用连接器的更多信息,请参阅 Amazon SAM 连接器参考