CanaryTrafficRoutingConfig
- class aws_cdk.aws_codedeploy.CanaryTrafficRoutingConfig(*, canary_interval, canary_percentage)
Bases:
object
Represents the configuration specific to canary traffic shifting.
- Parameters:
canary_interval (
Union
[int
,float
]) – The number of minutes between the first and second traffic shifts of aTimeBasedCanary
deployment.canary_percentage (
Union
[int
,float
]) – The percentage of traffic to shift in the first increment of aTimeBasedCanary
deployment.
- 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 canary_traffic_routing_config = codedeploy.CanaryTrafficRoutingConfig( canary_interval=123, canary_percentage=123 )
Attributes
- canary_interval
The number of minutes between the first and second traffic shifts of a
TimeBasedCanary
deployment.
- canary_percentage
The percentage of traffic to shift in the first increment of a
TimeBasedCanary
deployment.