Deletes the specified parameter group. You cannot delete a parameter group if it is associated with any clusters. You cannot delete the default parameter groups in your account.
Parameters:
-
parameter_group_name
(String)
–
The name of the parameter group to delete.
Raises:
Source code in docs_src/capo_memorydb/_services/async_memory_db.py
| async def delete_parameter_group(
self,
parameter_group_name: "capo_memorydb.types.string.String",
*,
config_overrides: Optional[AsyncMemoryDBClientConfig] = None,
) -> "capo_memorydb.types.delete_parameter_group_response.DeleteParameterGroupResponse":
"""<p>Deletes the specified parameter group. You cannot delete a parameter group if it is associated with any clusters. You cannot delete the default parameter groups in your account.</p>
Args:
parameter_group_name: <p>The name of the parameter group to delete.</p>
Raises:
capo_memorydb.errors.invalid_parameter_combination_exception.InvalidParameterCombinationException: <p>The specified parameter combination is not valid.</p>
capo_memorydb.errors.invalid_parameter_group_state_fault.InvalidParameterGroupStateFault: <p>The parameter group is not in a valid state for the requested operation.</p>
capo_memorydb.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>The specified parameter value is not valid.</p>
capo_memorydb.errors.parameter_group_not_found_fault.ParameterGroupNotFoundFault: <p>The specified parameter group does not exist.</p>
capo_memorydb.errors.service_linked_role_not_found_fault.ServiceLinkedRoleNotFoundFault: <p>The required service-linked role was not found.</p>
capo_memorydb.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_memorydb.types.delete_parameter_group_request.DeleteParameterGroupRequest]",
) -> AsyncOperationResponse[
"capo_memorydb.types.delete_parameter_group_response.DeleteParameterGroupResponse"
]:
import capo_memorydb._operations.amazon_memory_db.delete_parameter_group
(
output,
http_response,
) = await capo_memorydb._operations.amazon_memory_db.delete_parameter_group.async_delete_parameter_group(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteParameterGroup")
)
input_: capo_memorydb.types.delete_parameter_group_request.DeleteParameterGroupRequest = {
"parameter_group_name": parameter_group_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|