deleteParameterGroup method
Deletes the specified parameter group. You cannot delete a parameter group if it is associated with any DAX clusters.
May throw InvalidParameterGroupStateFault. May throw ParameterGroupNotFoundFault. May throw ServiceLinkedRoleNotFoundFault. May throw InvalidParameterValueException. May throw InvalidParameterCombinationException.
Parameter parameterGroupName
:
The name of the parameter group to delete.
Implementation
Future<DeleteParameterGroupResponse> deleteParameterGroup({
required String parameterGroupName,
}) async {
ArgumentError.checkNotNull(parameterGroupName, 'parameterGroupName');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonDAXV3.DeleteParameterGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ParameterGroupName': parameterGroupName,
},
);
return DeleteParameterGroupResponse.fromJson(jsonResponse.body);
}