ds:RejectSharedDirectory is a Write access-level action in the ds service. Grants permission to reject a directory sharing request that was sent from the directory owner account
ARNs that ds:RejectSharedDirectory can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants ds:RejectSharedDirectory.
Filters access by the AWS DS Resource being acted upon
A minimal policy that allows ds:RejectSharedDirectory. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowDsRejectSharedDirectory",
"Effect": "Allow",
"Action": "ds:RejectSharedDirectory",
"Resource": "*"
}
]
}