describeRemediationConfigurations method

Future<DescribeRemediationConfigurationsResponse> describeRemediationConfigurations({
  1. required List<String> configRuleNames,
})

Returns the details of one or more remediation configurations.

Parameter configRuleNames : A list of AWS Config rule names of remediation configurations for which you want details.

Implementation

Future<DescribeRemediationConfigurationsResponse>
    describeRemediationConfigurations({
  required List<String> configRuleNames,
}) async {
  ArgumentError.checkNotNull(configRuleNames, 'configRuleNames');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'StarlingDoveService.DescribeRemediationConfigurations'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ConfigRuleNames': configRuleNames,
    },
  );

  return DescribeRemediationConfigurationsResponse.fromJson(
      jsonResponse.body);
}