put_evaluations
async
¶
put_evaluations(
result_token: String,
*,
config_overrides: Optional[AsyncConfigServiceClientConfig] = None,
evaluations: Optional[Evaluations] = None,
test_mode: Optional[Boolean] = None,
) -> PutEvaluationsResponse
Used by an Lambda function to deliver evaluation results to Config. This operation is required in every Lambda function that is invoked by an Config rule.
Parameters:
-
evaluations(Optional[Evaluations], default:None) –The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services resource and indicates whether it complies with the Config rule that invokes the Lambda function.
-
result_token(String) –An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event that triggered the evaluation.
-
test_mode(Optional[Boolean], default:None) –Use this parameter to specify a test run for
PutEvaluations. You can verify whether your Lambda function will deliver evaluation results to Config. No updates occur to your existing evaluations, and evaluation results are not sent to Config.When
TestModeistrue,PutEvaluationsdoesn't require a valid value for theResultTokenparameter, but the value cannot be null.
Raises:
-
InvalidParameterValueException–One or more of the specified parameters are not valid. Verify that your parameters are valid and try again.
-
InvalidResultTokenException–The specified
ResultTokenis not valid. -
NoSuchConfigRuleException–The Config rule in the request is not valid. Verify that the rule is an Config Process Check rule, that the rule name is correct, and that valid Amazon Resouce Names (ARNs) are used before trying again.
-
UnknownServiceError–The service returned an error code this client does not model.