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

com.pulumi.gcp.datacatalog.kotlin.EntryGroupArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.datacatalog.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.datacatalog.EntryGroupArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * An EntryGroup resource represents a logical grouping of zero or more Data Catalog Entry resources.
 * To get more information about EntryGroup, see:
 * * [API documentation](https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups)
 * * How-to Guides
 *     * [Official Documentation](https://cloud.google.com/data-catalog/docs)
 * ## Example Usage
 * ### Data Catalog Entry Group Basic
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const basicEntryGroup = new gcp.datacatalog.EntryGroup("basic_entry_group", {entryGroupId: "my_group"});
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * basic_entry_group = gcp.datacatalog.EntryGroup("basic_entry_group", entry_group_id="my_group")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var basicEntryGroup = new Gcp.DataCatalog.EntryGroup("basic_entry_group", new()
 *     {
 *         EntryGroupId = "my_group",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/datacatalog"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := datacatalog.NewEntryGroup(ctx, "basic_entry_group", &datacatalog.EntryGroupArgs{
 * 			EntryGroupId: pulumi.String("my_group"),
 * 		})
 * 		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.datacatalog.EntryGroup;
 * import com.pulumi.gcp.datacatalog.EntryGroupArgs;
 * 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 basicEntryGroup = new EntryGroup("basicEntryGroup", EntryGroupArgs.builder()
 *             .entryGroupId("my_group")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   basicEntryGroup:
 *     type: gcp:datacatalog:EntryGroup
 *     name: basic_entry_group
 *     properties:
 *       entryGroupId: my_group
 * ```
 * 
 * ### Data Catalog Entry Group Full
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const basicEntryGroup = new gcp.datacatalog.EntryGroup("basic_entry_group", {
 *     entryGroupId: "my_group",
 *     displayName: "entry group",
 *     description: "example entry group",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * basic_entry_group = gcp.datacatalog.EntryGroup("basic_entry_group",
 *     entry_group_id="my_group",
 *     display_name="entry group",
 *     description="example entry group")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var basicEntryGroup = new Gcp.DataCatalog.EntryGroup("basic_entry_group", new()
 *     {
 *         EntryGroupId = "my_group",
 *         DisplayName = "entry group",
 *         Description = "example entry group",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/datacatalog"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := datacatalog.NewEntryGroup(ctx, "basic_entry_group", &datacatalog.EntryGroupArgs{
 * 			EntryGroupId: pulumi.String("my_group"),
 * 			DisplayName:  pulumi.String("entry group"),
 * 			Description:  pulumi.String("example entry group"),
 * 		})
 * 		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.datacatalog.EntryGroup;
 * import com.pulumi.gcp.datacatalog.EntryGroupArgs;
 * 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 basicEntryGroup = new EntryGroup("basicEntryGroup", EntryGroupArgs.builder()
 *             .entryGroupId("my_group")
 *             .displayName("entry group")
 *             .description("example entry group")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   basicEntryGroup:
 *     type: gcp:datacatalog:EntryGroup
 *     name: basic_entry_group
 *     properties:
 *       entryGroupId: my_group
 *       displayName: entry group
 *       description: example entry group
 * ```
 * 
 * ## Import
 * EntryGroup can be imported using any of these accepted formats:
 * * `{{name}}`
 * When using the `pulumi import` command, EntryGroup can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:datacatalog/entryGroup:EntryGroup default {{name}}
 * ```
 * @property description Entry group description, which can consist of several sentences or paragraphs that describe entry group contents.
 * @property displayName A short name to identify the entry group, for example, "analytics data - jan 2011".
 * @property entryGroupId The id of the entry group to create. The id must begin with a letter or underscore,
 * contain only English letters, numbers and underscores, and be at most 64 characters.
 * - - -
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 * @property region EntryGroup location region.
 */
public data class EntryGroupArgs(
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val entryGroupId: Output? = null,
    public val project: Output? = null,
    public val region: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.datacatalog.EntryGroupArgs =
        com.pulumi.gcp.datacatalog.EntryGroupArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .entryGroupId(entryGroupId?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 })).build()
}

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

    private var displayName: Output? = null

    private var entryGroupId: Output? = null

    private var project: Output? = null

    private var region: Output? = null

    /**
     * @param value Entry group description, which can consist of several sentences or paragraphs that describe entry group contents.
     */
    @JvmName("quxrkqojioauffco")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value A short name to identify the entry group, for example, "analytics data - jan 2011".
     */
    @JvmName("ghhodcmonqoiqrvm")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The id of the entry group to create. The id must begin with a letter or underscore,
     * contain only English letters, numbers and underscores, and be at most 64 characters.
     * - - -
     */
    @JvmName("owedckgnuosuhjmh")
    public suspend fun entryGroupId(`value`: Output) {
        this.entryGroupId = value
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("kumbtnvgwadxtyny")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value EntryGroup location region.
     */
    @JvmName("sinxordgvgaknlsf")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value Entry group description, which can consist of several sentences or paragraphs that describe entry group contents.
     */
    @JvmName("ybbbmlkjtimrdkpe")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value A short name to identify the entry group, for example, "analytics data - jan 2011".
     */
    @JvmName("agbdwwxyqpwqsnrc")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The id of the entry group to create. The id must begin with a letter or underscore,
     * contain only English letters, numbers and underscores, and be at most 64 characters.
     * - - -
     */
    @JvmName("mwwbowqnkwwxcwhy")
    public suspend fun entryGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.entryGroupId = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("aptkppestcpohlqc")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value EntryGroup location region.
     */
    @JvmName("edbtbhibayajohan")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    internal fun build(): EntryGroupArgs = EntryGroupArgs(
        description = description,
        displayName = displayName,
        entryGroupId = entryGroupId,
        project = project,
        region = region,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy