gcp.dataplex.Asset
Explore with Pulumi AI
The Dataplex Asset resource
Example Usage
Basic_asset
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basicBucket = new gcp.storage.Bucket("basic_bucket", {
    name: "bucket",
    location: "us-west1",
    uniformBucketLevelAccess: true,
    project: "my-project-name",
});
const basicLake = new gcp.dataplex.Lake("basic_lake", {
    name: "lake",
    location: "us-west1",
    project: "my-project-name",
});
const basicZone = new gcp.dataplex.Zone("basic_zone", {
    name: "zone",
    location: "us-west1",
    lake: basicLake.name,
    type: "RAW",
    discoverySpec: {
        enabled: false,
    },
    resourceSpec: {
        locationType: "SINGLE_REGION",
    },
    project: "my-project-name",
});
const primary = new gcp.dataplex.Asset("primary", {
    name: "asset",
    location: "us-west1",
    lake: basicLake.name,
    dataplexZone: basicZone.name,
    discoverySpec: {
        enabled: false,
    },
    resourceSpec: {
        name: "projects/my-project-name/buckets/bucket",
        type: "STORAGE_BUCKET",
    },
    labels: {
        env: "foo",
        "my-asset": "exists",
    },
    project: "my-project-name",
}, {
    dependsOn: [basicBucket],
});
import pulumi
import pulumi_gcp as gcp
basic_bucket = gcp.storage.Bucket("basic_bucket",
    name="bucket",
    location="us-west1",
    uniform_bucket_level_access=True,
    project="my-project-name")
basic_lake = gcp.dataplex.Lake("basic_lake",
    name="lake",
    location="us-west1",
    project="my-project-name")
basic_zone = gcp.dataplex.Zone("basic_zone",
    name="zone",
    location="us-west1",
    lake=basic_lake.name,
    type="RAW",
    discovery_spec={
        "enabled": False,
    },
    resource_spec={
        "location_type": "SINGLE_REGION",
    },
    project="my-project-name")
primary = gcp.dataplex.Asset("primary",
    name="asset",
    location="us-west1",
    lake=basic_lake.name,
    dataplex_zone=basic_zone.name,
    discovery_spec={
        "enabled": False,
    },
    resource_spec={
        "name": "projects/my-project-name/buckets/bucket",
        "type": "STORAGE_BUCKET",
    },
    labels={
        "env": "foo",
        "my-asset": "exists",
    },
    project="my-project-name",
    opts = pulumi.ResourceOptions(depends_on=[basic_bucket]))
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataplex"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		basicBucket, err := storage.NewBucket(ctx, "basic_bucket", &storage.BucketArgs{
			Name:                     pulumi.String("bucket"),
			Location:                 pulumi.String("us-west1"),
			UniformBucketLevelAccess: pulumi.Bool(true),
			Project:                  pulumi.String("my-project-name"),
		})
		if err != nil {
			return err
		}
		basicLake, err := dataplex.NewLake(ctx, "basic_lake", &dataplex.LakeArgs{
			Name:     pulumi.String("lake"),
			Location: pulumi.String("us-west1"),
			Project:  pulumi.String("my-project-name"),
		})
		if err != nil {
			return err
		}
		basicZone, err := dataplex.NewZone(ctx, "basic_zone", &dataplex.ZoneArgs{
			Name:     pulumi.String("zone"),
			Location: pulumi.String("us-west1"),
			Lake:     basicLake.Name,
			Type:     pulumi.String("RAW"),
			DiscoverySpec: &dataplex.ZoneDiscoverySpecArgs{
				Enabled: pulumi.Bool(false),
			},
			ResourceSpec: &dataplex.ZoneResourceSpecArgs{
				LocationType: pulumi.String("SINGLE_REGION"),
			},
			Project: pulumi.String("my-project-name"),
		})
		if err != nil {
			return err
		}
		_, err = dataplex.NewAsset(ctx, "primary", &dataplex.AssetArgs{
			Name:         pulumi.String("asset"),
			Location:     pulumi.String("us-west1"),
			Lake:         basicLake.Name,
			DataplexZone: basicZone.Name,
			DiscoverySpec: &dataplex.AssetDiscoverySpecArgs{
				Enabled: pulumi.Bool(false),
			},
			ResourceSpec: &dataplex.AssetResourceSpecArgs{
				Name: pulumi.String("projects/my-project-name/buckets/bucket"),
				Type: pulumi.String("STORAGE_BUCKET"),
			},
			Labels: pulumi.StringMap{
				"env":      pulumi.String("foo"),
				"my-asset": pulumi.String("exists"),
			},
			Project: pulumi.String("my-project-name"),
		}, pulumi.DependsOn([]pulumi.Resource{
			basicBucket,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var basicBucket = new Gcp.Storage.Bucket("basic_bucket", new()
    {
        Name = "bucket",
        Location = "us-west1",
        UniformBucketLevelAccess = true,
        Project = "my-project-name",
    });
    var basicLake = new Gcp.DataPlex.Lake("basic_lake", new()
    {
        Name = "lake",
        Location = "us-west1",
        Project = "my-project-name",
    });
    var basicZone = new Gcp.DataPlex.Zone("basic_zone", new()
    {
        Name = "zone",
        Location = "us-west1",
        Lake = basicLake.Name,
        Type = "RAW",
        DiscoverySpec = new Gcp.DataPlex.Inputs.ZoneDiscoverySpecArgs
        {
            Enabled = false,
        },
        ResourceSpec = new Gcp.DataPlex.Inputs.ZoneResourceSpecArgs
        {
            LocationType = "SINGLE_REGION",
        },
        Project = "my-project-name",
    });
    var primary = new Gcp.DataPlex.Asset("primary", new()
    {
        Name = "asset",
        Location = "us-west1",
        Lake = basicLake.Name,
        DataplexZone = basicZone.Name,
        DiscoverySpec = new Gcp.DataPlex.Inputs.AssetDiscoverySpecArgs
        {
            Enabled = false,
        },
        ResourceSpec = new Gcp.DataPlex.Inputs.AssetResourceSpecArgs
        {
            Name = "projects/my-project-name/buckets/bucket",
            Type = "STORAGE_BUCKET",
        },
        Labels = 
        {
            { "env", "foo" },
            { "my-asset", "exists" },
        },
        Project = "my-project-name",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            basicBucket,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
import com.pulumi.gcp.dataplex.Lake;
import com.pulumi.gcp.dataplex.LakeArgs;
import com.pulumi.gcp.dataplex.Zone;
import com.pulumi.gcp.dataplex.ZoneArgs;
import com.pulumi.gcp.dataplex.inputs.ZoneDiscoverySpecArgs;
import com.pulumi.gcp.dataplex.inputs.ZoneResourceSpecArgs;
import com.pulumi.gcp.dataplex.Asset;
import com.pulumi.gcp.dataplex.AssetArgs;
import com.pulumi.gcp.dataplex.inputs.AssetDiscoverySpecArgs;
import com.pulumi.gcp.dataplex.inputs.AssetResourceSpecArgs;
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 basicBucket = new Bucket("basicBucket", BucketArgs.builder()
            .name("bucket")
            .location("us-west1")
            .uniformBucketLevelAccess(true)
            .project("my-project-name")
            .build());
        var basicLake = new Lake("basicLake", LakeArgs.builder()
            .name("lake")
            .location("us-west1")
            .project("my-project-name")
            .build());
        var basicZone = new Zone("basicZone", ZoneArgs.builder()
            .name("zone")
            .location("us-west1")
            .lake(basicLake.name())
            .type("RAW")
            .discoverySpec(ZoneDiscoverySpecArgs.builder()
                .enabled(false)
                .build())
            .resourceSpec(ZoneResourceSpecArgs.builder()
                .locationType("SINGLE_REGION")
                .build())
            .project("my-project-name")
            .build());
        var primary = new Asset("primary", AssetArgs.builder()
            .name("asset")
            .location("us-west1")
            .lake(basicLake.name())
            .dataplexZone(basicZone.name())
            .discoverySpec(AssetDiscoverySpecArgs.builder()
                .enabled(false)
                .build())
            .resourceSpec(AssetResourceSpecArgs.builder()
                .name("projects/my-project-name/buckets/bucket")
                .type("STORAGE_BUCKET")
                .build())
            .labels(Map.ofEntries(
                Map.entry("env", "foo"),
                Map.entry("my-asset", "exists")
            ))
            .project("my-project-name")
            .build(), CustomResourceOptions.builder()
                .dependsOn(basicBucket)
                .build());
    }
}
resources:
  basicBucket:
    type: gcp:storage:Bucket
    name: basic_bucket
    properties:
      name: bucket
      location: us-west1
      uniformBucketLevelAccess: true
      project: my-project-name
  basicLake:
    type: gcp:dataplex:Lake
    name: basic_lake
    properties:
      name: lake
      location: us-west1
      project: my-project-name
  basicZone:
    type: gcp:dataplex:Zone
    name: basic_zone
    properties:
      name: zone
      location: us-west1
      lake: ${basicLake.name}
      type: RAW
      discoverySpec:
        enabled: false
      resourceSpec:
        locationType: SINGLE_REGION
      project: my-project-name
  primary:
    type: gcp:dataplex:Asset
    properties:
      name: asset
      location: us-west1
      lake: ${basicLake.name}
      dataplexZone: ${basicZone.name}
      discoverySpec:
        enabled: false
      resourceSpec:
        name: projects/my-project-name/buckets/bucket
        type: STORAGE_BUCKET
      labels:
        env: foo
        my-asset: exists
      project: my-project-name
    options:
      dependsOn:
        - ${basicBucket}
Create Asset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Asset(name: string, args: AssetArgs, opts?: CustomResourceOptions);@overload
def Asset(resource_name: str,
          args: AssetArgs,
          opts: Optional[ResourceOptions] = None)
@overload
def Asset(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          dataplex_zone: Optional[str] = None,
          discovery_spec: Optional[AssetDiscoverySpecArgs] = None,
          lake: Optional[str] = None,
          location: Optional[str] = None,
          resource_spec: Optional[AssetResourceSpecArgs] = None,
          description: Optional[str] = None,
          display_name: Optional[str] = None,
          labels: Optional[Mapping[str, str]] = None,
          name: Optional[str] = None,
          project: Optional[str] = None)func NewAsset(ctx *Context, name string, args AssetArgs, opts ...ResourceOption) (*Asset, error)public Asset(string name, AssetArgs args, CustomResourceOptions? opts = null)type: gcp:dataplex:Asset
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AssetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AssetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AssetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AssetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AssetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var assetResource = new Gcp.DataPlex.Asset("assetResource", new()
{
    DataplexZone = "string",
    DiscoverySpec = new Gcp.DataPlex.Inputs.AssetDiscoverySpecArgs
    {
        Enabled = false,
        CsvOptions = new Gcp.DataPlex.Inputs.AssetDiscoverySpecCsvOptionsArgs
        {
            Delimiter = "string",
            DisableTypeInference = false,
            Encoding = "string",
            HeaderRows = 0,
        },
        ExcludePatterns = new[]
        {
            "string",
        },
        IncludePatterns = new[]
        {
            "string",
        },
        JsonOptions = new Gcp.DataPlex.Inputs.AssetDiscoverySpecJsonOptionsArgs
        {
            DisableTypeInference = false,
            Encoding = "string",
        },
        Schedule = "string",
    },
    Lake = "string",
    Location = "string",
    ResourceSpec = new Gcp.DataPlex.Inputs.AssetResourceSpecArgs
    {
        Type = "string",
        Name = "string",
        ReadAccessMode = "string",
    },
    Description = "string",
    DisplayName = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Name = "string",
    Project = "string",
});
example, err := dataplex.NewAsset(ctx, "assetResource", &dataplex.AssetArgs{
	DataplexZone: pulumi.String("string"),
	DiscoverySpec: &dataplex.AssetDiscoverySpecArgs{
		Enabled: pulumi.Bool(false),
		CsvOptions: &dataplex.AssetDiscoverySpecCsvOptionsArgs{
			Delimiter:            pulumi.String("string"),
			DisableTypeInference: pulumi.Bool(false),
			Encoding:             pulumi.String("string"),
			HeaderRows:           pulumi.Int(0),
		},
		ExcludePatterns: pulumi.StringArray{
			pulumi.String("string"),
		},
		IncludePatterns: pulumi.StringArray{
			pulumi.String("string"),
		},
		JsonOptions: &dataplex.AssetDiscoverySpecJsonOptionsArgs{
			DisableTypeInference: pulumi.Bool(false),
			Encoding:             pulumi.String("string"),
		},
		Schedule: pulumi.String("string"),
	},
	Lake:     pulumi.String("string"),
	Location: pulumi.String("string"),
	ResourceSpec: &dataplex.AssetResourceSpecArgs{
		Type:           pulumi.String("string"),
		Name:           pulumi.String("string"),
		ReadAccessMode: pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	DisplayName: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name:    pulumi.String("string"),
	Project: pulumi.String("string"),
})
var assetResource = new Asset("assetResource", AssetArgs.builder()
    .dataplexZone("string")
    .discoverySpec(AssetDiscoverySpecArgs.builder()
        .enabled(false)
        .csvOptions(AssetDiscoverySpecCsvOptionsArgs.builder()
            .delimiter("string")
            .disableTypeInference(false)
            .encoding("string")
            .headerRows(0)
            .build())
        .excludePatterns("string")
        .includePatterns("string")
        .jsonOptions(AssetDiscoverySpecJsonOptionsArgs.builder()
            .disableTypeInference(false)
            .encoding("string")
            .build())
        .schedule("string")
        .build())
    .lake("string")
    .location("string")
    .resourceSpec(AssetResourceSpecArgs.builder()
        .type("string")
        .name("string")
        .readAccessMode("string")
        .build())
    .description("string")
    .displayName("string")
    .labels(Map.of("string", "string"))
    .name("string")
    .project("string")
    .build());
asset_resource = gcp.dataplex.Asset("assetResource",
    dataplex_zone="string",
    discovery_spec={
        "enabled": False,
        "csv_options": {
            "delimiter": "string",
            "disable_type_inference": False,
            "encoding": "string",
            "header_rows": 0,
        },
        "exclude_patterns": ["string"],
        "include_patterns": ["string"],
        "json_options": {
            "disable_type_inference": False,
            "encoding": "string",
        },
        "schedule": "string",
    },
    lake="string",
    location="string",
    resource_spec={
        "type": "string",
        "name": "string",
        "read_access_mode": "string",
    },
    description="string",
    display_name="string",
    labels={
        "string": "string",
    },
    name="string",
    project="string")
const assetResource = new gcp.dataplex.Asset("assetResource", {
    dataplexZone: "string",
    discoverySpec: {
        enabled: false,
        csvOptions: {
            delimiter: "string",
            disableTypeInference: false,
            encoding: "string",
            headerRows: 0,
        },
        excludePatterns: ["string"],
        includePatterns: ["string"],
        jsonOptions: {
            disableTypeInference: false,
            encoding: "string",
        },
        schedule: "string",
    },
    lake: "string",
    location: "string",
    resourceSpec: {
        type: "string",
        name: "string",
        readAccessMode: "string",
    },
    description: "string",
    displayName: "string",
    labels: {
        string: "string",
    },
    name: "string",
    project: "string",
});
type: gcp:dataplex:Asset
properties:
    dataplexZone: string
    description: string
    discoverySpec:
        csvOptions:
            delimiter: string
            disableTypeInference: false
            encoding: string
            headerRows: 0
        enabled: false
        excludePatterns:
            - string
        includePatterns:
            - string
        jsonOptions:
            disableTypeInference: false
            encoding: string
        schedule: string
    displayName: string
    labels:
        string: string
    lake: string
    location: string
    name: string
    project: string
    resourceSpec:
        name: string
        readAccessMode: string
        type: string
Asset Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Asset resource accepts the following input properties:
- DataplexZone string
- The zone for the resource
- DiscoverySpec AssetDiscovery Spec 
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- Lake string
- The lake for the resource
- Location string
- The location for the resource
- ResourceSpec AssetResource Spec 
- Required. Immutable. Specification of the resource that is referenced by this asset.
- Description string
- Optional. Description of the asset.
- DisplayName string
- Optional. User friendly display name.
- Labels Dictionary<string, string>
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- Name string
- The name of the asset.
- Project string
- The project for the resource
- DataplexZone string
- The zone for the resource
- DiscoverySpec AssetDiscovery Spec Args 
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- Lake string
- The lake for the resource
- Location string
- The location for the resource
- ResourceSpec AssetResource Spec Args 
- Required. Immutable. Specification of the resource that is referenced by this asset.
- Description string
- Optional. Description of the asset.
- DisplayName string
- Optional. User friendly display name.
- Labels map[string]string
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- Name string
- The name of the asset.
- Project string
- The project for the resource
- dataplexZone String
- The zone for the resource
- discoverySpec AssetDiscovery Spec 
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- lake String
- The lake for the resource
- location String
- The location for the resource
- resourceSpec AssetResource Spec 
- Required. Immutable. Specification of the resource that is referenced by this asset.
- description String
- Optional. Description of the asset.
- displayName String
- Optional. User friendly display name.
- labels Map<String,String>
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- name String
- The name of the asset.
- project String
- The project for the resource
- dataplexZone string
- The zone for the resource
- discoverySpec AssetDiscovery Spec 
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- lake string
- The lake for the resource
- location string
- The location for the resource
- resourceSpec AssetResource Spec 
- Required. Immutable. Specification of the resource that is referenced by this asset.
- description string
- Optional. Description of the asset.
- displayName string
- Optional. User friendly display name.
- labels {[key: string]: string}
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- name string
- The name of the asset.
- project string
- The project for the resource
- dataplex_zone str
- The zone for the resource
- discovery_spec AssetDiscovery Spec Args 
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- lake str
- The lake for the resource
- location str
- The location for the resource
- resource_spec AssetResource Spec Args 
- Required. Immutable. Specification of the resource that is referenced by this asset.
- description str
- Optional. Description of the asset.
- display_name str
- Optional. User friendly display name.
- labels Mapping[str, str]
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- name str
- The name of the asset.
- project str
- The project for the resource
- dataplexZone String
- The zone for the resource
- discoverySpec Property Map
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- lake String
- The lake for the resource
- location String
- The location for the resource
- resourceSpec Property Map
- Required. Immutable. Specification of the resource that is referenced by this asset.
- description String
- Optional. Description of the asset.
- displayName String
- Optional. User friendly display name.
- labels Map<String>
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- name String
- The name of the asset.
- project String
- The project for the resource
Outputs
All input properties are implicitly available as output properties. Additionally, the Asset resource produces the following output properties:
- CreateTime string
- Output only. The time when the asset was created.
- DiscoveryStatuses List<AssetDiscovery Status> 
- Output only. Status of the discovery feature applied to data referenced by this asset.
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- ResourceStatuses List<AssetResource Status> 
- Output only. Status of the resource referenced by this asset.
- SecurityStatuses List<AssetSecurity Status> 
- Output only. Status of the security policy applied to resource referenced by this asset.
- State string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- Uid string
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- UpdateTime string
- Output only. The time when the asset was last updated.
- CreateTime string
- Output only. The time when the asset was created.
- DiscoveryStatuses []AssetDiscovery Status 
- Output only. Status of the discovery feature applied to data referenced by this asset.
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- ResourceStatuses []AssetResource Status 
- Output only. Status of the resource referenced by this asset.
- SecurityStatuses []AssetSecurity Status 
- Output only. Status of the security policy applied to resource referenced by this asset.
- State string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- Uid string
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- UpdateTime string
- Output only. The time when the asset was last updated.
- createTime String
- Output only. The time when the asset was created.
- discoveryStatuses List<AssetDiscovery Status> 
- Output only. Status of the discovery feature applied to data referenced by this asset.
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- resourceStatuses List<AssetResource Status> 
- Output only. Status of the resource referenced by this asset.
- securityStatuses List<AssetSecurity Status> 
- Output only. Status of the security policy applied to resource referenced by this asset.
- state String
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- uid String
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- updateTime String
- Output only. The time when the asset was last updated.
- createTime string
- Output only. The time when the asset was created.
- discoveryStatuses AssetDiscovery Status[] 
- Output only. Status of the discovery feature applied to data referenced by this asset.
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- resourceStatuses AssetResource Status[] 
- Output only. Status of the resource referenced by this asset.
- securityStatuses AssetSecurity Status[] 
- Output only. Status of the security policy applied to resource referenced by this asset.
- state string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- uid string
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- updateTime string
- Output only. The time when the asset was last updated.
- create_time str
- Output only. The time when the asset was created.
- discovery_statuses Sequence[AssetDiscovery Status] 
- Output only. Status of the discovery feature applied to data referenced by this asset.
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- resource_statuses Sequence[AssetResource Status] 
- Output only. Status of the resource referenced by this asset.
- security_statuses Sequence[AssetSecurity Status] 
- Output only. Status of the security policy applied to resource referenced by this asset.
- state str
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- uid str
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- update_time str
- Output only. The time when the asset was last updated.
- createTime String
- Output only. The time when the asset was created.
- discoveryStatuses List<Property Map>
- Output only. Status of the discovery feature applied to data referenced by this asset.
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- resourceStatuses List<Property Map>
- Output only. Status of the resource referenced by this asset.
- securityStatuses List<Property Map>
- Output only. Status of the security policy applied to resource referenced by this asset.
- state String
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- uid String
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- updateTime String
- Output only. The time when the asset was last updated.
Look up Existing Asset Resource
Get an existing Asset resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AssetState, opts?: CustomResourceOptions): Asset@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        dataplex_zone: Optional[str] = None,
        description: Optional[str] = None,
        discovery_spec: Optional[AssetDiscoverySpecArgs] = None,
        discovery_statuses: Optional[Sequence[AssetDiscoveryStatusArgs]] = None,
        display_name: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        labels: Optional[Mapping[str, str]] = None,
        lake: Optional[str] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        resource_spec: Optional[AssetResourceSpecArgs] = None,
        resource_statuses: Optional[Sequence[AssetResourceStatusArgs]] = None,
        security_statuses: Optional[Sequence[AssetSecurityStatusArgs]] = None,
        state: Optional[str] = None,
        uid: Optional[str] = None,
        update_time: Optional[str] = None) -> Assetfunc GetAsset(ctx *Context, name string, id IDInput, state *AssetState, opts ...ResourceOption) (*Asset, error)public static Asset Get(string name, Input<string> id, AssetState? state, CustomResourceOptions? opts = null)public static Asset get(String name, Output<String> id, AssetState state, CustomResourceOptions options)resources:  _:    type: gcp:dataplex:Asset    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CreateTime string
- Output only. The time when the asset was created.
- DataplexZone string
- The zone for the resource
- Description string
- Optional. Description of the asset.
- DiscoverySpec AssetDiscovery Spec 
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- DiscoveryStatuses List<AssetDiscovery Status> 
- Output only. Status of the discovery feature applied to data referenced by this asset.
- DisplayName string
- Optional. User friendly display name.
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels Dictionary<string, string>
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- Lake string
- The lake for the resource
- Location string
- The location for the resource
- Name string
- The name of the asset.
- Project string
- The project for the resource
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- ResourceSpec AssetResource Spec 
- Required. Immutable. Specification of the resource that is referenced by this asset.
- ResourceStatuses List<AssetResource Status> 
- Output only. Status of the resource referenced by this asset.
- SecurityStatuses List<AssetSecurity Status> 
- Output only. Status of the security policy applied to resource referenced by this asset.
- State string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- Uid string
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- UpdateTime string
- Output only. The time when the asset was last updated.
- CreateTime string
- Output only. The time when the asset was created.
- DataplexZone string
- The zone for the resource
- Description string
- Optional. Description of the asset.
- DiscoverySpec AssetDiscovery Spec Args 
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- DiscoveryStatuses []AssetDiscovery Status Args 
- Output only. Status of the discovery feature applied to data referenced by this asset.
- DisplayName string
- Optional. User friendly display name.
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels map[string]string
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- Lake string
- The lake for the resource
- Location string
- The location for the resource
- Name string
- The name of the asset.
- Project string
- The project for the resource
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- ResourceSpec AssetResource Spec Args 
- Required. Immutable. Specification of the resource that is referenced by this asset.
- ResourceStatuses []AssetResource Status Args 
- Output only. Status of the resource referenced by this asset.
- SecurityStatuses []AssetSecurity Status Args 
- Output only. Status of the security policy applied to resource referenced by this asset.
- State string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- Uid string
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- UpdateTime string
- Output only. The time when the asset was last updated.
- createTime String
- Output only. The time when the asset was created.
- dataplexZone String
- The zone for the resource
- description String
- Optional. Description of the asset.
- discoverySpec AssetDiscovery Spec 
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- discoveryStatuses List<AssetDiscovery Status> 
- Output only. Status of the discovery feature applied to data referenced by this asset.
- displayName String
- Optional. User friendly display name.
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String,String>
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- lake String
- The lake for the resource
- location String
- The location for the resource
- name String
- The name of the asset.
- project String
- The project for the resource
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- resourceSpec AssetResource Spec 
- Required. Immutable. Specification of the resource that is referenced by this asset.
- resourceStatuses List<AssetResource Status> 
- Output only. Status of the resource referenced by this asset.
- securityStatuses List<AssetSecurity Status> 
- Output only. Status of the security policy applied to resource referenced by this asset.
- state String
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- uid String
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- updateTime String
- Output only. The time when the asset was last updated.
- createTime string
- Output only. The time when the asset was created.
- dataplexZone string
- The zone for the resource
- description string
- Optional. Description of the asset.
- discoverySpec AssetDiscovery Spec 
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- discoveryStatuses AssetDiscovery Status[] 
- Output only. Status of the discovery feature applied to data referenced by this asset.
- displayName string
- Optional. User friendly display name.
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels {[key: string]: string}
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- lake string
- The lake for the resource
- location string
- The location for the resource
- name string
- The name of the asset.
- project string
- The project for the resource
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- resourceSpec AssetResource Spec 
- Required. Immutable. Specification of the resource that is referenced by this asset.
- resourceStatuses AssetResource Status[] 
- Output only. Status of the resource referenced by this asset.
- securityStatuses AssetSecurity Status[] 
- Output only. Status of the security policy applied to resource referenced by this asset.
- state string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- uid string
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- updateTime string
- Output only. The time when the asset was last updated.
- create_time str
- Output only. The time when the asset was created.
- dataplex_zone str
- The zone for the resource
- description str
- Optional. Description of the asset.
- discovery_spec AssetDiscovery Spec Args 
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- discovery_statuses Sequence[AssetDiscovery Status Args] 
- Output only. Status of the discovery feature applied to data referenced by this asset.
- display_name str
- Optional. User friendly display name.
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Mapping[str, str]
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- lake str
- The lake for the resource
- location str
- The location for the resource
- name str
- The name of the asset.
- project str
- The project for the resource
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- resource_spec AssetResource Spec Args 
- Required. Immutable. Specification of the resource that is referenced by this asset.
- resource_statuses Sequence[AssetResource Status Args] 
- Output only. Status of the resource referenced by this asset.
- security_statuses Sequence[AssetSecurity Status Args] 
- Output only. Status of the security policy applied to resource referenced by this asset.
- state str
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- uid str
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- update_time str
- Output only. The time when the asset was last updated.
- createTime String
- Output only. The time when the asset was created.
- dataplexZone String
- The zone for the resource
- description String
- Optional. Description of the asset.
- discoverySpec Property Map
- Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.
- discoveryStatuses List<Property Map>
- Output only. Status of the discovery feature applied to data referenced by this asset.
- displayName String
- Optional. User friendly display name.
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String>
- Optional. User defined labels for the asset. Note: This field is non-authoritative, and will only manage the labels
present in your configuration. Please refer to the field effective_labelsfor all of the labels present on the resource.
- lake String
- The lake for the resource
- location String
- The location for the resource
- name String
- The name of the asset.
- project String
- The project for the resource
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- resourceSpec Property Map
- Required. Immutable. Specification of the resource that is referenced by this asset.
- resourceStatuses List<Property Map>
- Output only. Status of the resource referenced by this asset.
- securityStatuses List<Property Map>
- Output only. Status of the security policy applied to resource referenced by this asset.
- state String
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- uid String
- Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.
- updateTime String
- Output only. The time when the asset was last updated.
Supporting Types
AssetDiscoverySpec, AssetDiscoverySpecArgs      
- Enabled bool
- Required. Whether discovery is enabled.
- CsvOptions AssetDiscovery Spec Csv Options 
- Optional. Configuration for CSV data.
- ExcludePatterns List<string>
- Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- IncludePatterns List<string>
- Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- JsonOptions AssetDiscovery Spec Json Options 
- Optional. Configuration for Json data.
- Schedule string
- Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".
- Enabled bool
- Required. Whether discovery is enabled.
- CsvOptions AssetDiscovery Spec Csv Options 
- Optional. Configuration for CSV data.
- ExcludePatterns []string
- Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- IncludePatterns []string
- Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- JsonOptions AssetDiscovery Spec Json Options 
- Optional. Configuration for Json data.
- Schedule string
- Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".
- enabled Boolean
- Required. Whether discovery is enabled.
- csvOptions AssetDiscovery Spec Csv Options 
- Optional. Configuration for CSV data.
- excludePatterns List<String>
- Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- includePatterns List<String>
- Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- jsonOptions AssetDiscovery Spec Json Options 
- Optional. Configuration for Json data.
- schedule String
- Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".
- enabled boolean
- Required. Whether discovery is enabled.
- csvOptions AssetDiscovery Spec Csv Options 
- Optional. Configuration for CSV data.
- excludePatterns string[]
- Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- includePatterns string[]
- Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- jsonOptions AssetDiscovery Spec Json Options 
- Optional. Configuration for Json data.
- schedule string
- Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".
- enabled bool
- Required. Whether discovery is enabled.
- csv_options AssetDiscovery Spec Csv Options 
- Optional. Configuration for CSV data.
- exclude_patterns Sequence[str]
- Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- include_patterns Sequence[str]
- Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- json_options AssetDiscovery Spec Json Options 
- Optional. Configuration for Json data.
- schedule str
- Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".
- enabled Boolean
- Required. Whether discovery is enabled.
- csvOptions Property Map
- Optional. Configuration for CSV data.
- excludePatterns List<String>
- Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- includePatterns List<String>
- Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
- jsonOptions Property Map
- Optional. Configuration for Json data.
- schedule String
- Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".
AssetDiscoverySpecCsvOptions, AssetDiscoverySpecCsvOptionsArgs          
- Delimiter string
- Optional. The delimiter being used to separate values. This defaults to ','.
- DisableType boolInference 
- Optional. Whether to disable the inference of data type for CSV data. If true, all columns will be registered as strings.
- Encoding string
- Optional. The character encoding of the data. The default is UTF-8.
- HeaderRows int
- Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.
- Delimiter string
- Optional. The delimiter being used to separate values. This defaults to ','.
- DisableType boolInference 
- Optional. Whether to disable the inference of data type for CSV data. If true, all columns will be registered as strings.
- Encoding string
- Optional. The character encoding of the data. The default is UTF-8.
- HeaderRows int
- Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.
- delimiter String
- Optional. The delimiter being used to separate values. This defaults to ','.
- disableType BooleanInference 
- Optional. Whether to disable the inference of data type for CSV data. If true, all columns will be registered as strings.
- encoding String
- Optional. The character encoding of the data. The default is UTF-8.
- headerRows Integer
- Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.
- delimiter string
- Optional. The delimiter being used to separate values. This defaults to ','.
- disableType booleanInference 
- Optional. Whether to disable the inference of data type for CSV data. If true, all columns will be registered as strings.
- encoding string
- Optional. The character encoding of the data. The default is UTF-8.
- headerRows number
- Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.
- delimiter str
- Optional. The delimiter being used to separate values. This defaults to ','.
- disable_type_ boolinference 
- Optional. Whether to disable the inference of data type for CSV data. If true, all columns will be registered as strings.
- encoding str
- Optional. The character encoding of the data. The default is UTF-8.
- header_rows int
- Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.
- delimiter String
- Optional. The delimiter being used to separate values. This defaults to ','.
- disableType BooleanInference 
- Optional. Whether to disable the inference of data type for CSV data. If true, all columns will be registered as strings.
- encoding String
- Optional. The character encoding of the data. The default is UTF-8.
- headerRows Number
- Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.
AssetDiscoverySpecJsonOptions, AssetDiscoverySpecJsonOptionsArgs          
- DisableType boolInference 
- Optional. Whether to disable the inference of data type for Json data. If true, all columns will be registered as their primitive types (strings, number or boolean).
- Encoding string
- Optional. The character encoding of the data. The default is UTF-8.
- DisableType boolInference 
- Optional. Whether to disable the inference of data type for Json data. If true, all columns will be registered as their primitive types (strings, number or boolean).
- Encoding string
- Optional. The character encoding of the data. The default is UTF-8.
- disableType BooleanInference 
- Optional. Whether to disable the inference of data type for Json data. If true, all columns will be registered as their primitive types (strings, number or boolean).
- encoding String
- Optional. The character encoding of the data. The default is UTF-8.
- disableType booleanInference 
- Optional. Whether to disable the inference of data type for Json data. If true, all columns will be registered as their primitive types (strings, number or boolean).
- encoding string
- Optional. The character encoding of the data. The default is UTF-8.
- disable_type_ boolinference 
- Optional. Whether to disable the inference of data type for Json data. If true, all columns will be registered as their primitive types (strings, number or boolean).
- encoding str
- Optional. The character encoding of the data. The default is UTF-8.
- disableType BooleanInference 
- Optional. Whether to disable the inference of data type for Json data. If true, all columns will be registered as their primitive types (strings, number or boolean).
- encoding String
- Optional. The character encoding of the data. The default is UTF-8.
AssetDiscoveryStatus, AssetDiscoveryStatusArgs      
- LastRun stringDuration 
- The duration of the last discovery run.
- LastRun stringTime 
- The start time of the last discovery run.
- Message string
- Additional information about the current state.
- State string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- Stats
List<AssetDiscovery Status Stat> 
- Data Stats of the asset reported by discovery.
- UpdateTime string
- Output only. The time when the asset was last updated.
- LastRun stringDuration 
- The duration of the last discovery run.
- LastRun stringTime 
- The start time of the last discovery run.
- Message string
- Additional information about the current state.
- State string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- Stats
[]AssetDiscovery Status Stat 
- Data Stats of the asset reported by discovery.
- UpdateTime string
- Output only. The time when the asset was last updated.
- lastRun StringDuration 
- The duration of the last discovery run.
- lastRun StringTime 
- The start time of the last discovery run.
- message String
- Additional information about the current state.
- state String
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- stats
List<AssetDiscovery Status Stat> 
- Data Stats of the asset reported by discovery.
- updateTime String
- Output only. The time when the asset was last updated.
- lastRun stringDuration 
- The duration of the last discovery run.
- lastRun stringTime 
- The start time of the last discovery run.
- message string
- Additional information about the current state.
- state string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- stats
AssetDiscovery Status Stat[] 
- Data Stats of the asset reported by discovery.
- updateTime string
- Output only. The time when the asset was last updated.
- last_run_ strduration 
- The duration of the last discovery run.
- last_run_ strtime 
- The start time of the last discovery run.
- message str
- Additional information about the current state.
- state str
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- stats
Sequence[AssetDiscovery Status Stat] 
- Data Stats of the asset reported by discovery.
- update_time str
- Output only. The time when the asset was last updated.
- lastRun StringDuration 
- The duration of the last discovery run.
- lastRun StringTime 
- The start time of the last discovery run.
- message String
- Additional information about the current state.
- state String
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- stats List<Property Map>
- Data Stats of the asset reported by discovery.
- updateTime String
- Output only. The time when the asset was last updated.
AssetDiscoveryStatusStat, AssetDiscoveryStatusStatArgs        
- dataItems Integer
- The count of data items within the referenced resource.
- dataSize Integer
- The number of stored data bytes within the referenced resource.
- filesets Integer
- The count of fileset entities within the referenced resource.
- tables Integer
- The count of table entities within the referenced resource.
- data_items int
- The count of data items within the referenced resource.
- data_size int
- The number of stored data bytes within the referenced resource.
- filesets int
- The count of fileset entities within the referenced resource.
- tables int
- The count of table entities within the referenced resource.
AssetResourceSpec, AssetResourceSpecArgs      
- Type string
- Required. Immutable. Type of resource. Possible values: STORAGE_BUCKET, BIGQUERY_DATASET
- Name string
- Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id}projects/{project_number}/datasets/{dataset_id}
- ReadAccess stringMode 
- Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. Possible values: DIRECT, MANAGED
- Type string
- Required. Immutable. Type of resource. Possible values: STORAGE_BUCKET, BIGQUERY_DATASET
- Name string
- Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id}projects/{project_number}/datasets/{dataset_id}
- ReadAccess stringMode 
- Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. Possible values: DIRECT, MANAGED
- type String
- Required. Immutable. Type of resource. Possible values: STORAGE_BUCKET, BIGQUERY_DATASET
- name String
- Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id}projects/{project_number}/datasets/{dataset_id}
- readAccess StringMode 
- Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. Possible values: DIRECT, MANAGED
- type string
- Required. Immutable. Type of resource. Possible values: STORAGE_BUCKET, BIGQUERY_DATASET
- name string
- Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id}projects/{project_number}/datasets/{dataset_id}
- readAccess stringMode 
- Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. Possible values: DIRECT, MANAGED
- type str
- Required. Immutable. Type of resource. Possible values: STORAGE_BUCKET, BIGQUERY_DATASET
- name str
- Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id}projects/{project_number}/datasets/{dataset_id}
- read_access_ strmode 
- Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. Possible values: DIRECT, MANAGED
- type String
- Required. Immutable. Type of resource. Possible values: STORAGE_BUCKET, BIGQUERY_DATASET
- name String
- Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id}projects/{project_number}/datasets/{dataset_id}
- readAccess StringMode 
- Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. Possible values: DIRECT, MANAGED
AssetResourceStatus, AssetResourceStatusArgs      
- Message string
- Additional information about the current state.
- State string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- UpdateTime string
- Output only. The time when the asset was last updated.
- Message string
- Additional information about the current state.
- State string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- UpdateTime string
- Output only. The time when the asset was last updated.
- message String
- Additional information about the current state.
- state String
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- updateTime String
- Output only. The time when the asset was last updated.
- message string
- Additional information about the current state.
- state string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- updateTime string
- Output only. The time when the asset was last updated.
- message str
- Additional information about the current state.
- state str
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- update_time str
- Output only. The time when the asset was last updated.
- message String
- Additional information about the current state.
- state String
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- updateTime String
- Output only. The time when the asset was last updated.
AssetSecurityStatus, AssetSecurityStatusArgs      
- Message string
- Additional information about the current state.
- State string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- UpdateTime string
- Output only. The time when the asset was last updated.
- Message string
- Additional information about the current state.
- State string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- UpdateTime string
- Output only. The time when the asset was last updated.
- message String
- Additional information about the current state.
- state String
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- updateTime String
- Output only. The time when the asset was last updated.
- message string
- Additional information about the current state.
- state string
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- updateTime string
- Output only. The time when the asset was last updated.
- message str
- Additional information about the current state.
- state str
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- update_time str
- Output only. The time when the asset was last updated.
- message String
- Additional information about the current state.
- state String
- Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- updateTime String
- Output only. The time when the asset was last updated.
Import
Asset can be imported using any of these accepted formats:
- projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{dataplex_zone}}/assets/{{name}}
- {{project}}/{{location}}/{{lake}}/{{dataplex_zone}}/{{name}}
- {{location}}/{{lake}}/{{dataplex_zone}}/{{name}}
When using the pulumi import command, Asset can be imported using one of the formats above. For example:
$ pulumi import gcp:dataplex/asset:Asset default projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{dataplex_zone}}/assets/{{name}}
$ pulumi import gcp:dataplex/asset:Asset default {{project}}/{{location}}/{{lake}}/{{dataplex_zone}}/{{name}}
$ pulumi import gcp:dataplex/asset:Asset default {{location}}/{{lake}}/{{dataplex_zone}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.