All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.opensearchingest.kotlin.PipelineArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.opensearchingest.kotlin

import com.pulumi.aws.opensearchingest.PipelineArgs.builder
import com.pulumi.aws.opensearchingest.kotlin.inputs.PipelineBufferOptionsArgs
import com.pulumi.aws.opensearchingest.kotlin.inputs.PipelineBufferOptionsArgsBuilder
import com.pulumi.aws.opensearchingest.kotlin.inputs.PipelineEncryptionAtRestOptionsArgs
import com.pulumi.aws.opensearchingest.kotlin.inputs.PipelineEncryptionAtRestOptionsArgsBuilder
import com.pulumi.aws.opensearchingest.kotlin.inputs.PipelineLogPublishingOptionsArgs
import com.pulumi.aws.opensearchingest.kotlin.inputs.PipelineLogPublishingOptionsArgsBuilder
import com.pulumi.aws.opensearchingest.kotlin.inputs.PipelineTimeoutsArgs
import com.pulumi.aws.opensearchingest.kotlin.inputs.PipelineTimeoutsArgsBuilder
import com.pulumi.aws.opensearchingest.kotlin.inputs.PipelineVpcOptionsArgs
import com.pulumi.aws.opensearchingest.kotlin.inputs.PipelineVpcOptionsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource for managing an AWS OpenSearch Ingestion Pipeline.
 * ## Example Usage
 * ### Basic Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const current = aws.getRegion({});
 * const example = new aws.iam.Role("example", {assumeRolePolicy: JSON.stringify({
 *     Version: "2012-10-17",
 *     Statement: [{
 *         Action: "sts:AssumeRole",
 *         Effect: "Allow",
 *         Sid: "",
 *         Principal: {
 *             Service: "osis-pipelines.amazonaws.com",
 *         },
 *     }],
 * })});
 * const examplePipeline = new aws.opensearchingest.Pipeline("example", {
 *     pipelineName: "example",
 *     pipelineConfigurationBody: pulumi.all([example.arn, current]).apply(([arn, current]) => `version: "2"
 * example-pipeline:
 *   source:
 *     http:
 *       path: "/example"
 *   sink:
 *     - s3:
 *         aws:
 *           sts_role_arn: "${arn}"
 *           region: "${current.name}"
 *         bucket: "example"
 *         threshold:
 *           event_collect_timeout: "60s"
 *         codec:
 *           ndjson:
 * `),
 *     maxUnits: 1,
 *     minUnits: 1,
 * });
 * ```
 * ```python
 * import pulumi
 * import json
 * import pulumi_aws as aws
 * current = aws.get_region()
 * example = aws.iam.Role("example", assume_role_policy=json.dumps({
 *     "Version": "2012-10-17",
 *     "Statement": [{
 *         "Action": "sts:AssumeRole",
 *         "Effect": "Allow",
 *         "Sid": "",
 *         "Principal": {
 *             "Service": "osis-pipelines.amazonaws.com",
 *         },
 *     }],
 * }))
 * example_pipeline = aws.opensearchingest.Pipeline("example",
 *     pipeline_name="example",
 *     pipeline_configuration_body=example.arn.apply(lambda arn: f"""version: "2"
 * example-pipeline:
 *   source:
 *     http:
 *       path: "/example"
 *   sink:
 *     - s3:
 *         aws:
 *           sts_role_arn: "{arn}"
 *           region: "{current.name}"
 *         bucket: "example"
 *         threshold:
 *           event_collect_timeout: "60s"
 *         codec:
 *           ndjson:
 * """),
 *     max_units=1,
 *     min_units=1)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using System.Text.Json;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var current = Aws.GetRegion.Invoke();
 *     var example = new Aws.Iam.Role("example", new()
 *     {
 *         AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary
 *         {
 *             ["Version"] = "2012-10-17",
 *             ["Statement"] = new[]
 *             {
 *                 new Dictionary
 *                 {
 *                     ["Action"] = "sts:AssumeRole",
 *                     ["Effect"] = "Allow",
 *                     ["Sid"] = "",
 *                     ["Principal"] = new Dictionary
 *                     {
 *                         ["Service"] = "osis-pipelines.amazonaws.com",
 *                     },
 *                 },
 *             },
 *         }),
 *     });
 *     var examplePipeline = new Aws.OpenSearchIngest.Pipeline("example", new()
 *     {
 *         PipelineName = "example",
 *         PipelineConfigurationBody = Output.Tuple(example.Arn, current).Apply(values =>
 *         {
 *             var arn = values.Item1;
 *             var current = values.Item2;
 *             return @$"version: ""2""
 * example-pipeline:
 *   source:
 *     http:
 *       path: ""/example""
 *   sink:
 *     - s3:
 *         aws:
 *           sts_role_arn: ""{arn}""
 *           region: ""{current.Apply(getRegionResult => getRegionResult.Name)}""
 *         bucket: ""example""
 *         threshold:
 *           event_collect_timeout: ""60s""
 *         codec:
 *           ndjson:
 * ";
 *         }),
 *         MaxUnits = 1,
 *         MinUnits = 1,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"encoding/json"
 * 	"fmt"
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearchingest"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		current, err := aws.GetRegion(ctx, &aws.GetRegionArgs{}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		tmpJSON0, err := json.Marshal(map[string]interface{}{
 * 			"Version": "2012-10-17",
 * 			"Statement": []map[string]interface{}{
 * 				map[string]interface{}{
 * 					"Action": "sts:AssumeRole",
 * 					"Effect": "Allow",
 * 					"Sid":    "",
 * 					"Principal": map[string]interface{}{
 * 						"Service": "osis-pipelines.amazonaws.com",
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		json0 := string(tmpJSON0)
 * 		example, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
 * 			AssumeRolePolicy: pulumi.String(json0),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = opensearchingest.NewPipeline(ctx, "example", &opensearchingest.PipelineArgs{
 * 			PipelineName: pulumi.String("example"),
 * 			PipelineConfigurationBody: example.Arn.ApplyT(func(arn string) (string, error) {
 * 				return fmt.Sprintf(`version: "2"
 * example-pipeline:
 *   source:
 *     http:
 *       path: "/example"
 *   sink:
 *     - s3:
 *         aws:
 *           sts_role_arn: "%v"
 *           region: "%v"
 *         bucket: "example"
 *         threshold:
 *           event_collect_timeout: "60s"
 *         codec:
 *           ndjson:
 * `, arn, current.Name), nil
 * 			}).(pulumi.StringOutput),
 * 			MaxUnits: pulumi.Int(1),
 * 			MinUnits: pulumi.Int(1),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.AwsFunctions;
 * import com.pulumi.aws.inputs.GetRegionArgs;
 * import com.pulumi.aws.iam.Role;
 * import com.pulumi.aws.iam.RoleArgs;
 * import com.pulumi.aws.opensearchingest.Pipeline;
 * import com.pulumi.aws.opensearchingest.PipelineArgs;
 * import static com.pulumi.codegen.internal.Serialization.*;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         final var current = AwsFunctions.getRegion();
 *         var example = new Role("example", RoleArgs.builder()
 *             .assumeRolePolicy(serializeJson(
 *                 jsonObject(
 *                     jsonProperty("Version", "2012-10-17"),
 *                     jsonProperty("Statement", jsonArray(jsonObject(
 *                         jsonProperty("Action", "sts:AssumeRole"),
 *                         jsonProperty("Effect", "Allow"),
 *                         jsonProperty("Sid", ""),
 *                         jsonProperty("Principal", jsonObject(
 *                             jsonProperty("Service", "osis-pipelines.amazonaws.com")
 *                         ))
 *                     )))
 *                 )))
 *             .build());
 *         var examplePipeline = new Pipeline("examplePipeline", PipelineArgs.builder()
 *             .pipelineName("example")
 *             .pipelineConfigurationBody(example.arn().applyValue(arn -> """
 * version: "2"
 * example-pipeline:
 *   source:
 *     http:
 *       path: "/example"
 *   sink:
 *     - s3:
 *         aws:
 *           sts_role_arn: "%s"
 *           region: "%s"
 *         bucket: "example"
 *         threshold:
 *           event_collect_timeout: "60s"
 *         codec:
 *           ndjson:
 * ", arn,current.applyValue(getRegionResult -> getRegionResult.name()))))
 *             .maxUnits(1)
 *             .minUnits(1)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:iam:Role
 *     properties:
 *       assumeRolePolicy:
 *         fn::toJSON:
 *           Version: 2012-10-17
 *           Statement:
 *             - Action: sts:AssumeRole
 *               Effect: Allow
 *               Sid:
 *               Principal:
 *                 Service: osis-pipelines.amazonaws.com
 *   examplePipeline:
 *     type: aws:opensearchingest:Pipeline
 *     name: example
 *     properties:
 *       pipelineName: example
 *       pipelineConfigurationBody: |
 *         version: "2"
 *         example-pipeline:
 *           source:
 *             http:
 *               path: "/example"
 *           sink:
 *             - s3:
 *                 aws:
 *                   sts_role_arn: "${example.arn}"
 *                   region: "${current.name}"
 *                 bucket: "example"
 *                 threshold:
 *                   event_collect_timeout: "60s"
 *                 codec:
 *                   ndjson:
 *       maxUnits: 1
 *       minUnits: 1
 * variables:
 *   current:
 *     fn::invoke:
 *       Function: aws:getRegion
 *       Arguments: {}
 * ```
 * 
 * ### Using file function
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * import * as std from "@pulumi/std";
 * const example = new aws.opensearchingest.Pipeline("example", {
 *     pipelineName: "example",
 *     pipelineConfigurationBody: std.file({
 *         input: "example.yaml",
 *     }).then(invoke => invoke.result),
 *     maxUnits: 1,
 *     minUnits: 1,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * import pulumi_std as std
 * example = aws.opensearchingest.Pipeline("example",
 *     pipeline_name="example",
 *     pipeline_configuration_body=std.file(input="example.yaml").result,
 *     max_units=1,
 *     min_units=1)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * using Std = Pulumi.Std;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.OpenSearchIngest.Pipeline("example", new()
 *     {
 *         PipelineName = "example",
 *         PipelineConfigurationBody = Std.File.Invoke(new()
 *         {
 *             Input = "example.yaml",
 *         }).Apply(invoke => invoke.Result),
 *         MaxUnits = 1,
 *         MinUnits = 1,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearchingest"
 * 	"github.com/pulumi/pulumi-std/sdk/go/std"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		invokeFile, err := std.File(ctx, &std.FileArgs{
 * 			Input: "example.yaml",
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = opensearchingest.NewPipeline(ctx, "example", &opensearchingest.PipelineArgs{
 * 			PipelineName:              pulumi.String("example"),
 * 			PipelineConfigurationBody: pulumi.String(invokeFile.Result),
 * 			MaxUnits:                  pulumi.Int(1),
 * 			MinUnits:                  pulumi.Int(1),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.opensearchingest.Pipeline;
 * import com.pulumi.aws.opensearchingest.PipelineArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new Pipeline("example", PipelineArgs.builder()
 *             .pipelineName("example")
 *             .pipelineConfigurationBody(StdFunctions.file(FileArgs.builder()
 *                 .input("example.yaml")
 *                 .build()).result())
 *             .maxUnits(1)
 *             .minUnits(1)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:opensearchingest:Pipeline
 *     properties:
 *       pipelineName: example
 *       pipelineConfigurationBody:
 *         fn::invoke:
 *           Function: std:file
 *           Arguments:
 *             input: example.yaml
 *           Return: result
 *       maxUnits: 1
 *       minUnits: 1
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import OpenSearch Ingestion Pipeline using the `id`. For example:
 * ```sh
 * $ pulumi import aws:opensearchingest/pipeline:Pipeline example example
 * ```
 * @property bufferOptions Key-value pairs to configure persistent buffering for the pipeline. See `buffer_options` below.
 * @property encryptionAtRestOptions Key-value pairs to configure encryption for data that is written to a persistent buffer. See `encryption_at_rest_options` below.
 * @property logPublishingOptions Key-value pairs to configure log publishing. See `log_publishing_options` below.
 * @property maxUnits The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
 * @property minUnits The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
 * @property pipelineConfigurationBody The pipeline configuration in YAML format. This argument accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \n.
 * @property pipelineName The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an AWS Region.
 * The following arguments are optional:
 * @property tags A map of tags to assign to the pipeline. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
 * @property timeouts
 * @property vpcOptions Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint. See `vpc_options` below.
 */
public data class PipelineArgs(
    public val bufferOptions: Output? = null,
    public val encryptionAtRestOptions: Output? = null,
    public val logPublishingOptions: Output? = null,
    public val maxUnits: Output? = null,
    public val minUnits: Output? = null,
    public val pipelineConfigurationBody: Output? = null,
    public val pipelineName: Output? = null,
    public val tags: Output>? = null,
    public val timeouts: Output? = null,
    public val vpcOptions: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opensearchingest.PipelineArgs =
        com.pulumi.aws.opensearchingest.PipelineArgs.builder()
            .bufferOptions(bufferOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .encryptionAtRestOptions(
                encryptionAtRestOptions?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .logPublishingOptions(
                logPublishingOptions?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .maxUnits(maxUnits?.applyValue({ args0 -> args0 }))
            .minUnits(minUnits?.applyValue({ args0 -> args0 }))
            .pipelineConfigurationBody(pipelineConfigurationBody?.applyValue({ args0 -> args0 }))
            .pipelineName(pipelineName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .timeouts(timeouts?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .vpcOptions(vpcOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [PipelineArgs].
 */
@PulumiTagMarker
public class PipelineArgsBuilder internal constructor() {
    private var bufferOptions: Output? = null

    private var encryptionAtRestOptions: Output? = null

    private var logPublishingOptions: Output? = null

    private var maxUnits: Output? = null

    private var minUnits: Output? = null

    private var pipelineConfigurationBody: Output? = null

    private var pipelineName: Output? = null

    private var tags: Output>? = null

    private var timeouts: Output? = null

    private var vpcOptions: Output? = null

    /**
     * @param value Key-value pairs to configure persistent buffering for the pipeline. See `buffer_options` below.
     */
    @JvmName("rahtgoixqgurgprr")
    public suspend fun bufferOptions(`value`: Output) {
        this.bufferOptions = value
    }

    /**
     * @param value Key-value pairs to configure encryption for data that is written to a persistent buffer. See `encryption_at_rest_options` below.
     */
    @JvmName("hlahuglyiqxiijhk")
    public suspend fun encryptionAtRestOptions(`value`: Output) {
        this.encryptionAtRestOptions = value
    }

    /**
     * @param value Key-value pairs to configure log publishing. See `log_publishing_options` below.
     */
    @JvmName("quxkstmmprkplxtc")
    public suspend fun logPublishingOptions(`value`: Output) {
        this.logPublishingOptions = value
    }

    /**
     * @param value The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
     */
    @JvmName("wjjthmxniokkmawy")
    public suspend fun maxUnits(`value`: Output) {
        this.maxUnits = value
    }

    /**
     * @param value The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
     */
    @JvmName("yaaexpnnqjtnejqk")
    public suspend fun minUnits(`value`: Output) {
        this.minUnits = value
    }

    /**
     * @param value The pipeline configuration in YAML format. This argument accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \n.
     */
    @JvmName("dcstqefwbhgqhlht")
    public suspend fun pipelineConfigurationBody(`value`: Output) {
        this.pipelineConfigurationBody = value
    }

    /**
     * @param value The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an AWS Region.
     * The following arguments are optional:
     */
    @JvmName("rubvgmsinclcfest")
    public suspend fun pipelineName(`value`: Output) {
        this.pipelineName = value
    }

    /**
     * @param value A map of tags to assign to the pipeline. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("tqvumjbgtyqowcum")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value
     */
    @JvmName("vqbokjihgcevjtiy")
    public suspend fun timeouts(`value`: Output) {
        this.timeouts = value
    }

    /**
     * @param value Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint. See `vpc_options` below.
     */
    @JvmName("pvnouwwskdciakhb")
    public suspend fun vpcOptions(`value`: Output) {
        this.vpcOptions = value
    }

    /**
     * @param value Key-value pairs to configure persistent buffering for the pipeline. See `buffer_options` below.
     */
    @JvmName("sjomypfewjvkggsv")
    public suspend fun bufferOptions(`value`: PipelineBufferOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bufferOptions = mapped
    }

    /**
     * @param argument Key-value pairs to configure persistent buffering for the pipeline. See `buffer_options` below.
     */
    @JvmName("ruygxquwgksfpkfm")
    public suspend fun bufferOptions(argument: suspend PipelineBufferOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineBufferOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.bufferOptions = mapped
    }

    /**
     * @param value Key-value pairs to configure encryption for data that is written to a persistent buffer. See `encryption_at_rest_options` below.
     */
    @JvmName("uiltgtnfmdqfngyb")
    public suspend fun encryptionAtRestOptions(`value`: PipelineEncryptionAtRestOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionAtRestOptions = mapped
    }

    /**
     * @param argument Key-value pairs to configure encryption for data that is written to a persistent buffer. See `encryption_at_rest_options` below.
     */
    @JvmName("ixiunueykxjlgjkd")
    public suspend fun encryptionAtRestOptions(argument: suspend PipelineEncryptionAtRestOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineEncryptionAtRestOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryptionAtRestOptions = mapped
    }

    /**
     * @param value Key-value pairs to configure log publishing. See `log_publishing_options` below.
     */
    @JvmName("fulprxbufxgcmeef")
    public suspend fun logPublishingOptions(`value`: PipelineLogPublishingOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logPublishingOptions = mapped
    }

    /**
     * @param argument Key-value pairs to configure log publishing. See `log_publishing_options` below.
     */
    @JvmName("nborrlqlibvkqsim")
    public suspend fun logPublishingOptions(argument: suspend PipelineLogPublishingOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineLogPublishingOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.logPublishingOptions = mapped
    }

    /**
     * @param value The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
     */
    @JvmName("sjndjmbofllklova")
    public suspend fun maxUnits(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxUnits = mapped
    }

    /**
     * @param value The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
     */
    @JvmName("fsynkctchjogrbgv")
    public suspend fun minUnits(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minUnits = mapped
    }

    /**
     * @param value The pipeline configuration in YAML format. This argument accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \n.
     */
    @JvmName("hyxdqboompenskvf")
    public suspend fun pipelineConfigurationBody(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pipelineConfigurationBody = mapped
    }

    /**
     * @param value The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an AWS Region.
     * The following arguments are optional:
     */
    @JvmName("xtmwdgrxcwbnytgi")
    public suspend fun pipelineName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pipelineName = mapped
    }

    /**
     * @param value A map of tags to assign to the pipeline. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("mdihohytjhkgffyy")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A map of tags to assign to the pipeline. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("jcscgwkistlnropo")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value
     */
    @JvmName("pkgskqhechwcxpbc")
    public suspend fun timeouts(`value`: PipelineTimeoutsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeouts = mapped
    }

    /**
     * @param argument
     */
    @JvmName("jdbghrhrkglkfwqw")
    public suspend fun timeouts(argument: suspend PipelineTimeoutsArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineTimeoutsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.timeouts = mapped
    }

    /**
     * @param value Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint. See `vpc_options` below.
     */
    @JvmName("hdecrgvmxtgoqhkx")
    public suspend fun vpcOptions(`value`: PipelineVpcOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcOptions = mapped
    }

    /**
     * @param argument Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint. See `vpc_options` below.
     */
    @JvmName("ymacirrqlntvyult")
    public suspend fun vpcOptions(argument: suspend PipelineVpcOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineVpcOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.vpcOptions = mapped
    }

    internal fun build(): PipelineArgs = PipelineArgs(
        bufferOptions = bufferOptions,
        encryptionAtRestOptions = encryptionAtRestOptions,
        logPublishingOptions = logPublishingOptions,
        maxUnits = maxUnits,
        minUnits = minUnits,
        pipelineConfigurationBody = pipelineConfigurationBody,
        pipelineName = pipelineName,
        tags = tags,
        timeouts = timeouts,
        vpcOptions = vpcOptions,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy