Removes the association of the tag with the AWS re:Post Private resource.
Parameters:
-
resource_arn
(Arn)
–
-
tag_keys
(TagKeyList)
–
The key values of the tag.
Raises:
Source code in docs_src/capo_repostspace/_services/repostspace.py
| def untag_resource(
self,
resource_arn: "capo_repostspace.types.arn.Arn",
tag_keys: "capo_repostspace.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[repostspaceClientConfig] = None,
) -> "capo_repostspace.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes the association of the tag with the AWS re:Post Private resource.</p>
Args:
resource_arn: <p>The ARN of the resource.</p>
tag_keys: <p>The key values of the tag.</p>
Raises:
capo_repostspace.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
capo_repostspace.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
capo_repostspace.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
capo_repostspace.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
capo_repostspace.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service.</p>
capo_repostspace.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_repostspace.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_repostspace.types.untag_resource_response.UntagResourceResponse"
]:
import capo_repostspace._operations.repost_space.untag_resource
output, http_response = (
capo_repostspace._operations.repost_space.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_repostspace.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
|