1. Packages
  2. Google Cloud Native
  3. API Docs
  4. healthcare
  5. healthcare/v1
  6. UserDataMapping

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.healthcare/v1.UserDataMapping

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a new User data mapping in the parent consent store.

    Create UserDataMapping Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new UserDataMapping(name: string, args: UserDataMappingArgs, opts?: CustomResourceOptions);
    @overload
    def UserDataMapping(resource_name: str,
                        args: UserDataMappingArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def UserDataMapping(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        consent_store_id: Optional[str] = None,
                        data_id: Optional[str] = None,
                        dataset_id: Optional[str] = None,
                        user_id: Optional[str] = None,
                        location: Optional[str] = None,
                        name: Optional[str] = None,
                        project: Optional[str] = None,
                        resource_attributes: Optional[Sequence[AttributeArgs]] = None)
    func NewUserDataMapping(ctx *Context, name string, args UserDataMappingArgs, opts ...ResourceOption) (*UserDataMapping, error)
    public UserDataMapping(string name, UserDataMappingArgs args, CustomResourceOptions? opts = null)
    public UserDataMapping(String name, UserDataMappingArgs args)
    public UserDataMapping(String name, UserDataMappingArgs args, CustomResourceOptions options)
    
    type: google-native:healthcare/v1:UserDataMapping
    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 UserDataMappingArgs
    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 UserDataMappingArgs
    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 UserDataMappingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserDataMappingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserDataMappingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var userDataMappingResource = new GoogleNative.Healthcare.V1.UserDataMapping("userDataMappingResource", new()
    {
        ConsentStoreId = "string",
        DataId = "string",
        DatasetId = "string",
        UserId = "string",
        Location = "string",
        Name = "string",
        Project = "string",
        ResourceAttributes = new[]
        {
            new GoogleNative.Healthcare.V1.Inputs.AttributeArgs
            {
                Values = new[]
                {
                    "string",
                },
                AttributeDefinitionId = "string",
            },
        },
    });
    
    example, err := healthcare.NewUserDataMapping(ctx, "userDataMappingResource", &healthcare.UserDataMappingArgs{
    ConsentStoreId: pulumi.String("string"),
    DataId: pulumi.String("string"),
    DatasetId: pulumi.String("string"),
    UserId: pulumi.String("string"),
    Location: pulumi.String("string"),
    Name: pulumi.String("string"),
    Project: pulumi.String("string"),
    ResourceAttributes: healthcare.AttributeArray{
    &healthcare.AttributeArgs{
    Values: pulumi.StringArray{
    pulumi.String("string"),
    },
    AttributeDefinitionId: pulumi.String("string"),
    },
    },
    })
    
    var userDataMappingResource = new UserDataMapping("userDataMappingResource", UserDataMappingArgs.builder()
        .consentStoreId("string")
        .dataId("string")
        .datasetId("string")
        .userId("string")
        .location("string")
        .name("string")
        .project("string")
        .resourceAttributes(AttributeArgs.builder()
            .values("string")
            .attributeDefinitionId("string")
            .build())
        .build());
    
    user_data_mapping_resource = google_native.healthcare.v1.UserDataMapping("userDataMappingResource",
        consent_store_id="string",
        data_id="string",
        dataset_id="string",
        user_id="string",
        location="string",
        name="string",
        project="string",
        resource_attributes=[google_native.healthcare.v1.AttributeArgs(
            values=["string"],
            attribute_definition_id="string",
        )])
    
    const userDataMappingResource = new google_native.healthcare.v1.UserDataMapping("userDataMappingResource", {
        consentStoreId: "string",
        dataId: "string",
        datasetId: "string",
        userId: "string",
        location: "string",
        name: "string",
        project: "string",
        resourceAttributes: [{
            values: ["string"],
            attributeDefinitionId: "string",
        }],
    });
    
    type: google-native:healthcare/v1:UserDataMapping
    properties:
        consentStoreId: string
        dataId: string
        datasetId: string
        location: string
        name: string
        project: string
        resourceAttributes:
            - attributeDefinitionId: string
              values:
                - string
        userId: string
    

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

    ConsentStoreId string
    DataId string
    A unique identifier for the mapped resource.
    DatasetId string
    UserId string
    User's UUID provided by the client.
    Location string
    Name string
    Resource name of the User data mapping, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/userDataMappings/{user_data_mapping_id}.
    Project string
    ResourceAttributes List<Pulumi.GoogleNative.Healthcare.V1.Inputs.Attribute>
    Attributes of the resource. Only explicitly set attributes are displayed here. Attribute definitions with defaults set implicitly apply to these User data mappings. Attributes listed here must be single valued, that is, exactly one value is specified for the field "values" in each Attribute.
    ConsentStoreId string
    DataId string
    A unique identifier for the mapped resource.
    DatasetId string
    UserId string
    User's UUID provided by the client.
    Location string
    Name string
    Resource name of the User data mapping, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/userDataMappings/{user_data_mapping_id}.
    Project string
    ResourceAttributes []AttributeArgs
    Attributes of the resource. Only explicitly set attributes are displayed here. Attribute definitions with defaults set implicitly apply to these User data mappings. Attributes listed here must be single valued, that is, exactly one value is specified for the field "values" in each Attribute.
    consentStoreId String
    dataId String
    A unique identifier for the mapped resource.
    datasetId String
    userId String
    User's UUID provided by the client.
    location String
    name String
    Resource name of the User data mapping, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/userDataMappings/{user_data_mapping_id}.
    project String
    resourceAttributes List<Attribute>
    Attributes of the resource. Only explicitly set attributes are displayed here. Attribute definitions with defaults set implicitly apply to these User data mappings. Attributes listed here must be single valued, that is, exactly one value is specified for the field "values" in each Attribute.
    consentStoreId string
    dataId string
    A unique identifier for the mapped resource.
    datasetId string
    userId string
    User's UUID provided by the client.
    location string
    name string
    Resource name of the User data mapping, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/userDataMappings/{user_data_mapping_id}.
    project string
    resourceAttributes Attribute[]
    Attributes of the resource. Only explicitly set attributes are displayed here. Attribute definitions with defaults set implicitly apply to these User data mappings. Attributes listed here must be single valued, that is, exactly one value is specified for the field "values" in each Attribute.
    consent_store_id str
    data_id str
    A unique identifier for the mapped resource.
    dataset_id str
    user_id str
    User's UUID provided by the client.
    location str
    name str
    Resource name of the User data mapping, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/userDataMappings/{user_data_mapping_id}.
    project str
    resource_attributes Sequence[AttributeArgs]
    Attributes of the resource. Only explicitly set attributes are displayed here. Attribute definitions with defaults set implicitly apply to these User data mappings. Attributes listed here must be single valued, that is, exactly one value is specified for the field "values" in each Attribute.
    consentStoreId String
    dataId String
    A unique identifier for the mapped resource.
    datasetId String
    userId String
    User's UUID provided by the client.
    location String
    name String
    Resource name of the User data mapping, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/userDataMappings/{user_data_mapping_id}.
    project String
    resourceAttributes List<Property Map>
    Attributes of the resource. Only explicitly set attributes are displayed here. Attribute definitions with defaults set implicitly apply to these User data mappings. Attributes listed here must be single valued, that is, exactly one value is specified for the field "values" in each Attribute.

    Outputs

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

    ArchiveTime string
    Indicates the time when this mapping was archived.
    Archived bool
    Indicates whether this mapping is archived.
    Id string
    The provider-assigned unique ID for this managed resource.
    ArchiveTime string
    Indicates the time when this mapping was archived.
    Archived bool
    Indicates whether this mapping is archived.
    Id string
    The provider-assigned unique ID for this managed resource.
    archiveTime String
    Indicates the time when this mapping was archived.
    archived Boolean
    Indicates whether this mapping is archived.
    id String
    The provider-assigned unique ID for this managed resource.
    archiveTime string
    Indicates the time when this mapping was archived.
    archived boolean
    Indicates whether this mapping is archived.
    id string
    The provider-assigned unique ID for this managed resource.
    archive_time str
    Indicates the time when this mapping was archived.
    archived bool
    Indicates whether this mapping is archived.
    id str
    The provider-assigned unique ID for this managed resource.
    archiveTime String
    Indicates the time when this mapping was archived.
    archived Boolean
    Indicates whether this mapping is archived.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    Attribute, AttributeArgs

    Values List<string>
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.
    AttributeDefinitionId string
    Indicates the name of an attribute defined in the consent store.
    Values []string
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.
    AttributeDefinitionId string
    Indicates the name of an attribute defined in the consent store.
    values List<String>
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.
    attributeDefinitionId String
    Indicates the name of an attribute defined in the consent store.
    values string[]
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.
    attributeDefinitionId string
    Indicates the name of an attribute defined in the consent store.
    values Sequence[str]
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.
    attribute_definition_id str
    Indicates the name of an attribute defined in the consent store.
    values List<String>
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.
    attributeDefinitionId String
    Indicates the name of an attribute defined in the consent store.

    AttributeResponse, AttributeResponseArgs

    AttributeDefinitionId string
    Indicates the name of an attribute defined in the consent store.
    Values List<string>
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.
    AttributeDefinitionId string
    Indicates the name of an attribute defined in the consent store.
    Values []string
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.
    attributeDefinitionId String
    Indicates the name of an attribute defined in the consent store.
    values List<String>
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.
    attributeDefinitionId string
    Indicates the name of an attribute defined in the consent store.
    values string[]
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.
    attribute_definition_id str
    Indicates the name of an attribute defined in the consent store.
    values Sequence[str]
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.
    attributeDefinitionId String
    Indicates the name of an attribute defined in the consent store.
    values List<String>
    The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values.

    Package Details

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

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi