startConfigurationRecorder method
Starts recording configurations of the AWS resources you have selected to record in your AWS account.
You must have created at least one delivery channel to successfully start the configuration recorder.
May throw NoSuchConfigurationRecorderException. May throw NoAvailableDeliveryChannelException.
Parameter configurationRecorderName
:
The name of the recorder object that records each configuration change
made to the resources.
Implementation
Future<void> startConfigurationRecorder({
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.StartConfigurationRecorder'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ConfigurationRecorderName': configurationRecorderName,
},
);
}