AiFeatureStoreEntityTypeFeature class

Feature Metadata information that describes an attribute of an entity type. For example, apple is an entity type, and color is a feature that describes apple.

To get more information about FeaturestoreEntitytypeFeature, see:

Example Usage

Vertex Ai Featurestore Entitytype Feature

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,
    },
});
const entity = new gcp.vertex.AiFeatureStoreEntityType("entity", {
    name: "terraform",
    labels: {
        foo: "bar",
    },
    featurestore: featurestore.id,
});
const feature = new gcp.vertex.AiFeatureStoreEntityTypeFeature("feature", {
    name: "terraform",
    labels: {
        foo: "bar",
    },
    entitytype: entity.id,
    valueType: "INT64_ARRAY",
});
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,
    })
entity = gcp.vertex.AiFeatureStoreEntityType("entity",
    name="terraform",
    labels={
        "foo": "bar",
    },
    featurestore=featurestore.id)
feature = gcp.vertex.AiFeatureStoreEntityTypeFeature("feature",
    name="terraform",
    labels={
        "foo": "bar",
    },
    entitytype=entity.id,
    value_type="INT64_ARRAY")
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,
        },
    });

    var entity = new Gcp.Vertex.AiFeatureStoreEntityType("entity", new()
    {
        Name = "terraform",
        Labels =
        {
            { "foo", "bar" },
        },
        Featurestore = featurestore.Id,
    });

    var feature = new Gcp.Vertex.AiFeatureStoreEntityTypeFeature("feature", new()
    {
        Name = "terraform",
        Labels =
        {
            { "foo", "bar" },
        },
        Entitytype = entity.Id,
        ValueType = "INT64_ARRAY",
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/vertex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		featurestore, 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),
			},
		})
		if err != nil {
			return err
		}
		entity, err := vertex.NewAiFeatureStoreEntityType(ctx, "entity", &vertex.AiFeatureStoreEntityTypeArgs{
			Name: pulumi.String("terraform"),
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
			Featurestore: featurestore.ID().ToIDOutput().ToStringOutput(),
		})
		if err != nil {
			return err
		}
		_, err = vertex.NewAiFeatureStoreEntityTypeFeature(ctx, "feature", &vertex.AiFeatureStoreEntityTypeFeatureArgs{
			Name: pulumi.String("terraform"),
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
			Entitytype: entity.ID().ToIDOutput().ToStringOutput(),
			ValueType:  pulumi.String("INT64_ARRAY"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    gcp = {
      source = "pulumi/gcp"
    }
  }
}

resource "gcp_vertex_aifeaturestore" "featurestore" {
  name = "terraform"
  labels = {
    "foo" = "bar"
  }
  region = "us-central1"
  online_serving_config = {
    fixed_node_count = 2
  }
}
resource "gcp_vertex_aifeaturestoreentitytype" "entity" {
  name = "terraform"
  labels = {
    "foo" = "bar"
  }
  featurestore = gcp_vertex_aifeaturestore.featurestore.id
}
resource "gcp_vertex_aifeaturestoreentitytypefeature" "feature" {
  name = "terraform"
  labels = {
    "foo" = "bar"
  }
  entitytype = gcp_vertex_aifeaturestoreentitytype.entity.id
  value_type = "INT64_ARRAY"
}
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.AiFeatureStoreEntityType;
import com.pulumi.gcp.vertex.AiFeatureStoreEntityTypeArgs;
import com.pulumi.gcp.vertex.AiFeatureStoreEntityTypeFeature;
import com.pulumi.gcp.vertex.AiFeatureStoreEntityTypeFeatureArgs;
import java.util.ArrayList;
import java.util.Arrays;
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())
            .build());

        var entity = new AiFeatureStoreEntityType("entity", AiFeatureStoreEntityTypeArgs.builder()
            .name("terraform")
            .labels(Map.of("foo", "bar"))
            .featurestore(featurestore.id())
            .build());

        var feature = new AiFeatureStoreEntityTypeFeature("feature", AiFeatureStoreEntityTypeFeatureArgs.builder()
            .name("terraform")
            .labels(Map.of("foo", "bar"))
            .entitytype(entity.id())
            .valueType("INT64_ARRAY")
            .build());

    }
}
resources:
  featurestore:
    type: gcp:vertex:AiFeatureStore
    properties:
      name: terraform
      labels:
        foo: bar
      region: us-central1
      onlineServingConfig:
        fixedNodeCount: 2
  entity:
    type: gcp:vertex:AiFeatureStoreEntityType
    properties:
      name: terraform
      labels:
        foo: bar
      featurestore: ${featurestore.id}
  feature:
    type: gcp:vertex:AiFeatureStoreEntityTypeFeature
    properties:
      name: terraform
      labels:
        foo: bar
      entitytype: ${entity.id}
      valueType: INT64_ARRAY

Vertex Ai Featurestore Entitytype Feature 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,
    },
});
const entity = new gcp.vertex.AiFeatureStoreEntityType("entity", {
    name: "terraform2",
    labels: {
        foo: "bar",
    },
    featurestore: featurestore.id,
    monitoringConfig: {
        snapshotAnalysis: {
            disabled: false,
            monitoringInterval: "86400s",
        },
        categoricalThresholdConfig: {
            value: 0.3,
        },
        numericalThresholdConfig: {
            value: 0.3,
        },
    },
});
const feature = new gcp.vertex.AiFeatureStoreEntityTypeFeature("feature", {
    name: "terraform2",
    labels: {
        foo: "bar",
    },
    entitytype: entity.id,
    valueType: "INT64_ARRAY",
});
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,
    })
entity = gcp.vertex.AiFeatureStoreEntityType("entity",
    name="terraform2",
    labels={
        "foo": "bar",
    },
    featurestore=featurestore.id,
    monitoring_config={
        "snapshot_analysis": {
            "disabled": False,
            "monitoring_interval": "86400s",
        },
        "categorical_threshold_config": {
            "value": 0.3,
        },
        "numerical_threshold_config": {
            "value": 0.3,
        },
    })
feature = gcp.vertex.AiFeatureStoreEntityTypeFeature("feature",
    name="terraform2",
    labels={
        "foo": "bar",
    },
    entitytype=entity.id,
    value_type="INT64_ARRAY")
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,
        },
    });

    var entity = new Gcp.Vertex.AiFeatureStoreEntityType("entity", new()
    {
        Name = "terraform2",
        Labels =
        {
            { "foo", "bar" },
        },
        Featurestore = featurestore.Id,
        MonitoringConfig = new Gcp.Vertex.Inputs.AiFeatureStoreEntityTypeMonitoringConfigArgs
        {
            SnapshotAnalysis = new Gcp.Vertex.Inputs.AiFeatureStoreEntityTypeMonitoringConfigSnapshotAnalysisArgs
            {
                Disabled = false,
                MonitoringInterval = "86400s",
            },
            CategoricalThresholdConfig = new Gcp.Vertex.Inputs.AiFeatureStoreEntityTypeMonitoringConfigCategoricalThresholdConfigArgs
            {
                Value = 0.3,
            },
            NumericalThresholdConfig = new Gcp.Vertex.Inputs.AiFeatureStoreEntityTypeMonitoringConfigNumericalThresholdConfigArgs
            {
                Value = 0.3,
            },
        },
    });

    var feature = new Gcp.Vertex.AiFeatureStoreEntityTypeFeature("feature", new()
    {
        Name = "terraform2",
        Labels =
        {
            { "foo", "bar" },
        },
        Entitytype = entity.Id,
        ValueType = "INT64_ARRAY",
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/vertex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		featurestore, 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),
			},
		})
		if err != nil {
			return err
		}
		entity, err := vertex.NewAiFeatureStoreEntityType(ctx, "entity", &vertex.AiFeatureStoreEntityTypeArgs{
			Name: pulumi.String("terraform2"),
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
			Featurestore: featurestore.ID().ToIDOutput().ToStringOutput(),
			MonitoringConfig: &vertex.AiFeatureStoreEntityTypeMonitoringConfigArgs{
				SnapshotAnalysis: &vertex.AiFeatureStoreEntityTypeMonitoringConfigSnapshotAnalysisArgs{
					Disabled:           pulumi.Bool(false),
					MonitoringInterval: pulumi.String("86400s"),
				},
				CategoricalThresholdConfig: &vertex.AiFeatureStoreEntityTypeMonitoringConfigCategoricalThresholdConfigArgs{
					Value: pulumi.Float64(0.3),
				},
				NumericalThresholdConfig: &vertex.AiFeatureStoreEntityTypeMonitoringConfigNumericalThresholdConfigArgs{
					Value: pulumi.Float64(0.3),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = vertex.NewAiFeatureStoreEntityTypeFeature(ctx, "feature", &vertex.AiFeatureStoreEntityTypeFeatureArgs{
			Name: pulumi.String("terraform2"),
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
			Entitytype: entity.ID().ToIDOutput().ToStringOutput(),
			ValueType:  pulumi.String("INT64_ARRAY"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    gcp = {
      source = "pulumi/gcp"
    }
  }
}

resource "gcp_vertex_aifeaturestore" "featurestore" {
  name = "terraform2"
  labels = {
    "foo" = "bar"
  }
  region = "us-central1"
  online_serving_config = {
    fixed_node_count = 2
  }
}
resource "gcp_vertex_aifeaturestoreentitytype" "entity" {
  name = "terraform2"
  labels = {
    "foo" = "bar"
  }
  featurestore = gcp_vertex_aifeaturestore.featurestore.id
  monitoring_config = {
    snapshot_analysis = {
      disabled            = false
      monitoring_interval = "86400s"
    }
    categorical_threshold_config = {
      value = 0.3
    }
    numerical_threshold_config = {
      value = 0.3
    }
  }
}
resource "gcp_vertex_aifeaturestoreentitytypefeature" "feature" {
  name = "terraform2"
  labels = {
    "foo" = "bar"
  }
  entitytype = gcp_vertex_aifeaturestoreentitytype.entity.id
  value_type = "INT64_ARRAY"
}
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.AiFeatureStoreEntityType;
import com.pulumi.gcp.vertex.AiFeatureStoreEntityTypeArgs;
import com.pulumi.gcp.vertex.inputs.AiFeatureStoreEntityTypeMonitoringConfigArgs;
import com.pulumi.gcp.vertex.inputs.AiFeatureStoreEntityTypeMonitoringConfigSnapshotAnalysisArgs;
import com.pulumi.gcp.vertex.inputs.AiFeatureStoreEntityTypeMonitoringConfigCategoricalThresholdConfigArgs;
import com.pulumi.gcp.vertex.inputs.AiFeatureStoreEntityTypeMonitoringConfigNumericalThresholdConfigArgs;
import com.pulumi.gcp.vertex.AiFeatureStoreEntityTypeFeature;
import com.pulumi.gcp.vertex.AiFeatureStoreEntityTypeFeatureArgs;
import java.util.ArrayList;
import java.util.Arrays;
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())
            .build());

        var entity = new AiFeatureStoreEntityType("entity", AiFeatureStoreEntityTypeArgs.builder()
            .name("terraform2")
            .labels(Map.of("foo", "bar"))
            .featurestore(featurestore.id())
            .monitoringConfig(AiFeatureStoreEntityTypeMonitoringConfigArgs.builder()
                .snapshotAnalysis(AiFeatureStoreEntityTypeMonitoringConfigSnapshotAnalysisArgs.builder()
                    .disabled(false)
                    .monitoringInterval("86400s")
                    .build())
                .categoricalThresholdConfig(AiFeatureStoreEntityTypeMonitoringConfigCategoricalThresholdConfigArgs.builder()
                    .value(0.3)
                    .build())
                .numericalThresholdConfig(AiFeatureStoreEntityTypeMonitoringConfigNumericalThresholdConfigArgs.builder()
                    .value(0.3)
                    .build())
                .build())
            .build());

        var feature = new AiFeatureStoreEntityTypeFeature("feature", AiFeatureStoreEntityTypeFeatureArgs.builder()
            .name("terraform2")
            .labels(Map.of("foo", "bar"))
            .entitytype(entity.id())
            .valueType("INT64_ARRAY")
            .build());

    }
}
resources:
  featurestore:
    type: gcp:vertex:AiFeatureStore
    properties:
      name: terraform2
      labels:
        foo: bar
      region: us-central1
      onlineServingConfig:
        fixedNodeCount: 2
  entity:
    type: gcp:vertex:AiFeatureStoreEntityType
    properties:
      name: terraform2
      labels:
        foo: bar
      featurestore: ${featurestore.id}
      monitoringConfig:
        snapshotAnalysis:
          disabled: false
          monitoringInterval: 86400s
        categoricalThresholdConfig:
          value: 0.3
        numericalThresholdConfig:
          value: 0.3
  feature:
    type: gcp:vertex:AiFeatureStoreEntityTypeFeature
    properties:
      name: terraform2
      labels:
        foo: bar
      entitytype: ${entity.id}
      valueType: INT64_ARRAY

Import

FeaturestoreEntitytypeFeature can be imported using any of these accepted formats:

  • {{entitytype}}/features/{{name}}

When using the pulumi import command, FeaturestoreEntitytypeFeature can be imported using one of the formats above. For example:

$ pulumi import gcp:vertex/aiFeatureStoreEntityTypeFeature:AiFeatureStoreEntityTypeFeature default {{entitytype}}/features/{{name}}

Constructors

AiFeatureStoreEntityTypeFeature(String name, {AiFeatureStoreEntityTypeFeatureArgs? args, CustomResourceOptions? options})
Creates a new AiFeatureStoreEntityTypeFeature. name The Pulumi resource name. args Arguments used to configure this AiFeatureStoreEntityTypeFeature. The set of arguments for AiFeatureStoreEntityTypeFeature. options Resource options controlling this resource's behavior.
AiFeatureStoreEntityTypeFeature.reference(String urn)
Creates a typed reference to an existing AiFeatureStoreEntityTypeFeature resource.

Properties

childResources → Set<Resource>
finalinherited
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
createTime ↔ Output<String>
The timestamp of when the entity type was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
latefinal
deletionPolicy ↔ Output<String>
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
latefinal
description ↔ Output<String?>
Description of the feature.
latefinal
effectiveLabels ↔ Output<Map<String, String>>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
latefinal
entitytype ↔ Output<String>
The name of the Featurestore to use, in the format projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entitytype}.
latefinal
etag ↔ Output<String>
Used to perform consistent read-modify-write updates.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
labels ↔ Output<Map<String, String>?>
A set of key/value label pairs to assign to the feature.
latefinal
name ↔ Output<String>
The name of the feature. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity type.
latefinal
pulumiLabels ↔ Output<Map<String, String>>
The combination of labels configured directly on the resource and default labels configured on the provider.
latefinal
region ↔ Output<String>
The region of the feature
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
updateTime ↔ Output<String>
The timestamp when the entity type was most recently updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
latefinal
urn ↔ Output<String>
latefinalinherited
valueType ↔ Output<String>
Type of Feature value. Immutable. https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores.entityTypes.features#ValueType
latefinal

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {AiFeatureStoreEntityTypeFeatureState? state, CustomResourceOptions? options}) → AiFeatureStoreEntityTypeFeature
Gets an existing AiFeatureStoreEntityTypeFeature resource's state with the given name and id.