View a markdown version of this page

的操作、资源和条件键 AWS IAM 访问分析器 - 服务授权参考

的操作、资源和条件键 AWS IAM 访问分析器

AWS IAM Access Analyzer(服务前缀:access-analyzer)提供以下特定于服务的操作、资源、操作和条件密钥,供在 IAM 权限策略中使用。

参考:

API 操作定义为 AWS IAM 访问分析器

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

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

ApplyArchiveRule

访问分析器:ApplyArchiveRule

写入

CancelPolicyGeneration

访问分析器:CancelPolicyGeneration

写入

CheckAccessNotGranted

访问分析器:CheckAccessNotGranted

读取

CheckNoNewAccess

访问分析器:CheckNoNewAccess

读取

CheckNoPublicAccess

访问分析器:CheckNoPublicAccess

读取

CreateAccessPreview

访问分析器:CreateAccessPreview

写入

CreateAnalyzer

访问分析器:CreateAnalyzer

写入

访问分析器:TagResource

标记、写作

CreateArchiveRule

访问分析器:CreateArchiveRule

写入

CreateServiceLinkedAnalyzer

访问分析器:CreateServiceLinkedAnalyzer

写入

DeleteAnalyzer

访问分析器:DeleteAnalyzer

写入

DeleteArchiveRule

访问分析器:DeleteArchiveRule

写入

DeleteServiceLinkedAnalyzer

访问分析器:DeleteServiceLinkedAnalyzer

写入

GenerateFindingRecommendation

访问分析器:GenerateFindingRecommendation

写入

GetAccessPreview

访问分析器:GetAccessPreview

读取

GetAnalyzedResource

访问分析器:GetAnalyzedResource

读取

GetAnalyzer

访问分析器:GetAnalyzer

读取

GetArchiveRule

访问分析器:GetArchiveRule

读取

GetFinding

访问分析器:GetFinding

读取

GetFindingRecommendation

访问分析器:GetFindingRecommendation

读取

V2 GetFinding

访问分析器:GetFinding

读取

GetFindingsStatistics

访问分析器:GetFindingsStatistics

读取

GetGeneratedPolicy

访问分析器:GetGeneratedPolicy

读取

ListAccessPreviewFindings

访问分析器:ListAccessPreviewFindings

读取

ListAccessPreviews

访问分析器:ListAccessPreviews

列表

ListAnalyzedResources

访问分析器:ListAnalyzedResources

读取

ListAnalyzers

访问分析器:ListAnalyzers

列表

ListArchiveRules

访问分析器:ListArchiveRules

列表

ListFindings

访问分析器:ListFindings

读取

V2 ListFindings

访问分析器:ListFindings

读取

ListPolicyGenerations

访问分析器:ListPolicyGenerations

读取

ListTagsForResource

访问分析器:ListTagsForResource

读取

StartPolicyGeneration

访问分析器:StartPolicyGeneration

写入

我是:PassRole

我是:PassedToService

access-analyzer.amaws.com

写入

StartResourceScan

访问分析器:StartResourceScan

写入

TagResource

访问分析器:TagResource

标记、写作

UntagResource

访问分析器:UntagResource

标记、写作

UpdateAnalyzer

访问分析器:UpdateAnalyzer

写入

UpdateArchiveRule

访问分析器:UpdateArchiveRule

写入

UpdateFindings

访问分析器:UpdateFindings

写入

ValidatePolicy

访问分析器:ValidatePolicy

读取

操作定义为 AWS IAM 访问分析器

您可以在 IAM 策略语句的 Action 元素中指定以下操作。可以使用策略授予在 AWS中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。

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

ApplyArchiveRule

授予应用存档规则的权限

分析仪*

aws: ResourceTag /$ {} TagKey

写入

CancelPolicyGeneration

授予取消策略生成的权限

写入

CheckAccessNotGranted

授予检查策略是否不允许指定访问的权限

读取

CheckNoNewAccess

授予检查现有策略是否不允许新访问权限的权限

读取

CheckNoPublicAccess

授予权限以检查资源策略是否不允许公共访问

读取

CreateAccessPreview

授予权限以为指定分析器创建访问预览

分析仪*

aws: ResourceTag /$ {} TagKey

写入

CreateAnalyzer

授予权限以创建分析器

分析仪*

aws: RequestTag /$ {} TagKey

aws: ResourceTag /$ {} TagKey

aws:TagKeys

写入

CreateArchiveRule

授予权限以为指定分析器创建存档规则

ArchiveRule*

写入

CreateServiceLinkedAnalyzer

授予创建服务关联分析器的权限

分析仪*

aws: RequestTag /$ {} TagKey

aws: ResourceTag /$ {} TagKey

aws:TagKeys

写入

DeleteAnalyzer

授予权限以删除指定的分析器

分析仪*

aws: RequestTag /$ {} TagKey

aws: ResourceTag /$ {} TagKey

aws:TagKeys

写入

DeleteArchiveRule

授予权限以删除指定分析器的存档规则

ArchiveRule*

写入

DeleteServiceLinkedAnalyzer

授予删除指定服务关联分析器的权限

分析仪*

aws: RequestTag /$ {} TagKey

aws: ResourceTag /$ {} TagKey

aws:TagKeys

写入

GenerateFindingRecommendation

授予权限以生成用于解析调查发现的建议步骤

分析仪*

aws: ResourceTag /$ {} TagKey

写入

GetAccessPreview

授予权限以检索有关访问预览的信息

分析仪*

aws: ResourceTag /$ {} TagKey

读取

GetAnalyzedResource

授予权限以检索有关已分析资源的信息

分析仪*

aws: ResourceTag /$ {} TagKey

读取

GetAnalyzer

授予权限以检索有关分析器的信息

分析仪*

aws: RequestTag /$ {} TagKey

aws: ResourceTag /$ {} TagKey

aws:TagKeys

读取

GetArchiveRule

授予权限以检索有关指定分析器的存档规则的信息

ArchiveRule*

Read

GetFinding

授予权限以检索结果

分析仪*

aws: ResourceTag /$ {} TagKey

读取

GetFindingRecommendation

授予权限以检索用于解析调查发现的建议步骤

分析仪*

aws: ResourceTag /$ {} TagKey

读取

GetFindingsStatistics

授予检索调查发现统计数据的权限

分析仪*

aws: ResourceTag /$ {} TagKey

读取

GetGeneratedPolicy

授予权限以检索使用生成的策略 StartPolicyGeneration

读取

ListAccessPreviewFindings

授予权限以从访问预览中检索结果的列表

分析仪*

aws: ResourceTag /$ {} TagKey

读取

ListAccessPreviews

授予权限以检索访问预览的列表

分析仪*

aws: ResourceTag /$ {} TagKey

列表

ListAnalyzedResources

授予权限以检索已分析资源的列表

分析仪*

aws: ResourceTag /$ {} TagKey

读取

ListAnalyzers

授予权限以检索分析器列表

List

ListArchiveRules

授予权限以从分析器中检索存档规则的列表

分析仪*

aws: ResourceTag /$ {} TagKey

列表

ListFindings

授予权限以从分析器中检索结果的列表

分析仪*

aws: ResourceTag /$ {} TagKey

读取

ListPolicyGenerations

授予权限以列出所有最近启动的策略生成

Read

ListTagsForResource

授予权限以检索应用于资源的标签的列表

分析器

aws: ResourceTag /$ {} TagKey

读取

StartPolicyGeneration

授予权限以启动策略生成

Write

StartResourceScan

授予权限以开始扫描应用于资源的策略

分析仪*

aws: ResourceTag /$ {} TagKey

写入

TagResource

授予权限以将标签添加到资源

分析器

aws: RequestTag /$ {} TagKey

aws: ResourceTag /$ {} TagKey

aws:TagKeys

标记、写作

UntagResource

授予权限以从资源中删除标签

分析器

aws: ResourceTag /$ {} TagKey

aws:TagKeys

标记、写作

UpdateAnalyzer

授予权限以修改分析器的配置

分析仪*

aws: ResourceTag /$ {} TagKey

写入

UpdateArchiveRule

授予权限以修改存档规则

ArchiveRule*

Write

UpdateFindings

授予权限以修改结果

分析仪*

aws: ResourceTag /$ {} TagKey

写入

ValidatePolicy

授予验证策略的权限

读取

由定义的资源类型 AWS IAM 访问分析器

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

资源类型 ARN 条件键

分析器

arn: $ {Partition}: access-analyzer: $ {Region}: $ {Account}: analyzer/$ {} AnalyzerName

aws: ResourceTag /$ {} TagKey

ArchiveRule

arn: $ {Partition}: access-analyzer: $ {Region}: $ {Account}: analyzer/$ {} /archive-rule/$ {} AnalyzerName RuleName

的条件键 AWS IAM 访问分析器

AWS IAM Access Analyzer 定义了以下可以在 IAM 策略Condition元素中使用的条件键。

条件键 描述 类型

aws: RequestTag /$ {} TagKey

根据在请求中是否具有标签键值对以筛选操作

字符串

aws: ResourceTag /$ {} TagKey

根据附加到资源的标签键值对筛选操作

字符串

aws:TagKeys

根据在请求中是否具有标签键以筛选操作

ArrayOfString