Removes one or more tags from a support permit resource.
Parameters:
-
resource_arn
(Arn)
–
The ARN of the resource to untag.
-
tag_keys
(TagKeyList)
–
The tag keys to remove from the resource.
Raises:
Source code in docs_src/capo_supportauthz/_services/support_auth_z.py
| def untag_resource(
self,
resource_arn: "capo_supportauthz.types.arn.Arn",
tag_keys: "capo_supportauthz.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[SupportAuthZClientConfig] = None,
) -> "capo_supportauthz.types.untag_resource_output.UntagResourceOutput":
"""<p>Removes one or more tags from a support permit resource.</p>
Args:
resource_arn: <p>The ARN of the resource to untag.</p>
tag_keys: <p>The tag keys to remove from the resource.</p>
Raises:
capo_supportauthz.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permissions to perform this operation.</p>
capo_supportauthz.errors.internal_server_exception.InternalServerException: <p>An internal service error occurred. Try again later.</p>
capo_supportauthz.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
capo_supportauthz.errors.throttling_exception.ThrottlingException: <p>The request rate exceeded the allowed limit. Try again later.</p>
capo_supportauthz.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
capo_supportauthz.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_supportauthz.types.untag_resource_input.UntagResourceInput]",
) -> OperationResponse[
"capo_supportauthz.types.untag_resource_output.UntagResourceOutput"
]:
import capo_supportauthz._operations.support_auth_z.untag_resource
output, http_response = (
capo_supportauthz._operations.support_auth_z.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_supportauthz.types.untag_resource_input.UntagResourceInput = {
"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
|