@upcloud/pulumi-upcloud
Version:
A Pulumi package for creating and managing UpCloud resources.
163 lines (162 loc) • 5.78 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* This resource represents load balancer static backend member
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as upcloud from "@upcloud/pulumi-upcloud";
*
* const config = new pulumi.Config();
* const lbZone = config.get("lbZone") || "fi-hel2";
* const lbNetwork = new upcloud.Network("lb_network", {
* name: "lb-test-net",
* zone: lbZone,
* ipNetwork: {
* address: "10.0.0.0/24",
* dhcp: true,
* family: "IPv4",
* },
* });
* const lb = new upcloud.Loadbalancer("lb", {
* configuredStatus: "started",
* name: "lb-test",
* plan: "development",
* zone: lbZone,
* network: upcloudNetwork.lbNetwork.id,
* });
* const lbBe1 = new upcloud.LoadbalancerBackend("lb_be_1", {
* loadbalancer: upcloudLoadbalancer.lb.id,
* name: "lb-be-1-test",
* });
* const lbBe1Sm1 = new upcloud.LoadbalancerStaticBackendMember("lb_be_1_sm_1", {
* backend: upcloudLoadbalancerBackend.lbBe1.id,
* name: "lb-be-1-sm-1-test",
* ip: "10.0.0.10",
* port: 8000,
* weight: 0,
* maxSessions: 0,
* enabled: true,
* });
* ```
*/
export declare class LoadbalancerStaticBackendMember extends pulumi.CustomResource {
/**
* Get an existing LoadbalancerStaticBackendMember 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 state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LoadbalancerStaticBackendMemberState, opts?: pulumi.CustomResourceOptions): LoadbalancerStaticBackendMember;
/**
* Returns true if the given object is an instance of LoadbalancerStaticBackendMember. 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 LoadbalancerStaticBackendMember;
/**
* ID of the load balancer backend to which the member is connected.
*/
readonly backend: pulumi.Output<string>;
/**
* Indicates if the member is enabled. Disabled members are excluded from load balancing.
*/
readonly enabled: pulumi.Output<boolean>;
/**
* Optional fallback IP address in case of failure on DNS resolving.
*/
readonly ip: pulumi.Output<string>;
/**
* Maximum number of sessions before queueing.
*/
readonly maxSessions: pulumi.Output<number>;
/**
* The name of the member. Must be unique within within the load balancer backend.
*/
readonly name: pulumi.Output<string>;
/**
* Server port. Port is optional and can be specified in DNS SRV record.
*/
readonly port: pulumi.Output<number>;
/**
* Weight of the member. The higher the weight, the more traffic the member receives.
*/
readonly weight: pulumi.Output<number>;
/**
* Create a LoadbalancerStaticBackendMember 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: LoadbalancerStaticBackendMemberArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering LoadbalancerStaticBackendMember resources.
*/
export interface LoadbalancerStaticBackendMemberState {
/**
* ID of the load balancer backend to which the member is connected.
*/
backend?: pulumi.Input<string>;
/**
* Indicates if the member is enabled. Disabled members are excluded from load balancing.
*/
enabled?: pulumi.Input<boolean>;
/**
* Optional fallback IP address in case of failure on DNS resolving.
*/
ip?: pulumi.Input<string>;
/**
* Maximum number of sessions before queueing.
*/
maxSessions?: pulumi.Input<number>;
/**
* The name of the member. Must be unique within within the load balancer backend.
*/
name?: pulumi.Input<string>;
/**
* Server port. Port is optional and can be specified in DNS SRV record.
*/
port?: pulumi.Input<number>;
/**
* Weight of the member. The higher the weight, the more traffic the member receives.
*/
weight?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a LoadbalancerStaticBackendMember resource.
*/
export interface LoadbalancerStaticBackendMemberArgs {
/**
* ID of the load balancer backend to which the member is connected.
*/
backend: pulumi.Input<string>;
/**
* Indicates if the member is enabled. Disabled members are excluded from load balancing.
*/
enabled?: pulumi.Input<boolean>;
/**
* Optional fallback IP address in case of failure on DNS resolving.
*/
ip?: pulumi.Input<string>;
/**
* Maximum number of sessions before queueing.
*/
maxSessions: pulumi.Input<number>;
/**
* The name of the member. Must be unique within within the load balancer backend.
*/
name?: pulumi.Input<string>;
/**
* Server port. Port is optional and can be specified in DNS SRV record.
*/
port?: pulumi.Input<number>;
/**
* Weight of the member. The higher the weight, the more traffic the member receives.
*/
weight: pulumi.Input<number>;
}