Disables enrichment and PromQL access for CloudWatch vended metrics for supported Amazon Web Services resources in the account. After disabling, these metrics are no longer enriched with resource ARN and resource tag labels, and cannot be queried using PromQL.
Raises:
Source code in docs_src/capo_cloudwatch/_services/async_cloud_watch.py
| async def stop_o_tel_enrichment(
self, *, config_overrides: Optional[AsyncCloudWatchClientConfig] = None
) -> "capo_cloudwatch.types.stop_o_tel_enrichment_output.StopOTelEnrichmentOutput":
"""<p>Disables enrichment and PromQL access for CloudWatch vended metrics for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">supported Amazon Web Services resources</a> in the account. After disabling, these metrics are no longer enriched with resource ARN and resource tag labels, and cannot be queried using PromQL.</p>
Raises:
capo_cloudwatch.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudwatch.types.stop_o_tel_enrichment_input.StopOTelEnrichmentInput]",
) -> AsyncOperationResponse[
"capo_cloudwatch.types.stop_o_tel_enrichment_output.StopOTelEnrichmentOutput"
]:
import capo_cloudwatch._operations.granite_service_version20100801.stop_o_tel_enrichment
(
output,
http_response,
) = await capo_cloudwatch._operations.granite_service_version20100801.stop_o_tel_enrichment.async_stop_o_tel_enrichment(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StopOTelEnrichment")
)
input_: capo_cloudwatch.types.stop_o_tel_enrichment_input.StopOTelEnrichmentInput = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|