#[non_exhaustive]pub struct LoadBalancer {Show 14 fields
pub load_balancer_arn: Option<String>,
pub dns_name: Option<String>,
pub canonical_hosted_zone_id: Option<String>,
pub created_time: Option<DateTime>,
pub load_balancer_name: Option<String>,
pub scheme: Option<LoadBalancerSchemeEnum>,
pub vpc_id: Option<String>,
pub state: Option<LoadBalancerState>,
pub type: Option<LoadBalancerTypeEnum>,
pub availability_zones: Option<Vec<AvailabilityZone>>,
pub security_groups: Option<Vec<String>>,
pub ip_address_type: Option<IpAddressType>,
pub customer_owned_ipv4_pool: Option<String>,
pub enforce_security_group_inbound_rules_on_private_link_traffic: Option<String>,
}
Expand description
Information about 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.load_balancer_arn: Option<String>
The Amazon Resource Name (ARN) of the load balancer.
dns_name: Option<String>
The public DNS name of the load balancer.
canonical_hosted_zone_id: Option<String>
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
created_time: Option<DateTime>
The date and time the load balancer was created.
load_balancer_name: Option<String>
The name of the load balancer.
scheme: Option<LoadBalancerSchemeEnum>
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.
vpc_id: Option<String>
The ID of the VPC for the load balancer.
state: Option<LoadBalancerState>
The state of the load balancer.
type: Option<LoadBalancerTypeEnum>
The type of load balancer.
availability_zones: Option<Vec<AvailabilityZone>>
The subnets for the load balancer.
security_groups: Option<Vec<String>>
The IDs of the security groups for the load balancer.
ip_address_type: Option<IpAddressType>
The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
customer_owned_ipv4_pool: Option<String>
[Application Load Balancers on Outposts] The ID of the customer-owned address pool.
enforce_security_group_inbound_rules_on_private_link_traffic: Option<String>
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
Implementations§
source§impl LoadBalancer
impl LoadBalancer
sourcepub fn load_balancer_arn(&self) -> Option<&str>
pub fn load_balancer_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the load balancer.
sourcepub fn canonical_hosted_zone_id(&self) -> Option<&str>
pub fn canonical_hosted_zone_id(&self) -> Option<&str>
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
sourcepub fn created_time(&self) -> Option<&DateTime>
pub fn created_time(&self) -> Option<&DateTime>
The date and time the load balancer was created.
sourcepub fn load_balancer_name(&self) -> Option<&str>
pub fn load_balancer_name(&self) -> Option<&str>
The name of the load balancer.
sourcepub fn scheme(&self) -> Option<&LoadBalancerSchemeEnum>
pub fn scheme(&self) -> Option<&LoadBalancerSchemeEnum>
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.
sourcepub fn state(&self) -> Option<&LoadBalancerState>
pub fn state(&self) -> Option<&LoadBalancerState>
The state of the load balancer.
sourcepub fn type(&self) -> Option<&LoadBalancerTypeEnum>
pub fn type(&self) -> Option<&LoadBalancerTypeEnum>
The type of load balancer.
sourcepub fn availability_zones(&self) -> &[AvailabilityZone]
pub fn availability_zones(&self) -> &[AvailabilityZone]
The subnets for the load balancer.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .availability_zones.is_none()
.
sourcepub fn security_groups(&self) -> &[String]
pub fn security_groups(&self) -> &[String]
The IDs of the security groups for the load balancer.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .security_groups.is_none()
.
sourcepub fn ip_address_type(&self) -> Option<&IpAddressType>
pub fn ip_address_type(&self) -> Option<&IpAddressType>
The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
sourcepub fn customer_owned_ipv4_pool(&self) -> Option<&str>
pub fn customer_owned_ipv4_pool(&self) -> Option<&str>
[Application Load Balancers on Outposts] The ID of the customer-owned address pool.
sourcepub fn enforce_security_group_inbound_rules_on_private_link_traffic(
&self
) -> Option<&str>
pub fn enforce_security_group_inbound_rules_on_private_link_traffic( &self ) -> Option<&str>
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
source§impl LoadBalancer
impl LoadBalancer
sourcepub fn builder() -> LoadBalancerBuilder
pub fn builder() -> LoadBalancerBuilder
Creates a new builder-style object to manufacture LoadBalancer
.
Trait Implementations§
source§impl Clone for LoadBalancer
impl Clone for LoadBalancer
source§fn clone(&self) -> LoadBalancer
fn clone(&self) -> LoadBalancer
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoadBalancer
impl Debug for LoadBalancer
source§impl PartialEq for LoadBalancer
impl PartialEq for LoadBalancer
source§fn eq(&self, other: &LoadBalancer) -> bool
fn eq(&self, other: &LoadBalancer) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LoadBalancer
Auto Trait Implementations§
impl Freeze for LoadBalancer
impl RefUnwindSafe for LoadBalancer
impl Send for LoadBalancer
impl Sync for LoadBalancer
impl Unpin for LoadBalancer
impl UnwindSafe for LoadBalancer
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