gcp.dataplex.Asset
Explore with Pulumi AI
The Dataplex Asset resource
Example Usage
Basic_asset
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var basicBucket = new Gcp.Storage.Bucket("basicBucket", new()
{
Location = "us-west1",
UniformBucketLevelAccess = true,
Project = "my-project-name",
});
var basicLake = new Gcp.DataPlex.Lake("basicLake", new()
{
Location = "us-west1",
Project = "my-project-name",
});
var basicZone = new Gcp.DataPlex.Zone("basicZone", new()
{
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()
{
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",
},
Project = "my-project-name",
}, new CustomResourceOptions
{
DependsOn = new[]
{
basicBucket,
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/dataplex"
"github.com/pulumi/pulumi-gcp/sdk/v6/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, "basicBucket", &storage.BucketArgs{
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, "basicLake", &dataplex.LakeArgs{
Location: pulumi.String("us-west1"),
Project: pulumi.String("my-project-name"),
})
if err != nil {
return err
}
basicZone, err := dataplex.NewZone(ctx, "basicZone", &dataplex.ZoneArgs{
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{
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"),
},
Project: pulumi.String("my-project-name"),
}, pulumi.DependsOn([]pulumi.Resource{
basicBucket,
}))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.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()
.location("us-west1")
.uniformBucketLevelAccess(true)
.project("my-project-name")
.build());
var basicLake = new Lake("basicLake", LakeArgs.builder()
.location("us-west1")
.project("my-project-name")
.build());
var basicZone = new Zone("basicZone", ZoneArgs.builder()
.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()
.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())
.project("my-project-name")
.build(), CustomResourceOptions.builder()
.dependsOn(basicBucket)
.build());
}
}
import pulumi
import pulumi_gcp as gcp
basic_bucket = gcp.storage.Bucket("basicBucket",
location="us-west1",
uniform_bucket_level_access=True,
project="my-project-name")
basic_lake = gcp.dataplex.Lake("basicLake",
location="us-west1",
project="my-project-name")
basic_zone = gcp.dataplex.Zone("basicZone",
location="us-west1",
lake=basic_lake.name,
type="RAW",
discovery_spec=gcp.dataplex.ZoneDiscoverySpecArgs(
enabled=False,
),
resource_spec=gcp.dataplex.ZoneResourceSpecArgs(
location_type="SINGLE_REGION",
),
project="my-project-name")
primary = gcp.dataplex.Asset("primary",
location="us-west1",
lake=basic_lake.name,
dataplex_zone=basic_zone.name,
discovery_spec=gcp.dataplex.AssetDiscoverySpecArgs(
enabled=False,
),
resource_spec=gcp.dataplex.AssetResourceSpecArgs(
name="projects/my-project-name/buckets/bucket",
type="STORAGE_BUCKET",
),
project="my-project-name",
opts=pulumi.ResourceOptions(depends_on=[basic_bucket]))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basicBucket = new gcp.storage.Bucket("basicBucket", {
location: "us-west1",
uniformBucketLevelAccess: true,
project: "my-project-name",
});
const basicLake = new gcp.dataplex.Lake("basicLake", {
location: "us-west1",
project: "my-project-name",
});
const basicZone = new gcp.dataplex.Zone("basicZone", {
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", {
location: "us-west1",
lake: basicLake.name,
dataplexZone: basicZone.name,
discoverySpec: {
enabled: false,
},
resourceSpec: {
name: "projects/my-project-name/buckets/bucket",
type: "STORAGE_BUCKET",
},
project: "my-project-name",
}, {
dependsOn: [basicBucket],
});
resources:
basicBucket:
type: gcp:storage:Bucket
properties:
location: us-west1
uniformBucketLevelAccess: true
project: my-project-name
basicLake:
type: gcp:dataplex:Lake
properties:
location: us-west1
project: my-project-name
basicZone:
type: gcp:dataplex:Zone
properties:
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:
location: us-west1
lake: ${basicLake.name}
dataplexZone: ${basicZone.name}
discoverySpec:
enabled: false
resourceSpec:
name: projects/my-project-name/buckets/bucket
type: STORAGE_BUCKET
project: my-project-name
options:
dependson:
- ${basicBucket}
Create Asset Resource
new Asset(name: string, args: AssetArgs, opts?: CustomResourceOptions);
@overload
def Asset(resource_name: str,
opts: Optional[ResourceOptions] = None,
dataplex_zone: Optional[str] = None,
description: Optional[str] = None,
discovery_spec: Optional[AssetDiscoverySpecArgs] = None,
display_name: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
lake: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
resource_spec: Optional[AssetResourceSpecArgs] = None)
@overload
def Asset(resource_name: str,
args: AssetArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Id string
The provider-assigned unique ID for this managed resource.
- 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.
- Id string
The provider-assigned unique ID for this managed resource.
- 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.
- id String
The provider-assigned unique ID for this managed resource.
- 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.
- id string
The provider-assigned unique ID for this managed resource.
- 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.
- id str
The provider-assigned unique ID for this managed resource.
- 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.
- id String
The provider-assigned unique ID for this managed resource.
- 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,
labels: Optional[Mapping[str, str]] = None,
lake: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[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.
- Labels Dictionary<string, string>
Optional. User defined labels for the asset.
- 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
- 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.
- Labels map[string]string
Optional. User defined labels for the asset.
- 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
- 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.
- labels Map<String,String>
Optional. User defined labels for the asset.
- 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
- 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.
- labels {[key: string]: string}
Optional. User defined labels for the asset.
- 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
- 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.
- labels Mapping[str, str]
Optional. User defined labels for the asset.
- 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
- 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.
- labels Map<String>
Optional. User defined labels for the asset.
- 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
- 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 - Last
Run stringTime - Message string
- State string
Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- Stats
List<Asset
Discovery Status Stat> - Update
Time string Output only. The time when the asset was last updated.
- Last
Run stringDuration - Last
Run stringTime - Message string
- State string
Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- Stats
[]Asset
Discovery Status Stat - Update
Time string Output only. The time when the asset was last updated.
- last
Run StringDuration - last
Run StringTime - message String
- state String
Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- stats
List<Asset
Discovery Status Stat> - update
Time String Output only. The time when the asset was last updated.
- last
Run stringDuration - last
Run stringTime - message string
- state string
Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- stats
Asset
Discovery Status Stat[] - update
Time string Output only. The time when the asset was last updated.
- last_
run_ strduration - last_
run_ strtime - message str
- state str
Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- stats
Sequence[Asset
Discovery Status Stat] - update_
time str Output only. The time when the asset was last updated.
- last
Run StringDuration - last
Run StringTime - message String
- state String
Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
- stats List<Property Map>
- update
Time String Output only. The time when the asset was last updated.
AssetDiscoveryStatusStat, AssetDiscoveryStatusStatArgs
- data_
items int - data_
size int - filesets int
- tables int
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
$ 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}}
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.