ds:UnshareDirectory

Write

ds:UnshareDirectory is a Write access-level action in the ds service. Grants permission to stop the directory sharing between the directory owner and consumer accounts

Resource types

ARNs that ds:UnshareDirectory can be scoped to in an IAM policy.

arn:${Partition}:ds:${Region}:${Account}:directory/${DirectoryId}
directory

Condition keys

Keys you can use in the Condition block of a policy that grants ds:UnshareDirectory.

aws:ResourceTag/${TagKey} String

Filters access by the AWS DS Resource being acted upon

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowDsUnshareDirectory",
      "Effect": "Allow",
      "Action": "ds:UnshareDirectory",
      "Resource": "*"
    }
  ]
}

Related actions in ds

View all ds actions →