Removes tags from the specified Firehose stream. Removed tags are deleted, and you can't recover them after this operation successfully completes.
If you specify a tag that doesn't exist, the operation ignores it.
This operation has a limit of five transactions per second per account.
Parameters:
-
delivery_stream_name
(DeliveryStreamName)
–
The name of the Firehose stream.
-
tag_keys
(TagKeyList)
–
A list of tag keys. Each corresponding tag is removed from the delivery stream.
Raises:
Source code in docs_src/capo_firehose/_services/firehose.py
| def untag_delivery_stream(
self,
delivery_stream_name: "capo_firehose.types.delivery_stream_name.DeliveryStreamName",
tag_keys: "capo_firehose.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[FirehoseClientConfig] = None,
) -> "capo_firehose.types.untag_delivery_stream_output.UntagDeliveryStreamOutput":
"""<p>Removes tags from the specified Firehose stream. Removed tags are deleted, and you can't recover them after this operation successfully completes.</p> <p>If you specify a tag that doesn't exist, the operation ignores it.</p> <p>This operation has a limit of five transactions per second per account. </p>
Args:
delivery_stream_name: <p>The name of the Firehose stream.</p>
tag_keys: <p>A list of tag keys. Each corresponding tag is removed from the delivery stream.</p>
Raises:
capo_firehose.errors.invalid_argument_exception.InvalidArgumentException: <p>The specified input parameter has a value that is not valid.</p>
capo_firehose.errors.limit_exceeded_exception.LimitExceededException: <p>You have already reached the limit for a requested resource.</p>
capo_firehose.errors.resource_in_use_exception.ResourceInUseException: <p>The resource is already in use and not available for this operation.</p>
capo_firehose.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource could not be found.</p>
capo_firehose.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_firehose.types.untag_delivery_stream_input.UntagDeliveryStreamInput]",
) -> OperationResponse[
"capo_firehose.types.untag_delivery_stream_output.UntagDeliveryStreamOutput"
]:
import capo_firehose._operations.firehose_20150804.untag_delivery_stream
output, http_response = (
capo_firehose._operations.firehose_20150804.untag_delivery_stream.untag_delivery_stream(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UntagDeliveryStream")
)
input_: capo_firehose.types.untag_delivery_stream_input.UntagDeliveryStreamInput = {
"delivery_stream_name": delivery_stream_name,
"tag_keys": tag_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|