Removes the specified tags from the specified resource.
Parameters:
-
resource_arn
(Arn)
–
ARN of the resource whose tag needs to be removed.
-
tag_keys
(TagKeyList)
–
Tag keys for the tags to be removed.
Raises:
Source code in docs_src/capo_neptune_graph/_services/neptune_graph.py
| def untag_resource(
self,
resource_arn: "capo_neptune_graph.types.arn.Arn",
tag_keys: "capo_neptune_graph.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[NeptuneGraphClientConfig] = None,
) -> "capo_neptune_graph.types.untag_resource_output.UntagResourceOutput":
"""<p>Removes the specified tags from the specified resource.</p>
Args:
resource_arn: <p>ARN of the resource whose tag needs to be removed.</p>
tag_keys: <p>Tag keys for the tags to be removed.</p>
Raises:
capo_neptune_graph.errors.internal_server_exception.InternalServerException: <p>A failure occurred on the server.</p>
capo_neptune_graph.errors.resource_not_found_exception.ResourceNotFoundException: <p>A specified resource could not be located.</p>
capo_neptune_graph.errors.throttling_exception.ThrottlingException: <p>The exception was interrupted by throttling.</p>
capo_neptune_graph.errors.validation_exception.ValidationException: <p>A resource could not be validated.</p>
capo_neptune_graph.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_neptune_graph.types.untag_resource_input.UntagResourceInput]",
) -> OperationResponse[
"capo_neptune_graph.types.untag_resource_output.UntagResourceOutput"
]:
import capo_neptune_graph._operations.amazon_neptune_graph.untag_resource
output, http_response = (
capo_neptune_graph._operations.amazon_neptune_graph.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_neptune_graph.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
|