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

com.pulumi.gcp.vertex.kotlin.AiMetadataStoreArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.vertex.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vertex.AiMetadataStoreArgs.builder
import com.pulumi.gcp.vertex.kotlin.inputs.AiMetadataStoreEncryptionSpecArgs
import com.pulumi.gcp.vertex.kotlin.inputs.AiMetadataStoreEncryptionSpecArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * ## Example Usage
 * ### Vertex Ai Metadata Store
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const store = new gcp.vertex.AiMetadataStore("store", {
 *     name: "test-store",
 *     description: "Store to test the terraform module",
 *     region: "us-central1",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * store = gcp.vertex.AiMetadataStore("store",
 *     name="test-store",
 *     description="Store to test the terraform module",
 *     region="us-central1")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var store = new Gcp.Vertex.AiMetadataStore("store", new()
 *     {
 *         Name = "test-store",
 *         Description = "Store to test the terraform module",
 *         Region = "us-central1",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vertex"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := vertex.NewAiMetadataStore(ctx, "store", &vertex.AiMetadataStoreArgs{
 * 			Name:        pulumi.String("test-store"),
 * 			Description: pulumi.String("Store to test the terraform module"),
 * 			Region:      pulumi.String("us-central1"),
 * 		})
 * 		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.vertex.AiMetadataStore;
 * import com.pulumi.gcp.vertex.AiMetadataStoreArgs;
 * 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 store = new AiMetadataStore("store", AiMetadataStoreArgs.builder()
 *             .name("test-store")
 *             .description("Store to test the terraform module")
 *             .region("us-central1")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   store:
 *     type: gcp:vertex:AiMetadataStore
 *     properties:
 *       name: test-store
 *       description: Store to test the terraform module
 *       region: us-central1
 * ```
 * 
 * ## Import
 * MetadataStore can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{region}}/metadataStores/{{name}}`
 * * `{{project}}/{{region}}/{{name}}`
 * * `{{region}}/{{name}}`
 * * `{{name}}`
 * When using the `pulumi import` command, MetadataStore can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:vertex/aiMetadataStore:AiMetadataStore default projects/{{project}}/locations/{{region}}/metadataStores/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:vertex/aiMetadataStore:AiMetadataStore default {{project}}/{{region}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:vertex/aiMetadataStore:AiMetadataStore default {{region}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:vertex/aiMetadataStore:AiMetadataStore default {{name}}
 * ```
 * @property description Description of the MetadataStore.
 * @property encryptionSpec Customer-managed encryption key spec for a MetadataStore. If set, this MetadataStore and all sub-resources of this MetadataStore will be secured by this key.
 * Structure is documented below.
 * @property name The name of the MetadataStore. This value may be up to 60 characters, and valid characters are [a-z0-9_]. The first character cannot be a number.
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 * @property region The region of the Metadata Store. eg us-central1
 */
public data class AiMetadataStoreArgs(
    public val description: Output? = null,
    public val encryptionSpec: Output? = null,
    public val name: Output? = null,
    public val project: Output? = null,
    public val region: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vertex.AiMetadataStoreArgs =
        com.pulumi.gcp.vertex.AiMetadataStoreArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .encryptionSpec(encryptionSpec?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 })).build()
}

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

    private var encryptionSpec: Output? = null

    private var name: Output? = null

    private var project: Output? = null

    private var region: Output? = null

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

    /**
     * @param value Customer-managed encryption key spec for a MetadataStore. If set, this MetadataStore and all sub-resources of this MetadataStore will be secured by this key.
     * Structure is documented below.
     */
    @JvmName("cmesrfpfwquengwh")
    public suspend fun encryptionSpec(`value`: Output) {
        this.encryptionSpec = value
    }

    /**
     * @param value The name of the MetadataStore. This value may be up to 60 characters, and valid characters are [a-z0-9_]. The first character cannot be a number.
     */
    @JvmName("lqawpwbowqmxcxcw")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    /**
     * @param value The region of the Metadata Store. eg us-central1
     */
    @JvmName("iwjovjbeyjvisjay")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

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

    /**
     * @param value Customer-managed encryption key spec for a MetadataStore. If set, this MetadataStore and all sub-resources of this MetadataStore will be secured by this key.
     * Structure is documented below.
     */
    @JvmName("pvvdrgrjdhdwjhmv")
    public suspend fun encryptionSpec(`value`: AiMetadataStoreEncryptionSpecArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionSpec = mapped
    }

    /**
     * @param argument Customer-managed encryption key spec for a MetadataStore. If set, this MetadataStore and all sub-resources of this MetadataStore will be secured by this key.
     * Structure is documented below.
     */
    @JvmName("wowehwkhepdeadve")
    public suspend fun encryptionSpec(argument: suspend AiMetadataStoreEncryptionSpecArgsBuilder.() -> Unit) {
        val toBeMapped = AiMetadataStoreEncryptionSpecArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryptionSpec = mapped
    }

    /**
     * @param value The name of the MetadataStore. This value may be up to 60 characters, and valid characters are [a-z0-9_]. The first character cannot be a number.
     */
    @JvmName("kmllokvmmcbupmeg")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

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

    /**
     * @param value The region of the Metadata Store. eg us-central1
     */
    @JvmName("rjnnmmvrueatixwb")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    internal fun build(): AiMetadataStoreArgs = AiMetadataStoreArgs(
        description = description,
        encryptionSpec = encryptionSpec,
        name = name,
        project = project,
        region = region,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy