deleteEvaluationResults method
Deletes the evaluation results for the specified AWS Config rule. You can specify one AWS Config rule per request. After you delete the evaluation results, you can call the StartConfigRulesEvaluation API to start evaluating your AWS resources against the rule.
May throw NoSuchConfigRuleException. May throw ResourceInUseException.
Parameter configRuleName
:
The name of the AWS Config rule for which you want to delete the
evaluation results.
Implementation
Future<void> deleteEvaluationResults({
required String configRuleName,
}) async {
ArgumentError.checkNotNull(configRuleName, 'configRuleName');
_s.validateStringLength(
'configRuleName',
configRuleName,
1,
64,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StarlingDoveService.DeleteEvaluationResults'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ConfigRuleName': configRuleName,
},
);
}