UNPKG

@pulumi/gcp

Version:

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

65 lines (64 loc) 1.81 kB
import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const policy = gcp.servicedirectory.getServiceIamPolicy({ * name: example.name, * }); * ``` */ export declare function getServiceIamPolicy(args: GetServiceIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceIamPolicyResult>; /** * A collection of arguments for invoking getServiceIamPolicy. */ export interface GetServiceIamPolicyArgs { /** * Used to find the parent resource to bind the IAM policy to */ name: string; } /** * A collection of values returned by getServiceIamPolicy. */ export interface GetServiceIamPolicyResult { /** * (Computed) The etag of the IAM policy. */ readonly etag: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; /** * (Required only by `gcp.servicedirectory.ServiceIamPolicy`) The policy data generated by * a `gcp.organizations.getIAMPolicy` data source. */ readonly policyData: string; } /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const policy = gcp.servicedirectory.getServiceIamPolicy({ * name: example.name, * }); * ``` */ export declare function getServiceIamPolicyOutput(args: GetServiceIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceIamPolicyResult>; /** * A collection of arguments for invoking getServiceIamPolicy. */ export interface GetServiceIamPolicyOutputArgs { /** * Used to find the parent resource to bind the IAM policy to */ name: pulumi.Input<string>; }