UNPKG

@piclemx/pulumi-opensearch

Version:

A Pulumi package for creating and managing Opensearch resources. Based on terraform-provider-opensearch: version v2.2.1

68 lines (67 loc) 2.58 kB
import * as pulumi from "@pulumi/pulumi"; /** * A data stream lets you store append-only time series data across multiple (hidden, auto-generated) indices while giving you a single named resource for requests * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as opensearch from "@piclemx/pulumi-opensearch"; * * const fooComposableIndexTemplate = new opensearch.ComposableIndexTemplate("fooComposableIndexTemplate", {body: `{ * "index_patterns": ["foo-data-stream*"], * "data_stream": {} * } * `}); * const fooDataStream = new opensearch.DataStream("fooDataStream", {}, { * dependsOn: [fooComposableIndexTemplate], * }); * ``` */ export declare class DataStream extends pulumi.CustomResource { /** * Get an existing DataStream 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<pulumi.ID>, state?: DataStreamState, opts?: pulumi.CustomResourceOptions): DataStream; /** * Returns true if the given object is an instance of DataStream. 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 DataStream; /** * Name of the data stream to create, must have a matching */ readonly name: pulumi.Output<string>; /** * Create a DataStream 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?: DataStreamArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DataStream resources. */ export interface DataStreamState { /** * Name of the data stream to create, must have a matching */ name?: pulumi.Input<string>; } /** * The set of arguments for constructing a DataStream resource. */ export interface DataStreamArgs { /** * Name of the data stream to create, must have a matching */ name?: pulumi.Input<string>; }