Removes the specified tags from the specified resource.
Parameters:
Raises:
Source code in docs_src/capo_savingsplans/_services/savingsplans.py
| 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[savingsplansClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_savingsplans.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_savingsplans.types.untag_resource_response.UntagResourceResponse"
]:
import capo_savingsplans._operations.aws_savings_plan.untag_resource
output, http_response = (
capo_savingsplans._operations.aws_savings_plan.untag_resource.untag_resource(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|