cloudshell:DeleteEnvironment

Write

cloudshell:DeleteEnvironment is a Write access-level action in the cloudshell service. Grants permission to delete a CloudShell environment

Resource types

ARNs that cloudshell:DeleteEnvironment can be scoped to in an IAM policy.

arn:${Partition}:cloudshell:${Region}:${Account}:environment/${EnvironmentId}
Environment

Condition keys

No condition keys are documented for this action.

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowCloudshellDeleteEnvironment",
      "Effect": "Allow",
      "Action": "cloudshell:DeleteEnvironment",
      "Resource": "*"
    }
  ]
}

Related actions in cloudshell

View all cloudshell actions →