Struct aws_sdk_lightsail::types::LoadBalancer
source · #[non_exhaustive]pub struct LoadBalancer {Show 19 fields
pub name: Option<String>,
pub arn: Option<String>,
pub support_code: Option<String>,
pub created_at: Option<DateTime>,
pub location: Option<ResourceLocation>,
pub resource_type: Option<ResourceType>,
pub tags: Option<Vec<Tag>>,
pub dns_name: Option<String>,
pub state: Option<LoadBalancerState>,
pub protocol: Option<LoadBalancerProtocol>,
pub public_ports: Option<Vec<i32>>,
pub health_check_path: Option<String>,
pub instance_port: Option<i32>,
pub instance_health_summary: Option<Vec<InstanceHealthSummary>>,
pub tls_certificate_summaries: Option<Vec<LoadBalancerTlsCertificateSummary>>,
pub configuration_options: Option<HashMap<LoadBalancerAttributeName, String>>,
pub ip_address_type: Option<IpAddressType>,
pub https_redirection_enabled: Option<bool>,
pub tls_policy_name: Option<String>,
}
Expand description
Describes 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.name: Option<String>
The name of the load balancer (my-load-balancer
).
arn: Option<String>
The Amazon Resource Name (ARN) of the load balancer.
support_code: Option<String>
The support code. Include this code in your email to support when you have questions about your Lightsail load balancer. This code enables our support team to look up your Lightsail information more easily.
created_at: Option<DateTime>
The date when your load balancer was created.
location: Option<ResourceLocation>
The AWS Region where your load balancer was created (us-east-2a
). Lightsail automatically creates your load balancer across Availability Zones.
resource_type: Option<ResourceType>
The resource type (LoadBalancer
.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
dns_name: Option<String>
The DNS name of your Lightsail load balancer.
state: Option<LoadBalancerState>
The status of your load balancer. Valid values are below.
protocol: Option<LoadBalancerProtocol>
The protocol you have enabled for your load balancer. Valid values are below.
You can't just have HTTP_HTTPS
, but you can have just HTTP
.
public_ports: Option<Vec<i32>>
An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.
health_check_path: Option<String>
The path you specified to perform your health checks. If no path is specified, the load balancer tries to make a request to the default (root) page.
instance_port: Option<i32>
The port where the load balancer will direct traffic to your Lightsail instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.
instance_health_summary: Option<Vec<InstanceHealthSummary>>
An array of InstanceHealthSummary objects describing the health of the load balancer.
tls_certificate_summaries: Option<Vec<LoadBalancerTlsCertificateSummary>>
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS certificates. For example, if true
, the certificate is attached to the load balancer.
configuration_options: Option<HashMap<LoadBalancerAttributeName, String>>
A string to string map of the configuration options for your load balancer. Valid values are listed below.
ip_address_type: Option<IpAddressType>
The IP address type of the load balancer.
The possible values are ipv4
for IPv4 only, ipv6
for IPv6 only, and dualstack
for IPv4 and IPv6.
https_redirection_enabled: Option<bool>
A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.
tls_policy_name: Option<String>
The name of the TLS security policy for the load balancer.
Implementations§
source§impl LoadBalancer
impl LoadBalancer
sourcepub fn support_code(&self) -> Option<&str>
pub fn support_code(&self) -> Option<&str>
The support code. Include this code in your email to support when you have questions about your Lightsail load balancer. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The date when your load balancer was created.
sourcepub fn location(&self) -> Option<&ResourceLocation>
pub fn location(&self) -> Option<&ResourceLocation>
The AWS Region where your load balancer was created (us-east-2a
). Lightsail automatically creates your load balancer across Availability Zones.
sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
The resource type (LoadBalancer
.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
sourcepub fn state(&self) -> Option<&LoadBalancerState>
pub fn state(&self) -> Option<&LoadBalancerState>
The status of your load balancer. Valid values are below.
sourcepub fn protocol(&self) -> Option<&LoadBalancerProtocol>
pub fn protocol(&self) -> Option<&LoadBalancerProtocol>
The protocol you have enabled for your load balancer. Valid values are below.
You can't just have HTTP_HTTPS
, but you can have just HTTP
.
sourcepub fn public_ports(&self) -> &[i32]
pub fn public_ports(&self) -> &[i32]
An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .public_ports.is_none()
.
sourcepub fn health_check_path(&self) -> Option<&str>
pub fn health_check_path(&self) -> Option<&str>
The path you specified to perform your health checks. If no path is specified, the load balancer tries to make a request to the default (root) page.
sourcepub fn instance_port(&self) -> Option<i32>
pub fn instance_port(&self) -> Option<i32>
The port where the load balancer will direct traffic to your Lightsail instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.
sourcepub fn instance_health_summary(&self) -> &[InstanceHealthSummary]
pub fn instance_health_summary(&self) -> &[InstanceHealthSummary]
An array of InstanceHealthSummary objects describing the health of 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 .instance_health_summary.is_none()
.
sourcepub fn tls_certificate_summaries(&self) -> &[LoadBalancerTlsCertificateSummary]
pub fn tls_certificate_summaries(&self) -> &[LoadBalancerTlsCertificateSummary]
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS certificates. For example, if true
, the certificate is attached to 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 .tls_certificate_summaries.is_none()
.
sourcepub fn configuration_options(
&self
) -> Option<&HashMap<LoadBalancerAttributeName, String>>
pub fn configuration_options( &self ) -> Option<&HashMap<LoadBalancerAttributeName, String>>
A string to string map of the configuration options for your load balancer. Valid values are listed below.
sourcepub fn ip_address_type(&self) -> Option<&IpAddressType>
pub fn ip_address_type(&self) -> Option<&IpAddressType>
The IP address type of the load balancer.
The possible values are ipv4
for IPv4 only, ipv6
for IPv6 only, and dualstack
for IPv4 and IPv6.
sourcepub fn https_redirection_enabled(&self) -> Option<bool>
pub fn https_redirection_enabled(&self) -> Option<bool>
A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.
sourcepub fn tls_policy_name(&self) -> Option<&str>
pub fn tls_policy_name(&self) -> Option<&str>
The name of the TLS security policy for the load balancer.
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