Gets information about AWS tags for the specified ARN.
Parameters:
-
resource_arn
(ResourceArn)
–
The ARN of the resource to be retrieved. The ARN must be URL-encoded.
Raises:
Source code in docs_src/capo_ivschat/_services/async_ivschat.py
| async def list_tags_for_resource(
self,
resource_arn: "capo_ivschat.types.resource_arn.ResourceArn",
*,
config_overrides: Optional[AsyncivschatClientConfig] = None,
) -> (
"capo_ivschat.types.list_tags_for_resource_response.ListTagsForResourceResponse"
):
"""<p>Gets information about AWS tags for the specified ARN.</p>
Args:
resource_arn: <p>The ARN of the resource to be retrieved. The ARN must be URL-encoded.</p>
Raises:
capo_ivschat.errors.internal_server_exception.InternalServerException: <p/>
capo_ivschat.errors.resource_not_found_exception.ResourceNotFoundException: <p/>
capo_ivschat.errors.validation_exception.ValidationException: <p/>
capo_ivschat.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_ivschat.types.list_tags_for_resource_request.ListTagsForResourceRequest]",
) -> AsyncOperationResponse[
"capo_ivschat.types.list_tags_for_resource_response.ListTagsForResourceResponse"
]:
import capo_ivschat._operations.amazon_interactive_video_service_chat.list_tags_for_resource
(
output,
http_response,
) = await capo_ivschat._operations.amazon_interactive_video_service_chat.list_tags_for_resource.async_list_tags_for_resource(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListTagsForResource")
)
input_: capo_ivschat.types.list_tags_for_resource_request.ListTagsForResourceRequest = {
"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
|