deleteProtocolsList method

Future<void> deleteProtocolsList({
  1. required String listId,
})

Permanently deletes an AWS Firewall Manager protocols list.

May throw ResourceNotFoundException. May throw InvalidOperationException. May throw InternalErrorException.

Parameter listId : The ID of the protocols list that you want to delete. You can retrieve this ID from PutProtocolsList, ListProtocolsLists, and GetProtocolsLost.

Implementation

Future<void> deleteProtocolsList({
  required String listId,
}) async {
  ArgumentError.checkNotNull(listId, 'listId');
  _s.validateStringLength(
    'listId',
    listId,
    36,
    36,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSFMS_20180101.DeleteProtocolsList'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ListId': listId,
    },
  );
}