Class CfnLoadBalancer.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoadBalancer>
- Enclosing class:
CfnLoadBalancer
CfnLoadBalancer
.-
Method Summary
Modifier and TypeMethodDescriptionaccessLoggingPolicy
(IResolvable accessLoggingPolicy) Information about where and how access logs are stored for the load balancer.accessLoggingPolicy
(CfnLoadBalancer.AccessLoggingPolicyProperty accessLoggingPolicy) Information about where and how access logs are stored for the load balancer.appCookieStickinessPolicy
(List<? extends Object> appCookieStickinessPolicy) Information about a policy for application-controlled session stickiness.appCookieStickinessPolicy
(IResolvable appCookieStickinessPolicy) Information about a policy for application-controlled session stickiness.availabilityZones
(List<String> availabilityZones) The Availability Zones for a load balancer in a default VPC.build()
connectionDrainingPolicy
(IResolvable connectionDrainingPolicy) If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy instance.connectionDrainingPolicy
(CfnLoadBalancer.ConnectionDrainingPolicyProperty connectionDrainingPolicy) If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy instance.connectionSettings
(IResolvable connectionSettings) If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration.connectionSettings
(CfnLoadBalancer.ConnectionSettingsProperty connectionSettings) If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration.static CfnLoadBalancer.Builder
If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones.crossZone
(IResolvable crossZone) If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones.healthCheck
(IResolvable healthCheck) The health check settings to use when evaluating the health of your EC2 instances.healthCheck
(CfnLoadBalancer.HealthCheckProperty healthCheck) The health check settings to use when evaluating the health of your EC2 instances.The IDs of the instances for the load balancer.lbCookieStickinessPolicy
(List<? extends Object> lbCookieStickinessPolicy) Information about a policy for duration-based session stickiness.lbCookieStickinessPolicy
(IResolvable lbCookieStickinessPolicy) Information about a policy for duration-based session stickiness.The listeners for the load balancer.listeners
(IResolvable listeners) The listeners for the load balancer.loadBalancerName
(String loadBalancerName) The name of the load balancer.The policies defined for your Classic Load Balancer.policies
(IResolvable policies) The policies defined for your Classic Load Balancer.The type of load balancer.securityGroups
(List<String> securityGroups) The security groups for the load balancer.The IDs of the subnets for the load balancer.The tags associated with a load balancer.
-
Method Details
-
create
@Stability(Stable) public static CfnLoadBalancer.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLoadBalancer.Builder
.
-
listeners
The listeners for the load balancer. You can specify at most one listener per port.If you update the properties for a listener, AWS CloudFormation deletes the existing listener and creates a new one with the specified properties. While the new listener is being created, clients cannot connect to the load balancer.
- Parameters:
listeners
- The listeners for the load balancer. You can specify at most one listener per port. This parameter is required.- Returns:
this
- See Also:
-
listeners
The listeners for the load balancer. You can specify at most one listener per port.If you update the properties for a listener, AWS CloudFormation deletes the existing listener and creates a new one with the specified properties. While the new listener is being created, clients cannot connect to the load balancer.
- Parameters:
listeners
- The listeners for the load balancer. You can specify at most one listener per port. This parameter is required.- Returns:
this
- See Also:
-
accessLoggingPolicy
@Stability(Stable) public CfnLoadBalancer.Builder accessLoggingPolicy(IResolvable accessLoggingPolicy) Information about where and how access logs are stored for the load balancer.- Parameters:
accessLoggingPolicy
- Information about where and how access logs are stored for the load balancer. This parameter is required.- Returns:
this
- See Also:
-
accessLoggingPolicy
@Stability(Stable) public CfnLoadBalancer.Builder accessLoggingPolicy(CfnLoadBalancer.AccessLoggingPolicyProperty accessLoggingPolicy) Information about where and how access logs are stored for the load balancer.- Parameters:
accessLoggingPolicy
- Information about where and how access logs are stored for the load balancer. This parameter is required.- Returns:
this
- See Also:
-
appCookieStickinessPolicy
@Stability(Stable) public CfnLoadBalancer.Builder appCookieStickinessPolicy(IResolvable appCookieStickinessPolicy) Information about a policy for application-controlled session stickiness.- Parameters:
appCookieStickinessPolicy
- Information about a policy for application-controlled session stickiness. This parameter is required.- Returns:
this
- See Also:
-
appCookieStickinessPolicy
@Stability(Stable) public CfnLoadBalancer.Builder appCookieStickinessPolicy(List<? extends Object> appCookieStickinessPolicy) Information about a policy for application-controlled session stickiness.- Parameters:
appCookieStickinessPolicy
- Information about a policy for application-controlled session stickiness. This parameter is required.- Returns:
this
- See Also:
-
availabilityZones
The Availability Zones for a load balancer in a default VPC.For a load balancer in a nondefault VPC, specify
Subnets
instead.Update requires replacement if you did not previously specify an Availability Zone or if you are removing all Availability Zones. Otherwise, update requires no interruption.
- Parameters:
availabilityZones
- The Availability Zones for a load balancer in a default VPC. This parameter is required.- Returns:
this
- See Also:
-
connectionDrainingPolicy
@Stability(Stable) public CfnLoadBalancer.Builder connectionDrainingPolicy(IResolvable connectionDrainingPolicy) If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy instance.For more information, see Configure connection draining in the User Guide for Classic Load Balancers .
- Parameters:
connectionDrainingPolicy
- If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy instance. This parameter is required.- Returns:
this
- See Also:
-
connectionDrainingPolicy
@Stability(Stable) public CfnLoadBalancer.Builder connectionDrainingPolicy(CfnLoadBalancer.ConnectionDrainingPolicyProperty connectionDrainingPolicy) If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy instance.For more information, see Configure connection draining in the User Guide for Classic Load Balancers .
- Parameters:
connectionDrainingPolicy
- If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy instance. This parameter is required.- Returns:
this
- See Also:
-
connectionSettings
@Stability(Stable) public CfnLoadBalancer.Builder connectionSettings(IResolvable connectionSettings) If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration.By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end connections of your load balancer. For more information, see Configure idle connection timeout in the User Guide for Classic Load Balancers .
- Parameters:
connectionSettings
- If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration. This parameter is required.- Returns:
this
- See Also:
-
connectionSettings
@Stability(Stable) public CfnLoadBalancer.Builder connectionSettings(CfnLoadBalancer.ConnectionSettingsProperty connectionSettings) If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration.By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end connections of your load balancer. For more information, see Configure idle connection timeout in the User Guide for Classic Load Balancers .
- Parameters:
connectionSettings
- If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration. This parameter is required.- Returns:
this
- See Also:
-
crossZone
If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones.For more information, see Configure cross-zone load balancing in the User Guide for Classic Load Balancers .
- Parameters:
crossZone
- If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones. This parameter is required.- Returns:
this
- See Also:
-
crossZone
If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones.For more information, see Configure cross-zone load balancing in the User Guide for Classic Load Balancers .
- Parameters:
crossZone
- If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones. This parameter is required.- Returns:
this
- See Also:
-
healthCheck
The health check settings to use when evaluating the health of your EC2 instances.Update requires replacement if you did not previously specify health check settings or if you are removing the health check settings. Otherwise, update requires no interruption.
- Parameters:
healthCheck
- The health check settings to use when evaluating the health of your EC2 instances. This parameter is required.- Returns:
this
- See Also:
-
healthCheck
@Stability(Stable) public CfnLoadBalancer.Builder healthCheck(CfnLoadBalancer.HealthCheckProperty healthCheck) The health check settings to use when evaluating the health of your EC2 instances.Update requires replacement if you did not previously specify health check settings or if you are removing the health check settings. Otherwise, update requires no interruption.
- Parameters:
healthCheck
- The health check settings to use when evaluating the health of your EC2 instances. This parameter is required.- Returns:
this
- See Also:
-
instances
The IDs of the instances for the load balancer.- Parameters:
instances
- The IDs of the instances for the load balancer. This parameter is required.- Returns:
this
- See Also:
-
lbCookieStickinessPolicy
@Stability(Stable) public CfnLoadBalancer.Builder lbCookieStickinessPolicy(IResolvable lbCookieStickinessPolicy) Information about a policy for duration-based session stickiness.- Parameters:
lbCookieStickinessPolicy
- Information about a policy for duration-based session stickiness. This parameter is required.- Returns:
this
- See Also:
-
lbCookieStickinessPolicy
@Stability(Stable) public CfnLoadBalancer.Builder lbCookieStickinessPolicy(List<? extends Object> lbCookieStickinessPolicy) Information about a policy for duration-based session stickiness.- Parameters:
lbCookieStickinessPolicy
- Information about a policy for duration-based session stickiness. This parameter is required.- Returns:
this
- See Also:
-
loadBalancerName
The name of the load balancer.This name must be unique within your set of load balancers for the region.
If you don't specify a name, AWS CloudFormation generates a unique physical ID for the load balancer. For more information, see Name Type . If you specify a name, you cannot perform updates that require replacement of this resource, but you can perform other updates. To replace the resource, specify a new name.
- Parameters:
loadBalancerName
- The name of the load balancer. This parameter is required.- Returns:
this
- See Also:
-
policies
The policies defined for your Classic Load Balancer.Specify only back-end server policies.
- Parameters:
policies
- The policies defined for your Classic Load Balancer. This parameter is required.- Returns:
this
- See Also:
-
policies
The policies defined for your Classic Load Balancer.Specify only back-end server policies.
- Parameters:
policies
- The policies defined for your Classic Load Balancer. This parameter is required.- Returns:
this
- See Also:
-
scheme
The type of load balancer. Valid only for load balancers in a VPC.If
Scheme
isinternet-facing
, the load balancer has a public DNS name that resolves to a public IP address.If
Scheme
isinternal
, the load balancer has a public DNS name that resolves to a private IP address.- Parameters:
scheme
- The type of load balancer. Valid only for load balancers in a VPC. This parameter is required.- Returns:
this
- See Also:
-
securityGroups
The security groups for the load balancer.Valid only for load balancers in a VPC.
- Parameters:
securityGroups
- The security groups for the load balancer. This parameter is required.- Returns:
this
- See Also:
-
subnets
The IDs of the subnets for the load balancer. You can specify at most one subnet per Availability Zone.Update requires replacement if you did not previously specify a subnet or if you are removing all subnets. Otherwise, update requires no interruption. To update to a different subnet in the current Availability Zone, you must first update to a subnet in a different Availability Zone, then update to the new subnet in the original Availability Zone.
- Parameters:
subnets
- The IDs of the subnets for the load balancer. You can specify at most one subnet per Availability Zone. This parameter is required.- Returns:
this
- See Also:
-
tags
The tags associated with a load balancer.- Parameters:
tags
- The tags associated with a load balancer. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLoadBalancer>
- Returns:
- a newly built instance of
CfnLoadBalancer
.
-