View a markdown version of this page

Actions, resources, and condition keys for Amazon Resource Access Manager (RAM) - Service Authorization Reference
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Actions, resources, and condition keys for Amazon Resource Access Manager (RAM)

Amazon Resource Access Manager (RAM) (service prefix: ram) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by Amazon Resource Access Manager (RAM)

The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.

Operation IAM action Condition key Possible value(s) Access level

AcceptResourceShareInvitation

ram:AcceptResourceShareInvitation

Write

AssociateResourceShare

ram:AssociateResourceShare

Write

AssociateResourceSharePermission

ram:AssociateResourceSharePermission

Write

CreatePermission

ram:CreatePermission

Write

ram:TagResource

Tagging, Write

CreatePermissionVersion

ram:CreatePermissionVersion

Write

CreateResourceShare

ram:CreateResourceShare

Write

ram:TagResource

Tagging, Write

DeletePermission

ram:DeletePermission

Write

DeletePermissionVersion

ram:DeletePermissionVersion

Write

DeleteResourceShare

ram:DeleteResourceShare

Write

DisassociateResourceShare

ram:DisassociateResourceShare

Write

DisassociateResourceSharePermission

ram:DisassociateResourceSharePermission

Write

EnableSharingWithAwsOrganization

ram:EnableSharingWithAwsOrganization

Permissions management, Write

GetPermission

ram:GetPermission

Read

GetResourcePolicies

ram:GetResourcePolicies

Read

GetResourceShareAssociations

ram:GetResourceShareAssociations

Read

GetResourceShareInvitations

ram:GetResourceShareInvitations

Read

GetResourceShares

ram:GetResourceShares

Read

ListPendingInvitationResources

ram:ListPendingInvitationResources

Read

ListPermissionAssociations

ram:ListPermissionAssociations

List

ListPermissionVersions

ram:ListPermissionVersions

List

ListPermissions

ram:ListPermissions

List

ListPrincipals

ram:ListPrincipals

List

ListReplacePermissionAssociationsWork

ram:ListReplacePermissionAssociationsWork

List

ListResourceSharePermissions

ram:ListResourceSharePermissions

List

ListResourceTypes

ram:ListResourceTypes

List

ListResources

ram:ListResources

List

ListSourceAssociations

ram:ListSourceAssociations

List

PromotePermissionCreatedFromPolicy

ram:PromotePermissionCreatedFromPolicy

Write

PromoteResourceShareCreatedFromPolicy

ram:PromoteResourceShareCreatedFromPolicy

Write

RejectResourceShareInvitation

ram:RejectResourceShareInvitation

Write

ReplacePermissionAssociations

ram:ReplacePermissionAssociations

Write

SetDefaultPermissionVersion

ram:SetDefaultPermissionVersion

Write

TagResource

ram:TagResource

Tagging, Write

UntagResource

ram:UntagResource

Tagging, Write

UpdateResourceShare

ram:UpdateResourceShare

Write

Actions defined by Amazon Resource Access Manager (RAM)

You can specify the following actions in the Action element of an IAM policy statement. Use policies to grant permissions to perform an operation in Amazon. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.

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

AcceptResourceShareInvitation

Grants permission to accept the specified resource share invitation

resource-share-invitation*

ram:ResourceShareName

ram:ShareOwnerAccountId

Write

AssociateResourceShare

Grants permission to associate resource(s) and/or principal(s) to a resource share

resource-share*

aws:ResourceTag/${TagKey}

ram:AllowsExternalPrincipals

ram:Principal

ram:RequestedResourceType

ram:ResourceArn

ram:ResourceShareName

ram:ResourceTag/${TagKey}

ram:RetainSharingOnAccountLeaveOrganization

Write

AssociateResourceSharePermission

Grants permission to associate a Permission with a Resource Share

customer-managed-permission*

aws:ResourceTag/${TagKey}

ram:PermissionArn

ram:PermissionResourceType

Write

permission*

ram:PermissionArn

ram:PermissionResourceType

resource-share*

aws:ResourceTag/${TagKey}

ram:AllowsExternalPrincipals

ram:ResourceShareName

CreatePermission

Grants permission to create a Permission that can be associated to a Resource Share

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ram:PermissionArn

ram:PermissionResourceType

Write

CreatePermissionVersion

Grants permission to create a new version of a Permission that can be associated to a Resource Share

customer-managed-permission*

aws:ResourceTag/${TagKey}

ram:PermissionArn

ram:PermissionResourceType

Write

CreateResourceShare

Grants permission to create a resource share with provided resource(s) and/or principal(s)

aws:RequestTag/${TagKey}

aws:TagKeys

ram:AllowsExternalPrincipals

ram:Principal

ram:RequestedAllowsExternalPrincipals

ram:RequestedResourceType

ram:ResourceArn

ram:RetainSharingOnAccountLeaveOrganization

Write

DeletePermission

Grants permission to delete a specified Permission

customer-managed-permission*

aws:ResourceTag/${TagKey}

ram:PermissionArn

ram:PermissionResourceType

Write

DeletePermissionVersion

Grants permission to delete a specified version of a permission

customer-managed-permission*

aws:ResourceTag/${TagKey}

ram:PermissionArn

ram:PermissionResourceType

Write

DeleteResourceShare

Grants permission to delete resource share

resource-share*

aws:ResourceTag/${TagKey}

ram:AllowsExternalPrincipals

ram:ResourceShareName

ram:ResourceTag/${TagKey}

ram:RetainSharingOnAccountLeaveOrganization

Write

DisassociateResourceShare

Grants permission to disassociate resource(s) and/or principal(s) from a resource share

resource-share*

aws:ResourceTag/${TagKey}

ram:AllowsExternalPrincipals

ram:Principal

ram:RequestedResourceType

ram:ResourceArn

ram:ResourceShareName

ram:ResourceTag/${TagKey}

ram:RetainSharingOnAccountLeaveOrganization

Write

DisassociateResourceSharePermission

Grants permission to disassociate a Permission from a Resource Share

customer-managed-permission*

aws:ResourceTag/${TagKey}

ram:PermissionArn

ram:PermissionResourceType

Write

permission*

ram:PermissionArn

ram:PermissionResourceType

resource-share*

aws:ResourceTag/${TagKey}

ram:AllowsExternalPrincipals

ram:ResourceShareName

EnableSharingWithAwsOrganization

Grants permission to access customer's organization and create a SLR in the customer's account

Permissions management, Write

GetPermission

Grants permission to get the contents of an Amazon RAM permission

customer-managed-permission*

aws:ResourceTag/${TagKey}

ram:PermissionArn

ram:PermissionResourceType

Read

permission*

ram:PermissionArn

ram:PermissionResourceType

GetResourcePolicies

Grants permission to get the policies for the specified resources that you own and have shared

Read

GetResourceShareAssociations

Grants permission to get a set of resource share associations from a provided list or with a specified status of the specified type

Read

GetResourceShareInvitations

Grants permission to get resource share invitations by the specified invitation arn or those for the resource share

Read

GetResourceShares

Grants permission to get a set of resource shares from a provided list or with a specified status

aws:RequestTag/${TagKey}

aws:TagKeys

Read

ListPendingInvitationResources

Grants permission to list the resources in a resource share that is shared with you but that the invitation is still pending for

resource-share-invitation*

ram:ResourceShareName

ram:ShareOwnerAccountId

Read

ListPermissionAssociations

Grants permission to list information about the permission and any associations

customer-managed-permission*

aws:ResourceTag/${TagKey}

ram:PermissionArn

ram:PermissionResourceType

List

permission*

ram:PermissionArn

ram:PermissionResourceType

ListPermissionVersions

Grants permission to list the versions of an Amazon RAM permission

List

ListPermissions

Grants permission to list the Amazon RAM permissions

List

ListPrincipals

Grants permission to list the principals that you have shared resources with or that have shared resources with you

List

ListReplacePermissionAssociationsWork

Grants permission to retrieve the status of the asynchronous permission replacement

List

ListResourceSharePermissions

Grants permission to list the Permissions associated with a Resource Share

resource-share*

aws:ResourceTag/${TagKey}

ram:AllowsExternalPrincipals

ram:ResourceShareName

ram:RetainSharingOnAccountLeaveOrganization

List

ListResourceTypes

Grants permission to list the shareable resource types supported by Amazon RAM

List

ListResources

Grants permission to list the resources that you added to resource shares or the resources that are shared with you

List

ListSourceAssociations

Grants permission to list source associations for resource shares

List

PromotePermissionCreatedFromPolicy

Grants permission to create a separate, fully manageable customer managed permission

customer-managed-permission*

aws:ResourceTag/${TagKey}

ram:PermissionArn

ram:PermissionResourceType

Write

PromoteResourceShareCreatedFromPolicy

Grants permission to promote the specified resource share

resource-share*

aws:ResourceTag/${TagKey}

ram:AllowsExternalPrincipals

ram:ResourceShareName

Write

RejectResourceShareInvitation

Grants permission to reject the specified resource share invitation

resource-share-invitation*

ram:ResourceShareName

ram:ShareOwnerAccountId

Write

ReplacePermissionAssociations

Grants permission to update all resource shares to a new permission

customer-managed-permission*

aws:ResourceTag/${TagKey}

ram:PermissionArn

ram:PermissionResourceType

Write

permission*

ram:PermissionArn

ram:PermissionResourceType

SetDefaultPermissionVersion

Grants permission to specify a version number as the default version for the respective customer managed permission

customer-managed-permission*

aws:ResourceTag/${TagKey}

ram:PermissionArn

ram:PermissionResourceType

Write

TagResource

Grants permission to tag the specified resource share or permission

customer-managed-permission

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ram:PermissionArn

ram:PermissionResourceType

Tagging, Write

resource-share

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ram:AllowsExternalPrincipals

ram:ResourceShareName

UntagResource

Grants permission to untag the specified resource share or permission

customer-managed-permission

aws:ResourceTag/${TagKey}

aws:TagKeys

ram:PermissionArn

ram:PermissionResourceType

Tagging, Write

resource-share

aws:ResourceTag/${TagKey}

aws:TagKeys

ram:AllowsExternalPrincipals

ram:ResourceShareName

UpdateResourceShare

Grants permission to update attributes of the resource share

resource-share*

aws:ResourceTag/${TagKey}

ram:AllowsExternalPrincipals

ram:RequestedAllowsExternalPrincipals

ram:ResourceShareName

ram:ResourceTag/${TagKey}

ram:RetainSharingOnAccountLeaveOrganization

Write

Resource types defined by Amazon Resource Access Manager (RAM)

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

customer-managed-permission

arn:${Partition}:ram:${Region}:${Account}:permission/${ResourcePath}

aws:ResourceTag/${TagKey}

ram:PermissionArn

ram:PermissionResourceType

permission

arn:${Partition}:ram::${Account}:permission/${ResourcePath}

ram:PermissionArn

ram:PermissionResourceType

resource-share

arn:${Partition}:ram:${Region}:${Account}:resource-share/${ResourcePath}

aws:ResourceTag/${TagKey}

ram:AllowsExternalPrincipals

ram:ResourceShareName

resource-share-invitation

arn:${Partition}:ram:${Region}:${Account}:resource-share-invitation/${ResourcePath}

ram:ShareOwnerAccountId

Condition keys for Amazon Resource Access Manager (RAM)

Amazon Resource Access Manager (RAM) 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 when creating or tagging a resource share. If users don't pass these specific tags, or if they don't specify tags at all, the request fails

String

aws:ResourceTag/${TagKey}

Filters access by the tags associated with the resource

String

aws:TagKeys

Filters access by the tag keys that are passed when creating or tagging a resource share

ArrayOfString

ram:AllowsExternalPrincipals

Filters access by resource shares that allow or deny sharing with external principals. For example, specify true if the action can only be performed on resource shares that allow sharing with external principals. External principals are Amazon accounts that are outside of its Amazon organization

Bool

ram:PermissionArn

Filters access by the specified Permission ARN

ARN

ram:PermissionResourceType

Filters access by permissions of specified resource type

String

ram:Principal

Filters access by format of the specified principal

String

ram:RequestedAllowsExternalPrincipals

Filters access by the specified value for 'allowExternalPrincipals'. External principals are Amazon accounts that are outside of its Amazon Organization

Bool

ram:RequestedResourceType

Filters access by the specified resource type

String

ram:ResourceArn

Filters access by the specified ARN

ARN

ram:ResourceShareName

Filters access by a resource share with the specified name

String

ram:ResourceTag/${TagKey}

Filters access by the tags associated with the resource

String

ram:RetainSharingOnAccountLeaveOrganization

Filters access by RetainSharingOnAccountLeaveOrganization value within ResourceShareConfiguration that is set on resource share

Bool

ram:ShareOwnerAccountId

Filters access by resource shares owned by a specific account. For example, you can use this condition key to specify which resource share invitations can be accepted or rejected based on the resource share owner's account ID

String