@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
69 lines • 1.94 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieves the current IAM policy data for bucket
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.storage.getBucketIamPolicy({
* bucket: _default.name,
* });
* ```
*/
export declare function getBucketIamPolicy(args: GetBucketIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetBucketIamPolicyResult>;
/**
* A collection of arguments for invoking getBucketIamPolicy.
*/
export interface GetBucketIamPolicyArgs {
/**
* Used to find the parent resource to bind the IAM policy to
*/
bucket: string;
}
/**
* A collection of values returned by getBucketIamPolicy.
*/
export interface GetBucketIamPolicyResult {
readonly bucket: string;
/**
* (Computed) The etag of the IAM policy.
*/
readonly etag: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* (Required only by `gcp.storage.BucketIAMPolicy`) The policy data generated by
* a `gcp.organizations.getIAMPolicy` data source.
*/
readonly policyData: string;
}
/**
* Retrieves the current IAM policy data for bucket
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.storage.getBucketIamPolicy({
* bucket: _default.name,
* });
* ```
*/
export declare function getBucketIamPolicyOutput(args: GetBucketIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBucketIamPolicyResult>;
/**
* A collection of arguments for invoking getBucketIamPolicy.
*/
export interface GetBucketIamPolicyOutputArgs {
/**
* Used to find the parent resource to bind the IAM policy to
*/
bucket: pulumi.Input<string>;
}
//# sourceMappingURL=getBucketIamPolicy.d.ts.map