@Stability(value=Stable) public static final class CfnLoadBalancer.Builder extends Object implements software.amazon.jsii.Builder<CfnLoadBalancer>
CfnLoadBalancer.| Modifier and Type | Method and Description |
|---|---|
CfnLoadBalancer.Builder |
accessLoggingPolicy(CfnLoadBalancer.AccessLoggingPolicyProperty accessLoggingPolicy)
Information about where and how access logs are stored for the load balancer.
|
CfnLoadBalancer.Builder |
accessLoggingPolicy(IResolvable accessLoggingPolicy)
Information about where and how access logs are stored for the load balancer.
|
CfnLoadBalancer.Builder |
appCookieStickinessPolicy(IResolvable appCookieStickinessPolicy)
Information about a policy for application-controlled session stickiness.
|
CfnLoadBalancer.Builder |
appCookieStickinessPolicy(List<? extends Object> appCookieStickinessPolicy)
Information about a policy for application-controlled session stickiness.
|
CfnLoadBalancer.Builder |
availabilityZones(List<String> availabilityZones)
The Availability Zones for the load balancer.
|
CfnLoadBalancer |
build() |
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.
|
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.
|
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.
|
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.
|
static CfnLoadBalancer.Builder |
create(software.constructs.Construct scope,
String id) |
CfnLoadBalancer.Builder |
crossZone(Boolean crossZone)
If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones.
|
CfnLoadBalancer.Builder |
crossZone(IResolvable crossZone)
If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones.
|
CfnLoadBalancer.Builder |
healthCheck(CfnLoadBalancer.HealthCheckProperty healthCheck)
The health check settings to use when evaluating the health of your EC2 instances.
|
CfnLoadBalancer.Builder |
healthCheck(IResolvable healthCheck)
The health check settings to use when evaluating the health of your EC2 instances.
|
CfnLoadBalancer.Builder |
instances(List<String> instances)
The IDs of the instances for the load balancer.
|
CfnLoadBalancer.Builder |
lbCookieStickinessPolicy(IResolvable lbCookieStickinessPolicy)
Information about a policy for duration-based session stickiness.
|
CfnLoadBalancer.Builder |
lbCookieStickinessPolicy(List<? extends Object> lbCookieStickinessPolicy)
Information about a policy for duration-based session stickiness.
|
CfnLoadBalancer.Builder |
listeners(IResolvable listeners)
The listeners for the load balancer.
|
CfnLoadBalancer.Builder |
listeners(List<? extends Object> listeners)
The listeners for the load balancer.
|
CfnLoadBalancer.Builder |
loadBalancerName(String loadBalancerName)
The name of the load balancer.
|
CfnLoadBalancer.Builder |
policies(IResolvable policies)
The policies defined for your Classic Load Balancer.
|
CfnLoadBalancer.Builder |
policies(List<? extends Object> policies)
The policies defined for your Classic Load Balancer.
|
CfnLoadBalancer.Builder |
scheme(String scheme)
The type of load balancer.
|
CfnLoadBalancer.Builder |
securityGroups(List<String> securityGroups)
The security groups for the load balancer.
|
CfnLoadBalancer.Builder |
subnets(List<String> subnets)
The IDs of the subnets for the load balancer.
|
CfnLoadBalancer.Builder |
tags(List<? extends CfnTag> tags)
The tags associated with a load balancer.
|
@Stability(value=Stable) public static CfnLoadBalancer.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnLoadBalancer.AccessLoggingPolicyProperty.Builder.@Stability(value=Stable) public CfnLoadBalancer.Builder listeners(IResolvable listeners)
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.
listeners - The listeners for the load balancer. You can specify at most one listener per port. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder listeners(List<? extends Object> listeners)
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.
listeners - The listeners for the load balancer. You can specify at most one listener per port. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder accessLoggingPolicy(CfnLoadBalancer.AccessLoggingPolicyProperty accessLoggingPolicy)
accessLoggingPolicy - Information about where and how access logs are stored for the load balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder accessLoggingPolicy(IResolvable accessLoggingPolicy)
accessLoggingPolicy - Information about where and how access logs are stored for the load balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder appCookieStickinessPolicy(IResolvable appCookieStickinessPolicy)
appCookieStickinessPolicy - Information about a policy for application-controlled session stickiness. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder appCookieStickinessPolicy(List<? extends Object> appCookieStickinessPolicy)
appCookieStickinessPolicy - Information about a policy for application-controlled session stickiness. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder availabilityZones(List<String> availabilityZones)
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.
availabilityZones - The Availability Zones for the load balancer. For load balancers in a VPC, specify `Subnets` instead. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder connectionDrainingPolicy(CfnLoadBalancer.ConnectionDrainingPolicyProperty connectionDrainingPolicy)
For more information, see Configure Connection Draining in the Classic Load Balancers Guide .
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.this@Stability(value=Stable) public CfnLoadBalancer.Builder connectionDrainingPolicy(IResolvable connectionDrainingPolicy)
For more information, see Configure Connection Draining in the Classic Load Balancers Guide .
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.this@Stability(value=Stable) public CfnLoadBalancer.Builder connectionSettings(CfnLoadBalancer.ConnectionSettingsProperty connectionSettings)
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 Classic Load Balancers Guide .
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.this@Stability(value=Stable) public CfnLoadBalancer.Builder connectionSettings(IResolvable connectionSettings)
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 Classic Load Balancers Guide .
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.this@Stability(value=Stable) public CfnLoadBalancer.Builder crossZone(Boolean crossZone)
For more information, see Configure Cross-Zone Load Balancing in the Classic Load Balancers Guide .
crossZone - If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder crossZone(IResolvable crossZone)
For more information, see Configure Cross-Zone Load Balancing in the Classic Load Balancers Guide .
crossZone - If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder healthCheck(CfnLoadBalancer.HealthCheckProperty healthCheck)
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.
healthCheck - The health check settings to use when evaluating the health of your EC2 instances. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder healthCheck(IResolvable healthCheck)
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.
healthCheck - The health check settings to use when evaluating the health of your EC2 instances. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder instances(List<String> instances)
instances - The IDs of the instances for the load balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder lbCookieStickinessPolicy(IResolvable lbCookieStickinessPolicy)
lbCookieStickinessPolicy - Information about a policy for duration-based session stickiness. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder lbCookieStickinessPolicy(List<? extends Object> lbCookieStickinessPolicy)
lbCookieStickinessPolicy - Information about a policy for duration-based session stickiness. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder loadBalancerName(String loadBalancerName)
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.
loadBalancerName - The name of the load balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder policies(IResolvable policies)
Specify only back-end server policies.
policies - The policies defined for your Classic Load Balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder policies(List<? extends Object> policies)
Specify only back-end server policies.
policies - The policies defined for your Classic Load Balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder scheme(String scheme)
If Scheme is internet-facing , the load balancer has a public DNS name that resolves to a public IP address.
If Scheme is internal , the load balancer has a public DNS name that resolves to a private IP address.
scheme - The type of load balancer. Valid only for load balancers in a VPC. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder securityGroups(List<String> securityGroups)
Valid only for load balancers in a VPC.
securityGroups - The security groups for the load balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder subnets(List<String> subnets)
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.
subnets - The IDs of the subnets for the load balancer. You can specify at most one subnet per Availability Zone. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder tags(List<? extends CfnTag> tags)
tags - The tags associated with a load balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer build()
build in interface software.amazon.jsii.Builder<CfnLoadBalancer>Copyright © 2022. All rights reserved.