untag_resource(
resource_arn: Arn,
tag_keys: TagKeys,
*,
config_overrides: Optional[TimestreamInfluxDBClientConfig] = None,
) -> None
Removes the tag from the specified resource.
Parameters:
-
resource_arn
(Arn)
–
The Amazon Resource Name (ARN) of the tagged resource.
-
tag_keys
(TagKeys)
–
The keys used to identify the tags.
Raises:
Source code in docs_src/capo_timestream_influxdb/_services/timestream_influx_db.py
| def untag_resource(
self,
resource_arn: "capo_timestream_influxdb.types.arn.Arn",
tag_keys: "capo_timestream_influxdb.types.tag_keys.TagKeys",
*,
config_overrides: Optional[TimestreamInfluxDBClientConfig] = None,
) -> None:
"""<p>Removes the tag from the specified resource.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the tagged resource.</p>
tag_keys: <p>The keys used to identify the tags.</p>
Raises:
capo_timestream_influxdb.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource was not found or does not exist.</p>
capo_timestream_influxdb.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_timestream_influxdb.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[None]:
import capo_timestream_influxdb._operations.amazon_timestream_influx_db.untag_resource
output, http_response = (
capo_timestream_influxdb._operations.amazon_timestream_influx_db.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_timestream_influxdb.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
|