Removes tags from the specified resource.
Parameters:
-
resource_arn
(Arn)
–
The Amazon Resource Name (ARN) of the resource.
-
tag_keys
(TagKeyList)
–
Raises:
Source code in docs_src/capo_outposts/_services/async_outposts.py
| async def untag_resource(
self,
resource_arn: "capo_outposts.types.arn.Arn",
tag_keys: "capo_outposts.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncOutpostsClientConfig] = None,
) -> "capo_outposts.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes tags from the specified resource.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the resource.</p>
tag_keys: <p>The tag keys.</p>
Raises:
capo_outposts.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred.</p>
capo_outposts.errors.not_found_exception.NotFoundException: <p>The specified request is not valid.</p>
capo_outposts.errors.validation_exception.ValidationException: <p>A parameter is not valid.</p>
capo_outposts.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_outposts.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_outposts.types.untag_resource_response.UntagResourceResponse"
]:
import capo_outposts._operations.outposts_olaf_service.untag_resource
(
output,
http_response,
) = await capo_outposts._operations.outposts_olaf_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_outposts.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
|