@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
68 lines (67 loc) • 1.82 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieves the current IAM policy data for a Billing Account.
*
* ## example
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.billing.getAccountIamPolicy({
* billingAccountId: "MEEP-MEEP-MEEP-MEEP-MEEP",
* });
* ```
*/
export declare function getAccountIamPolicy(args: GetAccountIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountIamPolicyResult>;
/**
* A collection of arguments for invoking getAccountIamPolicy.
*/
export interface GetAccountIamPolicyArgs {
/**
* The billing account id.
*/
billingAccountId: string;
}
/**
* A collection of values returned by getAccountIamPolicy.
*/
export interface GetAccountIamPolicyResult {
readonly billingAccountId: string;
/**
* (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;
}
/**
* Retrieves the current IAM policy data for a Billing Account.
*
* ## example
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.billing.getAccountIamPolicy({
* billingAccountId: "MEEP-MEEP-MEEP-MEEP-MEEP",
* });
* ```
*/
export declare function getAccountIamPolicyOutput(args: GetAccountIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccountIamPolicyResult>;
/**
* A collection of arguments for invoking getAccountIamPolicy.
*/
export interface GetAccountIamPolicyOutputArgs {
/**
* The billing account id.
*/
billingAccountId: pulumi.Input<string>;
}