getLoggingConfiguration method

Future<GetLoggingConfigurationResponse> getLoggingConfiguration({
  1. required String resourceArn,
})
Returns the LoggingConfiguration for the specified web ACL.

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

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

Implementation

Future<GetLoggingConfigurationResponse> getLoggingConfiguration({
  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.GetLoggingConfiguration'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceArn': resourceArn,
    },
  );

  return GetLoggingConfigurationResponse.fromJson(jsonResponse.body);
}