Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.healthcare/v1beta1.UserDataMapping
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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/v1beta1: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.
Constructor example
The following reference example uses placeholder values for all input properties.
var google_nativeUserDataMappingResource = new GoogleNative.Healthcare.V1Beta1.UserDataMapping("google-nativeUserDataMappingResource", new()
{
ConsentStoreId = "string",
DataId = "string",
DatasetId = "string",
UserId = "string",
Location = "string",
Name = "string",
Project = "string",
ResourceAttributes = new[]
{
new GoogleNative.Healthcare.V1Beta1.Inputs.AttributeArgs
{
AttributeDefinitionId = "string",
Values = new[]
{
"string",
},
},
},
});
example, err := healthcarev1beta1.NewUserDataMapping(ctx, "google-nativeUserDataMappingResource", &healthcarev1beta1.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{
AttributeDefinitionId: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
})
var google_nativeUserDataMappingResource = new UserDataMapping("google-nativeUserDataMappingResource", UserDataMappingArgs.builder()
.consentStoreId("string")
.dataId("string")
.datasetId("string")
.userId("string")
.location("string")
.name("string")
.project("string")
.resourceAttributes(AttributeArgs.builder()
.attributeDefinitionId("string")
.values("string")
.build())
.build());
google_native_user_data_mapping_resource = google_native.healthcare.v1beta1.UserDataMapping("google-nativeUserDataMappingResource",
consent_store_id="string",
data_id="string",
dataset_id="string",
user_id="string",
location="string",
name="string",
project="string",
resource_attributes=[google_native.healthcare.v1beta1.AttributeArgs(
attribute_definition_id="string",
values=["string"],
)])
const google_nativeUserDataMappingResource = new google_native.healthcare.v1beta1.UserDataMapping("google-nativeUserDataMappingResource", {
consentStoreId: "string",
dataId: "string",
datasetId: "string",
userId: "string",
location: "string",
name: "string",
project: "string",
resourceAttributes: [{
attributeDefinitionId: "string",
values: ["string"],
}],
});
type: google-native:healthcare/v1beta1: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:
- Consent
Store stringId - Data
Id string - A unique identifier for the mapped resource.
- Dataset
Id string - User
Id 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
- Resource
Attributes List<Pulumi.Google Native. Healthcare. V1Beta1. 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.
- Consent
Store stringId - Data
Id string - A unique identifier for the mapped resource.
- Dataset
Id string - User
Id 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
- Resource
Attributes []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.
- consent
Store StringId - data
Id String - A unique identifier for the mapped resource.
- dataset
Id String - user
Id 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
- resource
Attributes 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.
- consent
Store stringId - data
Id string - A unique identifier for the mapped resource.
- dataset
Id string - user
Id 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
- resource
Attributes 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_ strid - 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.
- consent
Store StringId - data
Id String - A unique identifier for the mapped resource.
- dataset
Id String - user
Id 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
- resource
Attributes 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:
- Archive
Time 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.
- Archive
Time 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.
- archive
Time 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 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.
- archive
Time 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
- Attribute
Definition stringId - 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.
- Attribute
Definition stringId - 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 StringId - 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.
- attribute
Definition stringId - 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_ strid - 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 StringId - 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.
AttributeResponse, AttributeResponseArgs
- Attribute
Definition stringId - 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.
- Attribute
Definition stringId - 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 StringId - 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.
- attribute
Definition stringId - 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_ strid - 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 StringId - 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 Cloud Native is in preview. Google Cloud Classic is fully supported.