View a markdown version of this page

亚马逊的操作、资源和条件键 CloudWatch 合成纤维 - 服务授权参考
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)。

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

亚马逊的操作、资源和条件键 CloudWatch 合成纤维

亚马逊 CloudWatch 合成(服务前缀: synthetics) 提供以下特定服务的操作、资源、操作和条件密钥,用于 IAM 权限策略。

参考:

亚马逊定义的 API 操作 CloudWatch 合成纤维

下表将 API 操作映射到它们授权的 IAM 操作。仅列出具有给定 API 和操作静态值的条件密钥;有关每个操作支持的全套条件密钥,请参阅 操作表。

操作 IAM 操作 条件键 可能的值 访问级别

AssociateResource

synthetics:AssociateResource

写入

CreateCanary

synthetics:CreateCanary

写入

synthetics:TagResource

标记、写入

iam:PassRole

iam:PassedToService

synthetics.amazonaws.com

写入

CreateGroup

synthetics:CreateGroup

写入

synthetics:TagResource

标记、写入

DeleteCanary

synthetics:DeleteCanary

写入

DeleteGroup

synthetics:DeleteGroup

写入

DescribeCanaries

synthetics:DescribeCanaries

读取

DescribeCanariesLastRun

synthetics:DescribeCanariesLastRun

读取

DescribeRuntimeVersions

synthetics:DescribeRuntimeVersions

读取

DisassociateResource

synthetics:DisassociateResource

写入

GetCanary

synthetics:GetCanary

读取

GetCanaryRuns

synthetics:GetCanaryRuns

读取

GetGroup

synthetics:GetGroup

读取

ListAssociatedGroups

synthetics:ListAssociatedGroups

列表

ListGroupResources

synthetics:ListGroupResources

列表

ListGroups

synthetics:ListGroups

列表

ListTagsForResource

synthetics:ListTagsForResource

读取

StartCanary

synthetics:StartCanary

写入

StartCanaryDryRun

synthetics:StartCanaryDryRun

写入

iam:PassRole

iam:PassedToService

synthetics.amazonaws.com

写入

StopCanary

synthetics:StopCanary

写入

TagResource

synthetics:TagResource

标记、写入

UntagResource

synthetics:UntagResource

标记、写入

UpdateCanary

synthetics:UpdateCanary

写入

iam:PassRole

iam:PassedToService

synthetics.amazonaws.com

写入

亚马逊定义的操作 CloudWatch 合成纤维

您可以在 IAM 策略语句的 Action 元素中指定以下操作。对于每个操作,该表列出了该操作支持的资源类型和条件键。可以使用策略授予在 Amazon中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。

操作 说明 资源类型(* 为必需) 条件键 访问级别

AssociateResource

授予权限以将资源与组相关联

group*

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateCanary

授予权限以创建 Canary

aws:RequestTag/${TagKey}

aws:TagKeys

写入

CreateGroup

授予权限以创建组

aws:RequestTag/${TagKey}

aws:TagKeys

写入

DeleteCanary

授予权限以删除 Canary。Amazon Synthetics 会删除除 Lambda 函数和之外的所有资源 CloudWatch 如果你创建了一个警报

canary*

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

DeleteGroup

授予权限以删除组

group*

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

DescribeCanaries

授予权限以列出所有 Canary 信息

synthetics:Names

Read

DescribeCanariesLastRun

授予权限以列出有关与所有 Canary 关联的最后一次测试运行的信息

synthetics:Names

Read

DescribeRuntimeVersions

授予列出有关 Synthetics Canary 运行时版本信息的权限

读取

DisassociateResource

授予权限以取消资源与组的关联

group*

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

GetCanary

授予权限以查看 Canary 详细信息

canary*

aws:ResourceTag/${TagKey}

aws:TagKeys

读取

GetCanaryRuns

授予权限以列出有关所有与 Canary 关联的测试运行的信息

canary*

aws:ResourceTag/${TagKey}

aws:TagKeys

读取

GetGroup

授予权限以查看组详细信息

group*

aws:ResourceTag/${TagKey}

aws:TagKeys

读取

ListAssociatedGroups

授予权限以列出有关 Canary 关联组的信息

canary*

aws:ResourceTag/${TagKey}

aws:TagKeys

列表

ListGroupResources

授予权限以列出有关组中的 Canary 的信息

group*

aws:ResourceTag/${TagKey}

aws:TagKeys

列表

ListGroups

授予权限以列出所有组的信息

列表

ListTagsForResource

授予权限以列出与资源关联的所有标签和值

canary

aws:ResourceTag/${TagKey}

读取

group

aws:ResourceTag/${TagKey}

StartCanary

授予启动金丝雀的权限,这样亚马逊就可以了 CloudWatch Synthetics 开始监控网站

canary*

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

StartCanaryDryRun

授予启动金丝雀试运行的权限,以便亚马逊 CloudWatch Synthetics 可以使用提供的参数对金丝雀执行测试执行

canary*

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

StopCanary

授予权限以停止 Canary

canary*

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

TagResource

授予权限以将一个或多个标签添加到资源中

canary

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

group

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

授予从资源删除一个或多个标签的权限

canary

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

group

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateCanary

授予权限以更新 Canary

canary*

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

亚马逊定义的资源类型 CloudWatch 合成纤维

以下资源类型是由该服务定义的,可以在 IAM 权限策略语句的 Resource 元素中使用这些资源类型。

资源类型 ARN 条件键

canary

arn:${Partition}:synthetics:${Region}:${Account}:canary:${CanaryName}

aws:ResourceTag/${TagKey}

group

arn:${Partition}:synthetics:${Region}:${Account}:group:${GroupId}

aws:ResourceTag/${TagKey}

亚马逊的条件密钥 CloudWatch 合成纤维

亚马逊 CloudWatch Synthetics 定义了以下条件密钥,这些条件密钥可用于 Condition IAM 政策的元素。

条件键 描述 类型

aws:RequestTag/${TagKey}

根据在请求中传递的标签筛选访问

String

aws:ResourceTag/${TagKey}

根据与资源关联的标签筛选访问

String

aws:TagKeys

根据在请求中传递的标签键筛选访问

ArrayOfString

synthetics:Names

根据 Canary 的名称筛选访问权限

ArrayOfString