Disables the Health tags feature for your account. After disabling, Health events will no longer include resource tag information. Previously configured tag keys are discarded.
Raises:
Source code in docs_src/capo_health/_services/async_health.py
| async def disable_tags(
self, *, config_overrides: Optional[AsyncHealthClientConfig] = None
) -> None:
"""<p>Disables the Health tags feature for your account. After disabling, Health events will no longer include resource tag information. Previously configured tag keys are discarded.</p>
Raises:
capo_health.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[None]",
) -> AsyncOperationResponse[None]:
if req.options.protocol == "awsJson1_1":
import capo_health._operations.aws_health_20160804.aws_json1_1.disable_tags
(
output,
http_response,
) = await capo_health._operations.aws_health_20160804.aws_json1_1.disable_tags.async_disable_tags(
req.options
)
elif req.options.protocol == "rpcv2Cbor":
import capo_health._operations.aws_health_20160804.rpcv2_cbor.disable_tags
(
output,
http_response,
) = await capo_health._operations.aws_health_20160804.rpcv2_cbor.disable_tags.async_disable_tags(
req.options
)
else:
raise ValueError(f"unknown protocol {req.options.protocol!r}")
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisableTags")
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|