import * as pulumi from "@pulumi/pulumi"; /** * Retrieves the current IAM policy data for a Pubsub subscription. * * ## example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const policy = gcp.pubsub.getSubscriptionIamPolicy({ * subscription: subscription.id, * }); * ``` */ export declare function getSubscriptionIamPolicy(args: GetSubscriptionIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSubscriptionIamPolicy. */ export interface GetSubscriptionIamPolicyArgs { /** * The project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: string; /** * The subscription name or id to bind to attach IAM policy to. */ subscription: string; } /** * A collection of values returned by getSubscriptionIamPolicy. */ export interface GetSubscriptionIamPolicyResult { /** * (Computed) The etag of the IAM policy. */ readonly etag: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * (Computed) The policy data */ readonly policyData: string; readonly project: string; readonly subscription: string; } /** * Retrieves the current IAM policy data for a Pubsub subscription. * * ## example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const policy = gcp.pubsub.getSubscriptionIamPolicy({ * subscription: subscription.id, * }); * ``` */ export declare function getSubscriptionIamPolicyOutput(args: GetSubscriptionIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSubscriptionIamPolicy. */ export interface GetSubscriptionIamPolicyOutputArgs { /** * The project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: pulumi.Input; /** * The subscription name or id to bind to attach IAM policy to. */ subscription: pulumi.Input; }