actionElastiCache

delete_cache_clusters

Deletes one or more cache clusters and creates a final snapshot

Activity as code

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

Typeaction
Modulechaosaws.elasticache.actions
Namedelete_cache_clusters
Returnlist

Usage

JSON

{
  "name": "delete-cache-clusters",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.elasticache.actions",
    "func": "delete_cache_clusters",
    "arguments": {
      "cluster_ids": []
    }
  }
}

YAML

name: delete-cache-clusters
provider:
  arguments:
    cluster_ids: []
  func: delete_cache_clusters
  module: chaosaws.elasticache.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
cluster_idslistYesCluster IDsList of cluster identifiers
final_snapshot_idstringnullNoFinal Snapshot IDIdentifier for the final snapshot

Signature

def delete_cache_clusters(
        cluster_ids: List[str],
        final_snapshot_id: str = None,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> List[Dict[str, Any]]:
    pass