// *** 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"; /** * Computes a hash of the document’s content. You can use this hash for content fingerprinting. * * See: https://www.elastic.co/guide/en/elasticsearch/reference/current/fingerprint-processor.html * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as elasticstack from "@pulumi/elasticstack"; * * const fingerprint = elasticstack.ElasticsearchIngestProcessorFingerprint({ * fields: ["user"], * }); * const myIngestPipeline = new elasticstack.ElasticsearchIngestPipeline("myIngestPipeline", {processors: [fingerprint.then(fingerprint => fingerprint.json)]}); * ``` */ export function elasticsearchIngestProcessorFingerprint(args: ElasticsearchIngestProcessorFingerprintArgs, opts?: pulumi.InvokeOptions): Promise { if (!opts) { opts = {} } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("elasticstack:index/elasticsearchIngestProcessorFingerprint:ElasticsearchIngestProcessorFingerprint", { "description": args.description, "fields": args.fields, "if": args.if, "ignoreFailure": args.ignoreFailure, "ignoreMissing": args.ignoreMissing, "method": args.method, "onFailures": args.onFailures, "salt": args.salt, "tag": args.tag, "targetField": args.targetField, }, opts); } /** * A collection of arguments for invoking ElasticsearchIngestProcessorFingerprint. */ export interface ElasticsearchIngestProcessorFingerprintArgs { /** * Description of the processor. */ description?: string; /** * Array of fields to include in the fingerprint. */ fields: string[]; /** * Conditionally execute the processor */ if?: string; /** * Ignore failures for the processor. */ ignoreFailure?: boolean; /** * If `true`, the processor ignores any missing `fields`. If all fields are missing, the processor silently exits without modifying the document. */ ignoreMissing?: boolean; /** * The hash method used to compute the fingerprint. */ method?: string; /** * Handle failures for the processor. */ onFailures?: string[]; /** * Salt value for the hash function. */ salt?: string; /** * Identifier for the processor. */ tag?: string; /** * Output field for the fingerprint. */ targetField?: string; } /** * A collection of values returned by ElasticsearchIngestProcessorFingerprint. */ export interface ElasticsearchIngestProcessorFingerprintResult { /** * Description of the processor. */ readonly description?: string; /** * Array of fields to include in the fingerprint. */ readonly fields: 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`, the processor ignores any missing `fields`. If all fields are missing, the processor silently exits without modifying the document. */ readonly ignoreMissing?: boolean; /** * JSON representation of this data source. */ readonly json: string; /** * The hash method used to compute the fingerprint. */ readonly method?: string; /** * Handle failures for the processor. */ readonly onFailures?: string[]; /** * Salt value for the hash function. */ readonly salt?: string; /** * Identifier for the processor. */ readonly tag?: string; /** * Output field for the fingerprint. */ readonly targetField?: string; } export function elasticsearchIngestProcessorFingerprintOutput(args: ElasticsearchIngestProcessorFingerprintOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply(a => elasticsearchIngestProcessorFingerprint(a, opts)) } /** * A collection of arguments for invoking ElasticsearchIngestProcessorFingerprint. */ export interface ElasticsearchIngestProcessorFingerprintOutputArgs { /** * Description of the processor. */ description?: pulumi.Input; /** * Array of fields to include in the fingerprint. */ fields: pulumi.Input[]>; /** * Conditionally execute the processor */ if?: pulumi.Input; /** * Ignore failures for the processor. */ ignoreFailure?: pulumi.Input; /** * If `true`, the processor ignores any missing `fields`. If all fields are missing, the processor silently exits without modifying the document. */ ignoreMissing?: pulumi.Input; /** * The hash method used to compute the fingerprint. */ method?: pulumi.Input; /** * Handle failures for the processor. */ onFailures?: pulumi.Input[]>; /** * Salt value for the hash function. */ salt?: pulumi.Input; /** * Identifier for the processor. */ tag?: pulumi.Input; /** * Output field for the fingerprint. */ targetField?: pulumi.Input; }