Skip to content

remove_tags

remove_tags(
    arn: ARN,
    tag_keys: StringList,
    *,
    config_overrides: Optional[ElasticsearchServiceClientConfig] = None,
) -> None

Removes the specified set of tags from the specified Elasticsearch domain.

Parameters:

  • arn (ARN) –

    Specifies the ARN for the Elasticsearch domain from which you want to delete the specified tags.

  • tag_keys (StringList) –

    Specifies the TagKey list which you want to remove from the Elasticsearch domain.

Raises:

  • BaseException –

    An error occurred while processing the request.

  • InternalException –

    The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500.

  • ValidationException –

    An exception for missing / invalid input fields. Gives http status code of 400.

  • UnknownServiceError –

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

Source code in docs_src/capo_elasticsearch_service/_services/elasticsearch_service.py
def remove_tags(
    self,
    arn: "capo_elasticsearch_service.types.arn.ARN",
    tag_keys: "capo_elasticsearch_service.types.string_list.StringList",
    *,
    config_overrides: Optional[ElasticsearchServiceClientConfig] = None,
) -> None:
    """<p>Removes the specified set of tags from the specified Elasticsearch domain.</p>

    Args:
        arn: <p>Specifies the <code>ARN</code> for the Elasticsearch domain from which you want to delete the specified tags.</p>
        tag_keys: <p>Specifies the <code>TagKey</code> list which you want to remove from the Elasticsearch domain.</p>

    Raises:
        capo_elasticsearch_service.errors.base_exception.BaseException: <p>An error occurred while processing the request.</p>
        capo_elasticsearch_service.errors.internal_exception.InternalException: <p>The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500.</p>
        capo_elasticsearch_service.errors.validation_exception.ValidationException: <p>An exception for missing / invalid input fields. Gives http status code of 400.</p>
        capo_elasticsearch_service.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_elasticsearch_service.types.remove_tags_request.RemoveTagsRequest]",
    ) -> OperationResponse[None]:
        import capo_elasticsearch_service._operations.amazon_elasticsearch_service2015.remove_tags

        output, http_response = (
            capo_elasticsearch_service._operations.amazon_elasticsearch_service2015.remove_tags.remove_tags(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("RemoveTags")
    )
    input_: capo_elasticsearch_service.types.remove_tags_request.RemoveTagsRequest = {
        "arn": arn,
        "tag_keys": tag_keys,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output