Add or updates the evaluations for process checks. This API checks if the rule is a process check when the name of the Config rule is provided.
Parameters:
-
config_rule_name
(ConfigRuleName)
–
The name of the Config rule.
-
external_evaluation
(ExternalEvaluation)
–
An ExternalEvaluation object that provides details about compliance.
Raises:
-
InvalidParameterValueException
–
One or more of the specified parameters are not valid. Verify that your parameters are valid and try again.
-
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.
Source code in docs_src/capo_config_service/_services/async_config_service.py
| async def put_external_evaluation(
self,
config_rule_name: "capo_config_service.types.config_rule_name.ConfigRuleName",
external_evaluation: "capo_config_service.types.external_evaluation.ExternalEvaluation",
*,
config_overrides: Optional[AsyncConfigServiceClientConfig] = None,
) -> "capo_config_service.types.put_external_evaluation_response.PutExternalEvaluationResponse":
"""<p>Add or updates the evaluations for process checks. This API checks if the rule is a process check when the name of the Config rule is provided.</p>
Args:
config_rule_name: <p>The name of the Config rule.</p>
external_evaluation: <p>An <code>ExternalEvaluation</code> object that provides details about compliance.</p>
Raises:
capo_config_service.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One or more of the specified parameters are not valid. Verify that your parameters are valid and try again.</p>
capo_config_service.errors.no_such_config_rule_exception.NoSuchConfigRuleException: <p>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.</p>
capo_config_service.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_config_service.types.put_external_evaluation_request.PutExternalEvaluationRequest]",
) -> AsyncOperationResponse[
"capo_config_service.types.put_external_evaluation_response.PutExternalEvaluationResponse"
]:
import capo_config_service._operations.starling_dove_service.put_external_evaluation
(
output,
http_response,
) = await capo_config_service._operations.starling_dove_service.put_external_evaluation.async_put_external_evaluation(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("PutExternalEvaluation")
)
input_: capo_config_service.types.put_external_evaluation_request.PutExternalEvaluationRequest = {
"config_rule_name": config_rule_name,
"external_evaluation": external_evaluation,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|