UNPKG

@pulumi/gcp

Version:

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

266 lines (265 loc) • 9.92 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Vertex AI Feature Group. * * To get more information about FeatureGroup, see: * * * [API documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featureGroups) * * How-to Guides * * [Creating a Feature Group](https://cloud.google.com/vertex-ai/docs/featurestore/latest/create-featuregroup) * * ## Example Usage * * ### Vertex Ai Feature Group * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const sampleDataset = new gcp.bigquery.Dataset("sample_dataset", { * datasetId: "job_load_dataset", * friendlyName: "test", * description: "This is a test description", * location: "US", * }); * const sampleTable = new gcp.bigquery.Table("sample_table", { * deletionProtection: false, * datasetId: sampleDataset.datasetId, * tableId: "job_load_table", * schema: `[ * { * "name": "feature_id", * "type": "STRING", * "mode": "NULLABLE" * }, * { * "name": "feature_timestamp", * "type": "TIMESTAMP", * "mode": "NULLABLE" * } * ] * `, * }); * const featureGroup = new gcp.vertex.AiFeatureGroup("feature_group", { * name: "example_feature_group", * description: "A sample feature group", * region: "us-central1", * labels: { * "label-one": "value-one", * }, * bigQuery: { * bigQuerySource: { * inputUri: pulumi.interpolate`bq://${sampleTable.project}.${sampleTable.datasetId}.${sampleTable.tableId}`, * }, * entityIdColumns: ["feature_id"], * }, * }); * ``` * * ## Import * * FeatureGroup can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{region}}/featureGroups/{{name}}` * * * `{{project}}/{{region}}/{{name}}` * * * `{{region}}/{{name}}` * * * `{{name}}` * * When using the `pulumi import` command, FeatureGroup can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:vertex/aiFeatureGroup:AiFeatureGroup default projects/{{project}}/locations/{{region}}/featureGroups/{{name}} * ``` * * ```sh * $ pulumi import gcp:vertex/aiFeatureGroup:AiFeatureGroup default {{project}}/{{region}}/{{name}} * ``` * * ```sh * $ pulumi import gcp:vertex/aiFeatureGroup:AiFeatureGroup default {{region}}/{{name}} * ``` * * ```sh * $ pulumi import gcp:vertex/aiFeatureGroup:AiFeatureGroup default {{name}} * ``` */ export declare class AiFeatureGroup extends pulumi.CustomResource { /** * Get an existing AiFeatureGroup 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: string, id: pulumi.Input<pulumi.ID>, state?: AiFeatureGroupState, opts?: pulumi.CustomResourceOptions): AiFeatureGroup; /** * Returns true if the given object is an instance of AiFeatureGroup. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AiFeatureGroup; /** * Indicates that features for this group come from BigQuery Table/View. By default treats the source as a sparse time series source, which is required to have an entityId and a featureTimestamp column in the source. * Structure is documented below. */ readonly bigQuery: pulumi.Output<outputs.vertex.AiFeatureGroupBigQuery | undefined>; /** * The timestamp of when the FeatureGroup was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. */ readonly createTime: pulumi.Output<string>; /** * The description of the FeatureGroup. */ readonly description: pulumi.Output<string | undefined>; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ readonly effectiveLabels: pulumi.Output<{ [key: string]: string; }>; /** * Used to perform consistent read-modify-write updates. */ readonly etag: pulumi.Output<string>; /** * The labels with user-defined metadata to organize your FeatureGroup. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The resource name of the Feature Group. */ readonly name: pulumi.Output<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output<string>; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * The region of feature group. eg us-central1 */ readonly region: pulumi.Output<string>; /** * The timestamp of when the FeatureGroup was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. */ readonly updateTime: pulumi.Output<string>; /** * Create a AiFeatureGroup resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: AiFeatureGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AiFeatureGroup resources. */ export interface AiFeatureGroupState { /** * Indicates that features for this group come from BigQuery Table/View. By default treats the source as a sparse time series source, which is required to have an entityId and a featureTimestamp column in the source. * Structure is documented below. */ bigQuery?: pulumi.Input<inputs.vertex.AiFeatureGroupBigQuery>; /** * The timestamp of when the FeatureGroup was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. */ createTime?: pulumi.Input<string>; /** * The description of the FeatureGroup. */ description?: pulumi.Input<string>; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ effectiveLabels?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Used to perform consistent read-modify-write updates. */ etag?: pulumi.Input<string>; /** * The labels with user-defined metadata to organize your FeatureGroup. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The resource name of the Feature Group. */ name?: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string>; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The region of feature group. eg us-central1 */ region?: pulumi.Input<string>; /** * The timestamp of when the FeatureGroup was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. */ updateTime?: pulumi.Input<string>; } /** * The set of arguments for constructing a AiFeatureGroup resource. */ export interface AiFeatureGroupArgs { /** * Indicates that features for this group come from BigQuery Table/View. By default treats the source as a sparse time series source, which is required to have an entityId and a featureTimestamp column in the source. * Structure is documented below. */ bigQuery?: pulumi.Input<inputs.vertex.AiFeatureGroupBigQuery>; /** * The description of the FeatureGroup. */ description?: pulumi.Input<string>; /** * The labels with user-defined metadata to organize your FeatureGroup. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The resource name of the Feature Group. */ name?: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string>; /** * The region of feature group. eg us-central1 */ region?: pulumi.Input<string>; }