Skip to content

untag_resource

untag_resource(
    resource_arn: KinesisAnalyticsARN,
    tag_keys: TagKeys,
    *,
    config_overrides: Optional[KinesisAnalyticsClientConfig] = None,
) -> UntagResourceResponse

Removes one or more tags from a Kinesis Analytics application. For more information, see Using Tagging.

Parameters:

  • resource_arn (KinesisAnalyticsARN) –

    The ARN of the Kinesis Analytics application from which to remove the tags.

  • tag_keys (TagKeys) –

    A list of keys of tags to remove from the specified application.

Raises:

  • ConcurrentModificationException –

    Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.

  • InvalidArgumentException –

    Specified input parameter value is invalid.

  • ResourceInUseException –

    Application is not available for this operation.

  • ResourceNotFoundException –

    Specified application can't be found.

  • TooManyTagsException –

    Application created with too many tags, or too many tags added to an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_kinesis_analytics/_services/kinesis_analytics.py
def untag_resource(
    self,
    resource_arn: "capo_kinesis_analytics.types.kinesis_analytics_arn.KinesisAnalyticsARN",
    tag_keys: "capo_kinesis_analytics.types.tag_keys.TagKeys",
    *,
    config_overrides: Optional[KinesisAnalyticsClientConfig] = None,
) -> "capo_kinesis_analytics.types.untag_resource_response.UntagResourceResponse":
    """<p>Removes one or more tags from a Kinesis Analytics application. For more information, see <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-tagging.html">Using Tagging</a>.</p>

    Args:
        resource_arn: <p>The ARN of the Kinesis Analytics application from which to remove the tags.</p>
        tag_keys: <p>A list of keys of tags to remove from the specified application.</p>

    Raises:
        capo_kinesis_analytics.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.</p>
        capo_kinesis_analytics.errors.invalid_argument_exception.InvalidArgumentException: <p>Specified input parameter value is invalid.</p>
        capo_kinesis_analytics.errors.resource_in_use_exception.ResourceInUseException: <p>Application is not available for this operation.</p>
        capo_kinesis_analytics.errors.resource_not_found_exception.ResourceNotFoundException: <p>Specified application can't be found.</p>
        capo_kinesis_analytics.errors.too_many_tags_exception.TooManyTagsException: <p>Application created with too many tags, or too many tags added to an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50.</p>
        capo_kinesis_analytics.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_kinesis_analytics.types.untag_resource_request.UntagResourceRequest]",
    ) -> OperationResponse[
        "capo_kinesis_analytics.types.untag_resource_response.UntagResourceResponse"
    ]:
        import capo_kinesis_analytics._operations.kinesis_analytics_20150814.untag_resource

        output, http_response = (
            capo_kinesis_analytics._operations.kinesis_analytics_20150814.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_kinesis_analytics.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