View a markdown version of this page

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

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

的操作、资源和条件键 Amazon Backup Gateway

Amazon 备份网关(服务前缀: backup-gateway) 提供以下特定服务的操作、资源、操作和条件密钥,用于 IAM 权限策略。

参考:

API 操作定义为 Amazon Backup Gateway

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

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

AssociateGatewayToServer

backup-gateway:AssociateGatewayToServer

写入

CreateGateway

backup-gateway:CreateGateway

写入

backup-gateway:TagResource

标记、写入

DeleteGateway

backup-gateway:DeleteGateway

写入

DeleteHypervisor

backup-gateway:DeleteHypervisor

写入

DisassociateGatewayFromServer

backup-gateway:DisassociateGatewayFromServer

写入

GetBandwidthRateLimitSchedule

backup-gateway:GetBandwidthRateLimitSchedule

读取

GetGateway

backup-gateway:GetGateway

读取

GetHypervisor

backup-gateway:GetHypervisor

读取

GetHypervisorPropertyMappings

backup-gateway:GetHypervisorPropertyMappings

读取

GetVirtualMachine

backup-gateway:GetVirtualMachine

读取

ImportHypervisorConfiguration

backup-gateway:ImportHypervisorConfiguration

写入

backup-gateway:TagResource

标记、写入

ListGateways

backup-gateway:ListGateways

读取

ListHypervisors

backup-gateway:ListHypervisors

读取

ListTagsForResource

backup-gateway:ListTagsForResource

读取

ListVirtualMachines

backup-gateway:ListVirtualMachines

读取

PutBandwidthRateLimitSchedule

backup-gateway:PutBandwidthRateLimitSchedule

写入

PutHypervisorPropertyMappings

backup-gateway:PutHypervisorPropertyMappings

写入

iam:PassRole

iam:PassedToService

backup-gateway.amazonaws.com

写入

PutMaintenanceStartTime

backup-gateway:PutMaintenanceStartTime

写入

StartVirtualMachinesMetadataSync

backup-gateway:StartVirtualMachinesMetadataSync

写入

iam:PassRole

iam:PassedToService

backup-gateway.amazonaws.com

写入

TagResource

backup-gateway:TagResource

标记、写入

TestHypervisorConfiguration

backup-gateway:TestHypervisorConfiguration

写入

UntagResource

backup-gateway:UntagResource

标记、写入

UpdateGatewayInformation

backup-gateway:UpdateGatewayInformation

写入

UpdateGatewaySoftwareNow

backup-gateway:UpdateGatewaySoftwareNow

写入

UpdateHypervisor

backup-gateway:UpdateHypervisor

写入

动作定义为 Amazon Backup Gateway

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

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

AssociateGatewayToServer

授予以下权限 AssociateGatewayToServer

gateway*

aws:ResourceTag/${TagKey}

写入

hypervisor*

aws:ResourceTag/${TagKey}

Backup

授予 Backup 的权限

virtualmachine*

aws:ResourceTag/${TagKey}

写入

CreateGateway

授予以下权限 CreateGateway

aws:RequestTag/${TagKey}

aws:TagKeys

写入

DeleteGateway

授予以下权限 DeleteGateway

gateway*

aws:ResourceTag/${TagKey}

写入

DeleteHypervisor

授予以下权限 DeleteHypervisor

hypervisor*

aws:ResourceTag/${TagKey}

写入

DisassociateGatewayFromServer

授予以下权限 DisassociateGatewayFromServer

gateway*

aws:ResourceTag/${TagKey}

写入

GetBandwidthRateLimitSchedule

授予以下权限 GetBandwidthRateLimitSchedule

gateway*

aws:ResourceTag/${TagKey}

读取

GetGateway

授予以下权限 GetGateway

gateway*

aws:ResourceTag/${TagKey}

读取

GetHypervisor

授予以下权限 GetHypervisor

hypervisor*

aws:ResourceTag/${TagKey}

读取

GetHypervisorPropertyMappings

授予以下权限 GetHypervisorPropertyMappings

hypervisor*

aws:ResourceTag/${TagKey}

读取

GetVirtualMachine

授予以下权限 GetVirtualMachine

virtualmachine*

aws:ResourceTag/${TagKey}

读取

ImportHypervisorConfiguration

授予以下权限 ImportHypervisorConfiguration

aws:RequestTag/${TagKey}

aws:TagKeys

写入

ListGateways

授予以下权限 ListGateways

读取

ListHypervisors

授予以下权限 ListHypervisors

读取

ListTagsForResource

授予以下权限 ListTagsForResource

gateway

aws:ResourceTag/${TagKey}

读取

hypervisor

aws:ResourceTag/${TagKey}

virtualmachine

aws:ResourceTag/${TagKey}

ListVirtualMachines

授予以下权限 ListVirtualMachines

读取

PutBandwidthRateLimitSchedule

授予以下权限 PutBandwidthRateLimitSchedule

gateway*

aws:ResourceTag/${TagKey}

写入

PutHypervisorPropertyMappings

授予以下权限 PutHypervisorPropertyMappings

hypervisor*

aws:ResourceTag/${TagKey}

写入

PutMaintenanceStartTime

授予以下权限 PutMaintenanceStartTime

gateway*

aws:ResourceTag/${TagKey}

写入

Restore

授予 Restore 的权限

hypervisor*

aws:ResourceTag/${TagKey}

写入

StartVirtualMachinesMetadataSync

授予以下权限 StartVirtualMachinesMetadataSync

hypervisor*

aws:ResourceTag/${TagKey}

写入

TagResource

授予以下权限 TagResource

gateway

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

hypervisor

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

virtualmachine

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

TestHypervisorConfiguration

授予以下权限 TestHypervisorConfiguration

gateway*

aws:ResourceTag/${TagKey}

写入

UntagResource

授予以下权限 UntagResource

gateway

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

hypervisor

aws:ResourceTag/${TagKey}

aws:TagKeys

virtualmachine

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateGatewayInformation

授予以下权限 UpdateGatewayInformation

gateway*

aws:ResourceTag/${TagKey}

写入

UpdateGatewaySoftwareNow

授予以下权限 UpdateGatewaySoftwareNow

gateway*

aws:ResourceTag/${TagKey}

写入

UpdateHypervisor

授予以下权限 UpdateHypervisor

gateway*

aws:ResourceTag/${TagKey}

写入

资源类型定义为 Amazon Backup Gateway

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

资源类型 ARN 条件键

gateway

arn:${Partition}:backup-gateway:${Region}:${Account}:gateway/${GatewayId}

aws:ResourceTag/${TagKey}

hypervisor

arn:${Partition}:backup-gateway:${Region}:${Account}:hypervisor/${HypervisorId}

aws:ResourceTag/${TagKey}

virtualmachine

arn:${Partition}:backup-gateway:${Region}:${Account}:vm/${VirtualmachineId}

aws:ResourceTag/${TagKey}

的条件密钥 Amazon Backup Gateway

Amazon Backup Gateway 定义了以下条件密钥,这些密钥可用于 Condition IAM 政策的元素。

条件键 描述 类型

aws:RequestTag/${TagKey}

按每个标签的允许值集筛选访问

String

aws:ResourceTag/${TagKey}

按与资源关联的标签值筛选访问权限

String

aws:TagKeys

按请求中是否具有必需标签来筛选访问

ArrayOfString