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

com.pulumi.gcp.dataplex.kotlin.LakeArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataplex.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataplex.LakeArgs.builder
import com.pulumi.gcp.dataplex.kotlin.inputs.LakeMetastoreArgs
import com.pulumi.gcp.dataplex.kotlin.inputs.LakeMetastoreArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The Dataplex Lake resource
 * ## Example Usage
 * ### Basic_lake
 * A basic example of a dataplex lake
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const primary = new gcp.dataplex.Lake("primary", {
 *     location: "us-west1",
 *     name: "lake",
 *     description: "Lake for DCL",
 *     displayName: "Lake for DCL",
 *     project: "my-project-name",
 *     labels: {
 *         "my-lake": "exists",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * primary = gcp.dataplex.Lake("primary",
 *     location="us-west1",
 *     name="lake",
 *     description="Lake for DCL",
 *     display_name="Lake for DCL",
 *     project="my-project-name",
 *     labels={
 *         "my-lake": "exists",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var primary = new Gcp.DataPlex.Lake("primary", new()
 *     {
 *         Location = "us-west1",
 *         Name = "lake",
 *         Description = "Lake for DCL",
 *         DisplayName = "Lake for DCL",
 *         Project = "my-project-name",
 *         Labels =
 *         {
 *             { "my-lake", "exists" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/dataplex"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := dataplex.NewLake(ctx, "primary", &dataplex.LakeArgs{
 * 			Location:    pulumi.String("us-west1"),
 * 			Name:        pulumi.String("lake"),
 * 			Description: pulumi.String("Lake for DCL"),
 * 			DisplayName: pulumi.String("Lake for DCL"),
 * 			Project:     pulumi.String("my-project-name"),
 * 			Labels: pulumi.StringMap{
 * 				"my-lake": pulumi.String("exists"),
 * 			},
 * 		})
 * 		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.gcp.dataplex.Lake;
 * import com.pulumi.gcp.dataplex.LakeArgs;
 * 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 primary = new Lake("primary", LakeArgs.builder()
 *             .location("us-west1")
 *             .name("lake")
 *             .description("Lake for DCL")
 *             .displayName("Lake for DCL")
 *             .project("my-project-name")
 *             .labels(Map.of("my-lake", "exists"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:dataplex:Lake
 *     properties:
 *       location: us-west1
 *       name: lake
 *       description: Lake for DCL
 *       displayName: Lake for DCL
 *       project: my-project-name
 *       labels:
 *         my-lake: exists
 * ```
 * 
 * ## Import
 * Lake can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/lakes/{{name}}`
 * * `{{project}}/{{location}}/{{name}}`
 * * `{{location}}/{{name}}`
 * When using the `pulumi import` command, Lake can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:dataplex/lake:Lake default projects/{{project}}/locations/{{location}}/lakes/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:dataplex/lake:Lake default {{project}}/{{location}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:dataplex/lake:Lake default {{location}}/{{name}}
 * ```
 * @property description Optional. Description of the lake.
 * @property displayName Optional. User friendly display name.
 * @property labels Optional. User-defined labels for the lake.
 * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
 * Please refer to the field `effective_labels` for all of the labels present on the resource.
 * @property location The location for the resource
 * @property metastore Optional. Settings to manage lake and Dataproc Metastore service instance association.
 * @property name The name of the lake.
 * - - -
 * @property project The project for the resource
 */
public data class LakeArgs(
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val labels: Output>? = null,
    public val location: Output? = null,
    public val metastore: Output? = null,
    public val name: Output? = null,
    public val project: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataplex.LakeArgs =
        com.pulumi.gcp.dataplex.LakeArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .location(location?.applyValue({ args0 -> args0 }))
            .metastore(metastore?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LakeArgs].
 */
@PulumiTagMarker
public class LakeArgsBuilder internal constructor() {
    private var description: Output? = null

    private var displayName: Output? = null

    private var labels: Output>? = null

    private var location: Output? = null

    private var metastore: Output? = null

    private var name: Output? = null

    private var project: Output? = null

    /**
     * @param value Optional. Description of the lake.
     */
    @JvmName("cvtoovjqiwkdsiqe")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Optional. User friendly display name.
     */
    @JvmName("flrktvsuhgexbbym")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value Optional. User-defined labels for the lake.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("koxxsvciibyfeddu")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value The location for the resource
     */
    @JvmName("fndxronivhrslpwh")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Optional. Settings to manage lake and Dataproc Metastore service instance association.
     */
    @JvmName("ujdiapalqgpfljwq")
    public suspend fun metastore(`value`: Output) {
        this.metastore = value
    }

    /**
     * @param value The name of the lake.
     * - - -
     */
    @JvmName("wupdeucbykkyptsp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The project for the resource
     */
    @JvmName("bxpswrfdybojxelg")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value Optional. Description of the lake.
     */
    @JvmName("nyvdtdrtvvlubecw")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Optional. User friendly display name.
     */
    @JvmName("bqjueentoadnhiwi")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value Optional. User-defined labels for the lake.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("lgsvjkxbanbuwkex")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Optional. User-defined labels for the lake.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("cbjjojryyahuiyhf")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The location for the resource
     */
    @JvmName("djxtcmhqtoqijfcp")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Optional. Settings to manage lake and Dataproc Metastore service instance association.
     */
    @JvmName("hmiebbbeaijoodop")
    public suspend fun metastore(`value`: LakeMetastoreArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metastore = mapped
    }

    /**
     * @param argument Optional. Settings to manage lake and Dataproc Metastore service instance association.
     */
    @JvmName("bfpppwjtxakuvsbx")
    public suspend fun metastore(argument: suspend LakeMetastoreArgsBuilder.() -> Unit) {
        val toBeMapped = LakeMetastoreArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.metastore = mapped
    }

    /**
     * @param value The name of the lake.
     * - - -
     */
    @JvmName("inafgwfipxhdpmgn")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The project for the resource
     */
    @JvmName("ejngyxltanjixbsf")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    internal fun build(): LakeArgs = LakeArgs(
        description = description,
        displayName = displayName,
        labels = labels,
        location = location,
        metastore = metastore,
        name = name,
        project = project,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy