@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
84 lines • 2.97 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieves the current IAM policy data for workforcepool
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.iam.getWorkforcePoolIamPolicy({
* location: example.location,
* workforcePoolId: example.workforcePoolId,
* });
* ```
*/
export declare function getWorkforcePoolIamPolicy(args: GetWorkforcePoolIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkforcePoolIamPolicyResult>;
/**
* A collection of arguments for invoking getWorkforcePoolIamPolicy.
*/
export interface GetWorkforcePoolIamPolicyArgs {
/**
* The location for the resource. Used to find the parent resource to bind the IAM policy to. If not specified,
* the value will be parsed from the identifier of the parent resource. If no location is provided in the parent identifier and no
* location is specified, it is taken from the provider configuration.
*/
location?: string;
/**
* Used to find the parent resource to bind the IAM policy to
*/
workforcePoolId: string;
}
/**
* A collection of values returned by getWorkforcePoolIamPolicy.
*/
export interface GetWorkforcePoolIamPolicyResult {
/**
* (Computed) The etag of the IAM policy.
*/
readonly etag: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly location: string;
/**
* (Required only by `gcp.iam.WorkforcePoolIamPolicy`) The policy data generated by
* a `gcp.organizations.getIAMPolicy` data source.
*/
readonly policyData: string;
readonly workforcePoolId: string;
}
/**
* Retrieves the current IAM policy data for workforcepool
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.iam.getWorkforcePoolIamPolicy({
* location: example.location,
* workforcePoolId: example.workforcePoolId,
* });
* ```
*/
export declare function getWorkforcePoolIamPolicyOutput(args: GetWorkforcePoolIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWorkforcePoolIamPolicyResult>;
/**
* A collection of arguments for invoking getWorkforcePoolIamPolicy.
*/
export interface GetWorkforcePoolIamPolicyOutputArgs {
/**
* The location for the resource. Used to find the parent resource to bind the IAM policy to. If not specified,
* the value will be parsed from the identifier of the parent resource. If no location is provided in the parent identifier and no
* location is specified, it is taken from the provider configuration.
*/
location?: pulumi.Input<string | undefined>;
/**
* Used to find the parent resource to bind the IAM policy to
*/
workforcePoolId: pulumi.Input<string>;
}
//# sourceMappingURL=getWorkforcePoolIamPolicy.d.ts.map