memorydb:DeleteSubnetGroup

Write

memorydb:DeleteSubnetGroup is a Write access-level action in the memorydb service. Grants permissions to delete a subnet group

Resource types

ARNs that memorydb:DeleteSubnetGroup can be scoped to in an IAM policy.

arn:${Partition}:memorydb:${Region}:${Account}:subnetgroup/${SubnetGroupName}
subnetgroup

Condition keys

Keys you can use in the Condition block of a policy that grants memorydb:DeleteSubnetGroup.

aws:ResourceTag/${TagKey} String

Filters actions based on the tags associated with the resource

Dependent actions

To use memorydb:DeleteSubnetGroup you may also need to grant:

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowMemorydbDeleteSubnetGroup",
      "Effect": "Allow",
      "Action": "memorydb:DeleteSubnetGroup",
      "Resource": "*"
    }
  ]
}

Related actions in memorydb

View all memorydb actions →