Skip to content

googleVertexAiFeaturestoreEntitytypeFeature

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

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const googleVertexAiFeaturestoreFeaturestore =
  new google.vertexAiFeaturestore.VertexAiFeaturestore(this, "featurestore", {
    labels: [
      {
        foo: "bar",
      },
    ],
    name: "terraform",
    online_serving_config: [
      {
        fixed_node_count: 2,
      },
    ],
    region: "us-central1",
  });
const googleVertexAiFeaturestoreEntitytypeEntity =
  new google.vertexAiFeaturestoreEntitytype.VertexAiFeaturestoreEntitytype(
    this,
    "entity",
    {
      featurestore: googleVertexAiFeaturestoreFeaturestore.id,
      labels: [
        {
          foo: "bar",
        },
      ],
      name: "terraform",
    }
  );
new google.vertexAiFeaturestoreEntitytypeFeature.VertexAiFeaturestoreEntitytypeFeature(
  this,
  "feature",
  {
    entitytype: googleVertexAiFeaturestoreEntitytypeEntity.id,
    labels: [
      {
        foo: "bar",
      },
    ],
    name: "terraform",
    value_type: "INT64_ARRAY",
  }
);

Example Usage - Vertex Ai Featurestore Entitytype Feature With Beta Fields

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const googleVertexAiFeaturestoreFeaturestore =
  new google.vertexAiFeaturestore.VertexAiFeaturestore(this, "featurestore", {
    labels: [
      {
        foo: "bar",
      },
    ],
    name: "terraform2",
    online_serving_config: [
      {
        fixed_node_count: 2,
      },
    ],
    provider: "${google-beta}",
    region: "us-central1",
  });
const googleVertexAiFeaturestoreEntitytypeEntity =
  new google.vertexAiFeaturestoreEntitytype.VertexAiFeaturestoreEntitytype(
    this,
    "entity",
    {
      featurestore: googleVertexAiFeaturestoreFeaturestore.id,
      labels: [
        {
          foo: "bar",
        },
      ],
      monitoring_config: [
        {
          categorical_threshold_config: [
            {
              value: 0.3,
            },
          ],
          numerical_threshold_config: [
            {
              value: 0.3,
            },
          ],
          snapshot_analysis: [
            {
              disabled: false,
              monitoring_interval: "86400s",
            },
          ],
        },
      ],
      name: "terraform2",
      provider: "${google-beta}",
    }
  );
new google.vertexAiFeaturestoreEntitytypeFeature.VertexAiFeaturestoreEntitytypeFeature(
  this,
  "feature",
  {
    entitytype: googleVertexAiFeaturestoreEntitytypeEntity.id,
    labels: [
      {
        foo: "bar",
      },
    ],
    name: "terraform2",
    provider: "${google-beta}",
    value_type: "INT64_ARRAY",
  }
);

Argument Reference

The following arguments are supported:

  • valueType - (Required) Type of Feature value. Immutable. https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores.entityTypes.features#ValueType

  • entitytype - (Required) The name of the Featurestore to use, in the format projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entitytype}.


  • name - (Optional) 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.

  • labels - (Optional) A set of key/value label pairs to assign to the feature.

  • description - (Optional) Description of the feature.

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format {{entitytype}}/features/{{name}}

  • etag - Used to perform consistent read-modify-write updates.

  • createTime - The timestamp of when the entity type was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.

  • updateTime - The timestamp when the entity type was most recently updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.

Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 20 minutes.
  • update - Default is 20 minutes.
  • delete - Default is 20 minutes.

Import

FeaturestoreEntitytypeFeature can be imported using any of these accepted formats:

$ terraform import google_vertex_ai_featurestore_entitytype_feature.default {{entitytype}}/features/{{name}}