elasticache:DeleteReplicationGroup

Write

elasticache:DeleteReplicationGroup is a Write access-level action in the elasticache service. Grants permission to delete an existing replication group

Resource types

ARNs that elasticache:DeleteReplicationGroup can be scoped to in an IAM policy.

arn:${Partition}:elasticache:${Region}:${Account}:replicationgroup:${ReplicationGroupId}
replicationgroup
arn:${Partition}:elasticache:${Region}:${Account}:snapshot:${SnapshotName}
snapshot

Condition keys

Keys you can use in the Condition block of a policy that grants elasticache:DeleteReplicationGroup.

aws:RequestTag/${TagKey} String

Filters actions based on the tags that are passed in the request

aws:ResourceTag/${TagKey} String

Filters actions based on the tags associated with the resource

aws:TagKeys ArrayOfString

Filters actions based on the tag keys that are passed in the request

elasticache:AtRestEncryptionEnabled Bool

Filters access by the AtRestEncryptionEnabled parameter present in the request or default false value if parameter is not present

elasticache:AuthTokenEnabled Bool

Filters access by the presence of non empty AuthToken parameter in the request

elasticache:AutomaticFailoverEnabled Bool

Filters access by the AutomaticFailoverEnabled parameter in the request

elasticache:CacheNodeType String

Filters access by the cacheNodeType parameter present in the request. This key can be used to restrict which cache node types can be used on cluster creation or scaling operations

elasticache:CacheParameterGroupName String

Filters access by the CacheParameterGroupName parameter in the request

elasticache:ClusterModeEnabled Bool

Filters access by the cluster mode parameter present in the request. Default value for single node group (shard) creations is false

elasticache:Durability String

Filters access by the Durability parameter in the request. Valid values are default, async, sync, or disabled

elasticache:EngineType String

Filters access by the engine type present in creation requests. For replication group creations, default engine 'redis' is used as key if parameter is not present

elasticache:EngineVersion String

Filters access by the engineVersion parameter present in creation or cluster modification requests

elasticache:KmsKeyId String

Filters access by the Key ID of the KMS key

elasticache:MultiAZEnabled Bool

Filters access by the AZMode parameter, MultiAZEnabled parameter or the number of availability zones that the cluster or replication group can be placed in

elasticache:NumNodeGroups Numeric

Filters access by the NumNodeGroups or NodeGroupCount parameter specified in the request. This key can be used to restrict the number of node groups (shards) clusters can have after creation or scaling operations

elasticache:ReplicasPerNodeGroup Numeric

Filters access by the number of replicas per node group (shards) specified in creations or scaling requests

elasticache:SnapshotRetentionLimit Numeric

Filters access by the SnapshotRetentionLimit parameter in the request

elasticache:TransitEncryptionEnabled Bool

Filters access by the TransitEncryptionEnabled parameter present in the request. For replication group creations, default value 'false' is used as key if parameter is not present

Dependent actions

To use elasticache:DeleteReplicationGroup you may also need to grant:

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowElasticacheDeleteReplicationGroup",
      "Effect": "Allow",
      "Action": "elasticache:DeleteReplicationGroup",
      "Resource": "*"
    }
  ]
}

Related actions in elasticache

View all elasticache actions →