UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

190 lines 7.41 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.AiFeatureOnlineStore = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Vertex AI Feature Online Store provides a centralized repository for serving ML features and embedding indexes at low latency. The Feature Online Store is a top-level container. * * To get more information about FeatureOnlineStore, see: * * * [API documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores) * * How-to Guides * * [Official Documentation](https://cloud.google.com/vertex-ai/docs) * * ## Example Usage * * ### Vertex Ai Feature Online Store * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const featureOnlineStore = new gcp.vertex.AiFeatureOnlineStore("feature_online_store", { * name: "example_feature_online_store", * labels: { * foo: "bar", * }, * region: "us-central1", * bigtable: { * autoScaling: { * minNodeCount: 1, * maxNodeCount: 3, * cpuUtilizationTarget: 50, * }, * }, * }); * ``` * ### Vertex Ai Featureonlinestore With Optimized * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const project = gcp.organizations.getProject({}); * const featureonlinestore = new gcp.vertex.AiFeatureOnlineStore("featureonlinestore", { * name: "example_feature_online_store_optimized", * labels: { * foo: "bar", * }, * region: "us-central1", * optimized: {}, * dedicatedServingEndpoint: { * privateServiceConnectConfig: { * enablePrivateServiceConnect: true, * projectAllowlists: [project.then(project => project.number)], * }, * }, * }); * ``` * ### Vertex Ai Featureonlinestore With Beta Fields Bigtable * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const featureonlinestore = new gcp.vertex.AiFeatureOnlineStore("featureonlinestore", { * name: "example_feature_online_store_beta_bigtable", * labels: { * foo: "bar", * }, * region: "us-central1", * bigtable: { * autoScaling: { * minNodeCount: 1, * maxNodeCount: 2, * cpuUtilizationTarget: 80, * }, * }, * embeddingManagement: { * enabled: true, * }, * forceDestroy: true, * }); * const project = gcp.organizations.getProject({}); * ``` * * ## Import * * FeatureOnlineStore can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{region}}/featureOnlineStores/{{name}}` * * * `{{project}}/{{region}}/{{name}}` * * * `{{region}}/{{name}}` * * * `{{name}}` * * When using the `pulumi import` command, FeatureOnlineStore can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:vertex/aiFeatureOnlineStore:AiFeatureOnlineStore default projects/{{project}}/locations/{{region}}/featureOnlineStores/{{name}} * ``` * * ```sh * $ pulumi import gcp:vertex/aiFeatureOnlineStore:AiFeatureOnlineStore default {{project}}/{{region}}/{{name}} * ``` * * ```sh * $ pulumi import gcp:vertex/aiFeatureOnlineStore:AiFeatureOnlineStore default {{region}}/{{name}} * ``` * * ```sh * $ pulumi import gcp:vertex/aiFeatureOnlineStore:AiFeatureOnlineStore default {{name}} * ``` */ class AiFeatureOnlineStore extends pulumi.CustomResource { /** * Get an existing AiFeatureOnlineStore resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new AiFeatureOnlineStore(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of AiFeatureOnlineStore. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === AiFeatureOnlineStore.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["bigtable"] = state?.bigtable; resourceInputs["createTime"] = state?.createTime; resourceInputs["dedicatedServingEndpoint"] = state?.dedicatedServingEndpoint; resourceInputs["effectiveLabels"] = state?.effectiveLabels; resourceInputs["embeddingManagement"] = state?.embeddingManagement; resourceInputs["etag"] = state?.etag; resourceInputs["forceDestroy"] = state?.forceDestroy; resourceInputs["labels"] = state?.labels; resourceInputs["name"] = state?.name; resourceInputs["optimized"] = state?.optimized; resourceInputs["project"] = state?.project; resourceInputs["pulumiLabels"] = state?.pulumiLabels; resourceInputs["region"] = state?.region; resourceInputs["state"] = state?.state; resourceInputs["updateTime"] = state?.updateTime; } else { const args = argsOrState; resourceInputs["bigtable"] = args?.bigtable; resourceInputs["dedicatedServingEndpoint"] = args?.dedicatedServingEndpoint; resourceInputs["embeddingManagement"] = args?.embeddingManagement; resourceInputs["forceDestroy"] = args?.forceDestroy; resourceInputs["labels"] = args?.labels; resourceInputs["name"] = args?.name; resourceInputs["optimized"] = args?.optimized; resourceInputs["project"] = args?.project; resourceInputs["region"] = args?.region; resourceInputs["createTime"] = undefined /*out*/; resourceInputs["effectiveLabels"] = undefined /*out*/; resourceInputs["etag"] = undefined /*out*/; resourceInputs["pulumiLabels"] = undefined /*out*/; resourceInputs["state"] = undefined /*out*/; resourceInputs["updateTime"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["effectiveLabels", "pulumiLabels"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(AiFeatureOnlineStore.__pulumiType, name, resourceInputs, opts); } } exports.AiFeatureOnlineStore = AiFeatureOnlineStore; /** @internal */ AiFeatureOnlineStore.__pulumiType = 'gcp:vertex/aiFeatureOnlineStore:AiFeatureOnlineStore'; //# sourceMappingURL=aiFeatureOnlineStore.js.map