---
type: resource-type
title: LightsailLoadBalancer
description: aws resource type AWS::Lightsail::LoadBalancer
name: LightsailLoadBalancer
lexicon: aws
resource_type: AWS::Lightsail::LoadBalancer
---
`AWS::Lightsail::LoadBalancer`, a resource type of the aws lexicon.

## Properties

- `InstancePort` (`number`, required): The instance port where you're creating your load balancer.
- `LoadBalancerName` (`string`, required): The name of your load balancer.
- `AttachedInstances` (`string[]`, optional): The names of the instances attached to the load balancer.
- `HealthCheckPath` (`string`, optional): 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., "/").
- `IpAddressType` (`string`, optional): The IP address type for the load balancer. The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6. The default value is dualstack.
- `LoadBalancerArn` (`string`, optional)
- `SessionStickinessEnabled` (`boolean`, optional): Configuration option to enable session stickiness.
- `SessionStickinessLBCookieDurationSeconds` (`string`, optional): Configuration option to adjust session stickiness cookie duration parameter.
- `Tags` (`LightsailLoadBalancer_Tag[]`, optional): An array of key-value pairs to apply to this resource.
- `TlsPolicyName` (`string`, optional): The name of the TLS policy to apply to the load balancer.

## Attributes

- `LoadBalancerArn`
