Google Cloud (GCP) Classic

v6.38.0 published on Thursday, Sep 22, 2022 by Pulumi

Asset

The Dataplex Asset resource

Create a 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)
public Asset(String name, AssetArgs args)
public Asset(String name, AssetArgs args, CustomResourceOptions options)
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:

DataplexZone string

The zone for the resource

DiscoverySpec AssetDiscoverySpecArgs

Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

Lake string

The lake for the resource

Location string

The location for the resource

ResourceSpec AssetResourceSpecArgs

Required. Immutable. Specification of the resource that is referenced by this asset.

Description string

Optional. Description of the asset.

DisplayName string

Optional. User friendly display name.

Labels Dictionary<string, string>

Optional. User defined labels for the asset.

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}

Project string

The project for the resource

DataplexZone string

The zone for the resource

DiscoverySpec AssetDiscoverySpecArgs

Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

Lake string

The lake for the resource

Location string

The location for the resource

ResourceSpec AssetResourceSpecArgs

Required. Immutable. Specification of the resource that is referenced by this asset.

Description string

Optional. Description of the asset.

DisplayName string

Optional. User friendly display name.

Labels map[string]string

Optional. User defined labels for the asset.

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}

Project string

The project for the resource

dataplexZone String

The zone for the resource

discoverySpec AssetDiscoverySpecArgs

Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

lake String

The lake for the resource

location String

The location for the resource

resourceSpec AssetResourceSpecArgs

Required. Immutable. Specification of the resource that is referenced by this asset.

description String

Optional. Description of the asset.

displayName String

Optional. User friendly display name.

labels Map<String,String>

Optional. User defined labels for the asset.

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}

project String

The project for the resource

dataplexZone string

The zone for the resource

discoverySpec AssetDiscoverySpecArgs

Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

lake string

The lake for the resource

location string

The location for the resource

resourceSpec AssetResourceSpecArgs

Required. Immutable. Specification of the resource that is referenced by this asset.

description string

Optional. Description of the asset.

displayName string

Optional. User friendly display name.

labels {[key: string]: string}

Optional. User defined labels for the asset.

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}

project string

The project for the resource

dataplex_zone str

The zone for the resource

discovery_spec AssetDiscoverySpecArgs

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 AssetResourceSpecArgs

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

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}

project str

The project for the resource

dataplexZone String

The zone for the resource

discoverySpec Property Map

Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

lake String

The lake for the resource

location String

The location for the resource

resourceSpec Property Map

Required. Immutable. Specification of the resource that is referenced by this asset.

description String

Optional. Description of the asset.

displayName String

Optional. User friendly display name.

labels Map<String>

Optional. User defined labels for the asset.

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}

project String

The project for the resource

Outputs

All input properties are implicitly available as output properties. Additionally, the Asset resource produces the following output properties:

CreateTime string

Output only. The time when the asset was created.

DiscoveryStatuses List<AssetDiscoveryStatus>

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.

ResourceStatuses List<AssetResourceStatus>

Output only. Status of the resource referenced by this asset.

SecurityStatuses List<AssetSecurityStatus>

Output only. Status of the security policy applied to resource referenced by this asset.

State string

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

Uid string

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

UpdateTime string

Output only. The time when the asset was last updated.

CreateTime string

Output only. The time when the asset was created.

DiscoveryStatuses []AssetDiscoveryStatus

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.

ResourceStatuses []AssetResourceStatus

Output only. Status of the resource referenced by this asset.

SecurityStatuses []AssetSecurityStatus

Output only. Status of the security policy applied to resource referenced by this asset.

State string

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

Uid string

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

UpdateTime string

Output only. The time when the asset was last updated.

createTime String

Output only. The time when the asset was created.

discoveryStatuses List<AssetDiscoveryStatus>

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.

resourceStatuses List<AssetResourceStatus>

Output only. Status of the resource referenced by this asset.

securityStatuses List<AssetSecurityStatus>

Output only. Status of the security policy applied to resource referenced by this asset.

state String

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

uid String

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

updateTime String

Output only. The time when the asset was last updated.

createTime string

Output only. The time when the asset was created.

discoveryStatuses AssetDiscoveryStatus[]

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.

resourceStatuses AssetResourceStatus[]

Output only. Status of the resource referenced by this asset.

securityStatuses AssetSecurityStatus[]

Output only. Status of the security policy applied to resource referenced by this asset.

state string

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

uid string

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

updateTime string

Output only. The time when the asset was last updated.

create_time str

Output only. The time when the asset was created.

discovery_statuses Sequence[AssetDiscoveryStatus]

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[AssetResourceStatus]

Output only. Status of the resource referenced by this asset.

security_statuses Sequence[AssetSecurityStatus]

Output only. Status of the security policy applied to resource referenced by this asset.

state str

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

uid str

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

update_time str

Output only. The time when the asset was last updated.

createTime String

Output only. The time when the asset was created.

discoveryStatuses List<Property Map>

Output only. Status of the discovery feature applied to data referenced by this asset.

id String

The provider-assigned unique ID for this managed resource.

resourceStatuses List<Property Map>

Output only. Status of the resource referenced by this asset.

securityStatuses List<Property Map>

Output only. Status of the security policy applied to resource referenced by this asset.

state String

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

uid String

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

updateTime String

Output only. The time when the asset was last updated.

Look up an 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.
The following state arguments are supported:
CreateTime string

Output only. The time when the asset was created.

DataplexZone string

The zone for the resource

Description string

Optional. Description of the asset.

DiscoverySpec AssetDiscoverySpecArgs

Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

DiscoveryStatuses List<AssetDiscoveryStatusArgs>

Output only. Status of the discovery feature applied to data referenced by this asset.

DisplayName 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

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}

Project string

The project for the resource

ResourceSpec AssetResourceSpecArgs

Required. Immutable. Specification of the resource that is referenced by this asset.

ResourceStatuses List<AssetResourceStatusArgs>

Output only. Status of the resource referenced by this asset.

SecurityStatuses List<AssetSecurityStatusArgs>

Output only. Status of the security policy applied to resource referenced by this asset.

State string

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

Uid string

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

UpdateTime string

Output only. The time when the asset was last updated.

CreateTime string

Output only. The time when the asset was created.

DataplexZone string

The zone for the resource

Description string

Optional. Description of the asset.

DiscoverySpec AssetDiscoverySpecArgs

Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

DiscoveryStatuses []AssetDiscoveryStatusArgs

Output only. Status of the discovery feature applied to data referenced by this asset.

DisplayName 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

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}

Project string

The project for the resource

ResourceSpec AssetResourceSpecArgs

Required. Immutable. Specification of the resource that is referenced by this asset.

ResourceStatuses []AssetResourceStatusArgs

Output only. Status of the resource referenced by this asset.

SecurityStatuses []AssetSecurityStatusArgs

Output only. Status of the security policy applied to resource referenced by this asset.

State string

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

Uid string

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

UpdateTime string

Output only. The time when the asset was last updated.

createTime String

Output only. The time when the asset was created.

dataplexZone String

The zone for the resource

description String

Optional. Description of the asset.

discoverySpec AssetDiscoverySpecArgs

Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

discoveryStatuses List<AssetDiscoveryStatusArgs>

Output only. Status of the discovery feature applied to data referenced by this asset.

displayName 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

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}

project String

The project for the resource

resourceSpec AssetResourceSpecArgs

Required. Immutable. Specification of the resource that is referenced by this asset.

resourceStatuses List<AssetResourceStatusArgs>

Output only. Status of the resource referenced by this asset.

securityStatuses List<AssetSecurityStatusArgs>

Output only. Status of the security policy applied to resource referenced by this asset.

state String

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

uid String

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

updateTime String

Output only. The time when the asset was last updated.

createTime string

Output only. The time when the asset was created.

dataplexZone string

The zone for the resource

description string

Optional. Description of the asset.

discoverySpec AssetDiscoverySpecArgs

Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

discoveryStatuses AssetDiscoveryStatusArgs[]

Output only. Status of the discovery feature applied to data referenced by this asset.

displayName 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

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}

project string

The project for the resource

resourceSpec AssetResourceSpecArgs

Required. Immutable. Specification of the resource that is referenced by this asset.

resourceStatuses AssetResourceStatusArgs[]

Output only. Status of the resource referenced by this asset.

securityStatuses AssetSecurityStatusArgs[]

Output only. Status of the security policy applied to resource referenced by this asset.

state string

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

uid string

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

updateTime string

Output only. The time when the asset was last updated.

create_time str

Output only. The time when the asset was created.

dataplex_zone str

The zone for the resource

description str

Optional. Description of the asset.

discovery_spec AssetDiscoverySpecArgs

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[AssetDiscoveryStatusArgs]

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

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}

project str

The project for the resource

resource_spec AssetResourceSpecArgs

Required. Immutable. Specification of the resource that is referenced by this asset.

resource_statuses Sequence[AssetResourceStatusArgs]

Output only. Status of the resource referenced by this asset.

security_statuses Sequence[AssetSecurityStatusArgs]

Output only. Status of the security policy applied to resource referenced by this asset.

state str

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

uid str

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

update_time str

Output only. The time when the asset was last updated.

createTime String

Output only. The time when the asset was created.

dataplexZone String

The zone for the resource

description String

Optional. Description of the asset.

discoverySpec Property Map

Required. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

discoveryStatuses List<Property Map>

Output only. Status of the discovery feature applied to data referenced by this asset.

displayName String

Optional. User friendly display name.

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

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}

project String

The project for the resource

resourceSpec Property Map

Required. Immutable. Specification of the resource that is referenced by this asset.

resourceStatuses List<Property Map>

Output only. Status of the resource referenced by this asset.

securityStatuses List<Property Map>

Output only. Status of the security policy applied to resource referenced by this asset.

state String

Output only. Current state of the asset. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED

uid String

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name.

updateTime String

Output only. The time when the asset was last updated.

Supporting Types

AssetDiscoverySpec

Enabled bool

Required. Whether discovery is enabled.

CsvOptions AssetDiscoverySpecCsvOptions

Optional. Configuration for CSV data.

ExcludePatterns List<string>

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

IncludePatterns List<string>

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

JsonOptions AssetDiscoverySpecJsonOptions

Optional. Configuration for Json data.

Schedule string

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".

Enabled bool

Required. Whether discovery is enabled.

CsvOptions AssetDiscoverySpecCsvOptions

Optional. Configuration for CSV data.

ExcludePatterns []string

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

IncludePatterns []string

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

JsonOptions AssetDiscoverySpecJsonOptions

Optional. Configuration for Json data.

Schedule string

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".

enabled Boolean

Required. Whether discovery is enabled.

csvOptions AssetDiscoverySpecCsvOptions

Optional. Configuration for CSV data.

excludePatterns List<String>

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

includePatterns List<String>

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

jsonOptions AssetDiscoverySpecJsonOptions

Optional. Configuration for Json data.

schedule String

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".

enabled boolean

Required. Whether discovery is enabled.

csvOptions AssetDiscoverySpecCsvOptions

Optional. Configuration for CSV data.

excludePatterns string[]

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

includePatterns string[]

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

jsonOptions AssetDiscoverySpecJsonOptions

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 AssetDiscoverySpecCsvOptions

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 AssetDiscoverySpecJsonOptions

Optional. Configuration for Json data.

schedule str

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".

enabled Boolean

Required. Whether discovery is enabled.

csvOptions Property Map

Optional. Configuration for CSV data.

excludePatterns List<String>

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

includePatterns List<String>

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

jsonOptions Property Map

Optional. Configuration for Json data.

schedule String

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".

AssetDiscoverySpecCsvOptions

Delimiter string

Optional. The delimiter being used to separate values. This defaults to ','.

DisableTypeInference bool

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.

HeaderRows int

Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.

Delimiter string

Optional. The delimiter being used to separate values. This defaults to ','.

DisableTypeInference bool

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.

HeaderRows int

Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.

delimiter String

Optional. The delimiter being used to separate values. This defaults to ','.

disableTypeInference Boolean

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.

headerRows Integer

Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.

delimiter string

Optional. The delimiter being used to separate values. This defaults to ','.

disableTypeInference boolean

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.

headerRows number

Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.

delimiter str

Optional. The delimiter being used to separate values. This defaults to ','.

disable_type_inference bool

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.

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 ','.

disableTypeInference Boolean

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.

headerRows Number

Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.

AssetDiscoverySpecJsonOptions

DisableTypeInference bool

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.

DisableTypeInference bool

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.

disableTypeInference Boolean

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.

disableTypeInference boolean

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_inference bool

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.

disableTypeInference Boolean

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

AssetDiscoveryStatusStat

dataItems Integer
dataSize Integer
filesets Integer
tables Integer
dataItems number
dataSize number
filesets number
tables number
dataItems Number
dataSize Number
filesets Number
tables Number

AssetResourceSpec

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}

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}

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}

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}

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}

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}

AssetResourceStatus

Message string
State string
UpdateTime string
Message string
State string
UpdateTime string
message String
state String
updateTime String
message string
state string
updateTime string
message String
state String
updateTime String

AssetSecurityStatus

Message string
State string
UpdateTime string
Message string
State string
UpdateTime string
message String
state String
updateTime String
message string
state string
updateTime string
message String
state String
updateTime String

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
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.