#[non_exhaustive]pub struct LoadBalancerAttributes { /* private fields */ }
Expand description
The attributes for a load balancer.
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) -> Option<&[AdditionalAttribute]>
pub fn additional_attributes(&self) -> Option<&[AdditionalAttribute]>
Any additional attributes.
source§impl LoadBalancerAttributes
impl LoadBalancerAttributes
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LoadBalancerAttributes
.
Examples found in repository?
1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922
pub fn deser_structure_crate_model_load_balancer_attributes(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LoadBalancerAttributes, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LoadBalancerAttributes::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CrossZoneLoadBalancing") /* CrossZoneLoadBalancing com.amazonaws.elasticloadbalancing#LoadBalancerAttributes$CrossZoneLoadBalancing */ => {
let var_48 =
Some(
crate::xml_deser::deser_structure_crate_model_cross_zone_load_balancing(&mut tag)
?
)
;
builder = builder.set_cross_zone_load_balancing(var_48);
}
,
s if s.matches("AccessLog") /* AccessLog com.amazonaws.elasticloadbalancing#LoadBalancerAttributes$AccessLog */ => {
let var_49 =
Some(
crate::xml_deser::deser_structure_crate_model_access_log(&mut tag)
?
)
;
builder = builder.set_access_log(var_49);
}
,
s if s.matches("ConnectionDraining") /* ConnectionDraining com.amazonaws.elasticloadbalancing#LoadBalancerAttributes$ConnectionDraining */ => {
let var_50 =
Some(
crate::xml_deser::deser_structure_crate_model_connection_draining(&mut tag)
?
)
;
builder = builder.set_connection_draining(var_50);
}
,
s if s.matches("ConnectionSettings") /* ConnectionSettings com.amazonaws.elasticloadbalancing#LoadBalancerAttributes$ConnectionSettings */ => {
let var_51 =
Some(
crate::xml_deser::deser_structure_crate_model_connection_settings(&mut tag)
?
)
;
builder = builder.set_connection_settings(var_51);
}
,
s if s.matches("AdditionalAttributes") /* AdditionalAttributes com.amazonaws.elasticloadbalancing#LoadBalancerAttributes$AdditionalAttributes */ => {
let var_52 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticloadbalancing_additional_attributes(&mut tag)
?
)
;
builder = builder.set_additional_attributes(var_52);
}
,
_ => {}
}
}
Ok(builder.build())
}
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 more