import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "./types"; /** * Creates or updates lifecycle policy. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html and https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-index-lifecycle.html * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as elasticstack from "@pulumi/elasticstack"; * * const myIlm = new elasticstack.ElasticsearchIndexLifecycle("myIlm", { * hot: { * minAge: "1h", * setPriority: { * priority: 10, * }, * rollover: { * maxAge: "1d", * }, * readonly: {}, * }, * warm: { * minAge: "0ms", * setPriority: { * priority: 60, * }, * readonly: {}, * allocate: { * exclude: JSON.stringify({ * box_type: "hot", * }), * numberOfReplicas: 0, * }, * }, * "delete": { * minAge: "2d", * "delete": {}, * }, * }); * ``` * * ## Import * * ```sh * $ pulumi import elasticstack:index/elasticsearchIndexLifecycle:ElasticsearchIndexLifecycle my_ilm / * ``` */ export declare class ElasticsearchIndexLifecycle extends pulumi.CustomResource { /** * Get an existing ElasticsearchIndexLifecycle resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ElasticsearchIndexLifecycleState, opts?: pulumi.CustomResourceOptions): ElasticsearchIndexLifecycle; /** * Returns true if the given object is an instance of ElasticsearchIndexLifecycle. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ElasticsearchIndexLifecycle; /** * The index is no longer being updated and is queried infrequently. The information still needs to be searchable, but it’s okay if those queries are slower. */ readonly cold: pulumi.Output; /** * The index is no longer needed and can safely be removed. */ readonly delete: pulumi.Output; /** * Used to establish connection to Elasticsearch server. Overrides environment variables if present. */ readonly elasticsearchConnection: pulumi.Output; /** * The index is no longer being updated and is queried rarely. The information still needs to be searchable, but it’s okay if those queries are extremely slow. */ readonly frozen: pulumi.Output; /** * The index is actively being updated and queried. */ readonly hot: pulumi.Output; /** * Internal identifier of the resource */ readonly id: pulumi.Output; /** * Optional user metadata about the ilm policy. Must be valid JSON document. */ readonly metadata: pulumi.Output; /** * The DateTime of the last modification. */ readonly modifiedDate: pulumi.Output; /** * Identifier for the policy. */ readonly name: pulumi.Output; /** * The index is no longer being updated but is still being queried. */ readonly warm: pulumi.Output; /** * Create a ElasticsearchIndexLifecycle resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: ElasticsearchIndexLifecycleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ElasticsearchIndexLifecycle resources. */ export interface ElasticsearchIndexLifecycleState { /** * The index is no longer being updated and is queried infrequently. The information still needs to be searchable, but it’s okay if those queries are slower. */ cold?: pulumi.Input; /** * The index is no longer needed and can safely be removed. */ delete?: pulumi.Input; /** * Used to establish connection to Elasticsearch server. Overrides environment variables if present. */ elasticsearchConnection?: pulumi.Input; /** * The index is no longer being updated and is queried rarely. The information still needs to be searchable, but it’s okay if those queries are extremely slow. */ frozen?: pulumi.Input; /** * The index is actively being updated and queried. */ hot?: pulumi.Input; /** * Internal identifier of the resource */ id?: pulumi.Input; /** * Optional user metadata about the ilm policy. Must be valid JSON document. */ metadata?: pulumi.Input; /** * The DateTime of the last modification. */ modifiedDate?: pulumi.Input; /** * Identifier for the policy. */ name?: pulumi.Input; /** * The index is no longer being updated but is still being queried. */ warm?: pulumi.Input; } /** * The set of arguments for constructing a ElasticsearchIndexLifecycle resource. */ export interface ElasticsearchIndexLifecycleArgs { /** * The index is no longer being updated and is queried infrequently. The information still needs to be searchable, but it’s okay if those queries are slower. */ cold?: pulumi.Input; /** * The index is no longer needed and can safely be removed. */ delete?: pulumi.Input; /** * Used to establish connection to Elasticsearch server. Overrides environment variables if present. */ elasticsearchConnection?: pulumi.Input; /** * The index is no longer being updated and is queried rarely. The information still needs to be searchable, but it’s okay if those queries are extremely slow. */ frozen?: pulumi.Input; /** * The index is actively being updated and queried. */ hot?: pulumi.Input; /** * Optional user metadata about the ilm policy. Must be valid JSON document. */ metadata?: pulumi.Input; /** * Identifier for the policy. */ name?: pulumi.Input; /** * The index is no longer being updated but is still being queried. */ warm?: pulumi.Input; }