import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Retrieves autoscaling policy. */ export declare function getAutoscalingPolicy(args: GetAutoscalingPolicyArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetAutoscalingPolicyArgs { autoscalingPolicyId: string; location: string; project?: string; } export interface GetAutoscalingPolicyResult { readonly basicAlgorithm: outputs.dataproc.v1.BasicAutoscalingAlgorithmResponse; /** * Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy. */ readonly labels: { [key: string]: string; }; /** * The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} */ readonly name: string; /** * Optional. Describes how the autoscaler will operate for secondary workers. */ readonly secondaryWorkerConfig: outputs.dataproc.v1.InstanceGroupAutoscalingPolicyConfigResponse; /** * Describes how the autoscaler will operate for primary workers. */ readonly workerConfig: outputs.dataproc.v1.InstanceGroupAutoscalingPolicyConfigResponse; } /** * Retrieves autoscaling policy. */ export declare function getAutoscalingPolicyOutput(args: GetAutoscalingPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetAutoscalingPolicyOutputArgs { autoscalingPolicyId: pulumi.Input; location: pulumi.Input; project?: pulumi.Input; }