Ai Dataset
A collection of DataItems and Annotations on them. To get more information about Dataset, see:
How-to Guides
Example Usage
Vertex Ai Dataset
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const dataset = new gcp.vertex.AiDataset("dataset", {
displayName: "terraform",
metadataSchemaUri: "gs://google-cloud-aiplatform/schema/dataset/metadata/image_1.0.0.yaml",
region: "us-central1",
labels: {
env: "test",
},
});
import pulumi
import pulumi_gcp as gcp
dataset = gcp.vertex.AiDataset("dataset",
display_name="terraform",
metadata_schema_uri="gs://google-cloud-aiplatform/schema/dataset/metadata/image_1.0.0.yaml",
region="us-central1",
labels={
"env": "test",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var dataset = new Gcp.Vertex.AiDataset("dataset", new()
{
DisplayName = "terraform",
MetadataSchemaUri = "gs://google-cloud-aiplatform/schema/dataset/metadata/image_1.0.0.yaml",
Region = "us-central1",
Labels =
{
{ "env", "test" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/vertex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vertex.NewAiDataset(ctx, "dataset", &vertex.AiDatasetArgs{
DisplayName: pulumi.String("terraform"),
MetadataSchemaUri: pulumi.String("gs://google-cloud-aiplatform/schema/dataset/metadata/image_1.0.0.yaml"),
Region: pulumi.String("us-central1"),
Labels: pulumi.StringMap{
"env": pulumi.String("test"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.vertex.AiDataset;
import com.pulumi.gcp.vertex.AiDatasetArgs;
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 dataset = new AiDataset("dataset", AiDatasetArgs.builder()
.displayName("terraform")
.metadataSchemaUri("gs://google-cloud-aiplatform/schema/dataset/metadata/image_1.0.0.yaml")
.region("us-central1")
.labels(Map.of("env", "test"))
.build());
}
}
resources:
dataset:
type: gcp:vertex:AiDataset
properties:
displayName: terraform
metadataSchemaUri: gs://google-cloud-aiplatform/schema/dataset/metadata/image_1.0.0.yaml
region: us-central1
labels:
env: test
Import
This resource does not support import.
Properties
The timestamp of when the dataset was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
The user-defined name of the Dataset. The name can be up to 128 characters long and can be consist of any UTF-8 characters.
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Customer-managed encryption key spec for a Dataset. If set, this Dataset and all sub-resources of this Dataset will be secured by this key. Structure is documented below.
Points to a YAML file stored on Google Cloud Storage describing additional information about the Dataset. The schema is defined as an OpenAPI 3.0.2 Schema Object. The schema files that can be used here are found in gs://google-cloud-aiplatform/schema/dataset/metadata/.
The combination of labels configured directly on the resource and default labels configured on the provider.
The timestamp of when the dataset was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.