Struct aws_sdk_codedeploy::types::TargetGroupPairInfo
source · #[non_exhaustive]pub struct TargetGroupPairInfo {
pub target_groups: Option<Vec<TargetGroupInfo>>,
pub prod_traffic_route: Option<TrafficRoute>,
pub test_traffic_route: Option<TrafficRoute>,
}
Expand description
Information about two target groups and how traffic is routed during an Amazon ECS deployment. An optional test traffic route can be specified.
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.target_groups: Option<Vec<TargetGroupInfo>>
One pair of target groups. One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.
prod_traffic_route: Option<TrafficRoute>
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
test_traffic_route: Option<TrafficRoute>
An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can occur while test traffic is served during a deployment.
Implementations§
source§impl TargetGroupPairInfo
impl TargetGroupPairInfo
sourcepub fn target_groups(&self) -> &[TargetGroupInfo]
pub fn target_groups(&self) -> &[TargetGroupInfo]
One pair of target groups. One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .target_groups.is_none()
.
sourcepub fn prod_traffic_route(&self) -> Option<&TrafficRoute>
pub fn prod_traffic_route(&self) -> Option<&TrafficRoute>
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
sourcepub fn test_traffic_route(&self) -> Option<&TrafficRoute>
pub fn test_traffic_route(&self) -> Option<&TrafficRoute>
An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can occur while test traffic is served during a deployment.
source§impl TargetGroupPairInfo
impl TargetGroupPairInfo
sourcepub fn builder() -> TargetGroupPairInfoBuilder
pub fn builder() -> TargetGroupPairInfoBuilder
Creates a new builder-style object to manufacture TargetGroupPairInfo
.
Trait Implementations§
source§impl Clone for TargetGroupPairInfo
impl Clone for TargetGroupPairInfo
source§fn clone(&self) -> TargetGroupPairInfo
fn clone(&self) -> TargetGroupPairInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TargetGroupPairInfo
impl Debug for TargetGroupPairInfo
source§impl PartialEq for TargetGroupPairInfo
impl PartialEq for TargetGroupPairInfo
source§fn eq(&self, other: &TargetGroupPairInfo) -> bool
fn eq(&self, other: &TargetGroupPairInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetGroupPairInfo
Auto Trait Implementations§
impl Freeze for TargetGroupPairInfo
impl RefUnwindSafe for TargetGroupPairInfo
impl Send for TargetGroupPairInfo
impl Sync for TargetGroupPairInfo
impl Unpin for TargetGroupPairInfo
impl UnwindSafe for TargetGroupPairInfo
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