import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a new Consent in the parent consent store. */ export declare class Consent extends pulumi.CustomResource { /** * Get an existing Consent resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Consent; /** * Returns true if the given object is an instance of Consent. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Consent; /** * 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}`. */ readonly consentArtifact: pulumi.Output; readonly consentStoreId: pulumi.Output; readonly datasetId: pulumi.Output; /** * Timestamp in UTC of when this Consent is considered expired. */ readonly expireTime: pulumi.Output; readonly location: pulumi.Output; /** * 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. */ readonly metadata: pulumi.Output<{ [key: string]: 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. */ readonly name: pulumi.Output; /** * Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions. */ readonly policies: pulumi.Output; readonly project: pulumi.Output; /** * The timestamp that the revision was created. */ readonly revisionCreateTime: pulumi.Output; /** * 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. */ readonly revisionId: pulumi.Output; /** * Indicates the current state of this Consent. */ readonly state: pulumi.Output; /** * Input only. The time to live for this Consent from when it is created. */ readonly ttl: pulumi.Output; /** * User's UUID provided by the client. */ readonly userId: pulumi.Output; /** * Create a Consent resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ConsentArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Consent resource. */ export interface ConsentArgs { /** * 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}`. */ consentArtifact: pulumi.Input; consentStoreId: pulumi.Input; datasetId: pulumi.Input; /** * Timestamp in UTC of when this Consent is considered expired. */ expireTime?: pulumi.Input; location?: pulumi.Input; /** * 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. */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * 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. */ name?: pulumi.Input; /** * Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions. */ policies?: pulumi.Input[]>; project?: pulumi.Input; /** * Indicates the current state of this Consent. */ state: pulumi.Input; /** * Input only. The time to live for this Consent from when it is created. */ ttl?: pulumi.Input; /** * User's UUID provided by the client. */ userId: pulumi.Input; }