import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Create an interactive session asynchronously. */ export declare class Session extends pulumi.CustomResource { /** * Get an existing Session 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): Session; /** * Returns true if the given object is an instance of Session. 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 Session; /** * The time when the session was created. */ readonly createTime: pulumi.Output; /** * The email address of the user who created the session. */ readonly creator: pulumi.Output; /** * Optional. Environment configuration for the session execution. */ readonly environmentConfig: pulumi.Output; /** * Optional. Jupyter session config. */ readonly jupyterSession: pulumi.Output; /** * Optional. The labels to associate with the session. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a session. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; readonly location: pulumi.Output; /** * The resource name of the session. */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * Optional. A unique ID used to identify the request. If the service receives two CreateSessionRequests (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored, and the first Session is created and stored in the backend.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. */ readonly requestId: pulumi.Output; /** * Optional. Runtime configuration for the session execution. */ readonly runtimeConfig: pulumi.Output; /** * Runtime information about session execution. */ readonly runtimeInfo: pulumi.Output; /** * Required. The ID to use for the session, which becomes the final component of the session's resource name.This value must be 4-63 characters. Valid characters are /a-z-/. */ readonly sessionId: pulumi.Output; /** * Optional. The session template used by the session.Only resource names, including project ID and location, are valid.Example: * https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id] * projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]The template must be in the same project and Dataproc region as the session. */ readonly sessionTemplate: pulumi.Output; /** * A state of the session. */ readonly state: pulumi.Output; /** * Historical state information for the session. */ readonly stateHistory: pulumi.Output; /** * Session state details, such as the failure description if the state is FAILED. */ readonly stateMessage: pulumi.Output; /** * The time when the session entered the current state. */ readonly stateTime: pulumi.Output; /** * Optional. The email address of the user who owns the session. */ readonly user: pulumi.Output; /** * A session UUID (Unique Universal Identifier). The service generates this value when it creates the session. */ readonly uuid: pulumi.Output; /** * Create a Session 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: SessionArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Session resource. */ export interface SessionArgs { /** * Optional. Environment configuration for the session execution. */ environmentConfig?: pulumi.Input; /** * Optional. Jupyter session config. */ jupyterSession?: pulumi.Input; /** * Optional. The labels to associate with the session. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a session. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; location?: pulumi.Input; /** * The resource name of the session. */ name?: pulumi.Input; project?: pulumi.Input; /** * Optional. A unique ID used to identify the request. If the service receives two CreateSessionRequests (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored, and the first Session is created and stored in the backend.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. */ requestId?: pulumi.Input; /** * Optional. Runtime configuration for the session execution. */ runtimeConfig?: pulumi.Input; /** * Required. The ID to use for the session, which becomes the final component of the session's resource name.This value must be 4-63 characters. Valid characters are /a-z-/. */ sessionId: pulumi.Input; /** * Optional. The session template used by the session.Only resource names, including project ID and location, are valid.Example: * https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id] * projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]The template must be in the same project and Dataproc region as the session. */ sessionTemplate?: pulumi.Input; /** * Optional. The email address of the user who owns the session. */ user?: pulumi.Input; }