Class TimeBasedLinearTrafficRouting

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codedeploy.TrafficRouting
software.amazon.awscdk.services.codedeploy.TimeBasedLinearTrafficRouting
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.106.0 (build e852934)", date="2025-02-17T19:20:25.366Z") @Stability(Stable) public class TimeBasedLinearTrafficRouting extends TrafficRouting
Define a traffic routing config of type 'TimeBasedLinear'.

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.*;
 TrafficRouting timeBasedLinearTrafficRouting = TimeBasedLinearTrafficRouting.allAtOnce();
 
  • Constructor Details

    • TimeBasedLinearTrafficRouting

      protected TimeBasedLinearTrafficRouting(software.amazon.jsii.JsiiObjectRef objRef)
    • TimeBasedLinearTrafficRouting

      protected TimeBasedLinearTrafficRouting(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • TimeBasedLinearTrafficRouting

      @Stability(Stable) public TimeBasedLinearTrafficRouting(@NotNull TimeBasedLinearTrafficRoutingProps props)
      Parameters:
      props - This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public TrafficRoutingConfig bind(@NotNull software.constructs.Construct _scope)
      Return a TrafficRoutingConfig of type TimeBasedLinear.

      Specified by:
      bind in class TrafficRouting
      Parameters:
      _scope - This parameter is required.
    • getInterval

      @Stability(Stable) @NotNull public Duration getInterval()
      The amount of time between additional traffic shifts.
    • getPercentage

      @Stability(Stable) @NotNull public Number getPercentage()
      The percentage to increase traffic on each traffic shift.