ram:TagResource

Tagging

ram:TagResource is a Tagging access-level action in the ram service. Grants permission to tag the specified resource share or permission

Resource types

ARNs that ram:TagResource can be scoped to in an IAM policy.

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

Condition keys

Keys you can use in the Condition block of a policy that grants ram:TagResource.

aws:RequestTag/${TagKey} String

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

aws:TagKeys ArrayOfString

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

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

ram:PermissionArn ARN

Filters access by the specified Permission ARN

ram:PermissionResourceType String

Filters access by permissions of specified resource type

ram:AllowsExternalPrincipals Bool

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 AWS accounts that are outside of its AWS organization

ram:ResourceShareName String

Filters access by a resource share with the specified name

Example IAM policy

A minimal policy that allows ram:TagResource. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowRamTagResource",
      "Effect": "Allow",
      "Action": "ram:TagResource",
      "Resource": "*"
    }
  ]
}

Related actions in ram

View all ram actions →