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

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

package com.pulumi.gcp.vertex.kotlin

import com.pulumi.core.Output
import com.pulumi.gcp.vertex.kotlin.outputs.AiFeatureOnlineStoreBigtable
import com.pulumi.gcp.vertex.kotlin.outputs.AiFeatureOnlineStoreDedicatedServingEndpoint
import com.pulumi.gcp.vertex.kotlin.outputs.AiFeatureOnlineStoreEmbeddingManagement
import com.pulumi.gcp.vertex.kotlin.outputs.AiFeatureOnlineStoreOptimized
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.gcp.vertex.kotlin.outputs.AiFeatureOnlineStoreBigtable.Companion.toKotlin as aiFeatureOnlineStoreBigtableToKotlin
import com.pulumi.gcp.vertex.kotlin.outputs.AiFeatureOnlineStoreDedicatedServingEndpoint.Companion.toKotlin as aiFeatureOnlineStoreDedicatedServingEndpointToKotlin
import com.pulumi.gcp.vertex.kotlin.outputs.AiFeatureOnlineStoreEmbeddingManagement.Companion.toKotlin as aiFeatureOnlineStoreEmbeddingManagementToKotlin
import com.pulumi.gcp.vertex.kotlin.outputs.AiFeatureOnlineStoreOptimized.Companion.toKotlin as aiFeatureOnlineStoreOptimizedToKotlin

/**
 * Builder for [AiFeatureOnlineStore].
 */
@PulumiTagMarker
public class AiFeatureOnlineStoreResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: AiFeatureOnlineStoreArgs = AiFeatureOnlineStoreArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend AiFeatureOnlineStoreArgsBuilder.() -> Unit) {
        val builder = AiFeatureOnlineStoreArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): AiFeatureOnlineStore {
        val builtJavaResource = com.pulumi.gcp.vertex.AiFeatureOnlineStore(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return AiFeatureOnlineStore(builtJavaResource)
    }
}

/**
 * Vertex AI Feature Online Store provides a centralized repository for serving ML features and embedding indexes at low latency. The Feature Online Store is a top-level container.
 * To get more information about FeatureOnlineStore, see:
 * * [API documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores)
 * * How-to Guides
 *     * [Official Documentation](https://cloud.google.com/vertex-ai/docs)
 * ## Example Usage
 * ### Vertex Ai Feature Online Store
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const featureOnlineStore = new gcp.vertex.AiFeatureOnlineStore("feature_online_store", {
 *     name: "example_feature_online_store",
 *     labels: {
 *         foo: "bar",
 *     },
 *     region: "us-central1",
 *     bigtable: {
 *         autoScaling: {
 *             minNodeCount: 1,
 *             maxNodeCount: 3,
 *             cpuUtilizationTarget: 50,
 *         },
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * feature_online_store = gcp.vertex.AiFeatureOnlineStore("feature_online_store",
 *     name="example_feature_online_store",
 *     labels={
 *         "foo": "bar",
 *     },
 *     region="us-central1",
 *     bigtable=gcp.vertex.AiFeatureOnlineStoreBigtableArgs(
 *         auto_scaling=gcp.vertex.AiFeatureOnlineStoreBigtableAutoScalingArgs(
 *             min_node_count=1,
 *             max_node_count=3,
 *             cpu_utilization_target=50,
 *         ),
 *     ))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var featureOnlineStore = new Gcp.Vertex.AiFeatureOnlineStore("feature_online_store", new()
 *     {
 *         Name = "example_feature_online_store",
 *         Labels =
 *         {
 *             { "foo", "bar" },
 *         },
 *         Region = "us-central1",
 *         Bigtable = new Gcp.Vertex.Inputs.AiFeatureOnlineStoreBigtableArgs
 *         {
 *             AutoScaling = new Gcp.Vertex.Inputs.AiFeatureOnlineStoreBigtableAutoScalingArgs
 *             {
 *                 MinNodeCount = 1,
 *                 MaxNodeCount = 3,
 *                 CpuUtilizationTarget = 50,
 *             },
 *         },
 *     });
 * });
 * ```
 * ```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.NewAiFeatureOnlineStore(ctx, "feature_online_store", &vertex.AiFeatureOnlineStoreArgs{
 * 			Name: pulumi.String("example_feature_online_store"),
 * 			Labels: pulumi.StringMap{
 * 				"foo": pulumi.String("bar"),
 * 			},
 * 			Region: pulumi.String("us-central1"),
 * 			Bigtable: &vertex.AiFeatureOnlineStoreBigtableArgs{
 * 				AutoScaling: &vertex.AiFeatureOnlineStoreBigtableAutoScalingArgs{
 * 					MinNodeCount:         pulumi.Int(1),
 * 					MaxNodeCount:         pulumi.Int(3),
 * 					CpuUtilizationTarget: pulumi.Int(50),
 * 				},
 * 			},
 * 		})
 * 		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.AiFeatureOnlineStore;
 * import com.pulumi.gcp.vertex.AiFeatureOnlineStoreArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureOnlineStoreBigtableArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureOnlineStoreBigtableAutoScalingArgs;
 * 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 featureOnlineStore = new AiFeatureOnlineStore("featureOnlineStore", AiFeatureOnlineStoreArgs.builder()
 *             .name("example_feature_online_store")
 *             .labels(Map.of("foo", "bar"))
 *             .region("us-central1")
 *             .bigtable(AiFeatureOnlineStoreBigtableArgs.builder()
 *                 .autoScaling(AiFeatureOnlineStoreBigtableAutoScalingArgs.builder()
 *                     .minNodeCount(1)
 *                     .maxNodeCount(3)
 *                     .cpuUtilizationTarget(50)
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   featureOnlineStore:
 *     type: gcp:vertex:AiFeatureOnlineStore
 *     name: feature_online_store
 *     properties:
 *       name: example_feature_online_store
 *       labels:
 *         foo: bar
 *       region: us-central1
 *       bigtable:
 *         autoScaling:
 *           minNodeCount: 1
 *           maxNodeCount: 3
 *           cpuUtilizationTarget: 50
 * ```
 * 
 * ### Vertex Ai Featureonlinestore With Beta Fields Optimized
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const project = gcp.organizations.getProject({});
 * const featureonlinestore = new gcp.vertex.AiFeatureOnlineStore("featureonlinestore", {
 *     name: "example_feature_online_store_optimized",
 *     labels: {
 *         foo: "bar",
 *     },
 *     region: "us-central1",
 *     optimized: {},
 *     dedicatedServingEndpoint: {
 *         privateServiceConnectConfig: {
 *             enablePrivateServiceConnect: true,
 *             projectAllowlists: [project.then(project => project.number)],
 *         },
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * project = gcp.organizations.get_project()
 * featureonlinestore = gcp.vertex.AiFeatureOnlineStore("featureonlinestore",
 *     name="example_feature_online_store_optimized",
 *     labels={
 *         "foo": "bar",
 *     },
 *     region="us-central1",
 *     optimized=gcp.vertex.AiFeatureOnlineStoreOptimizedArgs(),
 *     dedicated_serving_endpoint=gcp.vertex.AiFeatureOnlineStoreDedicatedServingEndpointArgs(
 *         private_service_connect_config=gcp.vertex.AiFeatureOnlineStoreDedicatedServingEndpointPrivateServiceConnectConfigArgs(
 *             enable_private_service_connect=True,
 *             project_allowlists=[project.number],
 *         ),
 *     ))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var project = Gcp.Organizations.GetProject.Invoke();
 *     var featureonlinestore = new Gcp.Vertex.AiFeatureOnlineStore("featureonlinestore", new()
 *     {
 *         Name = "example_feature_online_store_optimized",
 *         Labels =
 *         {
 *             { "foo", "bar" },
 *         },
 *         Region = "us-central1",
 *         Optimized = null,
 *         DedicatedServingEndpoint = new Gcp.Vertex.Inputs.AiFeatureOnlineStoreDedicatedServingEndpointArgs
 *         {
 *             PrivateServiceConnectConfig = new Gcp.Vertex.Inputs.AiFeatureOnlineStoreDedicatedServingEndpointPrivateServiceConnectConfigArgs
 *             {
 *                 EnablePrivateServiceConnect = true,
 *                 ProjectAllowlists = new[]
 *                 {
 *                     project.Apply(getProjectResult => getProjectResult.Number),
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations"
 * 	"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 {
 * 		project, err := organizations.LookupProject(ctx, nil, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = vertex.NewAiFeatureOnlineStore(ctx, "featureonlinestore", &vertex.AiFeatureOnlineStoreArgs{
 * 			Name: pulumi.String("example_feature_online_store_optimized"),
 * 			Labels: pulumi.StringMap{
 * 				"foo": pulumi.String("bar"),
 * 			},
 * 			Region:    pulumi.String("us-central1"),
 * 			Optimized: nil,
 * 			DedicatedServingEndpoint: &vertex.AiFeatureOnlineStoreDedicatedServingEndpointArgs{
 * 				PrivateServiceConnectConfig: &vertex.AiFeatureOnlineStoreDedicatedServingEndpointPrivateServiceConnectConfigArgs{
 * 					EnablePrivateServiceConnect: pulumi.Bool(true),
 * 					ProjectAllowlists: pulumi.StringArray{
 * 						pulumi.String(project.Number),
 * 					},
 * 				},
 * 			},
 * 		})
 * 		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.organizations.OrganizationsFunctions;
 * import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
 * import com.pulumi.gcp.vertex.AiFeatureOnlineStore;
 * import com.pulumi.gcp.vertex.AiFeatureOnlineStoreArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureOnlineStoreOptimizedArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureOnlineStoreDedicatedServingEndpointArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureOnlineStoreDedicatedServingEndpointPrivateServiceConnectConfigArgs;
 * 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 project = OrganizationsFunctions.getProject();
 *         var featureonlinestore = new AiFeatureOnlineStore("featureonlinestore", AiFeatureOnlineStoreArgs.builder()
 *             .name("example_feature_online_store_optimized")
 *             .labels(Map.of("foo", "bar"))
 *             .region("us-central1")
 *             .optimized()
 *             .dedicatedServingEndpoint(AiFeatureOnlineStoreDedicatedServingEndpointArgs.builder()
 *                 .privateServiceConnectConfig(AiFeatureOnlineStoreDedicatedServingEndpointPrivateServiceConnectConfigArgs.builder()
 *                     .enablePrivateServiceConnect(true)
 *                     .projectAllowlists(project.applyValue(getProjectResult -> getProjectResult.number()))
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   featureonlinestore:
 *     type: gcp:vertex:AiFeatureOnlineStore
 *     properties:
 *       name: example_feature_online_store_optimized
 *       labels:
 *         foo: bar
 *       region: us-central1
 *       optimized: {}
 *       dedicatedServingEndpoint:
 *         privateServiceConnectConfig:
 *           enablePrivateServiceConnect: true
 *           projectAllowlists:
 *             - ${project.number}
 * variables:
 *   project:
 *     fn::invoke:
 *       Function: gcp:organizations:getProject
 *       Arguments: {}
 * ```
 * 
 * ### Vertex Ai Featureonlinestore With Beta Fields Bigtable
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const featureonlinestore = new gcp.vertex.AiFeatureOnlineStore("featureonlinestore", {
 *     name: "example_feature_online_store_beta_bigtable",
 *     labels: {
 *         foo: "bar",
 *     },
 *     region: "us-central1",
 *     bigtable: {
 *         autoScaling: {
 *             minNodeCount: 1,
 *             maxNodeCount: 2,
 *             cpuUtilizationTarget: 80,
 *         },
 *     },
 *     embeddingManagement: {
 *         enabled: true,
 *     },
 *     forceDestroy: true,
 * });
 * const project = gcp.organizations.getProject({});
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * featureonlinestore = gcp.vertex.AiFeatureOnlineStore("featureonlinestore",
 *     name="example_feature_online_store_beta_bigtable",
 *     labels={
 *         "foo": "bar",
 *     },
 *     region="us-central1",
 *     bigtable=gcp.vertex.AiFeatureOnlineStoreBigtableArgs(
 *         auto_scaling=gcp.vertex.AiFeatureOnlineStoreBigtableAutoScalingArgs(
 *             min_node_count=1,
 *             max_node_count=2,
 *             cpu_utilization_target=80,
 *         ),
 *     ),
 *     embedding_management=gcp.vertex.AiFeatureOnlineStoreEmbeddingManagementArgs(
 *         enabled=True,
 *     ),
 *     force_destroy=True)
 * project = gcp.organizations.get_project()
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var featureonlinestore = new Gcp.Vertex.AiFeatureOnlineStore("featureonlinestore", new()
 *     {
 *         Name = "example_feature_online_store_beta_bigtable",
 *         Labels =
 *         {
 *             { "foo", "bar" },
 *         },
 *         Region = "us-central1",
 *         Bigtable = new Gcp.Vertex.Inputs.AiFeatureOnlineStoreBigtableArgs
 *         {
 *             AutoScaling = new Gcp.Vertex.Inputs.AiFeatureOnlineStoreBigtableAutoScalingArgs
 *             {
 *                 MinNodeCount = 1,
 *                 MaxNodeCount = 2,
 *                 CpuUtilizationTarget = 80,
 *             },
 *         },
 *         EmbeddingManagement = new Gcp.Vertex.Inputs.AiFeatureOnlineStoreEmbeddingManagementArgs
 *         {
 *             Enabled = true,
 *         },
 *         ForceDestroy = true,
 *     });
 *     var project = Gcp.Organizations.GetProject.Invoke();
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations"
 * 	"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.NewAiFeatureOnlineStore(ctx, "featureonlinestore", &vertex.AiFeatureOnlineStoreArgs{
 * 			Name: pulumi.String("example_feature_online_store_beta_bigtable"),
 * 			Labels: pulumi.StringMap{
 * 				"foo": pulumi.String("bar"),
 * 			},
 * 			Region: pulumi.String("us-central1"),
 * 			Bigtable: &vertex.AiFeatureOnlineStoreBigtableArgs{
 * 				AutoScaling: &vertex.AiFeatureOnlineStoreBigtableAutoScalingArgs{
 * 					MinNodeCount:         pulumi.Int(1),
 * 					MaxNodeCount:         pulumi.Int(2),
 * 					CpuUtilizationTarget: pulumi.Int(80),
 * 				},
 * 			},
 * 			EmbeddingManagement: &vertex.AiFeatureOnlineStoreEmbeddingManagementArgs{
 * 				Enabled: pulumi.Bool(true),
 * 			},
 * 			ForceDestroy: pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = organizations.LookupProject(ctx, nil, nil)
 * 		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.AiFeatureOnlineStore;
 * import com.pulumi.gcp.vertex.AiFeatureOnlineStoreArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureOnlineStoreBigtableArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureOnlineStoreBigtableAutoScalingArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureOnlineStoreEmbeddingManagementArgs;
 * import com.pulumi.gcp.organizations.OrganizationsFunctions;
 * import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
 * 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 featureonlinestore = new AiFeatureOnlineStore("featureonlinestore", AiFeatureOnlineStoreArgs.builder()
 *             .name("example_feature_online_store_beta_bigtable")
 *             .labels(Map.of("foo", "bar"))
 *             .region("us-central1")
 *             .bigtable(AiFeatureOnlineStoreBigtableArgs.builder()
 *                 .autoScaling(AiFeatureOnlineStoreBigtableAutoScalingArgs.builder()
 *                     .minNodeCount(1)
 *                     .maxNodeCount(2)
 *                     .cpuUtilizationTarget(80)
 *                     .build())
 *                 .build())
 *             .embeddingManagement(AiFeatureOnlineStoreEmbeddingManagementArgs.builder()
 *                 .enabled(true)
 *                 .build())
 *             .forceDestroy(true)
 *             .build());
 *         final var project = OrganizationsFunctions.getProject();
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   featureonlinestore:
 *     type: gcp:vertex:AiFeatureOnlineStore
 *     properties:
 *       name: example_feature_online_store_beta_bigtable
 *       labels:
 *         foo: bar
 *       region: us-central1
 *       bigtable:
 *         autoScaling:
 *           minNodeCount: 1
 *           maxNodeCount: 2
 *           cpuUtilizationTarget: 80
 *       embeddingManagement:
 *         enabled: true
 *       forceDestroy: true
 * variables:
 *   project:
 *     fn::invoke:
 *       Function: gcp:organizations:getProject
 *       Arguments: {}
 * ```
 * 
 * ## Import
 * FeatureOnlineStore can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{region}}/featureOnlineStores/{{name}}`
 * * `{{project}}/{{region}}/{{name}}`
 * * `{{region}}/{{name}}`
 * * `{{name}}`
 * When using the `pulumi import` command, FeatureOnlineStore can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:vertex/aiFeatureOnlineStore:AiFeatureOnlineStore default projects/{{project}}/locations/{{region}}/featureOnlineStores/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:vertex/aiFeatureOnlineStore:AiFeatureOnlineStore default {{project}}/{{region}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:vertex/aiFeatureOnlineStore:AiFeatureOnlineStore default {{region}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:vertex/aiFeatureOnlineStore:AiFeatureOnlineStore default {{name}}
 * ```
 */
public class AiFeatureOnlineStore internal constructor(
    override val javaResource: com.pulumi.gcp.vertex.AiFeatureOnlineStore,
) : KotlinCustomResource(javaResource, AiFeatureOnlineStoreMapper) {
    /**
     * Settings for Cloud Bigtable instance that will be created to serve featureValues for all FeatureViews under this FeatureOnlineStore.
     * Structure is documented below.
     */
    public val bigtable: Output?
        get() = javaResource.bigtable().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    aiFeatureOnlineStoreBigtableToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * The timestamp of when the feature online store was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
     */
    public val createTime: Output
        get() = javaResource.createTime().applyValue({ args0 -> args0 })

    /**
     * The dedicated serving endpoint for this FeatureOnlineStore, which is different from common vertex service endpoint. Only need to set when you choose Optimized storage type or enable EmbeddingManagement. Will use public endpoint by default.
     * Structure is documented below.
     */
    public val dedicatedServingEndpoint: Output
        get() = javaResource.dedicatedServingEndpoint().applyValue({ args0 ->
            args0.let({ args0 ->
                aiFeatureOnlineStoreDedicatedServingEndpointToKotlin(args0)
            })
        })

    /**
     * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
     */
    public val effectiveLabels: Output>
        get() = javaResource.effectiveLabels().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.key.to(args0.value)
            }).toMap()
        })

    /**
     * The settings for embedding management in FeatureOnlineStore. Embedding management can only be used with BigTable.
     * Structure is documented below.
     */
    public val embeddingManagement: Output?
        get() = javaResource.embeddingManagement().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    aiFeatureOnlineStoreEmbeddingManagementToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * Used to perform consistent read-modify-write updates.
     */
    public val etag: Output
        get() = javaResource.etag().applyValue({ args0 -> args0 })

    /**
     * If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be deleted.
     */
    public val forceDestroy: Output?
        get() = javaResource.forceDestroy().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The labels with user-defined metadata to organize your feature online stores.
     * **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.
     */
    public val labels: Output>?
        get() = javaResource.labels().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }).orElse(null)
        })

    /**
     * The resource name of the Feature Online Store. This value may be up to 60 characters, and valid characters are [a-z0-9_]. The first character cannot be a number.
     * - - -
     */
    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    /**
     * Settings for the Optimized store that will be created to serve featureValues for all FeatureViews under this FeatureOnlineStore
     */
    public val optimized: Output?
        get() = javaResource.optimized().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    aiFeatureOnlineStoreOptimizedToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    public val project: Output
        get() = javaResource.project().applyValue({ args0 -> args0 })

    /**
     * The combination of labels configured directly on the resource
     * and default labels configured on the provider.
     */
    public val pulumiLabels: Output>
        get() = javaResource.pulumiLabels().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.key.to(args0.value)
            }).toMap()
        })

    /**
     * The region of feature online store. eg us-central1
     */
    public val region: Output
        get() = javaResource.region().applyValue({ args0 -> args0 })

    /**
     * The state of the Feature Online Store. See the possible states in [this link](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores#state).
     */
    public val state: Output
        get() = javaResource.state().applyValue({ args0 -> args0 })

    /**
     * The timestamp of when the feature online store was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
     */
    public val updateTime: Output
        get() = javaResource.updateTime().applyValue({ args0 -> args0 })
}

public object AiFeatureOnlineStoreMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.gcp.vertex.AiFeatureOnlineStore::class == javaResource::class

    override fun map(javaResource: Resource): AiFeatureOnlineStore = AiFeatureOnlineStore(
        javaResource
            as com.pulumi.gcp.vertex.AiFeatureOnlineStore,
    )
}

/**
 * @see [AiFeatureOnlineStore].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [AiFeatureOnlineStore].
 */
public suspend fun aiFeatureOnlineStore(
    name: String,
    block: suspend AiFeatureOnlineStoreResourceBuilder.() -> Unit,
): AiFeatureOnlineStore {
    val builder = AiFeatureOnlineStoreResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [AiFeatureOnlineStore].
 * @param name The _unique_ name of the resulting resource.
 */
public fun aiFeatureOnlineStore(name: String): AiFeatureOnlineStore {
    val builder = AiFeatureOnlineStoreResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy