Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.healthcare/v1beta1.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/v1beta1:getConsent
arguments:
# arguments dictionary
The following arguments are supported:
- Consent
Id string - Consent
Store stringId - Dataset
Id string - Location string
- Project string
- Consent
Id string - Consent
Store stringId - Dataset
Id string - Location string
- Project string
- consent
Id String - consent
Store StringId - dataset
Id String - location String
- project String
- consent
Id string - consent
Store stringId - dataset
Id string - location string
- project string
- consent_
id str - consent_
store_ strid - dataset_
id str - location str
- project str
- consent
Id String - consent
Store StringId - dataset
Id String - location 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. V1Beta1. Outputs. Google Cloud Healthcare V1beta1Consent 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 V1beta1Consent 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 V1beta1Consent 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 V1beta1Consent 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 V1beta1Consent 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 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.
ExprResponse
- Description 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 string
- Textual representation of an expression in Common Expression Language syntax.
- Location string
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- Title 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 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 string
- Textual representation of an expression in Common Expression Language syntax.
- Location string
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- Title 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 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 String
- Textual representation of an expression in Common Expression Language syntax.
- location String
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title 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 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 string
- Textual representation of an expression in Common Expression Language syntax.
- location string
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title 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 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 str
- Textual representation of an expression in Common Expression Language syntax.
- location str
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title 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 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 String
- Textual representation of an expression in Common Expression Language syntax.
- location String
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title 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.
GoogleCloudHealthcareV1beta1ConsentPolicyResponse
- Pulumi.
Google Native. Healthcare. V1Beta1. 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 List<Pulumi.Google Native. Healthcare. V1Beta1. 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.
- 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 []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.
- 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 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.
- 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 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.
- 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 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.
- 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 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.