import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates a new WorkforcePool. You cannot reuse the name of a deleted pool until 30 days after deletion. * Auto-naming is currently not supported for this resource. */ export declare class WorkforcePool extends pulumi.CustomResource { /** * Get an existing WorkforcePool 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): WorkforcePool; /** * Returns true if the given object is an instance of WorkforcePool. 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 WorkforcePool; /** * Optional. Configure access restrictions on the workforce pool users. This is an optional field. If specified web sign-in can be restricted to given set of services or programmatic sign-in can be disabled for pool users. */ readonly accessRestrictions: pulumi.Output; /** * A user-specified description of the pool. Cannot exceed 256 characters. */ readonly description: pulumi.Output; /** * Disables the workforce pool. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again. */ readonly disabled: pulumi.Output; /** * A user-specified display name of the pool in Google Cloud Console. Cannot exceed 32 characters. */ readonly displayName: pulumi.Output; /** * Time after which the workforce pool will be permanently purged and cannot be recovered. */ readonly expireTime: pulumi.Output; readonly location: pulumi.Output; /** * The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}` */ readonly name: pulumi.Output; /** * Immutable. The resource name of the parent. Format: `organizations/{org-id}`. */ readonly parent: pulumi.Output; /** * Duration that the Google Cloud access tokens, console sign-in sessions, and `gcloud` sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials have a default duration of one hour (3600s). For SAML providers, the lifetime of the token is the minimum of the `session_duration` and the `SessionNotOnOrAfter` claim in the SAML assertion. */ readonly sessionDuration: pulumi.Output; /** * The state of the pool. */ readonly state: pulumi.Output; /** * The ID to use for the pool, which becomes the final component of the resource name. The IDs must be a globally unique string of 6 to 63 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved for use by Google, and may not be specified. */ readonly workforcePoolId: pulumi.Output; /** * Create a WorkforcePool 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?: WorkforcePoolArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a WorkforcePool resource. */ export interface WorkforcePoolArgs { /** * Optional. Configure access restrictions on the workforce pool users. This is an optional field. If specified web sign-in can be restricted to given set of services or programmatic sign-in can be disabled for pool users. */ accessRestrictions?: pulumi.Input; /** * A user-specified description of the pool. Cannot exceed 256 characters. */ description?: pulumi.Input; /** * Disables the workforce pool. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again. */ disabled?: pulumi.Input; /** * A user-specified display name of the pool in Google Cloud Console. Cannot exceed 32 characters. */ displayName?: pulumi.Input; location?: pulumi.Input; /** * Immutable. The resource name of the parent. Format: `organizations/{org-id}`. */ parent?: pulumi.Input; /** * Duration that the Google Cloud access tokens, console sign-in sessions, and `gcloud` sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials have a default duration of one hour (3600s). For SAML providers, the lifetime of the token is the minimum of the `session_duration` and the `SessionNotOnOrAfter` claim in the SAML assertion. */ sessionDuration?: pulumi.Input; /** * The ID to use for the pool, which becomes the final component of the resource name. The IDs must be a globally unique string of 6 to 63 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved for use by Google, and may not be specified. */ workforcePoolId?: pulumi.Input; }