com.pulumi.gcp.vertex.kotlin.AiFeatureStoreArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy