Retrieves a list of tags associated with a resource.
Parameters:
-
resource_arn
(GlueResourceArn)
–
The Amazon Resource Name (ARN) of the resource for which to retrieve tags.
Raises:
Source code in docs_src/capo_glue/_services/async_glue.py
| async def get_tags(
self,
resource_arn: "capo_glue.types.glue_resource_arn.GlueResourceArn",
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.get_tags_response.GetTagsResponse":
"""<p>Retrieves a list of tags associated with a resource.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the resource for which to retrieve tags.</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.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_glue.types.get_tags_request.GetTagsRequest]",
) -> AsyncOperationResponse[
"capo_glue.types.get_tags_response.GetTagsResponse"
]:
import capo_glue._operations.aws_glue.get_tags
(
output,
http_response,
) = await capo_glue._operations.aws_glue.get_tags.async_get_tags(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetTags")
)
input_: capo_glue.types.get_tags_request.GetTagsRequest = {
"resource_arn": resource_arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|