import * as pulumi from "@pulumi/pulumi"; /** * Helper data source to which can be used to parse dates from fields, and then uses the date or timestamp as the timestamp for the document. * By default, the date processor adds the parsed date as a new field called `@timestamp`. You can specify a different field by setting the `targetField` configuration parameter. Multiple date formats are supported as part of the same date processor definition. They will be used sequentially to attempt parsing the date field, in the same order they were defined as part of the processor definition. * * See: https://www.elastic.co/guide/en/elasticsearch/reference/current/date-processor.html * * ## Example Usage * * Here is an example that adds the parsed date to the `timestamp` field based on the `initialDate` field: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as elasticstack from "@pulumi/elasticstack"; * * const date = elasticstack.ElasticsearchIngestProcessorDate({ * field: "initial_date", * targetField: "timestamp", * formats: ["dd/MM/yyyy HH:mm:ss"], * timezone: "Europe/Amsterdam", * }); * const myIngestPipeline = new elasticstack.ElasticsearchIngestPipeline("myIngestPipeline", {processors: [date.then(date => date.json)]}); * ``` */ export declare function elasticsearchIngestProcessorDate(args: ElasticsearchIngestProcessorDateArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking ElasticsearchIngestProcessorDate. */ export interface ElasticsearchIngestProcessorDateArgs { /** * Description of the processor. */ description?: string; /** * The field to get the date from. */ field: string; /** * An array of the expected date formats. */ formats: string[]; /** * Conditionally execute the processor */ if?: string; /** * Ignore failures for the processor. */ ignoreFailure?: boolean; /** * The locale to use when parsing the date, relevant when parsing month names or week days. */ locale?: string; /** * Handle failures for the processor. */ onFailures?: string[]; /** * The format to use when writing the date to `targetField`. */ outputFormat?: string; /** * Identifier for the processor. */ tag?: string; /** * The field that will hold the parsed date. */ targetField?: string; /** * The timezone to use when parsing the date. */ timezone?: string; } /** * A collection of values returned by ElasticsearchIngestProcessorDate. */ export interface ElasticsearchIngestProcessorDateResult { /** * Description of the processor. */ readonly description?: string; /** * The field to get the date from. */ readonly field: string; /** * An array of the expected date formats. */ readonly formats: string[]; /** * Internal identifier of the resource */ readonly id: string; /** * Conditionally execute the processor */ readonly if?: string; /** * Ignore failures for the processor. */ readonly ignoreFailure?: boolean; /** * JSON representation of this data source. */ readonly json: string; /** * The locale to use when parsing the date, relevant when parsing month names or week days. */ readonly locale?: string; /** * Handle failures for the processor. */ readonly onFailures?: string[]; /** * The format to use when writing the date to `targetField`. */ readonly outputFormat?: string; /** * Identifier for the processor. */ readonly tag?: string; /** * The field that will hold the parsed date. */ readonly targetField?: string; /** * The timezone to use when parsing the date. */ readonly timezone?: string; } export declare function elasticsearchIngestProcessorDateOutput(args: ElasticsearchIngestProcessorDateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; /** * A collection of arguments for invoking ElasticsearchIngestProcessorDate. */ export interface ElasticsearchIngestProcessorDateOutputArgs { /** * Description of the processor. */ description?: pulumi.Input; /** * The field to get the date from. */ field: pulumi.Input; /** * An array of the expected date formats. */ formats: pulumi.Input[]>; /** * Conditionally execute the processor */ if?: pulumi.Input; /** * Ignore failures for the processor. */ ignoreFailure?: pulumi.Input; /** * The locale to use when parsing the date, relevant when parsing month names or week days. */ locale?: pulumi.Input; /** * Handle failures for the processor. */ onFailures?: pulumi.Input[]>; /** * The format to use when writing the date to `targetField`. */ outputFormat?: pulumi.Input; /** * Identifier for the processor. */ tag?: pulumi.Input; /** * The field that will hold the parsed date. */ targetField?: pulumi.Input; /** * The timezone to use when parsing the date. */ timezone?: pulumi.Input; }