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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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.

§tags: Option<Vec<Tag>>

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

source

pub fn name(&self) -> Option<&str>

The name of the load balancer (my-load-balancer).

source

pub fn arn(&self) -> Option<&str>

The Amazon Resource Name (ARN) of the load balancer.

source

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.

source

pub fn created_at(&self) -> Option<&DateTime>

The date when your load balancer was created.

source

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.

source

pub fn resource_type(&self) -> Option<&ResourceType>

The resource type (LoadBalancer.

source

pub fn tags(&self) -> &[Tag]

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().

source

pub fn dns_name(&self) -> Option<&str>

The DNS name of your Lightsail load balancer.

source

pub fn state(&self) -> Option<&LoadBalancerState>

The status of your load balancer. Valid values are below.

source

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.

source

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().

source

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.

source

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.

source

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().

source

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().

source

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.

source

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.

source

pub fn https_redirection_enabled(&self) -> Option<bool>

A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.

source

pub fn tls_policy_name(&self) -> Option<&str>

The name of the TLS security policy for the load balancer.

source§

impl LoadBalancer

source

pub fn builder() -> LoadBalancerBuilder

Creates a new builder-style object to manufacture LoadBalancer.

Trait Implementations§

source§

impl Clone for LoadBalancer

source§

fn clone(&self) -> LoadBalancer

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LoadBalancer

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for LoadBalancer

source§

fn eq(&self, other: &LoadBalancer) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for LoadBalancer

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more