ram:DisassociateResourceSharePermission

Write

ram:DisassociateResourceSharePermission is a Write access-level action in the ram service. Grants permission to disassociate a Permission from a Resource Share

Resource types

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

arn:${Partition}:ram:${Region}:${Account}:permission/${ResourcePath}
customer-managed-permission
arn:${Partition}:ram::${Account}:permission/${ResourcePath}
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:DisassociateResourceSharePermission.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

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:PermissionArn ARN

Filters access by the specified Permission ARN

ram:PermissionResourceType String

Filters access by permissions of specified resource type

ram:ResourceShareName String

Filters access by a resource share with the specified name

Example IAM policy

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

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

Related actions in ram

View all ram actions →