Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.dataplex/v1.Attribute
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Create a DataAttribute resource. Auto-naming is currently not supported for this resource.
Create Attribute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Attribute(name: string, args: AttributeArgs, opts?: CustomResourceOptions);
@overload
def Attribute(resource_name: str,
args: AttributeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Attribute(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_attribute_id: Optional[str] = None,
data_taxonomy_id: Optional[str] = None,
data_access_spec: Optional[GoogleCloudDataplexV1DataAccessSpecArgs] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
etag: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
parent_id: Optional[str] = None,
project: Optional[str] = None,
resource_access_spec: Optional[GoogleCloudDataplexV1ResourceAccessSpecArgs] = None)
func NewAttribute(ctx *Context, name string, args AttributeArgs, opts ...ResourceOption) (*Attribute, error)
public Attribute(string name, AttributeArgs args, CustomResourceOptions? opts = null)
public Attribute(String name, AttributeArgs args)
public Attribute(String name, AttributeArgs args, CustomResourceOptions options)
type: google-native:dataplex/v1:Attribute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AttributeArgs
- 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 AttributeArgs
- 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 AttributeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AttributeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AttributeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var attributeResource = new GoogleNative.Dataplex.V1.Attribute("attributeResource", new()
{
DataAttributeId = "string",
DataTaxonomyId = "string",
DataAccessSpec = new GoogleNative.Dataplex.V1.Inputs.GoogleCloudDataplexV1DataAccessSpecArgs
{
Readers = new[]
{
"string",
},
},
Description = "string",
DisplayName = "string",
Etag = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
ParentId = "string",
Project = "string",
ResourceAccessSpec = new GoogleNative.Dataplex.V1.Inputs.GoogleCloudDataplexV1ResourceAccessSpecArgs
{
Owners = new[]
{
"string",
},
Readers = new[]
{
"string",
},
Writers = new[]
{
"string",
},
},
});
example, err := dataplex.NewAttribute(ctx, "attributeResource", &dataplex.AttributeArgs{
DataAttributeId: pulumi.String("string"),
DataTaxonomyId: pulumi.String("string"),
DataAccessSpec: &dataplex.GoogleCloudDataplexV1DataAccessSpecArgs{
Readers: pulumi.StringArray{
pulumi.String("string"),
},
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Etag: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
ParentId: pulumi.String("string"),
Project: pulumi.String("string"),
ResourceAccessSpec: &dataplex.GoogleCloudDataplexV1ResourceAccessSpecArgs{
Owners: pulumi.StringArray{
pulumi.String("string"),
},
Readers: pulumi.StringArray{
pulumi.String("string"),
},
Writers: pulumi.StringArray{
pulumi.String("string"),
},
},
})
var attributeResource = new Attribute("attributeResource", AttributeArgs.builder()
.dataAttributeId("string")
.dataTaxonomyId("string")
.dataAccessSpec(GoogleCloudDataplexV1DataAccessSpecArgs.builder()
.readers("string")
.build())
.description("string")
.displayName("string")
.etag("string")
.labels(Map.of("string", "string"))
.location("string")
.parentId("string")
.project("string")
.resourceAccessSpec(GoogleCloudDataplexV1ResourceAccessSpecArgs.builder()
.owners("string")
.readers("string")
.writers("string")
.build())
.build());
attribute_resource = google_native.dataplex.v1.Attribute("attributeResource",
data_attribute_id="string",
data_taxonomy_id="string",
data_access_spec={
"readers": ["string"],
},
description="string",
display_name="string",
etag="string",
labels={
"string": "string",
},
location="string",
parent_id="string",
project="string",
resource_access_spec={
"owners": ["string"],
"readers": ["string"],
"writers": ["string"],
})
const attributeResource = new google_native.dataplex.v1.Attribute("attributeResource", {
dataAttributeId: "string",
dataTaxonomyId: "string",
dataAccessSpec: {
readers: ["string"],
},
description: "string",
displayName: "string",
etag: "string",
labels: {
string: "string",
},
location: "string",
parentId: "string",
project: "string",
resourceAccessSpec: {
owners: ["string"],
readers: ["string"],
writers: ["string"],
},
});
type: google-native:dataplex/v1:Attribute
properties:
dataAccessSpec:
readers:
- string
dataAttributeId: string
dataTaxonomyId: string
description: string
displayName: string
etag: string
labels:
string: string
location: string
parentId: string
project: string
resourceAccessSpec:
owners:
- string
readers:
- string
writers:
- string
Attribute Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Attribute resource accepts the following input properties:
- Data
Attribute stringId - Required. DataAttribute identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the DataTaxonomy.
- Data
Taxonomy stringId - Data
Access Pulumi.Spec Google Native. Dataplex. V1. Inputs. Google Cloud Dataplex V1Data Access Spec - Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).
- Description string
- Optional. Description of the DataAttribute.
- Display
Name string - Optional. User friendly display name.
- Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Labels Dictionary<string, string>
- Optional. User-defined labels for the DataAttribute.
- Location string
- Parent
Id string - Optional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. a -> b -> c -> d -> e, depth = 4
- Project string
- Resource
Access Pulumi.Spec Google Native. Dataplex. V1. Inputs. Google Cloud Dataplex V1Resource Access Spec - Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).
- Data
Attribute stringId - Required. DataAttribute identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the DataTaxonomy.
- Data
Taxonomy stringId - Data
Access GoogleSpec Cloud Dataplex V1Data Access Spec Args - Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).
- Description string
- Optional. Description of the DataAttribute.
- Display
Name string - Optional. User friendly display name.
- Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Labels map[string]string
- Optional. User-defined labels for the DataAttribute.
- Location string
- Parent
Id string - Optional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. a -> b -> c -> d -> e, depth = 4
- Project string
- Resource
Access GoogleSpec Cloud Dataplex V1Resource Access Spec Args - Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).
- data
Attribute StringId - Required. DataAttribute identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the DataTaxonomy.
- data
Taxonomy StringId - data
Access GoogleSpec Cloud Dataplex V1Data Access Spec - Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).
- description String
- Optional. Description of the DataAttribute.
- display
Name String - Optional. User friendly display name.
- etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Map<String,String>
- Optional. User-defined labels for the DataAttribute.
- location String
- parent
Id String - Optional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. a -> b -> c -> d -> e, depth = 4
- project String
- resource
Access GoogleSpec Cloud Dataplex V1Resource Access Spec - Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).
- data
Attribute stringId - Required. DataAttribute identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the DataTaxonomy.
- data
Taxonomy stringId - data
Access GoogleSpec Cloud Dataplex V1Data Access Spec - Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).
- description string
- Optional. Description of the DataAttribute.
- display
Name string - Optional. User friendly display name.
- etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels {[key: string]: string}
- Optional. User-defined labels for the DataAttribute.
- location string
- parent
Id string - Optional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. a -> b -> c -> d -> e, depth = 4
- project string
- resource
Access GoogleSpec Cloud Dataplex V1Resource Access Spec - Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).
- data_
attribute_ strid - Required. DataAttribute identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the DataTaxonomy.
- data_
taxonomy_ strid - data_
access_ Googlespec Cloud Dataplex V1Data Access Spec Args - Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).
- description str
- Optional. Description of the DataAttribute.
- display_
name str - Optional. User friendly display name.
- etag str
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Mapping[str, str]
- Optional. User-defined labels for the DataAttribute.
- location str
- parent_
id str - Optional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. a -> b -> c -> d -> e, depth = 4
- project str
- resource_
access_ Googlespec Cloud Dataplex V1Resource Access Spec Args - Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).
- data
Attribute StringId - Required. DataAttribute identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the DataTaxonomy.
- data
Taxonomy StringId - data
Access Property MapSpec - Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).
- description String
- Optional. Description of the DataAttribute.
- display
Name String - Optional. User friendly display name.
- etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Map<String>
- Optional. User-defined labels for the DataAttribute.
- location String
- parent
Id String - Optional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. a -> b -> c -> d -> e, depth = 4
- project String
- resource
Access Property MapSpec - Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).
Outputs
All input properties are implicitly available as output properties. Additionally, the Attribute resource produces the following output properties:
- Attribute
Count int - The number of child attributes present for this attribute.
- Create
Time string - The time when the DataAttribute was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The relative resource name of the dataAttribute, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}.
- Uid string
- System generated globally unique ID for the DataAttribute. This ID will be different if the DataAttribute is deleted and re-created with the same name.
- Update
Time string - The time when the DataAttribute was last updated.
- Attribute
Count int - The number of child attributes present for this attribute.
- Create
Time string - The time when the DataAttribute was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The relative resource name of the dataAttribute, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}.
- Uid string
- System generated globally unique ID for the DataAttribute. This ID will be different if the DataAttribute is deleted and re-created with the same name.
- Update
Time string - The time when the DataAttribute was last updated.
- attribute
Count Integer - The number of child attributes present for this attribute.
- create
Time String - The time when the DataAttribute was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The relative resource name of the dataAttribute, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}.
- uid String
- System generated globally unique ID for the DataAttribute. This ID will be different if the DataAttribute is deleted and re-created with the same name.
- update
Time String - The time when the DataAttribute was last updated.
- attribute
Count number - The number of child attributes present for this attribute.
- create
Time string - The time when the DataAttribute was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The relative resource name of the dataAttribute, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}.
- uid string
- System generated globally unique ID for the DataAttribute. This ID will be different if the DataAttribute is deleted and re-created with the same name.
- update
Time string - The time when the DataAttribute was last updated.
- attribute_
count int - The number of child attributes present for this attribute.
- create_
time str - The time when the DataAttribute was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The relative resource name of the dataAttribute, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}.
- uid str
- System generated globally unique ID for the DataAttribute. This ID will be different if the DataAttribute is deleted and re-created with the same name.
- update_
time str - The time when the DataAttribute was last updated.
- attribute
Count Number - The number of child attributes present for this attribute.
- create
Time String - The time when the DataAttribute was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The relative resource name of the dataAttribute, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}.
- uid String
- System generated globally unique ID for the DataAttribute. This ID will be different if the DataAttribute is deleted and re-created with the same name.
- update
Time String - The time when the DataAttribute was last updated.
Supporting Types
GoogleCloudDataplexV1DataAccessSpec, GoogleCloudDataplexV1DataAccessSpecArgs
- Readers List<string>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
- Readers []string
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
- readers List<String>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
- readers string[]
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
- readers Sequence[str]
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
- readers List<String>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
GoogleCloudDataplexV1DataAccessSpecResponse, GoogleCloudDataplexV1DataAccessSpecResponseArgs
- Readers List<string>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
- Readers []string
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
- readers List<String>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
- readers string[]
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
- readers Sequence[str]
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
- readers List<String>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources.
GoogleCloudDataplexV1ResourceAccessSpec, GoogleCloudDataplexV1ResourceAccessSpecArgs
- Owners List<string>
- Optional. The set of principals to be granted owner role on the resource.
- Readers List<string>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- Writers List<string>
- Optional. The set of principals to be granted writer role on the resource.
- Owners []string
- Optional. The set of principals to be granted owner role on the resource.
- Readers []string
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- Writers []string
- Optional. The set of principals to be granted writer role on the resource.
- owners List<String>
- Optional. The set of principals to be granted owner role on the resource.
- readers List<String>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- writers List<String>
- Optional. The set of principals to be granted writer role on the resource.
- owners string[]
- Optional. The set of principals to be granted owner role on the resource.
- readers string[]
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- writers string[]
- Optional. The set of principals to be granted writer role on the resource.
- owners Sequence[str]
- Optional. The set of principals to be granted owner role on the resource.
- readers Sequence[str]
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- writers Sequence[str]
- Optional. The set of principals to be granted writer role on the resource.
- owners List<String>
- Optional. The set of principals to be granted owner role on the resource.
- readers List<String>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- writers List<String>
- Optional. The set of principals to be granted writer role on the resource.
GoogleCloudDataplexV1ResourceAccessSpecResponse, GoogleCloudDataplexV1ResourceAccessSpecResponseArgs
- Owners List<string>
- Optional. The set of principals to be granted owner role on the resource.
- Readers List<string>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- Writers List<string>
- Optional. The set of principals to be granted writer role on the resource.
- Owners []string
- Optional. The set of principals to be granted owner role on the resource.
- Readers []string
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- Writers []string
- Optional. The set of principals to be granted writer role on the resource.
- owners List<String>
- Optional. The set of principals to be granted owner role on the resource.
- readers List<String>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- writers List<String>
- Optional. The set of principals to be granted writer role on the resource.
- owners string[]
- Optional. The set of principals to be granted owner role on the resource.
- readers string[]
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- writers string[]
- Optional. The set of principals to be granted writer role on the resource.
- owners Sequence[str]
- Optional. The set of principals to be granted owner role on the resource.
- readers Sequence[str]
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- writers Sequence[str]
- Optional. The set of principals to be granted writer role on the resource.
- owners List<String>
- Optional. The set of principals to be granted owner role on the resource.
- readers List<String>
- Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
- writers List<String>
- Optional. The set of principals to be granted writer role on the resource.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.