TrafficRoutingConfig
- class aws_cdk.aws_codedeploy.TrafficRoutingConfig(*, type, time_based_canary=None, time_based_linear=None)
Bases:
object
Represents the structure to pass into the underlying CfnDeploymentConfig class.
- Parameters:
type (
str
) – The type of traffic shifting (TimeBasedCanary
orTimeBasedLinear
) used by a deployment configuration.time_based_canary (
Union
[CanaryTrafficRoutingConfig
,Dict
[str
,Any
],None
]) – A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. Default: nonetime_based_linear (
Union
[LinearTrafficRoutingConfig
,Dict
[str
,Any
],None
]) – 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
- ExampleMetadata:
fixture=_generated
Example:
# 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 traffic_routing_config = codedeploy.TrafficRoutingConfig( type="type", # the properties below are optional time_based_canary=codedeploy.CanaryTrafficRoutingConfig( canary_interval=123, canary_percentage=123 ), time_based_linear=codedeploy.LinearTrafficRoutingConfig( linear_interval=123, linear_percentage=123 ) )
Attributes
- time_based_canary
A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.
- Default:
none
- time_based_linear
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
- type
The type of traffic shifting (
TimeBasedCanary
orTimeBasedLinear
) used by a deployment configuration.