deleteConfigurationRecorder method

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

Deletes the configuration recorder.

After the configuration recorder is deleted, AWS Config will not record resource configuration changes until you create a new configuration recorder.

This action does not delete the configuration information that was previously recorded. You will be able to access the previously recorded information by using the GetResourceConfigHistory action, but you will not be able to access this information in the AWS Config console until you create a new configuration recorder.

May throw NoSuchConfigurationRecorderException.

Parameter configurationRecorderName : The name of the configuration recorder to be deleted. You can retrieve the name of your configuration recorder by using the DescribeConfigurationRecorders action.

Implementation

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