describeConfigurationRecorderStatus method

Future<DescribeConfigurationRecorderStatusResponse> describeConfigurationRecorderStatus({
  1. List<String>? configurationRecorderNames,
})

Returns the current status of the specified configuration recorder. If a configuration recorder is not specified, this action returns the status of all configuration recorders associated with the account.

May throw NoSuchConfigurationRecorderException.

Parameter configurationRecorderNames : The name(s) of the configuration recorder. If the name is not specified, the action returns the current status of all the configuration recorders associated with the account.

Implementation

Future<DescribeConfigurationRecorderStatusResponse>
    describeConfigurationRecorderStatus({
  List<String>? configurationRecorderNames,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'StarlingDoveService.DescribeConfigurationRecorderStatus'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (configurationRecorderNames != null)
        'ConfigurationRecorderNames': configurationRecorderNames,
    },
  );

  return DescribeConfigurationRecorderStatusResponse.fromJson(
      jsonResponse.body);
}