UNPKG

@pulumi/gcp

Version:

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

97 lines (96 loc) 3.53 kB
import * as pulumi from "@pulumi/pulumi"; /** * Retrieves the current IAM policy data for instance * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const policy = gcp.compute.getInstanceIamPolicy({ * project: _default.project, * zone: _default.zone, * instanceName: _default.name, * }); * ``` */ export declare function getInstanceIamPolicy(args: GetInstanceIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceIamPolicyResult>; /** * A collection of arguments for invoking getInstanceIamPolicy. */ export interface GetInstanceIamPolicyArgs { /** * Used to find the parent resource to bind the IAM policy to */ instanceName: string; /** * The ID of the project in which the resource belongs. * If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. */ project?: string; /** * A reference to the zone where the machine resides. 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 zone is provided in the parent identifier and no * zone is specified, it is taken from the provider configuration. */ zone?: string; } /** * A collection of values returned by getInstanceIamPolicy. */ export interface GetInstanceIamPolicyResult { /** * (Computed) The etag of the IAM policy. */ readonly etag: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceName: string; /** * (Required only by `gcp.compute.InstanceIAMPolicy`) The policy data generated by * a `gcp.organizations.getIAMPolicy` data source. */ readonly policyData: string; readonly project: string; readonly zone: string; } /** * Retrieves the current IAM policy data for instance * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const policy = gcp.compute.getInstanceIamPolicy({ * project: _default.project, * zone: _default.zone, * instanceName: _default.name, * }); * ``` */ export declare function getInstanceIamPolicyOutput(args: GetInstanceIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInstanceIamPolicyResult>; /** * A collection of arguments for invoking getInstanceIamPolicy. */ export interface GetInstanceIamPolicyOutputArgs { /** * Used to find the parent resource to bind the IAM policy to */ instanceName: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. */ project?: pulumi.Input<string>; /** * A reference to the zone where the machine resides. 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 zone is provided in the parent identifier and no * zone is specified, it is taken from the provider configuration. */ zone?: pulumi.Input<string>; }