deleteLoggingConfiguration method

Future<void> deleteLoggingConfiguration({
  1. required String resourceArn,
})
Deletes the LoggingConfiguration from the specified web ACL.

May throw WAFInternalErrorException. May throw WAFNonexistentItemException. May throw WAFOptimisticLockException. May throw WAFInvalidParameterException. May throw WAFInvalidOperationException.

Parameter resourceArn : The Amazon Resource Name (ARN) of the web ACL from which you want to delete the LoggingConfiguration.

Implementation

Future<void> deleteLoggingConfiguration({
  required String resourceArn,
}) async {
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  _s.validateStringLength(
    'resourceArn',
    resourceArn,
    20,
    2048,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSWAF_20190729.DeleteLoggingConfiguration'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceArn': resourceArn,
    },
  );
}