workspaces:DeregisterWorkspaceDirectory

Write

workspaces:DeregisterWorkspaceDirectory is a Write access-level action in the workspaces service. Grants permission to deregister directories from use with Amazon WorkSpaces

Resource types

ARNs that workspaces:DeregisterWorkspaceDirectory can be scoped to in an IAM policy.

arn:${Partition}:workspaces:${Region}:${Account}:directory/${DirectoryId}
directoryid

Condition keys

Keys you can use in the Condition block of a policy that grants workspaces:DeregisterWorkspaceDirectory.

aws:ResourceTag/${TagKey} String

Filters access based on the tags associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowWorkspacesDeregisterWorkspaceDirectory",
      "Effect": "Allow",
      "Action": "workspaces:DeregisterWorkspaceDirectory",
      "Resource": "*"
    }
  ]
}

Related actions in workspaces

View all workspaces actions →