// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** * Similar to the Grok Processor, dissect also extracts structured fields out of a single text field within a document. However unlike the Grok Processor, dissect does not use Regular Expressions. This allows dissect’s syntax to be simple and for some cases faster than the Grok Processor. * * Dissect matches a single text field against a defined pattern. * * See: https://www.elastic.co/guide/en/elasticsearch/reference/current/dissect-processor.html */ export function elasticsearchIngestProcessorDissect(args: ElasticsearchIngestProcessorDissectArgs, opts?: pulumi.InvokeOptions): Promise { if (!opts) { opts = {} } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("elasticstack:index/elasticsearchIngestProcessorDissect:ElasticsearchIngestProcessorDissect", { "appendSeparator": args.appendSeparator, "description": args.description, "field": args.field, "if": args.if, "ignoreFailure": args.ignoreFailure, "ignoreMissing": args.ignoreMissing, "onFailures": args.onFailures, "pattern": args.pattern, "tag": args.tag, }, opts); } /** * A collection of arguments for invoking ElasticsearchIngestProcessorDissect. */ export interface ElasticsearchIngestProcessorDissectArgs { /** * The character(s) that separate the appended fields. */ appendSeparator?: string; /** * Description of the processor. */ description?: string; /** * The field to dissect. */ field: string; /** * Conditionally execute the processor */ if?: string; /** * Ignore failures for the processor. */ ignoreFailure?: boolean; /** * If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document. */ ignoreMissing?: boolean; /** * Handle failures for the processor. */ onFailures?: string[]; /** * The pattern to apply to the field. */ pattern: string; /** * Identifier for the processor. */ tag?: string; } /** * A collection of values returned by ElasticsearchIngestProcessorDissect. */ export interface ElasticsearchIngestProcessorDissectResult { /** * The character(s) that separate the appended fields. */ readonly appendSeparator?: string; /** * Description of the processor. */ readonly description?: string; /** * The field to dissect. */ readonly field: string; /** * Internal identifier of the resource */ readonly id: string; /** * Conditionally execute the processor */ readonly if?: string; /** * Ignore failures for the processor. */ readonly ignoreFailure?: boolean; /** * If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document. */ readonly ignoreMissing?: boolean; /** * JSON representation of this data source. */ readonly json: string; /** * Handle failures for the processor. */ readonly onFailures?: string[]; /** * The pattern to apply to the field. */ readonly pattern: string; /** * Identifier for the processor. */ readonly tag?: string; } export function elasticsearchIngestProcessorDissectOutput(args: ElasticsearchIngestProcessorDissectOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply(a => elasticsearchIngestProcessorDissect(a, opts)) } /** * A collection of arguments for invoking ElasticsearchIngestProcessorDissect. */ export interface ElasticsearchIngestProcessorDissectOutputArgs { /** * The character(s) that separate the appended fields. */ appendSeparator?: pulumi.Input; /** * Description of the processor. */ description?: pulumi.Input; /** * The field to dissect. */ field: pulumi.Input; /** * Conditionally execute the processor */ if?: pulumi.Input; /** * Ignore failures for the processor. */ ignoreFailure?: pulumi.Input; /** * If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document. */ ignoreMissing?: pulumi.Input; /** * Handle failures for the processor. */ onFailures?: pulumi.Input[]>; /** * The pattern to apply to the field. */ pattern: pulumi.Input; /** * Identifier for the processor. */ tag?: pulumi.Input; }