- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
ResetDBClusterParameterGroupCommand
Modifies the parameters of a cluster parameter group to the default value. To reset specific parameters, submit a list of the following: ParameterName
and ApplyMethod
. To reset the entire cluster parameter group, specify the DBClusterParameterGroupName
and ResetAllParameters
parameters.
When you reset the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot
to take effect on the next DB instance reboot.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { DocDBClient, ResetDBClusterParameterGroupCommand } from "@aws-sdk/client-docdb"; // ES Modules import
// const { DocDBClient, ResetDBClusterParameterGroupCommand } = require("@aws-sdk/client-docdb"); // CommonJS import
const client = new DocDBClient(config);
const input = { // ResetDBClusterParameterGroupMessage
DBClusterParameterGroupName: "STRING_VALUE", // required
ResetAllParameters: true || false,
Parameters: [ // ParametersList
{ // Parameter
ParameterName: "STRING_VALUE",
ParameterValue: "STRING_VALUE",
Description: "STRING_VALUE",
Source: "STRING_VALUE",
ApplyType: "STRING_VALUE",
DataType: "STRING_VALUE",
AllowedValues: "STRING_VALUE",
IsModifiable: true || false,
MinimumEngineVersion: "STRING_VALUE",
ApplyMethod: "immediate" || "pending-reboot",
},
],
};
const command = new ResetDBClusterParameterGroupCommand(input);
const response = await client.send(command);
// { // DBClusterParameterGroupNameMessage
// DBClusterParameterGroupName: "STRING_VALUE",
// };
ResetDBClusterParameterGroupCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
DBClusterParameterGroupName Required | string | undefined | The name of the cluster parameter group to reset. |
Parameters | Parameter[] | undefined | A list of parameter names in the cluster parameter group to reset to the default values. You can't use this parameter if the |
ResetAllParameters | boolean | undefined | A value that is set to |
ResetDBClusterParameterGroupCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
DBClusterParameterGroupName | string | undefined | The name of a cluster parameter group. Constraints:
This value is stored as a lowercase string. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
DBParameterGroupNotFoundFault | client | |
InvalidDBParameterGroupStateFault | client | The parameter group is in use, or it is in a state that is not valid. If you are trying to delete the parameter group, you can't delete it when the parameter group is in this state. |
DocDBServiceException | Base exception class for all service exceptions from DocDB service. |