We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
aws-native.lightsail.getLoadBalancer
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
Resource Type definition for AWS::Lightsail::LoadBalancer
Using getLoadBalancer
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLoadBalancer(args: GetLoadBalancerArgs, opts?: InvokeOptions): Promise<GetLoadBalancerResult>
function getLoadBalancerOutput(args: GetLoadBalancerOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerResult>def get_load_balancer(load_balancer_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLoadBalancerResult
def get_load_balancer_output(load_balancer_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerResult]func LookupLoadBalancer(ctx *Context, args *LookupLoadBalancerArgs, opts ...InvokeOption) (*LookupLoadBalancerResult, error)
func LookupLoadBalancerOutput(ctx *Context, args *LookupLoadBalancerOutputArgs, opts ...InvokeOption) LookupLoadBalancerResultOutput> Note: This function is named LookupLoadBalancer in the Go SDK.
public static class GetLoadBalancer
{
public static Task<GetLoadBalancerResult> InvokeAsync(GetLoadBalancerArgs args, InvokeOptions? opts = null)
public static Output<GetLoadBalancerResult> Invoke(GetLoadBalancerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLoadBalancerResult> getLoadBalancer(GetLoadBalancerArgs args, InvokeOptions options)
public static Output<GetLoadBalancerResult> getLoadBalancer(GetLoadBalancerArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:lightsail:getLoadBalancer
arguments:
# arguments dictionaryThe following arguments are supported:
- Load
Balancer stringName - The name of your load balancer.
- Load
Balancer stringName - The name of your load balancer.
- load
Balancer StringName - The name of your load balancer.
- load
Balancer stringName - The name of your load balancer.
- load_
balancer_ strname - The name of your load balancer.
- load
Balancer StringName - The name of your load balancer.
getLoadBalancer Result
The following output properties are available:
- Attached
Instances List<string> - The names of the instances attached to the load balancer.
- Health
Check stringPath - The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").
- Load
Balancer stringArn - The Amazon Resource Name (ARN) of the load balancer.
- Session
Stickiness boolEnabled - Configuration option to enable session stickiness.
- string
- Configuration option to adjust session stickiness cookie duration parameter.
-
List<Pulumi.
Aws Native. Outputs. Tag> - An array of key-value pairs to apply to this resource.
- Tls
Policy stringName - The name of the TLS policy to apply to the load balancer.
- Attached
Instances []string - The names of the instances attached to the load balancer.
- Health
Check stringPath - The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").
- Load
Balancer stringArn - The Amazon Resource Name (ARN) of the load balancer.
- Session
Stickiness boolEnabled - Configuration option to enable session stickiness.
- string
- Configuration option to adjust session stickiness cookie duration parameter.
- Tag
- An array of key-value pairs to apply to this resource.
- Tls
Policy stringName - The name of the TLS policy to apply to the load balancer.
- attached
Instances List<String> - The names of the instances attached to the load balancer.
- health
Check StringPath - The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").
- load
Balancer StringArn - The Amazon Resource Name (ARN) of the load balancer.
- session
Stickiness BooleanEnabled - Configuration option to enable session stickiness.
- String
- Configuration option to adjust session stickiness cookie duration parameter.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- tls
Policy StringName - The name of the TLS policy to apply to the load balancer.
- attached
Instances string[] - The names of the instances attached to the load balancer.
- health
Check stringPath - The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").
- load
Balancer stringArn - The Amazon Resource Name (ARN) of the load balancer.
- session
Stickiness booleanEnabled - Configuration option to enable session stickiness.
- string
- Configuration option to adjust session stickiness cookie duration parameter.
- Tag[]
- An array of key-value pairs to apply to this resource.
- tls
Policy stringName - The name of the TLS policy to apply to the load balancer.
- attached_
instances Sequence[str] - The names of the instances attached to the load balancer.
- health_
check_ strpath - The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").
- load_
balancer_ strarn - The Amazon Resource Name (ARN) of the load balancer.
- session_
stickiness_ boolenabled - Configuration option to enable session stickiness.
- str
- Configuration option to adjust session stickiness cookie duration parameter.
- Sequence[root_Tag]
- An array of key-value pairs to apply to this resource.
- tls_
policy_ strname - The name of the TLS policy to apply to the load balancer.
- attached
Instances List<String> - The names of the instances attached to the load balancer.
- health
Check StringPath - The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").
- load
Balancer StringArn - The Amazon Resource Name (ARN) of the load balancer.
- session
Stickiness BooleanEnabled - Configuration option to enable session stickiness.
- String
- Configuration option to adjust session stickiness cookie duration parameter.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
- tls
Policy StringName - The name of the TLS policy to apply to the load balancer.
Supporting Types
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
