pub struct Builder { /* private fields */ }
Expand description
A builder for LoadBalancerAttributes
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn cross_zone_load_balancing(self, input: CrossZoneLoadBalancing) -> Self
pub fn cross_zone_load_balancing(self, input: CrossZoneLoadBalancing) -> Self
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 Classic Load Balancers Guide.
sourcepub fn set_cross_zone_load_balancing(
self,
input: Option<CrossZoneLoadBalancing>
) -> Self
pub fn set_cross_zone_load_balancing(
self,
input: Option<CrossZoneLoadBalancing>
) -> Self
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 Classic Load Balancers Guide.
sourcepub fn access_log(self, input: AccessLog) -> Self
pub fn access_log(self, input: AccessLog) -> Self
If enabled, the load balancer captures detailed information of all requests and delivers the information to the Amazon S3 bucket that you specify.
For more information, see Enable Access Logs in the Classic Load Balancers Guide.
sourcepub fn set_access_log(self, input: Option<AccessLog>) -> Self
pub fn set_access_log(self, input: Option<AccessLog>) -> Self
If enabled, the load balancer captures detailed information of all requests and delivers the information to the Amazon S3 bucket that you specify.
For more information, see Enable Access Logs in the Classic Load Balancers Guide.
sourcepub fn connection_draining(self, input: ConnectionDraining) -> Self
pub fn connection_draining(self, input: ConnectionDraining) -> Self
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 Classic Load Balancers Guide.
sourcepub fn set_connection_draining(self, input: Option<ConnectionDraining>) -> Self
pub fn set_connection_draining(self, input: Option<ConnectionDraining>) -> Self
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 Classic Load Balancers Guide.
sourcepub fn connection_settings(self, input: ConnectionSettings) -> Self
pub fn connection_settings(self, input: ConnectionSettings) -> Self
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 Classic Load Balancers Guide.
sourcepub fn set_connection_settings(self, input: Option<ConnectionSettings>) -> Self
pub fn set_connection_settings(self, input: Option<ConnectionSettings>) -> Self
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 Classic Load Balancers Guide.
sourcepub fn additional_attributes(self, input: AdditionalAttribute) -> Self
pub fn additional_attributes(self, input: AdditionalAttribute) -> Self
Appends an item to additional_attributes
.
To override the contents of this collection use set_additional_attributes
.
Any additional attributes.
sourcepub fn set_additional_attributes(
self,
input: Option<Vec<AdditionalAttribute>>
) -> Self
pub fn set_additional_attributes(
self,
input: Option<Vec<AdditionalAttribute>>
) -> Self
Any additional attributes.
sourcepub fn build(self) -> LoadBalancerAttributes
pub fn build(self) -> LoadBalancerAttributes
Consumes the builder and constructs a LoadBalancerAttributes
.