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:
- Dataplex
Zone string - The zone for the resource
- Discovery
Spec 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
- Resource
Spec AssetResource Spec - Required. Immutable. Specification of the resource that is referenced by this asset.
- Description string
- Optional. Description of the asset.
- Display
Name 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_labels
for all of the labels present on the resource. - Name string
- The name of the asset.
- Project string
- The project for the resource
- Dataplex
Zone string - 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 string
- The lake for the resource
- Location string
- The location for the resource
- Resource
Spec AssetResource Spec Args - Required. Immutable. Specification of the resource that is referenced by this asset.
- Description string
- Optional. Description of the asset.
- Display
Name 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_labels
for all of the labels present on the resource. - Name string
- The name of the asset.
- Project string
- The project for the resource
- dataplex
Zone String - The zone for the resource
- discovery
Spec 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
- resource
Spec AssetResource Spec - Required. Immutable. Specification of the resource that is referenced by this asset.
- description String
- Optional. Description of the asset.
- display
Name 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_labels
for all of the labels present on the resource. - name String
- The name of the asset.
- project String
- The project for the resource
- dataplex
Zone string - The zone for the resource
- discovery
Spec 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
- resource
Spec AssetResource Spec - Required. Immutable. Specification of the resource that is referenced by this asset.
- description string
- Optional. Description of the asset.
- display
Name 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_labels
for 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_labels
for all of the labels present on the resource. - name str
- The name of the asset.
- project str
- The project for the resource
- dataplex
Zone String - The zone for the resource
- discovery
Spec 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
- resource
Spec Property Map - Required. Immutable. Specification of the resource that is referenced by this asset.
- description String
- Optional. Description of the asset.
- display
Name 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_labels
for 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:
- Create
Time string - Output only. The time when the asset was created.
- Discovery
Statuses List<AssetDiscovery Status> - Output only. Status of the discovery feature applied to data referenced by this asset.
- Effective
Labels 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.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Resource
Statuses List<AssetResource Status> - Output only. Status of the resource referenced by this asset.
- Security
Statuses 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.
- Update
Time string - Output only. The time when the asset was last updated.
- Create
Time string - Output only. The time when the asset was created.
- Discovery
Statuses []AssetDiscovery Status - Output only. Status of the discovery feature applied to data referenced by this asset.
- Effective
Labels 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.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Resource
Statuses []AssetResource Status - Output only. Status of the resource referenced by this asset.
- Security
Statuses []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.
- Update
Time string - Output only. The time when the asset was last updated.
- create
Time String - Output only. The time when the asset was created.
- discovery
Statuses List<AssetDiscovery Status> - Output only. Status of the discovery feature applied to data referenced by this asset.
- effective
Labels 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.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- resource
Statuses List<AssetResource Status> - Output only. Status of the resource referenced by this asset.
- security
Statuses 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.
- update
Time String - Output only. The time when the asset was last updated.
- create
Time string - Output only. The time when the asset was created.
- discovery
Statuses AssetDiscovery Status[] - Output only. Status of the discovery feature applied to data referenced by this asset.
- effective
Labels {[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.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- resource
Statuses AssetResource Status[] - Output only. Status of the resource referenced by this asset.
- security
Statuses 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.
- update
Time 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.
- create
Time String - Output only. The time when the asset was created.
- discovery
Statuses List<Property Map> - Output only. Status of the discovery feature applied to data referenced by this asset.
- effective
Labels 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.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- resource
Statuses List<Property Map> - Output only. Status of the resource referenced by this asset.
- security
Statuses 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.
- update
Time 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) -> Asset
func 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)
Resource lookup is not supported in YAML
- 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.
- Create
Time string - Output only. The time when the asset was created.
- Dataplex
Zone string - The zone for the resource
- Description string
- Optional. Description of the asset.
- Discovery
Spec 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.
- Discovery
Statuses List<AssetDiscovery Status> - Output only. Status of the discovery feature applied to data referenced by this asset.
- Display
Name string - Optional. User friendly display name.
- Effective
Labels 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_labels
for 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
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Resource
Spec AssetResource Spec - Required. Immutable. Specification of the resource that is referenced by this asset.
- Resource
Statuses List<AssetResource Status> - Output only. Status of the resource referenced by this asset.
- Security
Statuses 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.
- Update
Time string - Output only. The time when the asset was last updated.
- Create
Time string - Output only. The time when the asset was created.
- Dataplex
Zone string - The zone for the resource
- Description string
- 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 []AssetDiscovery Status Args - Output only. Status of the discovery feature applied to data referenced by this asset.
- Display
Name string - Optional. User friendly display name.
- Effective
Labels 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_labels
for 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
- Pulumi
Labels map[string]string - 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 []AssetResource Status Args - Output only. Status of the resource referenced by this asset.
- Security
Statuses []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.
- Update
Time string - Output only. The time when the asset was last updated.
- create
Time String - Output only. The time when the asset was created.
- dataplex
Zone String - The zone for the resource
- description String
- Optional. Description of the asset.
- discovery
Spec 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.
- discovery
Statuses List<AssetDiscovery Status> - Output only. Status of the discovery feature applied to data referenced by this asset.
- display
Name String - Optional. User friendly display name.
- effective
Labels 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_labels
for 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
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- resource
Spec AssetResource Spec - Required. Immutable. Specification of the resource that is referenced by this asset.
- resource
Statuses List<AssetResource Status> - Output only. Status of the resource referenced by this asset.
- security
Statuses 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.
- update
Time String - Output only. The time when the asset was last updated.
- create
Time string - Output only. The time when the asset was created.
- dataplex
Zone string - The zone for the resource
- description string
- Optional. Description of the asset.
- discovery
Spec 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.
- discovery
Statuses AssetDiscovery Status[] - Output only. Status of the discovery feature applied to data referenced by this asset.
- display
Name string - Optional. User friendly display name.
- effective
Labels {[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_labels
for 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
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- resource
Spec AssetResource Spec - Required. Immutable. Specification of the resource that is referenced by this asset.
- resource
Statuses AssetResource Status[] - Output only. Status of the resource referenced by this asset.
- security
Statuses 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.
- update
Time 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_labels
for 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.
- create
Time String - Output only. The time when the asset was created.
- dataplex
Zone String - The zone for the resource
- description String
- Optional. Description of the asset.
- discovery
Spec 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.
- discovery
Statuses List<Property Map> - Output only. Status of the discovery feature applied to data referenced by this asset.
- display
Name String - Optional. User friendly display name.
- effective
Labels 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_labels
for 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
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- resource
Spec Property Map - Required. Immutable. Specification of the resource that is referenced by this asset.
- resource
Statuses List<Property Map> - Output only. Status of the resource referenced by this asset.
- security
Statuses 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.
- update
Time String - Output only. The time when the asset was last updated.
Supporting Types
AssetDiscoverySpec, AssetDiscoverySpecArgs
- Enabled bool
- Required. Whether discovery is enabled.
- Csv
Options AssetDiscovery Spec Csv Options - Optional. Configuration for CSV data.
- Exclude
Patterns 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.
- Include
Patterns 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.
- Json
Options 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 []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.
- Include
Patterns []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.
- Json
Options 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.
- csv
Options AssetDiscovery Spec Csv Options - Optional. Configuration for CSV data.
- exclude
Patterns 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.
- include
Patterns 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.
- json
Options 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.
- csv
Options AssetDiscovery Spec Csv Options - Optional. Configuration for CSV data.
- exclude
Patterns 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.
- include
Patterns 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.
- json
Options 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.
- csv
Options Property Map - Optional. Configuration for CSV data.
- exclude
Patterns 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.
- include
Patterns 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.
- json
Options 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 ','.
- 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 string
- 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 ','.
- 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 string
- 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 ','.
- disable
Type 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.
- header
Rows 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 ','.
- disable
Type 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.
- header
Rows 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 ','.
- disable
Type 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.
- header
Rows Number - Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.
AssetDiscoverySpecJsonOptions, AssetDiscoverySpecJsonOptionsArgs
- 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 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 string
- Optional. The character encoding of the data. The default is UTF-8.
- disable
Type 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 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.
- disable
Type 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
- Last
Run stringDuration - The duration of the last discovery run.
- Last
Run 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<Asset
Discovery Status Stat> - Data Stats of the asset reported by discovery.
- Update
Time string - Output only. The time when the asset was last updated.
- Last
Run stringDuration - The duration of the last discovery run.
- Last
Run 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
[]Asset
Discovery Status Stat - Data Stats of the asset reported by discovery.
- Update
Time string - Output only. The time when the asset was last updated.
- last
Run StringDuration - The duration of the last discovery run.
- last
Run 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<Asset
Discovery Status Stat> - Data Stats of the asset reported by discovery.
- update
Time String - Output only. The time when the asset was last updated.
- last
Run stringDuration - The duration of the last discovery run.
- last
Run 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
Asset
Discovery Status Stat[] - Data Stats of the asset reported by discovery.
- update
Time 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[Asset
Discovery Status Stat] - Data Stats of the asset reported by discovery.
- update_
time str - Output only. The time when the asset was last updated.
- last
Run StringDuration - The duration of the last discovery run.
- last
Run 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.
- update
Time String - Output only. The time when the asset was last updated.
AssetDiscoveryStatusStat, AssetDiscoveryStatusStatArgs
- data
Items Integer - The count of data items within the referenced resource.
- data
Size 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}
- Read
Access 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}
- Read
Access 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}
- read
Access 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}
- read
Access 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}
- read
Access 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
- Update
Time 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
- Update
Time 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
- update
Time 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
- update
Time 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
- update
Time 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
- Update
Time 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
- Update
Time 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
- update
Time 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
- update
Time 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
- update
Time 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-beta
Terraform Provider.