#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for LoadBalancerAttributes
Implementations
sourceimpl 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
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more