AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws-native.lightsail.LoadBalancer
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi
Resource Type definition for AWS::Lightsail::LoadBalancer
Create LoadBalancer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoadBalancer(name: string, args: LoadBalancerArgs, opts?: CustomResourceOptions);@overload
def LoadBalancer(resource_name: str,
                 args: LoadBalancerArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def LoadBalancer(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 instance_port: Optional[int] = None,
                 attached_instances: Optional[Sequence[str]] = None,
                 health_check_path: Optional[str] = None,
                 ip_address_type: Optional[str] = None,
                 load_balancer_name: Optional[str] = None,
                 session_stickiness_enabled: Optional[bool] = None,
                 session_stickiness_lb_cookie_duration_seconds: Optional[str] = None,
                 tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
                 tls_policy_name: Optional[str] = None)func NewLoadBalancer(ctx *Context, name string, args LoadBalancerArgs, opts ...ResourceOption) (*LoadBalancer, error)public LoadBalancer(string name, LoadBalancerArgs args, CustomResourceOptions? opts = null)
public LoadBalancer(String name, LoadBalancerArgs args)
public LoadBalancer(String name, LoadBalancerArgs args, CustomResourceOptions options)
type: aws-native:lightsail:LoadBalancer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LoadBalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LoadBalancerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LoadBalancerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadBalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadBalancerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LoadBalancer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LoadBalancer resource accepts the following input properties:
- InstancePort int
- The instance port where you're creating your load balancer.
- AttachedInstances List<string>
- The names of the instances attached to the load balancer.
- HealthCheck 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., "/").
- IpAddress stringType 
- 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.
- LoadBalancer stringName 
- The name of your load balancer.
- SessionStickiness boolEnabled 
- Configuration option to enable session stickiness.
- string
- Configuration option to adjust session stickiness cookie duration parameter.
- 
List<Pulumi.Aws Native. Inputs. Tag> 
- An array of key-value pairs to apply to this resource.
- TlsPolicy stringName 
- The name of the TLS policy to apply to the load balancer.
- InstancePort int
- The instance port where you're creating your load balancer.
- AttachedInstances []string
- The names of the instances attached to the load balancer.
- HealthCheck 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., "/").
- IpAddress stringType 
- 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.
- LoadBalancer stringName 
- The name of your load balancer.
- SessionStickiness boolEnabled 
- Configuration option to enable session stickiness.
- string
- Configuration option to adjust session stickiness cookie duration parameter.
- 
TagArgs 
- An array of key-value pairs to apply to this resource.
- TlsPolicy stringName 
- The name of the TLS policy to apply to the load balancer.
- instancePort Integer
- The instance port where you're creating your load balancer.
- attachedInstances List<String>
- The names of the instances attached to the load balancer.
- healthCheck 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., "/").
- ipAddress StringType 
- 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.
- loadBalancer StringName 
- The name of your load balancer.
- sessionStickiness 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.
- tlsPolicy StringName 
- The name of the TLS policy to apply to the load balancer.
- instancePort number
- The instance port where you're creating your load balancer.
- attachedInstances string[]
- The names of the instances attached to the load balancer.
- healthCheck 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., "/").
- ipAddress stringType 
- 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.
- loadBalancer stringName 
- The name of your load balancer.
- sessionStickiness 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.
- tlsPolicy stringName 
- The name of the TLS policy to apply to the load balancer.
- instance_port int
- The instance port where you're creating your 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., "/").
- ip_address_ strtype 
- 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.
- load_balancer_ strname 
- The name of your load balancer.
- session_stickiness_ boolenabled 
- Configuration option to enable session stickiness.
- str
- Configuration option to adjust session stickiness cookie duration parameter.
- 
Sequence[TagArgs] 
- 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.
- instancePort Number
- The instance port where you're creating your load balancer.
- attachedInstances List<String>
- The names of the instances attached to the load balancer.
- healthCheck 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., "/").
- ipAddress StringType 
- 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.
- loadBalancer StringName 
- The name of your load balancer.
- sessionStickiness 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.
- tlsPolicy StringName 
- The name of the TLS policy to apply to the load balancer.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- LoadBalancer stringArn 
- The Amazon Resource Name (ARN) of the load balancer.
- Id string
- The provider-assigned unique ID for this managed resource.
- LoadBalancer stringArn 
- The Amazon Resource Name (ARN) of the load balancer.
- id String
- The provider-assigned unique ID for this managed resource.
- loadBalancer StringArn 
- The Amazon Resource Name (ARN) of the load balancer.
- id string
- The provider-assigned unique ID for this managed resource.
- loadBalancer stringArn 
- The Amazon Resource Name (ARN) of the load balancer.
- id str
- The provider-assigned unique ID for this managed resource.
- load_balancer_ strarn 
- The Amazon Resource Name (ARN) of the load balancer.
- id String
- The provider-assigned unique ID for this managed resource.
- loadBalancer StringArn 
- The Amazon Resource Name (ARN) of the load balancer.
Supporting Types
Tag, TagArgs  
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi