Annotate datapoints over time for a specific data quality statistic. The API requires both profileID and statisticID as part of the InclusionAnnotation input. The API only works for a single statisticId across multiple profiles.
Parameters:
-
inclusion_annotations
(InclusionAnnotationList)
–
A list of DatapointInclusionAnnotation's. The InclusionAnnotations must contain a profileId and statisticId. If there are multiple InclusionAnnotations, the list must refer to a single statisticId across multiple profileIds.
-
client_token
(Optional[HashString], default:
None
)
–
Raises:
Source code in docs_src/capo_glue/_services/async_glue.py
| async def batch_put_data_quality_statistic_annotation(
self,
inclusion_annotations: "capo_glue.types.inclusion_annotation_list.InclusionAnnotationList",
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
client_token: Optional["capo_glue.types.hash_string.HashString"] = None,
) -> "capo_glue.types.batch_put_data_quality_statistic_annotation_response.BatchPutDataQualityStatisticAnnotationResponse":
"""<p>Annotate datapoints over time for a specific data quality statistic. The API requires both profileID and statisticID as part of the InclusionAnnotation input. The API only works for a single statisticId across multiple profiles.</p>
Args:
inclusion_annotations: <p>A list of <code>DatapointInclusionAnnotation</code>'s. The InclusionAnnotations must contain a profileId and statisticId. If there are multiple InclusionAnnotations, the list must refer to a single statisticId across multiple profileIds.</p>
client_token: <p>Client Token.</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.resource_number_limit_exceeded_exception.ResourceNumberLimitExceededException: <p>A resource numerical limit was exceeded.</p>
capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_glue.types.batch_put_data_quality_statistic_annotation_request.BatchPutDataQualityStatisticAnnotationRequest]",
) -> AsyncOperationResponse[
"capo_glue.types.batch_put_data_quality_statistic_annotation_response.BatchPutDataQualityStatisticAnnotationResponse"
]:
import capo_glue._operations.aws_glue.batch_put_data_quality_statistic_annotation
(
output,
http_response,
) = await capo_glue._operations.aws_glue.batch_put_data_quality_statistic_annotation.async_batch_put_data_quality_statistic_annotation(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchPutDataQualityStatisticAnnotation")
)
input_: capo_glue.types.batch_put_data_quality_statistic_annotation_request.BatchPutDataQualityStatisticAnnotationRequest = {
"inclusion_annotations": inclusion_annotations
}
if client_token is not None:
input_["client_token"] = client_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|