Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.healthcare/v1.ConsentStore
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new consent store in the parent dataset. Attempting to create a consent store with the same ID as an existing store fails with an ALREADY_EXISTS error.
Create ConsentStore Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConsentStore(name: string, args: ConsentStoreArgs, opts?: CustomResourceOptions);
@overload
def ConsentStore(resource_name: str,
args: ConsentStoreArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConsentStore(resource_name: str,
opts: Optional[ResourceOptions] = None,
consent_store_id: Optional[str] = None,
dataset_id: Optional[str] = None,
default_consent_ttl: Optional[str] = None,
enable_consent_create_on_update: Optional[bool] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewConsentStore(ctx *Context, name string, args ConsentStoreArgs, opts ...ResourceOption) (*ConsentStore, error)
public ConsentStore(string name, ConsentStoreArgs args, CustomResourceOptions? opts = null)
public ConsentStore(String name, ConsentStoreArgs args)
public ConsentStore(String name, ConsentStoreArgs args, CustomResourceOptions options)
type: google-native:healthcare/v1:ConsentStore
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 ConsentStoreArgs
- 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 ConsentStoreArgs
- 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 ConsentStoreArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConsentStoreArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConsentStoreArgs
- 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 consentStoreResource = new GoogleNative.Healthcare.V1.ConsentStore("consentStoreResource", new()
{
ConsentStoreId = "string",
DatasetId = "string",
DefaultConsentTtl = "string",
EnableConsentCreateOnUpdate = false,
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
});
example, err := healthcare.NewConsentStore(ctx, "consentStoreResource", &healthcare.ConsentStoreArgs{
ConsentStoreId: pulumi.String("string"),
DatasetId: pulumi.String("string"),
DefaultConsentTtl: pulumi.String("string"),
EnableConsentCreateOnUpdate: pulumi.Bool(false),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var consentStoreResource = new ConsentStore("consentStoreResource", ConsentStoreArgs.builder()
.consentStoreId("string")
.datasetId("string")
.defaultConsentTtl("string")
.enableConsentCreateOnUpdate(false)
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.build());
consent_store_resource = google_native.healthcare.v1.ConsentStore("consentStoreResource",
consent_store_id="string",
dataset_id="string",
default_consent_ttl="string",
enable_consent_create_on_update=False,
labels={
"string": "string",
},
location="string",
name="string",
project="string")
const consentStoreResource = new google_native.healthcare.v1.ConsentStore("consentStoreResource", {
consentStoreId: "string",
datasetId: "string",
defaultConsentTtl: "string",
enableConsentCreateOnUpdate: false,
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
});
type: google-native:healthcare/v1:ConsentStore
properties:
consentStoreId: string
datasetId: string
defaultConsentTtl: string
enableConsentCreateOnUpdate: false
labels:
string: string
location: string
name: string
project: string
ConsentStore 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 ConsentStore resource accepts the following input properties:
- Consent
Store stringId - Required. The ID of the consent store to create. The string must match the following regex:
[\p{L}\p{N}_\-\.]{1,256}
. Cannot be changed after creation. - Dataset
Id string - Default
Consent stringTtl - Optional. Default time to live for Consents created in this store. Must be at least 24 hours. Updating this field will not affect the expiration time of existing consents.
- Enable
Consent boolCreate On Update - Optional. If
true
, UpdateConsent creates the Consent if it does not already exist. If unspecified, defaults tofalse
. - Labels Dictionary<string, string>
- Optional. User-supplied key-value pairs used to organize consent stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}. Label values must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}. No more than 64 labels can be associated with a given store. For more information: https://cloud.google.com/healthcare/docs/how-tos/labeling-resources
- Location string
- Name string
- Resource name of the consent store, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}
. Cannot be changed after creation. - Project string
- Consent
Store stringId - Required. The ID of the consent store to create. The string must match the following regex:
[\p{L}\p{N}_\-\.]{1,256}
. Cannot be changed after creation. - Dataset
Id string - Default
Consent stringTtl - Optional. Default time to live for Consents created in this store. Must be at least 24 hours. Updating this field will not affect the expiration time of existing consents.
- Enable
Consent boolCreate On Update - Optional. If
true
, UpdateConsent creates the Consent if it does not already exist. If unspecified, defaults tofalse
. - Labels map[string]string
- Optional. User-supplied key-value pairs used to organize consent stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}. Label values must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}. No more than 64 labels can be associated with a given store. For more information: https://cloud.google.com/healthcare/docs/how-tos/labeling-resources
- Location string
- Name string
- Resource name of the consent store, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}
. Cannot be changed after creation. - Project string
- consent
Store StringId - Required. The ID of the consent store to create. The string must match the following regex:
[\p{L}\p{N}_\-\.]{1,256}
. Cannot be changed after creation. - dataset
Id String - default
Consent StringTtl - Optional. Default time to live for Consents created in this store. Must be at least 24 hours. Updating this field will not affect the expiration time of existing consents.
- enable
Consent BooleanCreate On Update - Optional. If
true
, UpdateConsent creates the Consent if it does not already exist. If unspecified, defaults tofalse
. - labels Map<String,String>
- Optional. User-supplied key-value pairs used to organize consent stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}. Label values must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}. No more than 64 labels can be associated with a given store. For more information: https://cloud.google.com/healthcare/docs/how-tos/labeling-resources
- location String
- name String
- Resource name of the consent store, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}
. Cannot be changed after creation. - project String
- consent
Store stringId - Required. The ID of the consent store to create. The string must match the following regex:
[\p{L}\p{N}_\-\.]{1,256}
. Cannot be changed after creation. - dataset
Id string - default
Consent stringTtl - Optional. Default time to live for Consents created in this store. Must be at least 24 hours. Updating this field will not affect the expiration time of existing consents.
- enable
Consent booleanCreate On Update - Optional. If
true
, UpdateConsent creates the Consent if it does not already exist. If unspecified, defaults tofalse
. - labels {[key: string]: string}
- Optional. User-supplied key-value pairs used to organize consent stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}. Label values must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}. No more than 64 labels can be associated with a given store. For more information: https://cloud.google.com/healthcare/docs/how-tos/labeling-resources
- location string
- name string
- Resource name of the consent store, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}
. Cannot be changed after creation. - project string
- consent_
store_ strid - Required. The ID of the consent store to create. The string must match the following regex:
[\p{L}\p{N}_\-\.]{1,256}
. Cannot be changed after creation. - dataset_
id str - default_
consent_ strttl - Optional. Default time to live for Consents created in this store. Must be at least 24 hours. Updating this field will not affect the expiration time of existing consents.
- enable_
consent_ boolcreate_ on_ update - Optional. If
true
, UpdateConsent creates the Consent if it does not already exist. If unspecified, defaults tofalse
. - labels Mapping[str, str]
- Optional. User-supplied key-value pairs used to organize consent stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}. Label values must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}. No more than 64 labels can be associated with a given store. For more information: https://cloud.google.com/healthcare/docs/how-tos/labeling-resources
- location str
- name str
- Resource name of the consent store, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}
. Cannot be changed after creation. - project str
- consent
Store StringId - Required. The ID of the consent store to create. The string must match the following regex:
[\p{L}\p{N}_\-\.]{1,256}
. Cannot be changed after creation. - dataset
Id String - default
Consent StringTtl - Optional. Default time to live for Consents created in this store. Must be at least 24 hours. Updating this field will not affect the expiration time of existing consents.
- enable
Consent BooleanCreate On Update - Optional. If
true
, UpdateConsent creates the Consent if it does not already exist. If unspecified, defaults tofalse
. - labels Map<String>
- Optional. User-supplied key-value pairs used to organize consent stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}. Label values must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}. No more than 64 labels can be associated with a given store. For more information: https://cloud.google.com/healthcare/docs/how-tos/labeling-resources
- location String
- name String
- Resource name of the consent store, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}
. Cannot be changed after creation. - project String
Outputs
All input properties are implicitly available as output properties. Additionally, the ConsentStore 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.
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.