async def untag_resource(
self,
resource_arn: "capo_mediatailor.types.__string.__string",
tag_keys: "capo_mediatailor.types.__list_of__string.__listOf__string",
*,
config_overrides: Optional[AsyncMediaTailorClientConfig] = None,
) -> None:
"""<p>The resource to untag.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the resource to untag.</p>
tag_keys: <p>The tag keys associated with the resource.</p>
Raises:
capo_mediatailor.errors.bad_request_exception.BadRequestException: <p>A request contains unexpected data.</p>
capo_mediatailor.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_mediatailor.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[None]:
import capo_mediatailor._operations.media_tailor.untag_resource
(
output,
http_response,
) = await capo_mediatailor._operations.media_tailor.untag_resource.async_untag_resource(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UntagResource")
)
input_: capo_mediatailor.types.untag_resource_request.UntagResourceRequest = {
"resource_arn": resource_arn,
"tag_keys": tag_keys,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output