import * as pulumi from "@pulumi/pulumi"; /** * Gets a session. Returns `NOT_FOUND` if the session does not exist. This is mainly useful for determining whether a session is still alive. */ export declare function getSession(args: GetSessionArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetSessionArgs { databaseId: string; instanceId: string; project?: string; sessionId: string; } export interface GetSessionResult { /** * The approximate timestamp when the session is last used. It is typically earlier than the actual last use time. */ readonly approximateLastUseTime: string; /** * The timestamp when the session is created. */ readonly createTime: string; /** * The database role which created this session. */ readonly creatorRole: string; /** * The labels for the session. * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. * No more than 64 labels can be associated with a given session. See https://goo.gl/xmQnxf for more information on and examples of labels. */ readonly labels: { [key: string]: string; }; /** * The name of the session. This is always system-assigned. */ readonly name: string; } /** * Gets a session. Returns `NOT_FOUND` if the session does not exist. This is mainly useful for determining whether a session is still alive. */ export declare function getSessionOutput(args: GetSessionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetSessionOutputArgs { databaseId: pulumi.Input; instanceId: pulumi.Input; project?: pulumi.Input; sessionId: pulumi.Input; }