Removes the specified tags from the specified resource.
Parameters:
Raises:
Source code in docs_src/capo_savingsplans/_services/async_savingsplans.py
| async def untag_resource(
self,
resource_arn: "capo_savingsplans.types.savings_plan_arn.SavingsPlanArn",
tag_keys: "capo_savingsplans.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncsavingsplansClientConfig] = None,
) -> "capo_savingsplans.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes the specified 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_savingsplans.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred.</p>
capo_savingsplans.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_savingsplans.errors.validation_exception.ValidationException: <p>One of the input parameters is not valid.</p>
capo_savingsplans.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_savingsplans.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_savingsplans.types.untag_resource_response.UntagResourceResponse"
]:
import capo_savingsplans._operations.aws_savings_plan.untag_resource
(
output,
http_response,
) = await capo_savingsplans._operations.aws_savings_plan.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_savingsplans.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
|