View a markdown version of this page

Actions, resources, and condition keys for Amazon CodeWhisperer - Service Authorization Reference

Actions, resources, and condition keys for Amazon CodeWhisperer

Amazon CodeWhisperer (service prefix: codewhisperer) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

Actions defined by Amazon CodeWhisperer

Amazon CodeWhisperer has no API operations that can be used in the Actions element of an IAM policy statement.

Permission-only actions for Amazon CodeWhisperer

The following actions are defined by Amazon CodeWhisperer but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.

Actions Description Resource types (*required) Condition keys Access level

AllowVendedLogDeliveryForResource

Grants permission to configure vended log delivery for CodeWhisperer customization resource

customization*

aws:ResourceTag/${TagKey}

Permissions management, Write

AssociateCustomizationPermission

Grants permission to invoke AssociateCustomizationPermission on CodeWhisperer

customization*

aws:ResourceTag/${TagKey}

Write

CreateCustomization

Grants permission to invoke CreateCustomization on CodeWhisperer

customization*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateProfile

Grants permission to invoke CreateProfile on CodeWhisperer

profile*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

DeleteCustomization

Grants permission to invoke DeleteCustomization on CodeWhisperer

customization*

aws:ResourceTag/${TagKey}

Write

DeleteProfile

Grants permission to invoke DeleteProfile on CodeWhisperer

profile*

aws:ResourceTag/${TagKey}

Write

DisassociateCustomizationPermission

Grants permission to invoke DisassociateCustomizationPermission on CodeWhisperer

customization*

aws:ResourceTag/${TagKey}

Write

GenerateRecommendations

Grants permission to invoke GenerateRecommendations on CodeWhisperer

Read

GetCustomization

Grants permission to invoke GetCustomization on CodeWhisperer

customization*

aws:ResourceTag/${TagKey}

Read

ListCustomizationPermissions

Grants permission to invoke ListCustomizationPermissions on CodeWhisperer

customization*

aws:ResourceTag/${TagKey}

List

ListCustomizationVersions

Grants permission to invoke ListCustomizationVersions on CodeWhisperer

customization*

aws:ResourceTag/${TagKey}

List

ListCustomizations

Grants permission to invoke ListCustomizations on CodeWhisperer

customization*

aws:ResourceTag/${TagKey}

List

ListProfiles

Grants permission to invoke ListProfiles on CodeWhisperer

List

ListTagsForResource

Grants permission to invoke ListTagsForResource on CodeWhisperer

customization

aws:ResourceTag/${TagKey}

List

profile

aws:ResourceTag/${TagKey}

TagResource

Grants permission to invoke TagResource on CodeWhisperer

customization

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

profile

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

Grants permission to invoke UntagResource on CodeWhisperer

customization

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

profile

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateCustomization

Grants permission to invoke UpdateCustomization on CodeWhisperer

customization*

aws:ResourceTag/${TagKey}

Write

UpdateProfile

Grants permission to invoke UpdateProfile on CodeWhisperer

profile*

aws:ResourceTag/${TagKey}

Write

Resource types defined by Amazon CodeWhisperer

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements.

Resource types ARN Condition keys

customization

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

aws:ResourceTag/${TagKey}

profile

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

aws:ResourceTag/${TagKey}

Condition keys for Amazon CodeWhisperer

Amazon CodeWhisperer defines the following condition keys that can be used in the Condition element of an IAM policy.

Condition keys Description Type

aws:RequestTag/${TagKey}

Filters access by the tags that are passed in the request

String

aws:ResourceTag/${TagKey}

Filters access by the tags associated with CodeWhisperer resource

String

aws:TagKeys

Filters access by the tag keys that are passed in the request

ArrayOfString