putConfigurationRecorder method
Creates a new configuration recorder to record the selected resource configurations.
You can use this action to change the role roleARN
or the
recordingGroup
of an existing recorder. To change the role,
call the action on the existing configuration recorder and specify a role.
If ConfigurationRecorder
does not have the
recordingGroup parameter specified, the default is to record all
supported resource types.
May throw MaxNumberOfConfigurationRecordersExceededException. May throw InvalidConfigurationRecorderNameException. May throw InvalidRoleException. May throw InvalidRecordingGroupException.
Parameter configurationRecorder
:
The configuration recorder object that records each configuration change
made to the resources.
Implementation
Future<void> putConfigurationRecorder({
required ConfigurationRecorder configurationRecorder,
}) async {
ArgumentError.checkNotNull(configurationRecorder, 'configurationRecorder');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StarlingDoveService.PutConfigurationRecorder'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ConfigurationRecorder': configurationRecorder,
},
);
}