View a markdown version of this page

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

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

ManagedResourceTags

将显式标签应用于容量提供商代表您预置和管理的 Amazon 弹性计算云实例和其他资源。

注意

该ManagedResourceTags属性控制 Lambda 为容量提供商管理的 Amazon EC2 实例和其他资源的标记。此属性不同于该PropagateTags属性,后者指定是否 Amazon SAM 将 Tags 属性传播到根据您的模板 Amazon SAM 生成的 Amazon CloudFormation 资源。

语法

要在您的 Amazon Serverless Application Model (Amazon SAM) 模板中声明此实体,请使用以下语法。

YAML

Tags: Map

Properties

支持以下属性ManagedResourceTags。

Tags

适用于容量提供商管理的 Amazon EC2 实例和其他资源的键值对映射。

类型:映射

必需:否

Amazon CloudFormation 兼容性: Amazon SAM 使用此属性来构造AWS::Lambda::CapacityProvider资源的PropagateTags属性。 Amazon SAM 设置Mode为中的键值对Explicit并将其转换为标签对象列表。ExplicitTags

示例

对托管资源应用显式标签

以下示例将一组明确的标签应用于容量提供商管理的 Amazon EC2 实例。

ManagedResourceTags: Tags: CostCenter: cc-1234 Environment: Production