deleteSubnetGroup method

Future<DeleteSubnetGroupResponse> deleteSubnetGroup({
  1. required String subnetGroupName,
})

Deletes a subnet group.

May throw SubnetGroupInUseFault. May throw SubnetGroupNotFoundFault. May throw ServiceLinkedRoleNotFoundFault.

Parameter subnetGroupName : The name of the subnet group to delete.

Implementation

Future<DeleteSubnetGroupResponse> deleteSubnetGroup({
  required String subnetGroupName,
}) async {
  ArgumentError.checkNotNull(subnetGroupName, 'subnetGroupName');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonDAXV3.DeleteSubnetGroup'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'SubnetGroupName': subnetGroupName,
    },
  );

  return DeleteSubnetGroupResponse.fromJson(jsonResponse.body);
}