Interface TrafficRoutingConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TrafficRoutingConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:36.840Z")
@Stability(Stable)
public interface TrafficRoutingConfig
extends software.amazon.jsii.JsiiSerializable
Represents the structure to pass into the underlying CfnDeploymentConfig class.
Example:
// 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.*;
TrafficRoutingConfig trafficRoutingConfig = TrafficRoutingConfig.builder()
.type("type")
// the properties below are optional
.timeBasedCanary(CanaryTrafficRoutingConfig.builder()
.canaryInterval(123)
.canaryPercentage(123)
.build())
.timeBasedLinear(LinearTrafficRoutingConfig.builder()
.linearInterval(123)
.linearPercentage(123)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTrafficRoutingConfigstatic final classAn implementation forTrafficRoutingConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic TrafficRoutingConfig.Builderbuilder()default CanaryTrafficRoutingConfigA configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.default LinearTrafficRoutingConfigA configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment.getType()The type of traffic shifting (TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The type of traffic shifting (TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration. -
getTimeBasedCanary
A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.Default: none
-
getTimeBasedLinear
A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment.Default: none
-
builder
- Returns:
- a
TrafficRoutingConfig.BuilderofTrafficRoutingConfig
-