#[non_exhaustive]pub struct TargetDescription {
pub id: Option<String>,
pub port: Option<i32>,
pub availability_zone: Option<String>,
}
Expand description
Information about a target.
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.id: Option<String>
The ID of the target. If the target type of the target group is instance
, specify an instance ID. If the target type is ip
, specify an IP address. If the target type is lambda
, specify the ARN of the Lambda function. If the target type is alb
, specify the ARN of the Application Load Balancer target.
port: Option<i32>
The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb
, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. This parameter is not used if the target is a Lambda function.
availability_zone: Option<String>
An Availability Zone or all
. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
For Application Load Balancer target groups, the specified Availability Zone value is only applicable when cross-zone load balancing is off. Otherwise the parameter is ignored and treated as all
.
This parameter is not supported if the target type of the target group is instance
or alb
.
If the target type is ip
and the IP address is in a subnet of the VPC for the target group, the Availability Zone is automatically detected and this parameter is optional. If the IP address is outside the VPC, this parameter is required.
For Application Load Balancer target groups with cross-zone load balancing off, if the target type is ip
and the IP address is outside of the VPC for the target group, this should be an Availability Zone inside the VPC for the target group.
If the target type is lambda
, this parameter is optional and the only supported value is all
.
Implementations§
source§impl TargetDescription
impl TargetDescription
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The ID of the target. If the target type of the target group is instance
, specify an instance ID. If the target type is ip
, specify an IP address. If the target type is lambda
, specify the ARN of the Lambda function. If the target type is alb
, specify the ARN of the Application Load Balancer target.
sourcepub fn port(&self) -> Option<i32>
pub fn port(&self) -> Option<i32>
The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb
, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. This parameter is not used if the target is a Lambda function.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
An Availability Zone or all
. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
For Application Load Balancer target groups, the specified Availability Zone value is only applicable when cross-zone load balancing is off. Otherwise the parameter is ignored and treated as all
.
This parameter is not supported if the target type of the target group is instance
or alb
.
If the target type is ip
and the IP address is in a subnet of the VPC for the target group, the Availability Zone is automatically detected and this parameter is optional. If the IP address is outside the VPC, this parameter is required.
For Application Load Balancer target groups with cross-zone load balancing off, if the target type is ip
and the IP address is outside of the VPC for the target group, this should be an Availability Zone inside the VPC for the target group.
If the target type is lambda
, this parameter is optional and the only supported value is all
.
source§impl TargetDescription
impl TargetDescription
sourcepub fn builder() -> TargetDescriptionBuilder
pub fn builder() -> TargetDescriptionBuilder
Creates a new builder-style object to manufacture TargetDescription
.
Trait Implementations§
source§impl Clone for TargetDescription
impl Clone for TargetDescription
source§fn clone(&self) -> TargetDescription
fn clone(&self) -> TargetDescription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TargetDescription
impl Debug for TargetDescription
source§impl PartialEq for TargetDescription
impl PartialEq for TargetDescription
source§fn eq(&self, other: &TargetDescription) -> bool
fn eq(&self, other: &TargetDescription) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetDescription
Auto Trait Implementations§
impl Freeze for TargetDescription
impl RefUnwindSafe for TargetDescription
impl Send for TargetDescription
impl Sync for TargetDescription
impl Unpin for TargetDescription
impl UnwindSafe for TargetDescription
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