actionElastiCache

delete_replication_groups

Deletes one or more replication groups and creates a final snapshot

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosaws.elasticache.actions
Namedelete_replication_groups
Returnlist

Usage

JSON

{
  "name": "delete-replication-groups",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.elasticache.actions",
    "func": "delete_replication_groups",
    "arguments": {
      "group_ids": []
    }
  }
}

YAML

name: delete-replication-groups
provider:
  arguments:
    group_ids: []
  func: delete_replication_groups
  module: chaosaws.elasticache.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
group_idslistYesGroup IDsList of replication group identifiers
final_snapshot_idstringnullNoFinal Snapshot IDIdentifier to give to the final snapshot
retain_primary_clusterbooleantrueNoRetain Primary ClusterWhether to delete only replicas and not the primary

Signature

def delete_replication_groups(
        group_ids: List[str],
        final_snapshot_id: str = None,
        retain_primary_cluster: bool = True,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> List[Dict[str, Any]]:
    pass