import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates new autoscaling policy. * Auto-naming is currently not supported for this resource. */ export declare class AutoscalingPolicy extends pulumi.CustomResource { /** * Get an existing AutoscalingPolicy resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): AutoscalingPolicy; /** * Returns true if the given object is an instance of AutoscalingPolicy. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AutoscalingPolicy; readonly basicAlgorithm: pulumi.Output; readonly location: pulumi.Output; /** * 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: pulumi.Output; readonly project: pulumi.Output; /** * Optional. Describes how the autoscaler will operate for secondary workers. */ readonly secondaryWorkerConfig: pulumi.Output; /** * Describes how the autoscaler will operate for primary workers. */ readonly workerConfig: pulumi.Output; /** * Create a AutoscalingPolicy resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AutoscalingPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a AutoscalingPolicy resource. */ export interface AutoscalingPolicyArgs { basicAlgorithm?: pulumi.Input; /** * The policy id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. */ id: pulumi.Input; location?: pulumi.Input; project?: pulumi.Input; /** * Optional. Describes how the autoscaler will operate for secondary workers. */ secondaryWorkerConfig?: pulumi.Input; /** * Describes how the autoscaler will operate for primary workers. */ workerConfig: pulumi.Input; }