View a markdown version of this page

的操作、资源和条件键 AWS Marketplace - 服务授权参考

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

的操作、资源和条件键 AWS Marketplace

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

参考:

操作定义为 AWS Marketplace

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

操作表的访问级别列描述如何对操作进行分类(列出、读取、权限管理或标记)。此分类可以帮助您了解当您在策略中使用操作时,相应操作授予的访问级别。有关访问级别的更多信息,请参阅策略摘要中的访问级别

操作表的资源类型列指示每项操作是否支持资源级权限。如果该列没有任何值,您必须在策略语句的 Resource 元素中指定策略应用的所有资源(“*”)。通过在 IAM policy 中使用条件来筛选访问权限,以控制是否可以在资源或请求中使用特定标签键。如果操作具有一个或多个必需资源,则调用方必须具有使用这些资源来使用该操作的权限。必需资源在表中以星号 (*) 表示。如果您在 IAM policy 中使用 Resource 元素限制资源访问权限,则必须为每种必需的资源类型添加 ARN 或模式。某些操作支持多种资源类型。如果资源类型是可选的(未指示为必需),则可以选择使用一种可选资源类型。

操作表的条件键列包括可以在策略语句的 Condition 元素中指定的键。有关与服务资源关联的条件键的更多信息,请参阅资源类型表的条件键列。

操作表的依赖操作列显示成功调用操作可能需要的其他权限。除了操作本身的权限以外,可能还需要这些权限。若某个操作指定依赖操作,则这些依赖关系可能适用于为该操作定义的其他资源,而不仅仅是表中列出的第一个资源。

注意

资源条件键在资源类型表中列出。您可以在操作表的资源类型(* 为必需)列中找到应用于某项操作的资源类型的链接。资源类型表中的资源类型包括条件密钥列,这是应用于操作表中操作的资源条件键。

有关下表中各列的详细信息,请参阅操作表

操作 描述 访问级别 资源类型(* 为必需) 条件键 相关操作
AcceptAgreementApprovalRequest 授予批准传入订阅请求的权限(适用于提供需要订阅验证的产品的提供商) 写入
AcceptAgreementCancellationRequest 授予接受协议取消请求的权限 写入

aws-marketplace:PartyType

aws-marketplace:AgreementType

AcceptAgreementPaymentRequest 授予接受付款请求的权限 写入

aws-marketplace:PartyType

aws-marketplace:AgreementType

AcceptAgreementRequest 授予接受协议请求的权限 写入

aws-marketplace:AgreementType

aws-marketplace:ProductId

BatchCreateBillingAdjustmentRequest 授予根据协议创建账单调整请求的权限 写入

aws-marketplace:PartyType

aws-marketplace:AgreementType

CancelAgreement 授予取消协议的权限 写入

aws-marketplace:AgreementType

CancelAgreementCancellationRequest 授予取消待处理的协议取消请求的权限 写入

aws-marketplace:PartyType

aws-marketplace:AgreementType

CancelAgreementPaymentRequest 授予取消付款请求的权限 写入

aws-marketplace:PartyType

aws-marketplace:AgreementType

CancelAgreementRequest 授予取消需要订阅验证的产品的待处理订阅请求的权限 写入
CreateAgreementRequest 授予创建协议请求的权限 写入

aws-marketplace:AgreementType

aws-marketplace:ProductId

DescribeAgreement 授予描述协议相关元数据的权限 读取

aws-marketplace:PartyType

aws-marketplace:AgreementType

GetAgreementApprovalRequest 授予查看传入订阅请求详细信息的权限(适用于提供需要订阅验证的产品的提供商) 读取
GetAgreementCancellationRequest 授予查看协议取消请求详细信息的权限 读取

aws-marketplace:PartyType

aws-marketplace:AgreementType

GetAgreementEntitlements 授予获取与协议关联的权利的权限 读取

aws-marketplace:AgreementType

GetAgreementPaymentRequest 授予查看付款申请详情的权限 读取

aws-marketplace:PartyType

aws-marketplace:AgreementType

GetAgreementRequest 授予权限以查看需要订阅验证的数据产品的订阅请求的详细信息 读取
GetAgreementTerms 授予获取协议条款列表的权限 列表

aws-marketplace:PartyType

aws-marketplace:AgreementType

GetBillingAdjustmentRequest 授予查看账单调整请求详细信息的权限 读取

aws-marketplace:PartyType

aws-marketplace:AgreementType

ListAgreementApprovalRequests 授予列出传入订阅请求的权限(适用于提供需要订阅验证的产品的提供商) 列表
ListAgreementCancellationRequests 授予列出协议取消请求的权限 列表

aws-marketplace:PartyType

aws-marketplace:AgreementType

ListAgreementCharges 授予列出与协议相关的费用的权限 列表

aws-marketplace:AgreementType

ListAgreementInvoiceLineItems 授予列出协议发票明细项目的权限 列表

aws-marketplace:PartyType

aws-marketplace:AgreementType

ListAgreementPaymentRequests 授予列出协议付款请求的权限 列表

aws-marketplace:PartyType

aws-marketplace:AgreementType

ListAgreementRequests 授予发布需要订阅验证的产品的订阅请求的权限 列表
ListBillingAdjustmentRequests 授予列出账单调整请求的权限 列表

aws-marketplace:PartyType

aws-marketplace:AgreementType

ListEntitlementDetails 授予列出与协议关联的权利详细信息的权限。请注意,此操作不适用于 Marketplace 购买 读取
RejectAgreementApprovalRequest 授予拒绝收到的订阅请求的权限(适用于提供需要订阅验证的产品的提供商) 写入
RejectAgreementCancellationRequest 授予拒绝协议取消请求的权限 写入

aws-marketplace:PartyType

aws-marketplace:AgreementType

RejectAgreementPaymentRequest 授予拒绝付款请求的权限 写入

aws-marketplace:PartyType

aws-marketplace:AgreementType

SearchAgreements 授予搜索协议的权限 列表

aws-marketplace:PartyType

aws-marketplace:AgreementType

SendAgreementCancellationRequest 授予发送协议取消请求的权限 写入

aws-marketplace:PartyType

aws-marketplace:AgreementType

SendAgreementPaymentRequest 授予发送付款请求的权限 写入

aws-marketplace:PartyType

aws-marketplace:AgreementType

Subscribe 授予订阅 AWS Marketplace 产品的权限。包括为需要订阅验证的产品发送订阅请求的功能。包括为现有订阅启用自动续订的功能 写入
Unsubscribe 授予取消订阅 AWS Marketplace 产品的权限。包括为现有订阅禁用自动续订的功能 写入
UpdateAgreementApprovalRequest 授予对收到的订阅请求进行更改的权限,包括删除潜在订阅者信息的权限(适用于提供需要订阅验证的产品的提供商) 写入
UpdatePurchaseOrders 授予更新与协议相关的费用的采购订单的权限 写入

aws-marketplace:AgreementType

ViewSubscriptions 授予查看账户订阅的权限 列表

定义的资源类型 AWS Marketplace

AWS Marketplace 不支持在 IAM 策略声明的Resource元素中指定资源 ARN。要允许对 AWS Marketplace的访问权限,请在策略中指定 "Resource": "*"

的条件键 AWS Marketplace

AWS Marketplace 定义了可在 IAM 策略Condition元素中使用的以下条件键。您可以使用这些键进一步细化应用策略语句的条件。有关下表中各列的详细信息,请参阅条件键表

要查看适用于所有服务的全局条件键,请参阅 AWS 全局条件上下文键

条件键 描述 Type
aws-marketplace:AgreementType 按协议的类型筛选访问权限 ArrayOfString
aws-marketplace:PartyType 按协议的参与方类型筛选访问权限 字符串
aws-marketplace:ProductId 按产品 ID 筛选 AWS Marketplace 购买的访问权限 ArrayOfString