Removes tags from a profile or profile entry.
Parameters:
-
resource_arn
(Arn)
–
The ARN of the profile or profile entry to remove tags from.
-
tag_keys
(TagKeyList)
–
The keys of the tags to remove.
Raises:
-
AccessDeniedException
–
The caller does not have permission to perform the operation.
-
InternalServerException
–
The service couldn't process the request because of an internal error. Retry with capped exponential backoff and jitter.
-
ThrottlingException
–
The request rate exceeded a limit. Retry with capped exponential backoff and jitter.
-
ResourceNotFoundException
–
The specified resource does not exist or the caller does not have permission to access it.
-
ValidationException
–
The request was malformed or contained invalid parameter values.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_cloudextensions/_services/cloud_extensions.py
| def untag_resource(
self,
resource_arn: "capo_cloudextensions.types.arn.Arn",
tag_keys: "capo_cloudextensions.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[CloudExtensionsClientConfig] = None,
) -> "capo_cloudextensions.types.untag_resource_output.UntagResourceOutput":
"""Removes tags from a profile or profile entry.
Args:
resource_arn: The ARN of the profile or profile entry to remove tags from.
tag_keys: The keys of the tags to remove.
Raises:
capo_cloudextensions.errors.access_denied_exception.AccessDeniedException: The caller does not have permission to perform the operation.
capo_cloudextensions.errors.internal_server_exception.InternalServerException: The service couldn't process the request because of an internal error. Retry with capped exponential backoff and jitter.
capo_cloudextensions.errors.throttling_exception.ThrottlingException: The request rate exceeded a limit. Retry with capped exponential backoff and jitter.
capo_cloudextensions.errors.resource_not_found_exception.ResourceNotFoundException: The specified resource does not exist or the caller does not have permission to access it.
capo_cloudextensions.errors.validation_exception.ValidationException: The request was malformed or contained invalid parameter values.
capo_cloudextensions.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cloudextensions.types.untag_resource_input.UntagResourceInput]",
) -> OperationResponse[
"capo_cloudextensions.types.untag_resource_output.UntagResourceOutput"
]:
import capo_cloudextensions._operations.control_plane.untag_resource
output, http_response = (
capo_cloudextensions._operations.control_plane.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_cloudextensions.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
|