Returns the list of resource tag keys configured for Health event tracking in your account.
Raises:
Source code in docs_src/capo_health/_services/health.py
| def describe_tag_keys(
self, *, config_overrides: Optional[HealthClientConfig] = None
) -> "capo_health.types.describe_tag_keys_response.DescribeTagKeysResponse":
"""<p>Returns the list of resource tag keys configured for Health event tracking in your account.</p>
Raises:
capo_health.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[None]",
) -> OperationResponse[
"capo_health.types.describe_tag_keys_response.DescribeTagKeysResponse"
]:
if req.options.protocol == "awsJson1_1":
import capo_health._operations.aws_health_20160804.aws_json1_1.describe_tag_keys
output, http_response = (
capo_health._operations.aws_health_20160804.aws_json1_1.describe_tag_keys.describe_tag_keys(
req.options
)
)
elif req.options.protocol == "rpcv2Cbor":
import capo_health._operations.aws_health_20160804.rpcv2_cbor.describe_tag_keys
output, http_response = (
capo_health._operations.aws_health_20160804.rpcv2_cbor.describe_tag_keys.describe_tag_keys(
req.options
)
)
else:
raise ValueError(f"unknown protocol {req.options.protocol!r}")
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeTagKeys")
)
response = execute_pipeline(
OperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|