UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

86 lines (85 loc) 3 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get a IAM workload identity pool from Google Cloud by its id. * > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const foo = gcp.iam.getWorkloadIdentityPool({ * workloadIdentityPoolId: "foo-pool", * }); * ``` */ export declare function getWorkloadIdentityPool(args: GetWorkloadIdentityPoolArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkloadIdentityPoolResult>; /** * A collection of arguments for invoking getWorkloadIdentityPool. */ export interface GetWorkloadIdentityPoolArgs { /** * The project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: string; /** * The id of the pool which is the * final component of the resource name. * * - - - */ workloadIdentityPoolId: string; } /** * A collection of values returned by getWorkloadIdentityPool. */ export interface GetWorkloadIdentityPoolResult { readonly description: string; readonly disabled: boolean; readonly displayName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly inlineCertificateIssuanceConfigs: outputs.iam.GetWorkloadIdentityPoolInlineCertificateIssuanceConfig[]; readonly inlineTrustConfigs: outputs.iam.GetWorkloadIdentityPoolInlineTrustConfig[]; readonly mode: string; readonly name: string; readonly project?: string; readonly state: string; readonly workloadIdentityPoolId: string; } /** * Get a IAM workload identity pool from Google Cloud by its id. * > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const foo = gcp.iam.getWorkloadIdentityPool({ * workloadIdentityPoolId: "foo-pool", * }); * ``` */ export declare function getWorkloadIdentityPoolOutput(args: GetWorkloadIdentityPoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWorkloadIdentityPoolResult>; /** * A collection of arguments for invoking getWorkloadIdentityPool. */ export interface GetWorkloadIdentityPoolOutputArgs { /** * The project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: pulumi.Input<string>; /** * The id of the pool which is the * final component of the resource name. * * - - - */ workloadIdentityPoolId: pulumi.Input<string>; }