本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
删除 Amazon DocumentDB 集群参数组
您可以使用 Amazon Web Services Management Console 或 Amazon Command Line Interface (Amazon CLI) 来删除自定义 Amazon DocumentDB 集群参数组。您不能删除 default.docdb4.0
集群参数组。
- Using the Amazon Web Services Management Console
-
删除集群参数组
登录到 Amazon Web Services Management Console 并打开 Amazon DocumentDB 控制台,网址:https://console.aws.amazon.com/docdb
。 -
在导航窗格中,选择参数组。
提示
如果您在屏幕左侧没有看到导航窗格,请在页面左上角选择菜单图标 (
)。
-
在参数组窗格中,选择要删除的集群参数组左侧的单选按钮。
-
选择操作,然后选择删除。
-
在删除确认窗格中,选择删除以删除集群参数组。要保留集群参数组,请选择取消。
- Using the Amazon CLI
-
要删除集群参数组,请使用带以下参数的
delete-db-cluster-parameter-group
操作。-
--db-cluster-parameter-group-name
– 必需。要删除的集群参数组的名称。它必须是现有集群参数组。您无法删除default.docdb4.0
集群参数组。
例 删除集群参数组
以下示例引导您通过三个步骤来删除集群参数组:
-
找到您要删除的集群参数组的名称。
-
删除指定的集群参数组。
-
正在验证集群参数组是否已删除。
1. 找到您要删除的集群参数组的名称。
以下代码列出了所有集群参数组的名称。
对于 Linux、macOS 或 Unix:
aws docdb describe-db-cluster-parameter-groups \ --query 'DBClusterParameterGroups[*].[DBClusterParameterGroupName]'
对于 Windows:
aws docdb describe-db-cluster-parameter-groups ^ --query 'DBClusterParameterGroups[*].[DBClusterParameterGroupName]'
上一个操作的输出是集群参数组名称的一个列表,与以下(JSON 格式)类似。
[ [ "default.docdb4.0" ], [ "sample-parameter-group" ], [ "sample-parameter-group-copy" ] ]
2. 删除特定的集群参数组。
以下代码将删除集群参数组
sample-parameter-group-copy
。对于 Linux、macOS 或 Unix:
aws docdb delete-db-cluster-parameter-group \ --db-cluster-parameter-group-name
sample-parameter-group-copy
对于 Windows:
aws docdb delete-db-cluster-parameter-group ^ --db-cluster-parameter-group-name
sample-parameter-group-copy
没有来自此操作的输出。
3. 验证指定的集群参数组是否已删除。
以下代码列出了所有其余集群参数组的名称。
对于 Linux、macOS 或 Unix:
aws docdb describe-db-cluster-parameter-groups \ --query 'DBClusterParameterGroups[*].[DBClusterParameterGroupName]'
对于 Windows:
aws docdb describe-db-cluster-parameter-groups ^ --query 'DBClusterParameterGroups[*].[DBClusterParameterGroupName]'
上一个操作的输出是集群参数组的一个列表,与以下(JSON 格式)类似。您刚刚删除的集群参数组不应在列表中。
此操作的输出将类似于下文(JSON 格式)。
[ [ "default.docdb4.0" ], [ "sample-parameter-group" ] ]
-