The resource that supports tags.
Parameters:
Raises:
Source code in docs_src/capo_chime_sdk_meetings/_services/async_chime_sdk_meetings.py
| async def tag_resource(
self,
resource_arn: "capo_chime_sdk_meetings.types.amazon_resource_name.AmazonResourceName",
tags: "capo_chime_sdk_meetings.types.tag_list.TagList",
*,
config_overrides: Optional[AsyncChimeSDKMeetingsClientConfig] = None,
) -> "capo_chime_sdk_meetings.types.tag_resource_response.TagResourceResponse":
"""<p>The resource that supports tags.</p>
Args:
resource_arn: <p>The ARN of the resource.</p>
tags: <p>Lists the requested tags.</p>
Raises:
capo_chime_sdk_meetings.errors.bad_request_exception.BadRequestException: <p>The input parameters don't match the service's restrictions.</p>
capo_chime_sdk_meetings.errors.forbidden_exception.ForbiddenException: <p>The client is permanently forbidden from making the request.</p>
capo_chime_sdk_meetings.errors.limit_exceeded_exception.LimitExceededException: <p>The request exceeds the resource limit.</p>
capo_chime_sdk_meetings.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource that you want to tag couldn't be found.</p>
capo_chime_sdk_meetings.errors.service_failure_exception.ServiceFailureException: <p>The service encountered an unexpected error.</p>
capo_chime_sdk_meetings.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is currently unavailable.</p>
capo_chime_sdk_meetings.errors.throttling_exception.ThrottlingException: <p>The number of customer requests exceeds the request rate limit.</p>
capo_chime_sdk_meetings.errors.too_many_tags_exception.TooManyTagsException: <p>Too many tags were added to the specified resource.</p>
capo_chime_sdk_meetings.errors.unauthorized_exception.UnauthorizedException: <p>The user isn't authorized to request a resource.</p>
capo_chime_sdk_meetings.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_chime_sdk_meetings.types.tag_resource_request.TagResourceRequest]",
) -> AsyncOperationResponse[
"capo_chime_sdk_meetings.types.tag_resource_response.TagResourceResponse"
]:
import capo_chime_sdk_meetings._operations.chime_meetings_sdk_service.tag_resource
(
output,
http_response,
) = await capo_chime_sdk_meetings._operations.chime_meetings_sdk_service.tag_resource.async_tag_resource(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("TagResource")
)
input_: capo_chime_sdk_meetings.types.tag_resource_request.TagResourceRequest = {
"resource_arn": resource_arn,
"tags": tags,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|