putLoggingConfiguration method

Future<PutLoggingConfigurationResponse> putLoggingConfiguration({
  1. required LoggingConfiguration loggingConfiguration,
})

Implementation

Future<PutLoggingConfigurationResponse> putLoggingConfiguration({
  required LoggingConfiguration loggingConfiguration,
}) async {
  ArgumentError.checkNotNull(loggingConfiguration, 'loggingConfiguration');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSWAF_20150824.PutLoggingConfiguration'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'LoggingConfiguration': loggingConfiguration,
    },
  );

  return PutLoggingConfigurationResponse.fromJson(jsonResponse.body);
}