Struct aws_sdk_autoscaling::types::TrafficSourceState
source · #[non_exhaustive]pub struct TrafficSourceState {
pub traffic_source: Option<String>,
pub state: Option<String>,
pub identifier: Option<String>,
pub type: Option<String>,
}Expand description
Describes the state of a traffic source.
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.traffic_source: Option<String>This is replaced by Identifier.
state: Option<String>Describes the current state of a traffic source.
The state values are as follows:
-
Adding- The Auto Scaling instances are being registered with the load balancer or target group. -
Added- All Auto Scaling instances are registered with the load balancer or target group. -
InService- For an Elastic Load Balancing load balancer or target group, at least one Auto Scaling instance passed anELBhealth check. For VPC Lattice, at least one Auto Scaling instance passed anVPC_LATTICEhealth check. -
Removing- The Auto Scaling instances are being deregistered from the load balancer or target group. If connection draining (deregistration delay) is enabled, Elastic Load Balancing or VPC Lattice waits for in-flight requests to complete before deregistering the instances. -
Removed- All Auto Scaling instances are deregistered from the load balancer or target group.
identifier: Option<String>The unique identifier of the traffic source.
type: Option<String>Provides additional context for the value of Identifier.
The following lists the valid values:
-
elbifIdentifieris the name of a Classic Load Balancer. -
elbv2ifIdentifieris the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group. -
vpc-latticeifIdentifieris the ARN of a VPC Lattice target group.
Required if the identifier is the name of a Classic Load Balancer.
Implementations§
source§impl TrafficSourceState
impl TrafficSourceState
sourcepub fn traffic_source(&self) -> Option<&str>
👎Deprecated: TrafficSource has been replaced by Identifier
pub fn traffic_source(&self) -> Option<&str>
This is replaced by Identifier.
sourcepub fn state(&self) -> Option<&str>
pub fn state(&self) -> Option<&str>
Describes the current state of a traffic source.
The state values are as follows:
-
Adding- The Auto Scaling instances are being registered with the load balancer or target group. -
Added- All Auto Scaling instances are registered with the load balancer or target group. -
InService- For an Elastic Load Balancing load balancer or target group, at least one Auto Scaling instance passed anELBhealth check. For VPC Lattice, at least one Auto Scaling instance passed anVPC_LATTICEhealth check. -
Removing- The Auto Scaling instances are being deregistered from the load balancer or target group. If connection draining (deregistration delay) is enabled, Elastic Load Balancing or VPC Lattice waits for in-flight requests to complete before deregistering the instances. -
Removed- All Auto Scaling instances are deregistered from the load balancer or target group.
sourcepub fn identifier(&self) -> Option<&str>
pub fn identifier(&self) -> Option<&str>
The unique identifier of the traffic source.
sourcepub fn type(&self) -> Option<&str>
pub fn type(&self) -> Option<&str>
Provides additional context for the value of Identifier.
The following lists the valid values:
-
elbifIdentifieris the name of a Classic Load Balancer. -
elbv2ifIdentifieris the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group. -
vpc-latticeifIdentifieris the ARN of a VPC Lattice target group.
Required if the identifier is the name of a Classic Load Balancer.
source§impl TrafficSourceState
impl TrafficSourceState
sourcepub fn builder() -> TrafficSourceStateBuilder
pub fn builder() -> TrafficSourceStateBuilder
Creates a new builder-style object to manufacture TrafficSourceState.
Trait Implementations§
source§impl Clone for TrafficSourceState
impl Clone for TrafficSourceState
source§fn clone(&self) -> TrafficSourceState
fn clone(&self) -> TrafficSourceState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TrafficSourceState
impl Debug for TrafficSourceState
source§impl PartialEq for TrafficSourceState
impl PartialEq for TrafficSourceState
source§fn eq(&self, other: &TrafficSourceState) -> bool
fn eq(&self, other: &TrafficSourceState) -> bool
self and other values to be equal, and is used
by ==.