Package com.pulumi.gcp.vertex
Class AiFeatureStore
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.gcp.vertex.AiFeatureStore
-
public class AiFeatureStore extends com.pulumi.resources.CustomResource
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 ```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.AiFeatureStoreEncryptionSpecArgs; import com.pulumi.gcp.vertex.inputs.AiFeatureStoreOnlineServingConfigArgs; 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() .encryptionSpec(AiFeatureStoreEncryptionSpecArgs.builder() .kmsKeyName("kms-name") .build()) .forceDestroy(true) .labels(Map.of("foo", "bar")) .onlineServingConfig(AiFeatureStoreOnlineServingConfigArgs.builder() .fixedNodeCount(2) .build()) .region("us-central1") .build()); } } ``` ### Vertex Ai Featurestore With Beta Fields ```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 com.pulumi.resources.CustomResourceOptions; 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() .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(), CustomResourceOptions.builder() .provider(google_beta) .build()); } } ``` ### Vertex Ai Featurestore Scaling ```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.AiFeatureStoreEncryptionSpecArgs; import com.pulumi.gcp.vertex.inputs.AiFeatureStoreOnlineServingConfigArgs; import com.pulumi.gcp.vertex.inputs.AiFeatureStoreOnlineServingConfigScalingArgs; 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() .encryptionSpec(AiFeatureStoreEncryptionSpecArgs.builder() .kmsKeyName("kms-name") .build()) .forceDestroy(true) .labels(Map.of("foo", "bar")) .onlineServingConfig(AiFeatureStoreOnlineServingConfigArgs.builder() .scaling(AiFeatureStoreOnlineServingConfigScalingArgs.builder() .maxNodeCount(10) .minNodeCount(2) .build()) .build()) .region("us-central1") .build()); } } ``` ## Import Featurestore can be imported using any of these accepted formats ```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}} ```
-
-
Constructor Summary
Constructors Constructor Description AiFeatureStore(java.lang.String name)
AiFeatureStore(java.lang.String name, AiFeatureStoreArgs args)
AiFeatureStore(java.lang.String name, AiFeatureStoreArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
createTime()
com.pulumi.core.Output<java.util.Optional<AiFeatureStoreEncryptionSpec>>
encryptionSpec()
com.pulumi.core.Output<java.lang.String>
etag()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
forceDestroy()
static AiFeatureStore
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AiFeatureStoreState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
labels()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.util.Optional<AiFeatureStoreOnlineServingConfig>>
onlineServingConfig()
com.pulumi.core.Output<java.util.Optional<java.lang.Integer>>
onlineStorageTtlDays()
com.pulumi.core.Output<java.lang.String>
project()
com.pulumi.core.Output<java.lang.String>
region()
com.pulumi.core.Output<java.lang.String>
updateTime()
-
-
-
Constructor Detail
-
AiFeatureStore
public AiFeatureStore(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
AiFeatureStore
public AiFeatureStore(java.lang.String name, @Nullable AiFeatureStoreArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
AiFeatureStore
public AiFeatureStore(java.lang.String name, @Nullable AiFeatureStoreArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
createTime
public com.pulumi.core.Output<java.lang.String> createTime()
- Returns:
- The timestamp of when the featurestore was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
-
encryptionSpec
public com.pulumi.core.Output<java.util.Optional<AiFeatureStoreEncryptionSpec>> encryptionSpec()
- Returns:
- If set, both of the online and offline data storage will be secured by this key. Structure is documented below.
-
etag
public com.pulumi.core.Output<java.lang.String> etag()
- Returns:
- Used to perform consistent read-modify-write updates.
-
forceDestroy
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> forceDestroy()
- Returns:
- If set to true, any EntityTypes and Features for this Featurestore will also be deleted
-
labels
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> labels()
- Returns:
- A set of key/value label pairs to assign to this Featurestore.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- 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.
-
onlineServingConfig
public com.pulumi.core.Output<java.util.Optional<AiFeatureStoreOnlineServingConfig>> onlineServingConfig()
- Returns:
- Config for online serving resources. Structure is documented below.
-
onlineStorageTtlDays
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> onlineStorageTtlDays()
- Returns:
- 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
-
project
public com.pulumi.core.Output<java.lang.String> project()
- Returns:
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- The region of the dataset. eg us-central1
-
updateTime
public com.pulumi.core.Output<java.lang.String> updateTime()
- Returns:
- The timestamp of when the featurestore was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
-
get
public static AiFeatureStore get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable AiFeatureStoreState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-