@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
76 lines (75 loc) • 2.08 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;
project?: string;
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>;
project?: pulumi.Input<string>;
region?: pulumi.Input<string>;
}