// *** 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"; /** * Joins each element of an array into a single string using a separator character between each element. Throws an error when the field is not an array. * * See: https://www.elastic.co/guide/en/elasticsearch/reference/current/join-processor.html * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as elasticstack from "@pulumi/elasticstack"; * * const join = elasticstack.ElasticsearchIngestProcessorJoin({ * field: "joined_array_field", * separator: "-", * }); * const myIngestPipeline = new elasticstack.ElasticsearchIngestPipeline("myIngestPipeline", {processors: [join.then(join => join.json)]}); * ``` */ export function elasticsearchIngestProcessorJoin(args: ElasticsearchIngestProcessorJoinArgs, opts?: pulumi.InvokeOptions): Promise { if (!opts) { opts = {} } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("elasticstack:index/elasticsearchIngestProcessorJoin:ElasticsearchIngestProcessorJoin", { "description": args.description, "field": args.field, "if": args.if, "ignoreFailure": args.ignoreFailure, "onFailures": args.onFailures, "separator": args.separator, "tag": args.tag, "targetField": args.targetField, }, opts); } /** * A collection of arguments for invoking ElasticsearchIngestProcessorJoin. */ export interface ElasticsearchIngestProcessorJoinArgs { /** * Description of the processor. */ description?: string; /** * Field containing array values to join. */ field: string; /** * Conditionally execute the processor */ if?: string; /** * Ignore failures for the processor. */ ignoreFailure?: boolean; /** * Handle failures for the processor. */ onFailures?: string[]; /** * The separator character. */ separator: string; /** * Identifier for the processor. */ tag?: string; /** * The field to assign the converted value to, by default `field` is updated in-place. */ targetField?: string; } /** * A collection of values returned by ElasticsearchIngestProcessorJoin. */ export interface ElasticsearchIngestProcessorJoinResult { /** * Description of the processor. */ readonly description?: string; /** * Field containing array values to join. */ 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; /** * JSON representation of this data source. */ readonly json: string; /** * Handle failures for the processor. */ readonly onFailures?: string[]; /** * The separator character. */ readonly separator: string; /** * Identifier for the processor. */ readonly tag?: string; /** * The field to assign the converted value to, by default `field` is updated in-place. */ readonly targetField?: string; } export function elasticsearchIngestProcessorJoinOutput(args: ElasticsearchIngestProcessorJoinOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply(a => elasticsearchIngestProcessorJoin(a, opts)) } /** * A collection of arguments for invoking ElasticsearchIngestProcessorJoin. */ export interface ElasticsearchIngestProcessorJoinOutputArgs { /** * Description of the processor. */ description?: pulumi.Input; /** * Field containing array values to join. */ field: pulumi.Input; /** * Conditionally execute the processor */ if?: pulumi.Input; /** * Ignore failures for the processor. */ ignoreFailure?: pulumi.Input; /** * Handle failures for the processor. */ onFailures?: pulumi.Input[]>; /** * The separator character. */ separator: pulumi.Input; /** * Identifier for the processor. */ tag?: pulumi.Input; /** * The field to assign the converted value to, by default `field` is updated in-place. */ targetField?: pulumi.Input; }