Deletes the specified parameter group. You cannot delete a parameter group if it is associated with any DAX clusters.
Parameters:
-
parameter_group_name
(String)
–
The name of the parameter group to delete.
Raises:
Source code in docs_src/capo_dax/_services/dax.py
| def delete_parameter_group(
self,
parameter_group_name: "capo_dax.types.string.String",
*,
config_overrides: Optional[DAXClientConfig] = None,
) -> "capo_dax.types.delete_parameter_group_response.DeleteParameterGroupResponse":
"""<p>Deletes the specified parameter group. You cannot delete a parameter group if it is associated with any DAX clusters.</p>
Args:
parameter_group_name: <p>The name of the parameter group to delete.</p>
Raises:
capo_dax.errors.invalid_parameter_combination_exception.InvalidParameterCombinationException: <p>Two or more incompatible parameters were specified.</p>
capo_dax.errors.invalid_parameter_group_state_fault.InvalidParameterGroupStateFault: <p>One or more parameters in a parameter group are in an invalid state.</p>
capo_dax.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>The value for a parameter is invalid.</p>
capo_dax.errors.parameter_group_not_found_fault.ParameterGroupNotFoundFault: <p>The specified parameter group does not exist.</p>
capo_dax.errors.service_linked_role_not_found_fault.ServiceLinkedRoleNotFoundFault: <p>The specified service linked role (SLR) was not found.</p>
capo_dax.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_dax.types.delete_parameter_group_request.DeleteParameterGroupRequest]",
) -> OperationResponse[
"capo_dax.types.delete_parameter_group_response.DeleteParameterGroupResponse"
]:
import capo_dax._operations.amazon_daxv3.delete_parameter_group
output, http_response = (
capo_dax._operations.amazon_daxv3.delete_parameter_group.delete_parameter_group(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteParameterGroup")
)
input_: capo_dax.types.delete_parameter_group_request.DeleteParameterGroupRequest = {
"parameter_group_name": parameter_group_name
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|