Removes tags from resources.
Parameters:
Raises:
Source code in docs_src/capo_emr_containers/_services/async_em_rcontainers.py
| async def untag_resource(
self,
resource_arn: "capo_emr_containers.types.rsi_arn.RsiArn",
tag_keys: "capo_emr_containers.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncEMRcontainersClientConfig] = None,
) -> "capo_emr_containers.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes tags from resources.</p>
Args:
resource_arn: <p>The ARN of resources.</p>
tag_keys: <p>The tag keys of the resources.</p>
Raises:
capo_emr_containers.errors.internal_server_exception.InternalServerException: <p>This is an internal server exception.</p>
capo_emr_containers.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_emr_containers.errors.validation_exception.ValidationException: <p>There are invalid parameters in the client request.</p>
capo_emr_containers.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_emr_containers.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_emr_containers.types.untag_resource_response.UntagResourceResponse"
]:
import capo_emr_containers._operations.aws_chicago_web_service.untag_resource
(
output,
http_response,
) = await capo_emr_containers._operations.aws_chicago_web_service.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_emr_containers.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
|