Amazon Backup Gateway 的操作、资源和条件键
Amazon Backup Gateway(服务前缀:backup-gateway)提供以下服务特定的资源、操作和条件上下文键以在 IAM 权限策略中使用。
参考:
Amazon Backup Gateway 定义的操作
您可以在 IAM policy 语句的 Action 元素中指定以下操作。可以使用策略授予在 Amazon 中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。
操作表的资源类型列指示每项操作是否支持资源级权限。如果该列没有任何值,您必须在策略语句的 Resource 元素中指定策略应用的所有资源(“*”)。通过在 IAM policy 中使用条件来筛选访问权限,以控制是否可以在资源或请求中使用特定标签键。如果操作具有一个或多个必需资源,则调用方必须具有使用这些资源来使用该操作的权限。必需资源在表中以星号 (*) 表示。如果您在 IAM policy 中使用 Resource 元素限制资源访问权限,则必须为每种必需的资源类型添加 ARN 或模式。某些操作支持多种资源类型。如果资源类型是可选的(未指示为必需),则可以选择使用一种可选资源类型。
操作表的条件键列包括可以在策略语句的 Condition 元素中指定的键。有关与服务资源关联的条件键的更多信息,请参阅资源类型表的条件键列。
有关下表中各列的详细信息,请参阅操作表。
| 操作 | 描述 | 访问级别 | 资源类型(* 为必需) | 条件键 | 相关操作 |
|---|---|---|---|---|---|
| AssociateGatewayToServer | 授予 AssociateGatewayToServer 的权限 | Write | |||
| Backup | 授予 Backup 的权限 | Write | |||
| CreateGateway | 授予 CreateGateway 的权限 | Write | |||
| DeleteGateway | 授予 DeleteGateway 的权限 | Write | |||
| DeleteHypervisor | 授予 DeleteHypervisor 的权限 | Write | |||
| DisassociateGatewayFromServer | 授予 DisassociateGatewayFromServer 的权限 | Write | |||
| GetBandwidthRateLimitSchedule | 授予 GetBandwidthRateLimitSchedule 权限 | Read | |||
| GetGateway | 授予 GetGateway 权限 | Read | |||
| GetHypervisor | 授予 GetHypervisor 权限 | Read | |||
| GetHypervisorPropertyMappings | 授予 GetHypervisorPropertyMappings 权限 | Read | |||
| GetVirtualMachine | 授予对 GetVirtualMachine 的权限 | Read | |||
| ImportHypervisorConfiguration | 授予 ImportHypervisorConfiguration 的权限 | Write | |||
| ListGateways | 授予 ListGateways 的权限 | Read | |||
| ListHypervisors | 授予 ListHypervisors 的权限 | Read | |||
| ListTagsForResource | 授予 ListTagsForResource 的权限 | Read | |||
| ListVirtualMachines | 授予 ListVirtualMachines 的权限 | Read | |||
| PutBandwidthRateLimitSchedule | 授予 PutBandwidthRateLimitSchedule 权限 | Write | |||
| PutHypervisorPropertyMappings | 授予 PutHypervisorPropertyMappings 权限 | Write |
iam:PassRole |
||
| PutMaintenanceStartTime | 授予 PutMaintenanceStartTime 的权限 | Write | |||
| Restore | 授予 Restore 的权限 | Write | |||
| StartVirtualMachinesMetadataSync | 授予 StartVirtualMachinesMetadataSync 权限 | Write |
iam:PassRole |
||
| TagResource | 授予 TagResource 的权限 | Tagging | |||
| TestHypervisorConfiguration | 授予 TestHypervisorConfiguration 的权限 | Write | |||
| UntagResource | 授予 UntagResource 的权限 | Tagging | |||
| UpdateGatewayInformation | 授予 UpdateGatewayInformation 的权限 | Write | |||
| UpdateGatewaySoftwareNow | 授予 UpdateGatewaySoftwareNow 权限 | Write | |||
| UpdateHypervisor | 授予 UpdateHypervisor 的权限 | Write |
Amazon Backup Gateway 定义的资源类型
以下资源类型是由该服务定义的,可以在 IAM 权限策略语句的 Resource 元素中使用这些资源类型。操作表中的每个操作指定了可以使用该操作指定的资源类型。您也可以在策略中包含条件键,从而定义资源类型。这些键显示在资源类型表的最后一列。有关下表中各列的详细信息,请参阅资源类型表。
| 资源类型 | ARN | 条件键 |
|---|---|---|
| gateway |
arn:${Partition}:backup-gateway::${Account}:gateway/${GatewayId}
|
|
| hypervisor |
arn:${Partition}:backup-gateway::${Account}:hypervisor/${HypervisorId}
|
|
| virtualmachine |
arn:${Partition}:backup-gateway::${Account}:vm/${VirtualmachineId}
|
Amazon Backup Gateway 的条件键
Amazon Backup Gateway 定义以下可以在 IAM policy 的 Condition 元素中使用的条件键。您可以使用这些键进一步细化应用策略语句的条件。有关下表中各列的详细信息,请参阅条件键表。
要查看适用于所有服务的全局条件键,请参阅可用的全局条件键。
| 条件键 | 描述 | 类型 |
|---|---|---|
| aws:RequestTag/${TagKey} | 按每个标签的允许值集筛选访问 | 字符串 |
| aws:ResourceTag/${TagKey} | 按与资源关联的标签值筛选访问权限 | 字符串 |
| aws:TagKeys | 按请求中是否具有必需标签来筛选访问 | 字符串数组 |