deleteIpGroup method

Future<void> deleteIpGroup(
  1. {required String groupId}
)

Deletes the specified IP access control group.

You cannot delete an IP access control group that is associated with a directory.

May throw InvalidParameterValuesException. May throw ResourceNotFoundException. May throw ResourceAssociatedException. May throw AccessDeniedException.

Parameter groupId : The identifier of the IP access control group.

Implementation

Future<void> deleteIpGroup({
  required String groupId,
}) async {
  ArgumentError.checkNotNull(groupId, 'groupId');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.DeleteIpGroup'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'GroupId': groupId,
    },
  );
}