Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.healthcare/v1.getConsent
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Gets the specified revision of a Consent, or the latest revision if revision_id
is not specified in the resource name.
Using getConsent
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getConsent(args: GetConsentArgs, opts?: InvokeOptions): Promise<GetConsentResult>
function getConsentOutput(args: GetConsentOutputArgs, opts?: InvokeOptions): Output<GetConsentResult>
def get_consent(consent_id: Optional[str] = None,
consent_store_id: Optional[str] = None,
dataset_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConsentResult
def get_consent_output(consent_id: Optional[pulumi.Input[str]] = None,
consent_store_id: Optional[pulumi.Input[str]] = None,
dataset_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConsentResult]
func LookupConsent(ctx *Context, args *LookupConsentArgs, opts ...InvokeOption) (*LookupConsentResult, error)
func LookupConsentOutput(ctx *Context, args *LookupConsentOutputArgs, opts ...InvokeOption) LookupConsentResultOutput
> Note: This function is named LookupConsent
in the Go SDK.
public static class GetConsent
{
public static Task<GetConsentResult> InvokeAsync(GetConsentArgs args, InvokeOptions? opts = null)
public static Output<GetConsentResult> Invoke(GetConsentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConsentResult> getConsent(GetConsentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:healthcare/v1:getConsent
arguments:
# arguments dictionary
The following arguments are supported:
- Consent
Id This property is required. string - Consent
Store Id This property is required. string - Dataset
Id This property is required. string - Location
This property is required. string - Project string
- Consent
Id This property is required. string - Consent
Store Id This property is required. string - Dataset
Id This property is required. string - Location
This property is required. string - Project string
- consent
Id This property is required. String - consent
Store Id This property is required. String - dataset
Id This property is required. String - location
This property is required. String - project String
- consent
Id This property is required. string - consent
Store Id This property is required. string - dataset
Id This property is required. string - location
This property is required. string - project string
- consent_
id This property is required. str - consent_
store_ id This property is required. str - dataset_
id This property is required. str - location
This property is required. str - project str
- consent
Id This property is required. String - consent
Store Id This property is required. String - dataset
Id This property is required. String - location
This property is required. String - project String
getConsent Result
The following output properties are available:
- Consent
Artifact string - The resource name of the Consent artifact that contains proof of the end user's consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}
. - Expire
Time string - Timestamp in UTC of when this Consent is considered expired.
- Metadata Dictionary<string, string>
- Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes Metadata values must be: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes No more than 64 metadata entries can be associated with a given consent.
- Name string
- Resource name of the Consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}
. Cannot be changed after creation. - Policies
List<Pulumi.
Google Native. Healthcare. V1. Outputs. Google Cloud Healthcare V1Consent Policy Response> - Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions.
- Revision
Create stringTime - The timestamp that the revision was created.
- Revision
Id string - The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending
@{revision_id}
to the Consent's resource name. - State string
- Indicates the current state of this Consent.
- Ttl string
- Input only. The time to live for this Consent from when it is created.
- User
Id string - User's UUID provided by the client.
- Consent
Artifact string - The resource name of the Consent artifact that contains proof of the end user's consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}
. - Expire
Time string - Timestamp in UTC of when this Consent is considered expired.
- Metadata map[string]string
- Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes Metadata values must be: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes No more than 64 metadata entries can be associated with a given consent.
- Name string
- Resource name of the Consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}
. Cannot be changed after creation. - Policies
[]Google
Cloud Healthcare V1Consent Policy Response - Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions.
- Revision
Create stringTime - The timestamp that the revision was created.
- Revision
Id string - The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending
@{revision_id}
to the Consent's resource name. - State string
- Indicates the current state of this Consent.
- Ttl string
- Input only. The time to live for this Consent from when it is created.
- User
Id string - User's UUID provided by the client.
- consent
Artifact String - The resource name of the Consent artifact that contains proof of the end user's consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}
. - expire
Time String - Timestamp in UTC of when this Consent is considered expired.
- metadata Map<String,String>
- Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes Metadata values must be: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes No more than 64 metadata entries can be associated with a given consent.
- name String
- Resource name of the Consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}
. Cannot be changed after creation. - policies
List<Google
Cloud Healthcare V1Consent Policy Response> - Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions.
- revision
Create StringTime - The timestamp that the revision was created.
- revision
Id String - The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending
@{revision_id}
to the Consent's resource name. - state String
- Indicates the current state of this Consent.
- ttl String
- Input only. The time to live for this Consent from when it is created.
- user
Id String - User's UUID provided by the client.
- consent
Artifact string - The resource name of the Consent artifact that contains proof of the end user's consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}
. - expire
Time string - Timestamp in UTC of when this Consent is considered expired.
- metadata {[key: string]: string}
- Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes Metadata values must be: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes No more than 64 metadata entries can be associated with a given consent.
- name string
- Resource name of the Consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}
. Cannot be changed after creation. - policies
Google
Cloud Healthcare V1Consent Policy Response[] - Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions.
- revision
Create stringTime - The timestamp that the revision was created.
- revision
Id string - The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending
@{revision_id}
to the Consent's resource name. - state string
- Indicates the current state of this Consent.
- ttl string
- Input only. The time to live for this Consent from when it is created.
- user
Id string - User's UUID provided by the client.
- consent_
artifact str - The resource name of the Consent artifact that contains proof of the end user's consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}
. - expire_
time str - Timestamp in UTC of when this Consent is considered expired.
- metadata Mapping[str, str]
- Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes Metadata values must be: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes No more than 64 metadata entries can be associated with a given consent.
- name str
- Resource name of the Consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}
. Cannot be changed after creation. - policies
Sequence[Google
Cloud Healthcare V1Consent Policy Response] - Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions.
- revision_
create_ strtime - The timestamp that the revision was created.
- revision_
id str - The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending
@{revision_id}
to the Consent's resource name. - state str
- Indicates the current state of this Consent.
- ttl str
- Input only. The time to live for this Consent from when it is created.
- user_
id str - User's UUID provided by the client.
- consent
Artifact String - The resource name of the Consent artifact that contains proof of the end user's consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}
. - expire
Time String - Timestamp in UTC of when this Consent is considered expired.
- metadata Map<String>
- Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes Metadata values must be: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes No more than 64 metadata entries can be associated with a given consent.
- name String
- Resource name of the Consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}
. Cannot be changed after creation. - policies List<Property Map>
- Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions.
- revision
Create StringTime - The timestamp that the revision was created.
- revision
Id String - The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending
@{revision_id}
to the Consent's resource name. - state String
- Indicates the current state of this Consent.
- ttl String
- Input only. The time to live for this Consent from when it is created.
- user
Id String - User's UUID provided by the client.
Supporting Types
AttributeResponse
- Attribute
Definition Id This property is required. string - Indicates the name of an attribute defined in the consent store.
- Values
This property is required. 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 Id This property is required. string - Indicates the name of an attribute defined in the consent store.
- Values
This property is required. []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 This property is required. String - Indicates the name of an attribute defined in the consent store.
- values
This property is required. 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 Id This property is required. string - Indicates the name of an attribute defined in the consent store.
- values
This property is required. 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 This property is required. str - Indicates the name of an attribute defined in the consent store.
- values
This property is required. 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 This property is required. String - Indicates the name of an attribute defined in the consent store.
- values
This property is required. 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.
ExprResponse
- Description
This property is required. string - Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- Expression
This property is required. string - Textual representation of an expression in Common Expression Language syntax.
- Location
This property is required. string - Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- Title
This property is required. string - Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
- Description
This property is required. string - Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- Expression
This property is required. string - Textual representation of an expression in Common Expression Language syntax.
- Location
This property is required. string - Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- Title
This property is required. string - Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
- description
This property is required. String - Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- expression
This property is required. String - Textual representation of an expression in Common Expression Language syntax.
- location
This property is required. String - Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title
This property is required. String - Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
- description
This property is required. string - Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- expression
This property is required. string - Textual representation of an expression in Common Expression Language syntax.
- location
This property is required. string - Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title
This property is required. string - Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
- description
This property is required. str - Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- expression
This property is required. str - Textual representation of an expression in Common Expression Language syntax.
- location
This property is required. str - Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title
This property is required. str - Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
- description
This property is required. String - Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- expression
This property is required. String - Textual representation of an expression in Common Expression Language syntax.
- location
This property is required. String - Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title
This property is required. String - Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
GoogleCloudHealthcareV1ConsentPolicyResponse
This property is required. Pulumi.Google Native. Healthcare. V1. Inputs. Expr Response - The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have
IN
operator as well as at most 10 logical operators that are limited toAND
(&&
),OR
(||
). - Resource
Attributes This property is required. List<Pulumi.Google Native. Healthcare. V1. Inputs. Attribute Response> - The resources that this policy applies to. A resource is a match if it matches all the attributes listed here. If empty, this policy applies to all User data mappings for the given user.
This property is required. ExprResponse - The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have
IN
operator as well as at most 10 logical operators that are limited toAND
(&&
),OR
(||
). - Resource
Attributes This property is required. []AttributeResponse - The resources that this policy applies to. A resource is a match if it matches all the attributes listed here. If empty, this policy applies to all User data mappings for the given user.
This property is required. ExprResponse - The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have
IN
operator as well as at most 10 logical operators that are limited toAND
(&&
),OR
(||
). - resource
Attributes This property is required. List<AttributeResponse> - The resources that this policy applies to. A resource is a match if it matches all the attributes listed here. If empty, this policy applies to all User data mappings for the given user.
This property is required. ExprResponse - The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have
IN
operator as well as at most 10 logical operators that are limited toAND
(&&
),OR
(||
). - resource
Attributes This property is required. AttributeResponse[] - The resources that this policy applies to. A resource is a match if it matches all the attributes listed here. If empty, this policy applies to all User data mappings for the given user.
This property is required. ExprResponse - The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have
IN
operator as well as at most 10 logical operators that are limited toAND
(&&
),OR
(||
). - resource_
attributes This property is required. Sequence[AttributeResponse] - The resources that this policy applies to. A resource is a match if it matches all the attributes listed here. If empty, this policy applies to all User data mappings for the given user.
This property is required. Property Map- The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have
IN
operator as well as at most 10 logical operators that are limited toAND
(&&
),OR
(||
). - resource
Attributes This property is required. List<Property Map> - The resources that this policy applies to. A resource is a match if it matches all the attributes listed here. If empty, this policy applies to all User data mappings for the given user.
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.