View a markdown version of this page

发现支持行动 - Amazon Web Services 支持
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)。

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

发现支持行动

支持操作是特定服务的操作 Amazon Web Services 支持 可以在您的资源上执行。每个操作都有描述性的名称和描述,用于解释该操作的用途。操作使用命名空间格式来标识 Amazon 服务和具体操作。使用 ListActions 用于在创建范围支持许可证之前查看服务可用操作的 API。

列出服务的操作

使用 ListActions 查看特定服务的可用操作。service 参数是必需的。

aws supportauthz list-actions \ --service "rds"

示例输出

{ "actionSummaries": [ { "action": "rds:ReadClusterData", "service": "rds", "description": "Read diagnostic data from the database cluster." }, { "action": "rds:ViewQueryLogsWithParameters", "service": "rds", "description": "View query logs including query parameters." } ] }

该响应每页包含最多 100 个结果。使用 nextToken 后续检索更多页面的请求中的值。

获取操作详情

使用 GetAction 检索有关特定操作的详细信息。

aws supportauthz get-action \ --action "rds:ReadClusterData"

示例输出

{ "action": "rds:ReadClusterData", "service": "rds", "description": "Read diagnostic data from the database cluster." }

在支持许可证中使用操作

确定可用操作后,使用支持许可中的特定操作名称来应用最低权限范围。在 “” 中指定单个操作 actions 列出而不是使用 allActions 当你想限制什么时 Amazon Web Services 支持 可以用你的资源做。

创建包含特定操作的支持许可证

aws supportauthz create-support-permit \ --name "ScopedPermit" \ --signing-key-info '{"kmsKey": "arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"}' \ --permit '{ "actions": {"actions": ["rds:ReadClusterData"]}, "resources": {"resources": ["arn:aws:rds:us-east-1:111122223333:cluster:my-cluster"]}, "conditions": [ {"allowBefore": "2026-06-15T00:00:00Z"} ] }'