Interface CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.Jsii$Proxy
- Enclosing class:
CfnDeploymentConfigPropsMixin
@Stability(Stable)
public static interface CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty
extends software.amazon.jsii.JsiiSerializable
The configuration that specifies how traffic is shifted from one version of a Lambda function to another version during an AWS Lambda deployment, or from one Amazon ECS task set to another during an Amazon ECS deployment.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.codedeploy.*;
TrafficRoutingConfigProperty trafficRoutingConfigProperty = TrafficRoutingConfigProperty.builder()
.timeBasedCanary(TimeBasedCanaryProperty.builder()
.canaryInterval(123)
.canaryPercentage(123)
.build())
.timeBasedLinear(TimeBasedLinearProperty.builder()
.linearInterval(123)
.linearPercentage(123)
.build())
.type("type")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.default ObjectA 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 StringgetType()The type of traffic shifting (TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTimeBasedCanary
A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.
Returns union: either
IResolvableorCfnDeploymentConfigPropsMixin.TimeBasedCanaryProperty- See Also:
-
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.The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.
Returns union: either
IResolvableorCfnDeploymentConfigPropsMixin.TimeBasedLinearProperty- See Also:
-
getType
The type of traffic shifting (TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.- See Also:
-
builder
@Stability(Stable) static CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.Builder builder()
-