@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
92 lines • 2.7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieves the current IAM policy data for a Dataproc cluster.
*
* ## example
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.dataproc.getClusterIamPolicy({
* cluster: cluster.name,
* region: "us-central1",
* });
* ```
*/
export declare function getClusterIamPolicy(args: GetClusterIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterIamPolicyResult>;
/**
* A collection of arguments for invoking getClusterIamPolicy.
*/
export interface GetClusterIamPolicyArgs {
/**
* The name or relative resource id of the cluster to manage IAM policies for.
*/
cluster: string;
/**
* The project in which the cluster belongs. If it
* is not provided, Terraform will use the provider default.
*/
project?: string;
/**
* The region in which the cluster belongs. If it
* is not provided, Terraform will use the provider default.
*/
region?: string;
}
/**
* A collection of values returned by getClusterIamPolicy.
*/
export interface GetClusterIamPolicyResult {
readonly cluster: 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;
readonly project: string;
readonly region: string;
}
/**
* Retrieves the current IAM policy data for a Dataproc cluster.
*
* ## example
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.dataproc.getClusterIamPolicy({
* cluster: cluster.name,
* region: "us-central1",
* });
* ```
*/
export declare function getClusterIamPolicyOutput(args: GetClusterIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetClusterIamPolicyResult>;
/**
* A collection of arguments for invoking getClusterIamPolicy.
*/
export interface GetClusterIamPolicyOutputArgs {
/**
* The name or relative resource id of the cluster to manage IAM policies for.
*/
cluster: pulumi.Input<string>;
/**
* The project in which the cluster belongs. If it
* is not provided, Terraform will use the provider default.
*/
project?: pulumi.Input<string | undefined>;
/**
* The region in which the cluster belongs. If it
* is not provided, Terraform will use the provider default.
*/
region?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getClusterIamPolicy.d.ts.map