import * as pulumi from "@pulumi/pulumi"; /** * This resource represents load balancer dynamic 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 lbDns1 = new upcloud.LoadbalancerResolver("lb_dns_1", { * loadbalancer: upcloudLoadbalancer.lb.id, * name: "lb-resolver-1-test", * cacheInvalid: 10, * cacheValid: 100, * retries: 5, * timeout: 10, * timeoutRetry: 10, * nameservers: [ * "94.237.127.9:53", * "94.237.40.9:53", * ], * }); * const lbBe1 = new upcloud.LoadbalancerBackend("lb_be_1", { * loadbalancer: upcloudLoadbalancer.lb.id, * resolverName: upcloudLoadbalancerResolver.lbDns1.name, * name: "lb-be-1-test", * }); * const lbBe1Dm1 = new upcloud.LoadbalancerDynamicBackendMember("lb_be_1_dm_1", { * backend: upcloudLoadbalancerBackend.lbBe1.id, * name: "lb-be-1-dm-1-test", * weight: 10, * maxSessions: 10, * enabled: false, * }); * ``` */ export declare class LoadbalancerDynamicBackendMember extends pulumi.CustomResource { /** * Get an existing LoadbalancerDynamicBackendMember 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, state?: LoadbalancerDynamicBackendMemberState, opts?: pulumi.CustomResourceOptions): LoadbalancerDynamicBackendMember; /** * Returns true if the given object is an instance of LoadbalancerDynamicBackendMember. 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 LoadbalancerDynamicBackendMember; /** * ID of the load balancer backend to which the member is connected. */ readonly backend: pulumi.Output; /** * Indicates if the member is enabled. Disabled members are excluded from load balancing. */ readonly enabled: pulumi.Output; /** * Optional fallback IP address in case of failure on DNS resolving. */ readonly ip: pulumi.Output; /** * Maximum number of sessions before queueing. */ readonly maxSessions: pulumi.Output; /** * The name of the member. Must be unique within within the load balancer backend. */ readonly name: pulumi.Output; /** * Server port. Port is optional and can be specified in DNS SRV record. */ readonly port: pulumi.Output; /** * Weight of the member. The higher the weight, the more traffic the member receives. */ readonly weight: pulumi.Output; /** * Create a LoadbalancerDynamicBackendMember 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: LoadbalancerDynamicBackendMemberArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LoadbalancerDynamicBackendMember resources. */ export interface LoadbalancerDynamicBackendMemberState { /** * ID of the load balancer backend to which the member is connected. */ backend?: pulumi.Input; /** * Indicates if the member is enabled. Disabled members are excluded from load balancing. */ enabled?: pulumi.Input; /** * Optional fallback IP address in case of failure on DNS resolving. */ ip?: pulumi.Input; /** * Maximum number of sessions before queueing. */ maxSessions?: pulumi.Input; /** * The name of the member. Must be unique within within the load balancer backend. */ name?: pulumi.Input; /** * Server port. Port is optional and can be specified in DNS SRV record. */ port?: pulumi.Input; /** * Weight of the member. The higher the weight, the more traffic the member receives. */ weight?: pulumi.Input; } /** * The set of arguments for constructing a LoadbalancerDynamicBackendMember resource. */ export interface LoadbalancerDynamicBackendMemberArgs { /** * ID of the load balancer backend to which the member is connected. */ backend: pulumi.Input; /** * Indicates if the member is enabled. Disabled members are excluded from load balancing. */ enabled?: pulumi.Input; /** * Optional fallback IP address in case of failure on DNS resolving. */ ip?: pulumi.Input; /** * Maximum number of sessions before queueing. */ maxSessions: pulumi.Input; /** * The name of the member. Must be unique within within the load balancer backend. */ name?: pulumi.Input; /** * Server port. Port is optional and can be specified in DNS SRV record. */ port?: pulumi.Input; /** * Weight of the member. The higher the weight, the more traffic the member receives. */ weight: pulumi.Input; }