View a markdown version of this page

Amazon CodeWhisperer 的動作、資源和條件索引鍵 - 服務授權參考

Amazon CodeWhisperer 的動作、資源和條件索引鍵

Amazon CodeWhisperer (服務字首:codewhisperer) 提供下列服務特定的操作、資源、動作和條件索引鍵,可用於 IAM 許可政策。

參考資料:

Amazon CodeWhisperer 定義的動作

Amazon CodeWhisperer 沒有可在 IAM 政策陳述式 Actions元素中使用的 API 操作。

Amazon CodeWhisperer 的僅限許可動作

下列動作是由 Amazon CodeWhisperer 定義,但無法透過任何 API 操作直接叫用。它們只能在 IAM 政策陳述式中使用,以授予或拒絕許可。

動作 說明 資源類型 (*必填項目) 條件索引鍵 存取層級

AllowVendedLogDeliveryForResource

准許設定 CodeWhisperer 自訂資源的付費日誌傳遞

自訂*

aws:ResourceTag/${TagKey}

許可管理、寫入

AssociateCustomizationPermission

准許在 CodeWhisperer 上調用 AssociateCustomizationPermission

自訂*

aws:ResourceTag/${TagKey}

寫入

CreateCustomization

准許在 CodeWhisperer 上調用 CreateCustomization

自訂*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

CreateProfile

准許在 CodeWhisperer 上叫用 CreateProfile

設定檔*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

寫入

DeleteCustomization

准許在 CodeWhisperer 上調用 DeleteCustomization

自訂*

aws:ResourceTag/${TagKey}

寫入

DeleteProfile

准許在 CodeWhisperer 上叫用 DeleteProfile

設定檔*

aws:ResourceTag/${TagKey}

寫入

DisassociateCustomizationPermission

准許在 CodeWhisperer 上調用 DisassociateCustomizationPermission

自訂*

aws:ResourceTag/${TagKey}

寫入

GenerateRecommendations

准許在 CodeWhisperer 上叫用 GenerateRecommendations

讀取

GetCustomization

准許在 CodeWhisperer 上調用 GetCustomization

自訂*

aws:ResourceTag/${TagKey}

讀取

ListCustomizationPermissions

准許在 CodeWhisperer 上調用 ListCustomizationPermissions

自訂*

aws:ResourceTag/${TagKey}

清單

ListCustomizationVersions

准許在 CodeWhisperer 上調用 ListCustomizationVersions

自訂*

aws:ResourceTag/${TagKey}

清單

ListCustomizations

准許在 CodeWhisperer 上調用 ListCustomizations

自訂*

aws:ResourceTag/${TagKey}

清單

ListProfiles

准許在 CodeWhisperer 上叫用 ListProfiles

清單

ListTagsForResource

准許在 CodeWhisperer 上叫用 ListTagsForResource

自訂

aws:ResourceTag/${TagKey}

清單

profile

aws:ResourceTag/${TagKey}

TagResource

准許在 CodeWhisperer 上叫用 TagResource

自訂

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

profile

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

准許在 CodeWhisperer 上叫用 UntagResource

自訂

aws:ResourceTag/${TagKey}

aws:TagKeys

標記、寫入

profile

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateCustomization

准許在 CodeWhisperer 上調用 UpdateCustomization

自訂*

aws:ResourceTag/${TagKey}

寫入

UpdateProfile

准許在 CodeWhisperer 上叫用 UpdateProfile

設定檔*

aws:ResourceTag/${TagKey}

寫入

Amazon CodeWhisperer 定義的資源類型

此服務會定義下列資源類型,並可用在 IAM 許可政策陳述式的 Resource 元素中。

資源類型 ARN 條件索引鍵

自訂

arn:${Partition}:codewhisperer:${Region}:${Account}:customization/${Identifier}

aws:ResourceTag/${TagKey}

設定檔

arn:${Partition}:codewhisperer:${Region}:${Account}:profile/${Identifier}

aws:ResourceTag/${TagKey}

Amazon CodeWhisperer 的條件索引鍵

Amazon CodeWhisperer 定義了下列條件索引鍵,可用於 IAM 政策的 Condition 元素。

條件索引鍵 描述 Type

aws:RequestTag/${TagKey}

依要求中傳遞的標籤來篩選存取權

String

aws:ResourceTag/${TagKey}

依與 CodeWhisperer 資源關聯的標籤來篩選存取權

String

aws:TagKeys

依要求中傳遞的標籤索引鍵來篩選存取權

ArrayOfString