import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a new ServiceLbPolicy in a given project and location. */ export declare class ServiceLbPolicy extends pulumi.CustomResource { /** * Get an existing ServiceLbPolicy 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): ServiceLbPolicy; /** * Returns true if the given object is an instance of ServiceLbPolicy. 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 ServiceLbPolicy; /** * Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service. */ readonly autoCapacityDrain: pulumi.Output; /** * The timestamp when this resource was created. */ readonly createTime: pulumi.Output; /** * Optional. A free-text description of the resource. Max length 1024 characters. */ readonly description: pulumi.Output; /** * Optional. Configuration related to health based failover. */ readonly failoverConfig: pulumi.Output; /** * Optional. Set of label tags associated with the ServiceLbPolicy resource. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; /** * Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION. */ readonly loadBalancingAlgorithm: pulumi.Output; readonly location: pulumi.Output; /** * Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * Required. Short name of the ServiceLbPolicy resource to be created. E.g. for resource name `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. the id is value of {service_lb_policy_name} */ readonly serviceLbPolicyId: pulumi.Output; /** * The timestamp when this resource was last updated. */ readonly updateTime: pulumi.Output; /** * Create a ServiceLbPolicy 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: ServiceLbPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a ServiceLbPolicy resource. */ export interface ServiceLbPolicyArgs { /** * Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service. */ autoCapacityDrain?: pulumi.Input; /** * Optional. A free-text description of the resource. Max length 1024 characters. */ description?: pulumi.Input; /** * Optional. Configuration related to health based failover. */ failoverConfig?: pulumi.Input; /** * Optional. Set of label tags associated with the ServiceLbPolicy resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION. */ loadBalancingAlgorithm?: pulumi.Input; location?: pulumi.Input; /** * Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. */ name?: pulumi.Input; project?: pulumi.Input; /** * Required. Short name of the ServiceLbPolicy resource to be created. E.g. for resource name `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. the id is value of {service_lb_policy_name} */ serviceLbPolicyId: pulumi.Input; }