deleteAppsList method

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

Permanently deletes an AWS Firewall Manager applications list.

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

Parameter listId : The ID of the applications list that you want to delete. You can retrieve this ID from PutAppsList, ListAppsLists, and GetAppsList.

Implementation

Future<void> deleteAppsList({
  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.DeleteAppsList'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ListId': listId,
    },
  );
}