Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data TrafficRoutingConfig = TrafficRoutingConfig' {}
- newTrafficRoutingConfig :: TrafficRoutingConfigType -> Natural -> TrafficRoutingConfig
- trafficRoutingConfig_canarySize :: Lens' TrafficRoutingConfig (Maybe CapacitySize)
- trafficRoutingConfig_linearStepSize :: Lens' TrafficRoutingConfig (Maybe CapacitySize)
- trafficRoutingConfig_type :: Lens' TrafficRoutingConfig TrafficRoutingConfigType
- trafficRoutingConfig_waitIntervalInSeconds :: Lens' TrafficRoutingConfig Natural
Documentation
data TrafficRoutingConfig Source #
Defines the traffic routing strategy during an endpoint deployment to shift traffic from the old fleet to the new fleet.
See: newTrafficRoutingConfig
smart constructor.
TrafficRoutingConfig' | |
|
Instances
newTrafficRoutingConfig Source #
Create a value of TrafficRoutingConfig
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:canarySize:TrafficRoutingConfig'
, trafficRoutingConfig_canarySize
- Batch size for the first step to turn on traffic on the new endpoint
fleet. Value
must be less than or equal to 50% of the variant's total
instance count.
$sel:linearStepSize:TrafficRoutingConfig'
, trafficRoutingConfig_linearStepSize
- Batch size for each step to turn on traffic on the new endpoint fleet.
Value
must be 10-50% of the variant's total instance count.
TrafficRoutingConfig
, trafficRoutingConfig_type
- Traffic routing strategy type.
ALL_AT_ONCE
: Endpoint traffic shifts to the new fleet in a single step.CANARY
: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary, which is a small portion of the traffic. The second step is the remainder of the traffic.LINEAR
: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
$sel:waitIntervalInSeconds:TrafficRoutingConfig'
, trafficRoutingConfig_waitIntervalInSeconds
- The waiting time (in seconds) between incremental steps to turn on
traffic on the new endpoint fleet.
trafficRoutingConfig_canarySize :: Lens' TrafficRoutingConfig (Maybe CapacitySize) Source #
Batch size for the first step to turn on traffic on the new endpoint
fleet. Value
must be less than or equal to 50% of the variant's total
instance count.
trafficRoutingConfig_linearStepSize :: Lens' TrafficRoutingConfig (Maybe CapacitySize) Source #
Batch size for each step to turn on traffic on the new endpoint fleet.
Value
must be 10-50% of the variant's total instance count.
trafficRoutingConfig_type :: Lens' TrafficRoutingConfig TrafficRoutingConfigType Source #
Traffic routing strategy type.
ALL_AT_ONCE
: Endpoint traffic shifts to the new fleet in a single step.CANARY
: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary, which is a small portion of the traffic. The second step is the remainder of the traffic.LINEAR
: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
trafficRoutingConfig_waitIntervalInSeconds :: Lens' TrafficRoutingConfig Natural Source #
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.