UNPKG

@pulumi/gcp

Version:

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

74 lines (73 loc) 2.14 kB
import * as pulumi from "@pulumi/pulumi"; /** * Retrieves the current IAM policy data for environment * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const policy = gcp.apigee.getEnvironmentIamPolicy({ * orgId: apigeeEnvironment.orgId, * envId: apigeeEnvironment.name, * }); * ``` */ export declare function getEnvironmentIamPolicy(args: GetEnvironmentIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetEnvironmentIamPolicyResult>; /** * A collection of arguments for invoking getEnvironmentIamPolicy. */ export interface GetEnvironmentIamPolicyArgs { /** * Used to find the parent resource to bind the IAM policy to */ envId: string; orgId: string; } /** * A collection of values returned by getEnvironmentIamPolicy. */ export interface GetEnvironmentIamPolicyResult { readonly envId: string; /** * (Computed) The etag of the IAM policy. */ readonly etag: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly orgId: string; /** * (Required only by `gcp.apigee.EnvironmentIamPolicy`) The policy data generated by * a `gcp.organizations.getIAMPolicy` data source. */ readonly policyData: string; } /** * Retrieves the current IAM policy data for environment * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const policy = gcp.apigee.getEnvironmentIamPolicy({ * orgId: apigeeEnvironment.orgId, * envId: apigeeEnvironment.name, * }); * ``` */ export declare function getEnvironmentIamPolicyOutput(args: GetEnvironmentIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEnvironmentIamPolicyResult>; /** * A collection of arguments for invoking getEnvironmentIamPolicy. */ export interface GetEnvironmentIamPolicyOutputArgs { /** * Used to find the parent resource to bind the IAM policy to */ envId: pulumi.Input<string>; orgId: pulumi.Input<string>; }