如何使用boto3删除aws elasticache redis类型集群?

2024-06-08 23:43:15 发布

您现在位置:Python中文网/ 问答频道 /正文

我想用boto3删除aws elasticache redis集群。你知道吗

我希望使用的语法是:

response = client.delete_cache_cluster(
    CacheClusterId='string'
)

但它不起作用。事实上,文件中说:

This operation is not valid for:

  • Redis (cluster mode enabled) clusters

我找不到如何删除redis集群。。。你知道吗


Tags: 文件redisclientawscachestringresponse语法
1条回答
网友
1楼 · 发布于 2024-06-08 23:43:15

只有Redis命令delete_replication_group。见This。你知道吗


一旦你找到医生。对于create_replication_group,它说

Creates a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group.

对于delete_replication_group

Deletes an existing replication group. By default, this operation deletes the entire replication group, including the primary/primaries and all of the read replicas. If the replication group has only one primary, you can optionally delete only the read replicas, while retaining the primary by setting RetainPrimaryCluster=true .

相关问题 更多 >