workspaces:ModifyWorkspaceState

Write

workspaces:ModifyWorkspaceState is a Write access-level action in the workspaces service. Grants permission to modify the state of WorkSpaces

Resource types

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

arn:${Partition}:workspaces:${Region}:${Account}:workspace/${WorkspaceId}
workspaceid

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access based on the tags associated with the resource

Example IAM policy

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

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

Related actions in workspaces

View all workspaces actions →