#[non_exhaustive]pub struct LoadBalancerAttributes {
pub cross_zone_load_balancing: Option<CrossZoneLoadBalancing>,
pub access_log: Option<AccessLog>,
pub connection_draining: Option<ConnectionDraining>,
pub connection_settings: Option<ConnectionSettings>,
pub additional_attributes: Option<Vec<AdditionalAttribute>>,
}
Expand description
The attributes for a load balancer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cross_zone_load_balancing: Option<CrossZoneLoadBalancing>
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.
access_log: Option<AccessLog>
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.
connection_draining: Option<ConnectionDraining>
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.
connection_settings: Option<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 Classic Load Balancers Guide.
additional_attributes: Option<Vec<AdditionalAttribute>>
Any additional attributes.
Implementations§
source§impl LoadBalancerAttributes
impl LoadBalancerAttributes
sourcepub fn cross_zone_load_balancing(&self) -> Option<&CrossZoneLoadBalancing>
pub fn cross_zone_load_balancing(&self) -> Option<&CrossZoneLoadBalancing>
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) -> Option<&AccessLog>
pub fn access_log(&self) -> Option<&AccessLog>
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) -> Option<&ConnectionDraining>
pub fn connection_draining(&self) -> Option<&ConnectionDraining>
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) -> Option<&ConnectionSettings>
pub fn connection_settings(&self) -> Option<&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 Classic Load Balancers Guide.
sourcepub fn additional_attributes(&self) -> &[AdditionalAttribute]
pub fn additional_attributes(&self) -> &[AdditionalAttribute]
Any additional attributes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .additional_attributes.is_none()
.
source§impl LoadBalancerAttributes
impl LoadBalancerAttributes
sourcepub fn builder() -> LoadBalancerAttributesBuilder
pub fn builder() -> LoadBalancerAttributesBuilder
Creates a new builder-style object to manufacture LoadBalancerAttributes
.
Trait Implementations§
source§impl Clone for LoadBalancerAttributes
impl Clone for LoadBalancerAttributes
source§fn clone(&self) -> LoadBalancerAttributes
fn clone(&self) -> LoadBalancerAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoadBalancerAttributes
impl Debug for LoadBalancerAttributes
source§impl PartialEq for LoadBalancerAttributes
impl PartialEq for LoadBalancerAttributes
source§fn eq(&self, other: &LoadBalancerAttributes) -> bool
fn eq(&self, other: &LoadBalancerAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LoadBalancerAttributes
Auto Trait Implementations§
impl Freeze for LoadBalancerAttributes
impl RefUnwindSafe for LoadBalancerAttributes
impl Send for LoadBalancerAttributes
impl Sync for LoadBalancerAttributes
impl Unpin for LoadBalancerAttributes
impl UnwindSafe for LoadBalancerAttributes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more