Annotate all datapoints for a Profile.
Parameters:
-
profile_id
(HashString)
–
The ID of the data quality monitoring profile to annotate.
-
inclusion_annotation
(InclusionAnnotationValue)
–
The inclusion annotation value to apply to the profile.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def put_data_quality_profile_annotation(
self,
profile_id: "capo_glue.types.hash_string.HashString",
inclusion_annotation: "capo_glue.types.inclusion_annotation_value.InclusionAnnotationValue",
*,
config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.put_data_quality_profile_annotation_response.PutDataQualityProfileAnnotationResponse":
"""<p>Annotate all datapoints for a Profile.</p>
Args:
profile_id: <p>The ID of the data quality monitoring profile to annotate.</p>
inclusion_annotation: <p>The inclusion annotation value to apply to the profile.</p>
Raises:
capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_glue.types.put_data_quality_profile_annotation_request.PutDataQualityProfileAnnotationRequest]",
) -> OperationResponse[
"capo_glue.types.put_data_quality_profile_annotation_response.PutDataQualityProfileAnnotationResponse"
]:
import capo_glue._operations.aws_glue.put_data_quality_profile_annotation
output, http_response = (
capo_glue._operations.aws_glue.put_data_quality_profile_annotation.put_data_quality_profile_annotation(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("PutDataQualityProfileAnnotation")
)
input_: capo_glue.types.put_data_quality_profile_annotation_request.PutDataQualityProfileAnnotationRequest = {
"profile_id": profile_id,
"inclusion_annotation": inclusion_annotation,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|