Skip to content
v2.274.0

AllAtOnceTrafficRouting Class ​

Define a traffic routing config of type 'AllAtOnce'.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const allAtOnceTrafficRouting = codedeploy.AllAtOnceTrafficRouting.allAtOnce();
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codedeploy as codedeploy

all_at_once_traffic_routing = codedeploy.AllAtOnceTrafficRouting.all_at_once()
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codedeploy.*;

TrafficRouting allAtOnceTrafficRouting = AllAtOnceTrafficRouting.allAtOnce();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;

var allAtOnceTrafficRouting = AllAtOnceTrafficRouting.AllAtOnce();
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

allAtOnceTrafficRouting := awscdk.Aws_codedeploy.AllAtOnceTrafficRouting_AllAtOnce()

Initializer ​

ts
new AllAtOnceTrafficRouting()
python
AllAtOnceTrafficRouting()
java
new AllAtOnceTrafficRouting()
csharp
new AllAtOnceTrafficRouting()
go
NewAllAtOnceTrafficRouting()

Methods ​

allAtOnce(): TrafficRouting@staticmethod def all_at_once() -> TrafficRoutingpublic static TrafficRouting allAtOnce()public static TrafficRouting AllAtOnce()func AllAtOnce() TrafficRoutingstatic#
Shifts 100% of traffic in a single shift.
bind(_scope: Construct): TrafficRoutingConfigdef bind(self, _scope: Construct) -> TrafficRoutingConfigpublic TrafficRoutingConfig bind(Construct _scope)public TrafficRoutingConfig Bind(Construct _scope)func Bind(_scope Construct) TrafficRoutingConfig#
Return a TrafficRoutingConfig of type `AllAtOnce`.
timeBasedCanary(props: TimeBasedCanaryTrafficRoutingProps): TrafficRouting@staticmethod def time_based_canary(props: TimeBasedCanaryTrafficRoutingProps) -> TrafficRoutingpublic static TrafficRouting timeBasedCanary(TimeBasedCanaryTrafficRoutingProps props)public static TrafficRouting TimeBasedCanary(TimeBasedCanaryTrafficRoutingProps props)func TimeBasedCanary(Props TimeBasedCanaryTrafficRoutingProps) TrafficRoutingstatic#
Shifts a specified percentage of traffic, waits for a specified amount of time, then shifts the rest of traffic.
timeBasedLinear(props: TimeBasedLinearTrafficRoutingProps): TrafficRouting@staticmethod def time_based_linear(props: TimeBasedLinearTrafficRoutingProps) -> TrafficRoutingpublic static TrafficRouting timeBasedLinear(TimeBasedLinearTrafficRoutingProps props)public static TrafficRouting TimeBasedLinear(TimeBasedLinearTrafficRoutingProps props)func TimeBasedLinear(Props TimeBasedLinearTrafficRoutingProps) TrafficRoutingstatic#
Keeps shifting a specified percentage of traffic until reaching 100%, waiting for a specified amount of time in between each traffic shift.