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

com.pulumi.gcp.vertex.kotlin.AiFeatureStoreArgs.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.core.Output.of
import com.pulumi.gcp.vertex.AiFeatureStoreArgs.builder
import com.pulumi.gcp.vertex.kotlin.inputs.AiFeatureStoreEncryptionSpecArgs
import com.pulumi.gcp.vertex.kotlin.inputs.AiFeatureStoreEncryptionSpecArgsBuilder
import com.pulumi.gcp.vertex.kotlin.inputs.AiFeatureStoreOnlineServingConfigArgs
import com.pulumi.gcp.vertex.kotlin.inputs.AiFeatureStoreOnlineServingConfigArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A collection of DataItems and Annotations on them.
 * To get more information about Featurestore, see:
 * * [API documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores)
 * * How-to Guides
 *     * [Official Documentation](https://cloud.google.com/vertex-ai/docs)
 * ## Example Usage
 * ### Vertex Ai Featurestore
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const featurestore = new gcp.vertex.AiFeatureStore("featurestore", {
 *     name: "terraform",
 *     labels: {
 *         foo: "bar",
 *     },
 *     region: "us-central1",
 *     onlineServingConfig: {
 *         fixedNodeCount: 2,
 *     },
 *     encryptionSpec: {
 *         kmsKeyName: "kms-name",
 *     },
 *     forceDestroy: true,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * featurestore = gcp.vertex.AiFeatureStore("featurestore",
 *     name="terraform",
 *     labels={
 *         "foo": "bar",
 *     },
 *     region="us-central1",
 *     online_serving_config=gcp.vertex.AiFeatureStoreOnlineServingConfigArgs(
 *         fixed_node_count=2,
 *     ),
 *     encryption_spec=gcp.vertex.AiFeatureStoreEncryptionSpecArgs(
 *         kms_key_name="kms-name",
 *     ),
 *     force_destroy=True)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var featurestore = new Gcp.Vertex.AiFeatureStore("featurestore", new()
 *     {
 *         Name = "terraform",
 *         Labels =
 *         {
 *             { "foo", "bar" },
 *         },
 *         Region = "us-central1",
 *         OnlineServingConfig = new Gcp.Vertex.Inputs.AiFeatureStoreOnlineServingConfigArgs
 *         {
 *             FixedNodeCount = 2,
 *         },
 *         EncryptionSpec = new Gcp.Vertex.Inputs.AiFeatureStoreEncryptionSpecArgs
 *         {
 *             KmsKeyName = "kms-name",
 *         },
 *         ForceDestroy = true,
 *     });
 * });
 * ```
 * ```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.NewAiFeatureStore(ctx, "featurestore", &vertex.AiFeatureStoreArgs{
 * 			Name: pulumi.String("terraform"),
 * 			Labels: pulumi.StringMap{
 * 				"foo": pulumi.String("bar"),
 * 			},
 * 			Region: pulumi.String("us-central1"),
 * 			OnlineServingConfig: &vertex.AiFeatureStoreOnlineServingConfigArgs{
 * 				FixedNodeCount: pulumi.Int(2),
 * 			},
 * 			EncryptionSpec: &vertex.AiFeatureStoreEncryptionSpecArgs{
 * 				KmsKeyName: pulumi.String("kms-name"),
 * 			},
 * 			ForceDestroy: pulumi.Bool(true),
 * 		})
 * 		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.AiFeatureStore;
 * import com.pulumi.gcp.vertex.AiFeatureStoreArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureStoreOnlineServingConfigArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureStoreEncryptionSpecArgs;
 * 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 featurestore = new AiFeatureStore("featurestore", AiFeatureStoreArgs.builder()
 *             .name("terraform")
 *             .labels(Map.of("foo", "bar"))
 *             .region("us-central1")
 *             .onlineServingConfig(AiFeatureStoreOnlineServingConfigArgs.builder()
 *                 .fixedNodeCount(2)
 *                 .build())
 *             .encryptionSpec(AiFeatureStoreEncryptionSpecArgs.builder()
 *                 .kmsKeyName("kms-name")
 *                 .build())
 *             .forceDestroy(true)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   featurestore:
 *     type: gcp:vertex:AiFeatureStore
 *     properties:
 *       name: terraform
 *       labels:
 *         foo: bar
 *       region: us-central1
 *       onlineServingConfig:
 *         fixedNodeCount: 2
 *       encryptionSpec:
 *         kmsKeyName: kms-name
 *       forceDestroy: true
 * ```
 * 
 * ### Vertex Ai Featurestore With Beta Fields
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const featurestore = new gcp.vertex.AiFeatureStore("featurestore", {
 *     name: "terraform2",
 *     labels: {
 *         foo: "bar",
 *     },
 *     region: "us-central1",
 *     onlineServingConfig: {
 *         fixedNodeCount: 2,
 *     },
 *     encryptionSpec: {
 *         kmsKeyName: "kms-name",
 *     },
 *     onlineStorageTtlDays: 30,
 *     forceDestroy: true,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * featurestore = gcp.vertex.AiFeatureStore("featurestore",
 *     name="terraform2",
 *     labels={
 *         "foo": "bar",
 *     },
 *     region="us-central1",
 *     online_serving_config=gcp.vertex.AiFeatureStoreOnlineServingConfigArgs(
 *         fixed_node_count=2,
 *     ),
 *     encryption_spec=gcp.vertex.AiFeatureStoreEncryptionSpecArgs(
 *         kms_key_name="kms-name",
 *     ),
 *     online_storage_ttl_days=30,
 *     force_destroy=True)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var featurestore = new Gcp.Vertex.AiFeatureStore("featurestore", new()
 *     {
 *         Name = "terraform2",
 *         Labels =
 *         {
 *             { "foo", "bar" },
 *         },
 *         Region = "us-central1",
 *         OnlineServingConfig = new Gcp.Vertex.Inputs.AiFeatureStoreOnlineServingConfigArgs
 *         {
 *             FixedNodeCount = 2,
 *         },
 *         EncryptionSpec = new Gcp.Vertex.Inputs.AiFeatureStoreEncryptionSpecArgs
 *         {
 *             KmsKeyName = "kms-name",
 *         },
 *         OnlineStorageTtlDays = 30,
 *         ForceDestroy = true,
 *     });
 * });
 * ```
 * ```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.NewAiFeatureStore(ctx, "featurestore", &vertex.AiFeatureStoreArgs{
 * 			Name: pulumi.String("terraform2"),
 * 			Labels: pulumi.StringMap{
 * 				"foo": pulumi.String("bar"),
 * 			},
 * 			Region: pulumi.String("us-central1"),
 * 			OnlineServingConfig: &vertex.AiFeatureStoreOnlineServingConfigArgs{
 * 				FixedNodeCount: pulumi.Int(2),
 * 			},
 * 			EncryptionSpec: &vertex.AiFeatureStoreEncryptionSpecArgs{
 * 				KmsKeyName: pulumi.String("kms-name"),
 * 			},
 * 			OnlineStorageTtlDays: pulumi.Int(30),
 * 			ForceDestroy:         pulumi.Bool(true),
 * 		})
 * 		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.AiFeatureStore;
 * import com.pulumi.gcp.vertex.AiFeatureStoreArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureStoreOnlineServingConfigArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureStoreEncryptionSpecArgs;
 * 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 featurestore = new AiFeatureStore("featurestore", AiFeatureStoreArgs.builder()
 *             .name("terraform2")
 *             .labels(Map.of("foo", "bar"))
 *             .region("us-central1")
 *             .onlineServingConfig(AiFeatureStoreOnlineServingConfigArgs.builder()
 *                 .fixedNodeCount(2)
 *                 .build())
 *             .encryptionSpec(AiFeatureStoreEncryptionSpecArgs.builder()
 *                 .kmsKeyName("kms-name")
 *                 .build())
 *             .onlineStorageTtlDays(30)
 *             .forceDestroy(true)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   featurestore:
 *     type: gcp:vertex:AiFeatureStore
 *     properties:
 *       name: terraform2
 *       labels:
 *         foo: bar
 *       region: us-central1
 *       onlineServingConfig:
 *         fixedNodeCount: 2
 *       encryptionSpec:
 *         kmsKeyName: kms-name
 *       onlineStorageTtlDays: 30
 *       forceDestroy: true
 * ```
 * 
 * ### Vertex Ai Featurestore Scaling
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const featurestore = new gcp.vertex.AiFeatureStore("featurestore", {
 *     name: "terraform3",
 *     labels: {
 *         foo: "bar",
 *     },
 *     region: "us-central1",
 *     onlineServingConfig: {
 *         scaling: {
 *             minNodeCount: 2,
 *             maxNodeCount: 10,
 *         },
 *     },
 *     encryptionSpec: {
 *         kmsKeyName: "kms-name",
 *     },
 *     forceDestroy: true,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * featurestore = gcp.vertex.AiFeatureStore("featurestore",
 *     name="terraform3",
 *     labels={
 *         "foo": "bar",
 *     },
 *     region="us-central1",
 *     online_serving_config=gcp.vertex.AiFeatureStoreOnlineServingConfigArgs(
 *         scaling=gcp.vertex.AiFeatureStoreOnlineServingConfigScalingArgs(
 *             min_node_count=2,
 *             max_node_count=10,
 *         ),
 *     ),
 *     encryption_spec=gcp.vertex.AiFeatureStoreEncryptionSpecArgs(
 *         kms_key_name="kms-name",
 *     ),
 *     force_destroy=True)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var featurestore = new Gcp.Vertex.AiFeatureStore("featurestore", new()
 *     {
 *         Name = "terraform3",
 *         Labels =
 *         {
 *             { "foo", "bar" },
 *         },
 *         Region = "us-central1",
 *         OnlineServingConfig = new Gcp.Vertex.Inputs.AiFeatureStoreOnlineServingConfigArgs
 *         {
 *             Scaling = new Gcp.Vertex.Inputs.AiFeatureStoreOnlineServingConfigScalingArgs
 *             {
 *                 MinNodeCount = 2,
 *                 MaxNodeCount = 10,
 *             },
 *         },
 *         EncryptionSpec = new Gcp.Vertex.Inputs.AiFeatureStoreEncryptionSpecArgs
 *         {
 *             KmsKeyName = "kms-name",
 *         },
 *         ForceDestroy = true,
 *     });
 * });
 * ```
 * ```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.NewAiFeatureStore(ctx, "featurestore", &vertex.AiFeatureStoreArgs{
 * 			Name: pulumi.String("terraform3"),
 * 			Labels: pulumi.StringMap{
 * 				"foo": pulumi.String("bar"),
 * 			},
 * 			Region: pulumi.String("us-central1"),
 * 			OnlineServingConfig: &vertex.AiFeatureStoreOnlineServingConfigArgs{
 * 				Scaling: &vertex.AiFeatureStoreOnlineServingConfigScalingArgs{
 * 					MinNodeCount: pulumi.Int(2),
 * 					MaxNodeCount: pulumi.Int(10),
 * 				},
 * 			},
 * 			EncryptionSpec: &vertex.AiFeatureStoreEncryptionSpecArgs{
 * 				KmsKeyName: pulumi.String("kms-name"),
 * 			},
 * 			ForceDestroy: pulumi.Bool(true),
 * 		})
 * 		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.AiFeatureStore;
 * import com.pulumi.gcp.vertex.AiFeatureStoreArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureStoreOnlineServingConfigArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureStoreOnlineServingConfigScalingArgs;
 * import com.pulumi.gcp.vertex.inputs.AiFeatureStoreEncryptionSpecArgs;
 * 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 featurestore = new AiFeatureStore("featurestore", AiFeatureStoreArgs.builder()
 *             .name("terraform3")
 *             .labels(Map.of("foo", "bar"))
 *             .region("us-central1")
 *             .onlineServingConfig(AiFeatureStoreOnlineServingConfigArgs.builder()
 *                 .scaling(AiFeatureStoreOnlineServingConfigScalingArgs.builder()
 *                     .minNodeCount(2)
 *                     .maxNodeCount(10)
 *                     .build())
 *                 .build())
 *             .encryptionSpec(AiFeatureStoreEncryptionSpecArgs.builder()
 *                 .kmsKeyName("kms-name")
 *                 .build())
 *             .forceDestroy(true)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   featurestore:
 *     type: gcp:vertex:AiFeatureStore
 *     properties:
 *       name: terraform3
 *       labels:
 *         foo: bar
 *       region: us-central1
 *       onlineServingConfig:
 *         scaling:
 *           minNodeCount: 2
 *           maxNodeCount: 10
 *       encryptionSpec:
 *         kmsKeyName: kms-name
 *       forceDestroy: true
 * ```
 * 
 * ## Import
 * Featurestore can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{region}}/featurestores/{{name}}`
 * * `{{project}}/{{region}}/{{name}}`
 * * `{{region}}/{{name}}`
 * * `{{name}}`
 * When using the `pulumi import` command, Featurestore can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:vertex/aiFeatureStore:AiFeatureStore default projects/{{project}}/locations/{{region}}/featurestores/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:vertex/aiFeatureStore:AiFeatureStore default {{project}}/{{region}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:vertex/aiFeatureStore:AiFeatureStore default {{region}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:vertex/aiFeatureStore:AiFeatureStore default {{name}}
 * ```
 * @property encryptionSpec If set, both of the online and offline data storage will be secured by this key.
 * Structure is documented below.
 * @property forceDestroy If set to true, any EntityTypes and Features for this Featurestore will also be deleted
 * @property labels A set of key/value label pairs to assign to this Featurestore.
 * **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 name The name of the Featurestore. This value may be up to 60 characters, and valid characters are [a-z0-9_]. The first character cannot be a number.
 * @property onlineServingConfig Config for online serving resources.
 * Structure is documented below.
 * @property onlineStorageTtlDays TTL in days for feature values that will be stored in online serving storage. The Feature Store online storage periodically removes obsolete feature values older than onlineStorageTtlDays since the feature generation time. Note that onlineStorageTtlDays should be less than or equal to offlineStorageTtlDays for each EntityType under a featurestore. If not set, default to 4000 days
 * @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 dataset. eg us-central1
 */
public data class AiFeatureStoreArgs(
    public val encryptionSpec: Output? = null,
    public val forceDestroy: Output? = null,
    public val labels: Output>? = null,
    public val name: Output? = null,
    public val onlineServingConfig: Output? = null,
    public val onlineStorageTtlDays: Output? = null,
    public val project: Output? = null,
    public val region: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vertex.AiFeatureStoreArgs =
        com.pulumi.gcp.vertex.AiFeatureStoreArgs.builder()
            .encryptionSpec(encryptionSpec?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .forceDestroy(forceDestroy?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .name(name?.applyValue({ args0 -> args0 }))
            .onlineServingConfig(
                onlineServingConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .onlineStorageTtlDays(onlineStorageTtlDays?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AiFeatureStoreArgs].
 */
@PulumiTagMarker
public class AiFeatureStoreArgsBuilder internal constructor() {
    private var encryptionSpec: Output? = null

    private var forceDestroy: Output? = null

    private var labels: Output>? = null

    private var name: Output? = null

    private var onlineServingConfig: Output? = null

    private var onlineStorageTtlDays: Output? = null

    private var project: Output? = null

    private var region: Output? = null

    /**
     * @param value If set, both of the online and offline data storage will be secured by this key.
     * Structure is documented below.
     */
    @JvmName("ixloujkowfhwboxx")
    public suspend fun encryptionSpec(`value`: Output) {
        this.encryptionSpec = value
    }

    /**
     * @param value If set to true, any EntityTypes and Features for this Featurestore will also be deleted
     */
    @JvmName("efmemqdareofbbmm")
    public suspend fun forceDestroy(`value`: Output) {
        this.forceDestroy = value
    }

    /**
     * @param value A set of key/value label pairs to assign to this Featurestore.
     * **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("kxfhcyxrlyqvkqds")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

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

    /**
     * @param value Config for online serving resources.
     * Structure is documented below.
     */
    @JvmName("ihjoxvdatmwytqlg")
    public suspend fun onlineServingConfig(`value`: Output) {
        this.onlineServingConfig = value
    }

    /**
     * @param value TTL in days for feature values that will be stored in online serving storage. The Feature Store online storage periodically removes obsolete feature values older than onlineStorageTtlDays since the feature generation time. Note that onlineStorageTtlDays should be less than or equal to offlineStorageTtlDays for each EntityType under a featurestore. If not set, default to 4000 days
     */
    @JvmName("ioipwtrlkifxsnuk")
    public suspend fun onlineStorageTtlDays(`value`: Output) {
        this.onlineStorageTtlDays = value
    }

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

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

    /**
     * @param value If set, both of the online and offline data storage will be secured by this key.
     * Structure is documented below.
     */
    @JvmName("lwvgubtwxbssqole")
    public suspend fun encryptionSpec(`value`: AiFeatureStoreEncryptionSpecArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionSpec = mapped
    }

    /**
     * @param argument If set, both of the online and offline data storage will be secured by this key.
     * Structure is documented below.
     */
    @JvmName("wbiuhxeokybudwpc")
    public suspend fun encryptionSpec(argument: suspend AiFeatureStoreEncryptionSpecArgsBuilder.() -> Unit) {
        val toBeMapped = AiFeatureStoreEncryptionSpecArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryptionSpec = mapped
    }

    /**
     * @param value If set to true, any EntityTypes and Features for this Featurestore will also be deleted
     */
    @JvmName("atogkublixccnbof")
    public suspend fun forceDestroy(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.forceDestroy = mapped
    }

    /**
     * @param value A set of key/value label pairs to assign to this Featurestore.
     * **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("ntgsrkiutqkisgpd")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values A set of key/value label pairs to assign to this Featurestore.
     * **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("ygipwshoudxxpotp")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

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

    /**
     * @param value Config for online serving resources.
     * Structure is documented below.
     */
    @JvmName("pilkevkordyxtnoc")
    public suspend fun onlineServingConfig(`value`: AiFeatureStoreOnlineServingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onlineServingConfig = mapped
    }

    /**
     * @param argument Config for online serving resources.
     * Structure is documented below.
     */
    @JvmName("cepmmnxsuoqclmey")
    public suspend fun onlineServingConfig(argument: suspend AiFeatureStoreOnlineServingConfigArgsBuilder.() -> Unit) {
        val toBeMapped = AiFeatureStoreOnlineServingConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.onlineServingConfig = mapped
    }

    /**
     * @param value TTL in days for feature values that will be stored in online serving storage. The Feature Store online storage periodically removes obsolete feature values older than onlineStorageTtlDays since the feature generation time. Note that onlineStorageTtlDays should be less than or equal to offlineStorageTtlDays for each EntityType under a featurestore. If not set, default to 4000 days
     */
    @JvmName("pyfcowokyvawpqsy")
    public suspend fun onlineStorageTtlDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onlineStorageTtlDays = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("efxurkifjlnhnwuf")
    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 dataset. eg us-central1
     */
    @JvmName("jlpfubuidrltkcyx")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    internal fun build(): AiFeatureStoreArgs = AiFeatureStoreArgs(
        encryptionSpec = encryptionSpec,
        forceDestroy = forceDestroy,
        labels = labels,
        name = name,
        onlineServingConfig = onlineServingConfig,
        onlineStorageTtlDays = onlineStorageTtlDays,
        project = project,
        region = region,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy