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 ==
.