UNPKG

@pulumi/gcp

Version:

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

68 lines 1.81 kB
import * as pulumi from "@pulumi/pulumi"; /** * Retrieves the current IAM policy data for a folder. * * ## example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const test = gcp.folder.getIamPolicy({ * folder: permissiontest.name, * }); * ``` */ export declare function getIamPolicy(args: GetIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetIamPolicyResult>; /** * A collection of arguments for invoking getIamPolicy. */ export interface GetIamPolicyArgs { /** * The resource name of the folder the policy is attached to. Its format is folders/{folder_id}. */ folder: string; } /** * A collection of values returned by getIamPolicy. */ export interface GetIamPolicyResult { /** * (Computed) The etag of the IAM policy. */ readonly etag: string; readonly folder: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * (Computed) The policy data */ readonly policyData: string; } /** * Retrieves the current IAM policy data for a folder. * * ## example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const test = gcp.folder.getIamPolicy({ * folder: permissiontest.name, * }); * ``` */ export declare function getIamPolicyOutput(args: GetIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIamPolicyResult>; /** * A collection of arguments for invoking getIamPolicy. */ export interface GetIamPolicyOutputArgs { /** * The resource name of the folder the policy is attached to. Its format is folders/{folder_id}. */ folder: pulumi.Input<string>; } //# sourceMappingURL=getIamPolicy.d.ts.map