AWS
count_cache_clusters_from_replication_group
Returns the number of cache clusters that are part of the given ReplicationGroupId
Returns cache cluster data for given cluster
Below are the details and signature of the activity Python module.
Type | probe |
Module | chaosaws.elasticache.probes |
Name | describe_cache_cluster |
Return | mapping |
Usage
JSON
{
"name": "describe-cache-cluster",
"type": "probe",
"provider": {
"type": "python",
"module": "chaosaws.elasticache.probes",
"func": "describe_cache_cluster",
"arguments": {
"cluster_id": ""
}
}
}
YAML
name: describe-cache-cluster
provider:
arguments:
cluster_id: ''
func: describe_cache_cluster
module: chaosaws.elasticache.probes
type: python
type: probe
Arguments
Name | Type | Default | Required |
---|---|---|---|
cluster_id | string | Yes | |
show_node_info | boolean | false | No |
A full list of possible paths can be found: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/elasticache.html#ElastiCache.Client.describe_cache_clusters
example
{
"type": "probe",
"name": "validate cache cluster engine",
"tolerance": {
"type": "jsonpath",
"path": $.CacheClusters[0].Engine,
"expect": "memcached"
},
"provider": {
"type": "python",
"module": "chaosaws.elasticache.probes",
"func": "describe_cache_cluster",
"arguments": {
"cluster_id": "MyTestCluster"
}
}
}
Signature
def describe_cache_cluster(
cluster_id: str,
show_node_info: bool = False,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass