describeConfigurationRecorders method
Returns the details for the specified configuration recorders. If the configuration recorder is not specified, this action returns the details for all configuration recorders associated with the account.
May throw NoSuchConfigurationRecorderException.
Parameter configurationRecorderNames
:
A list of configuration recorder names.
Implementation
Future<DescribeConfigurationRecordersResponse>
describeConfigurationRecorders({
List<String>? configurationRecorderNames,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StarlingDoveService.DescribeConfigurationRecorders'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (configurationRecorderNames != null)
'ConfigurationRecorderNames': configurationRecorderNames,
},
);
return DescribeConfigurationRecordersResponse.fromJson(jsonResponse.body);
}