LbArgs

data class LbArgs(val healthCheckPath: Output<String>? = null, val instancePort: Output<Int>? = null, val ipAddressType: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LbArgs>

Creates a Lightsail load balancer resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lightsail.Lb;
import com.pulumi.aws.lightsail.LbArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new Lb("test", LbArgs.builder()
.healthCheckPath("/")
.instancePort("80")
.tags(Map.of("foo", "bar"))
.build());
}
}

Import

aws_lightsail_lb can be imported by using the name attribute, e.g.,

$ pulumi import aws:lightsail/lb:Lb test example-load-balancer

Constructors

Link copied to clipboard
constructor(healthCheckPath: Output<String>? = null, instancePort: Output<Int>? = null, ipAddressType: Output<String>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val healthCheckPath: Output<String>? = null

The health check path of the load balancer. Default value "/".

Link copied to clipboard
val instancePort: Output<Int>? = null

The instance port the load balancer will connect.

Link copied to clipboard
val ipAddressType: Output<String>? = null
Link copied to clipboard
val name: Output<String>? = null

The name of the Lightsail load balancer.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): LbArgs