AiFeatureStoreArgs

data class AiFeatureStoreArgs(val encryptionSpec: Output<AiFeatureStoreEncryptionSpecArgs>? = null, val forceDestroy: Output<Boolean>? = null, val labels: Output<Map<String, String>>? = null, val name: Output<String>? = null, val onlineServingConfig: Output<AiFeatureStoreOnlineServingConfigArgs>? = null, val onlineStorageTtlDays: Output<Int>? = null, val project: Output<String>? = null, val region: Output<String>? = null) : ConvertibleToJava<AiFeatureStoreArgs>

A collection of DataItems and Annotations on them. To get more information about Featurestore, see:

Example Usage

Vertex Ai Featurestore

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,
});
import pulumi
import pulumi_gcp as gcp
featurestore = gcp.vertex.AiFeatureStore("featurestore",
name="terraform",
labels={
"foo": "bar",
},
region="us-central1",
online_serving_config={
"fixed_node_count": 2,
},
encryption_spec={
"kms_key_name": "kms-name",
},
force_destroy=True)
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,
});
});
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
})
}
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());
}
}
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

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,
});
import pulumi
import pulumi_gcp as gcp
featurestore = gcp.vertex.AiFeatureStore("featurestore",
name="terraform2",
labels={
"foo": "bar",
},
region="us-central1",
online_serving_config={
"fixed_node_count": 2,
},
encryption_spec={
"kms_key_name": "kms-name",
},
online_storage_ttl_days=30,
force_destroy=True)
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,
});
});
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
})
}
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());
}
}
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

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,
});
import pulumi
import pulumi_gcp as gcp
featurestore = gcp.vertex.AiFeatureStore("featurestore",
name="terraform3",
labels={
"foo": "bar",
},
region="us-central1",
online_serving_config={
"scaling": {
"min_node_count": 2,
"max_node_count": 10,
},
},
encryption_spec={
"kms_key_name": "kms-name",
},
force_destroy=True)
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,
});
});
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
})
}
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());
}
}
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:

$ pulumi import gcp:vertex/aiFeatureStore:AiFeatureStore default projects/{{project}}/locations/{{region}}/featurestores/{{name}}
$ pulumi import gcp:vertex/aiFeatureStore:AiFeatureStore default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:vertex/aiFeatureStore:AiFeatureStore default {{region}}/{{name}}
$ pulumi import gcp:vertex/aiFeatureStore:AiFeatureStore default {{name}}

Constructors

Link copied to clipboard
constructor(encryptionSpec: Output<AiFeatureStoreEncryptionSpecArgs>? = null, forceDestroy: Output<Boolean>? = null, labels: Output<Map<String, String>>? = null, name: Output<String>? = null, onlineServingConfig: Output<AiFeatureStoreOnlineServingConfigArgs>? = null, onlineStorageTtlDays: Output<Int>? = null, project: Output<String>? = null, region: Output<String>? = null)

Properties

Link copied to clipboard

If set, both of the online and offline data storage will be secured by this key. Structure is documented below.

Link copied to clipboard
val forceDestroy: Output<Boolean>? = null

If set to true, any EntityTypes and Features for this Featurestore will also be deleted

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

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.

Link copied to clipboard
val name: Output<String>? = null

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.

Link copied to clipboard

Config for online serving resources. Structure is documented below.

Link copied to clipboard
val onlineStorageTtlDays: Output<Int>? = null

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

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val region: Output<String>? = null

The region of the dataset. eg us-central1

Functions

Link copied to clipboard
open override fun toJava(): AiFeatureStoreArgs