google-native logo
Google Cloud Native v0.30.0, Apr 14 23

google-native.healthcare/v1.AttributeDefinition

Explore with Pulumi AI

Creates a new Attribute definition in the parent consent store.

Create AttributeDefinition Resource

new AttributeDefinition(name: string, args: AttributeDefinitionArgs, opts?: CustomResourceOptions);
@overload
def AttributeDefinition(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        allowed_values: Optional[Sequence[str]] = None,
                        attribute_definition_id: Optional[str] = None,
                        category: Optional[AttributeDefinitionCategory] = None,
                        consent_default_values: Optional[Sequence[str]] = None,
                        consent_store_id: Optional[str] = None,
                        data_mapping_default_value: Optional[str] = None,
                        dataset_id: Optional[str] = None,
                        description: Optional[str] = None,
                        location: Optional[str] = None,
                        name: Optional[str] = None,
                        project: Optional[str] = None)
@overload
def AttributeDefinition(resource_name: str,
                        args: AttributeDefinitionArgs,
                        opts: Optional[ResourceOptions] = None)
func NewAttributeDefinition(ctx *Context, name string, args AttributeDefinitionArgs, opts ...ResourceOption) (*AttributeDefinition, error)
public AttributeDefinition(string name, AttributeDefinitionArgs args, CustomResourceOptions? opts = null)
public AttributeDefinition(String name, AttributeDefinitionArgs args)
public AttributeDefinition(String name, AttributeDefinitionArgs args, CustomResourceOptions options)
type: google-native:healthcare/v1:AttributeDefinition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AttributeDefinitionArgs
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 AttributeDefinitionArgs
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 AttributeDefinitionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AttributeDefinitionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AttributeDefinitionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AttributeDefinition 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 AttributeDefinition resource accepts the following input properties:

AllowedValues List<string>

Possible values for the attribute. The number of allowed values must not exceed 500. An empty list is invalid. The list can only be expanded after creation.

AttributeDefinitionId string

Required. The ID of the Attribute definition to create. The string must match the following regex: _a-zA-Z{0,255} and must not be a reserved keyword within the Common Expression Language as listed on https://github.com/google/cel-spec/blob/master/doc/langdef.md.

Category Pulumi.GoogleNative.Healthcare.V1.AttributeDefinitionCategory

The category of the attribute. The value of this field cannot be changed after creation.

ConsentStoreId string
DatasetId string
ConsentDefaultValues List<string>

Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value.

DataMappingDefaultValue string

Optional. Default value of the attribute in User data mappings. If no default value is specified, it defaults to an empty value. This field is only applicable to attributes of the category RESOURCE.

Description string

Optional. A description of the attribute.

Location string
Name string

Resource name of the Attribute definition, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/attributeDefinitions/{attribute_definition_id}. Cannot be changed after creation.

Project string
AllowedValues []string

Possible values for the attribute. The number of allowed values must not exceed 500. An empty list is invalid. The list can only be expanded after creation.

AttributeDefinitionId string

Required. The ID of the Attribute definition to create. The string must match the following regex: _a-zA-Z{0,255} and must not be a reserved keyword within the Common Expression Language as listed on https://github.com/google/cel-spec/blob/master/doc/langdef.md.

Category AttributeDefinitionCategory

The category of the attribute. The value of this field cannot be changed after creation.

ConsentStoreId string
DatasetId string
ConsentDefaultValues []string

Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value.

DataMappingDefaultValue string

Optional. Default value of the attribute in User data mappings. If no default value is specified, it defaults to an empty value. This field is only applicable to attributes of the category RESOURCE.

Description string

Optional. A description of the attribute.

Location string
Name string

Resource name of the Attribute definition, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/attributeDefinitions/{attribute_definition_id}. Cannot be changed after creation.

Project string
allowedValues List<String>

Possible values for the attribute. The number of allowed values must not exceed 500. An empty list is invalid. The list can only be expanded after creation.

attributeDefinitionId String

Required. The ID of the Attribute definition to create. The string must match the following regex: _a-zA-Z{0,255} and must not be a reserved keyword within the Common Expression Language as listed on https://github.com/google/cel-spec/blob/master/doc/langdef.md.

category AttributeDefinitionCategory

The category of the attribute. The value of this field cannot be changed after creation.

consentStoreId String
datasetId String
consentDefaultValues List<String>

Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value.

dataMappingDefaultValue String

Optional. Default value of the attribute in User data mappings. If no default value is specified, it defaults to an empty value. This field is only applicable to attributes of the category RESOURCE.

description String

Optional. A description of the attribute.

location String
name String

Resource name of the Attribute definition, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/attributeDefinitions/{attribute_definition_id}. Cannot be changed after creation.

project String
allowedValues string[]

Possible values for the attribute. The number of allowed values must not exceed 500. An empty list is invalid. The list can only be expanded after creation.

attributeDefinitionId string

Required. The ID of the Attribute definition to create. The string must match the following regex: _a-zA-Z{0,255} and must not be a reserved keyword within the Common Expression Language as listed on https://github.com/google/cel-spec/blob/master/doc/langdef.md.

category AttributeDefinitionCategory

The category of the attribute. The value of this field cannot be changed after creation.

consentStoreId string
datasetId string
consentDefaultValues string[]

Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value.

dataMappingDefaultValue string

Optional. Default value of the attribute in User data mappings. If no default value is specified, it defaults to an empty value. This field is only applicable to attributes of the category RESOURCE.

description string

Optional. A description of the attribute.

location string
name string

Resource name of the Attribute definition, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/attributeDefinitions/{attribute_definition_id}. Cannot be changed after creation.

project string
allowed_values Sequence[str]

Possible values for the attribute. The number of allowed values must not exceed 500. An empty list is invalid. The list can only be expanded after creation.

attribute_definition_id str

Required. The ID of the Attribute definition to create. The string must match the following regex: _a-zA-Z{0,255} and must not be a reserved keyword within the Common Expression Language as listed on https://github.com/google/cel-spec/blob/master/doc/langdef.md.

category AttributeDefinitionCategory

The category of the attribute. The value of this field cannot be changed after creation.

consent_store_id str
dataset_id str
consent_default_values Sequence[str]

Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value.

data_mapping_default_value str

Optional. Default value of the attribute in User data mappings. If no default value is specified, it defaults to an empty value. This field is only applicable to attributes of the category RESOURCE.

description str

Optional. A description of the attribute.

location str
name str

Resource name of the Attribute definition, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/attributeDefinitions/{attribute_definition_id}. Cannot be changed after creation.

project str
allowedValues List<String>

Possible values for the attribute. The number of allowed values must not exceed 500. An empty list is invalid. The list can only be expanded after creation.

attributeDefinitionId String

Required. The ID of the Attribute definition to create. The string must match the following regex: _a-zA-Z{0,255} and must not be a reserved keyword within the Common Expression Language as listed on https://github.com/google/cel-spec/blob/master/doc/langdef.md.

category "CATEGORY_UNSPECIFIED" | "RESOURCE" | "REQUEST"

The category of the attribute. The value of this field cannot be changed after creation.

consentStoreId String
datasetId String
consentDefaultValues List<String>

Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value.

dataMappingDefaultValue String

Optional. Default value of the attribute in User data mappings. If no default value is specified, it defaults to an empty value. This field is only applicable to attributes of the category RESOURCE.

description String

Optional. A description of the attribute.

location String
name String

Resource name of the Attribute definition, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/attributeDefinitions/{attribute_definition_id}. Cannot be changed after creation.

project String

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Supporting Types

AttributeDefinitionCategory

CategoryUnspecified
CATEGORY_UNSPECIFIED

No category specified. This option is invalid.

Resource
RESOURCE

Specify this category when this attribute describes the properties of resources. For example, data anonymity or data type.

Request
REQUEST

Specify this category when this attribute describes the properties of requests. For example, requester's role or requester's organization.

AttributeDefinitionCategoryCategoryUnspecified
CATEGORY_UNSPECIFIED

No category specified. This option is invalid.

AttributeDefinitionCategoryResource
RESOURCE

Specify this category when this attribute describes the properties of resources. For example, data anonymity or data type.

AttributeDefinitionCategoryRequest
REQUEST

Specify this category when this attribute describes the properties of requests. For example, requester's role or requester's organization.

CategoryUnspecified
CATEGORY_UNSPECIFIED

No category specified. This option is invalid.

Resource
RESOURCE

Specify this category when this attribute describes the properties of resources. For example, data anonymity or data type.

Request
REQUEST

Specify this category when this attribute describes the properties of requests. For example, requester's role or requester's organization.

CategoryUnspecified
CATEGORY_UNSPECIFIED

No category specified. This option is invalid.

Resource
RESOURCE

Specify this category when this attribute describes the properties of resources. For example, data anonymity or data type.

Request
REQUEST

Specify this category when this attribute describes the properties of requests. For example, requester's role or requester's organization.

CATEGORY_UNSPECIFIED
CATEGORY_UNSPECIFIED

No category specified. This option is invalid.

RESOURCE
RESOURCE

Specify this category when this attribute describes the properties of resources. For example, data anonymity or data type.

REQUEST
REQUEST

Specify this category when this attribute describes the properties of requests. For example, requester's role or requester's organization.

"CATEGORY_UNSPECIFIED"
CATEGORY_UNSPECIFIED

No category specified. This option is invalid.

"RESOURCE"
RESOURCE

Specify this category when this attribute describes the properties of resources. For example, data anonymity or data type.

"REQUEST"
REQUEST

Specify this category when this attribute describes the properties of requests. For example, requester's role or requester's organization.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0