stopConfigurationRecorder method

Future<void> stopConfigurationRecorder({
  1. required String configurationRecorderName,
})

Stops recording configurations of the AWS resources you have selected to record in your AWS account.

May throw NoSuchConfigurationRecorderException.

Parameter configurationRecorderName : The name of the recorder object that records each configuration change made to the resources.

Implementation

Future<void> stopConfigurationRecorder({
  required String configurationRecorderName,
}) async {
  ArgumentError.checkNotNull(
      configurationRecorderName, 'configurationRecorderName');
  _s.validateStringLength(
    'configurationRecorderName',
    configurationRecorderName,
    1,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'StarlingDoveService.StopConfigurationRecorder'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ConfigurationRecorderName': configurationRecorderName,
    },
  );
}