libZSservicesZSamazonka-codedeployZSamazonka-codedeploy
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeDeploy.Types.TrafficRoutingConfig

Description

 
Synopsis

Documentation

data TrafficRoutingConfig Source #

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.

See: newTrafficRoutingConfig smart constructor.

Constructors

TrafficRoutingConfig' 

Fields

  • timeBasedCanary :: Maybe TimeBasedCanary

    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.

  • timeBasedLinear :: Maybe TimeBasedLinear

    A configuration that shifts traffic from one version of a Lambda function or 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 ECS task sets are specified in the deployment's AppSpec file.

  • type' :: Maybe TrafficRoutingType

    The type of traffic shifting (TimeBasedCanary or TimeBasedLinear) used by a deployment configuration.

Instances

Instances details
Eq TrafficRoutingConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TrafficRoutingConfig

Read TrafficRoutingConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TrafficRoutingConfig

Show TrafficRoutingConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TrafficRoutingConfig

Generic TrafficRoutingConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TrafficRoutingConfig

Associated Types

type Rep TrafficRoutingConfig :: Type -> Type #

NFData TrafficRoutingConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TrafficRoutingConfig

Methods

rnf :: TrafficRoutingConfig -> () #

Hashable TrafficRoutingConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TrafficRoutingConfig

ToJSON TrafficRoutingConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TrafficRoutingConfig

FromJSON TrafficRoutingConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TrafficRoutingConfig

type Rep TrafficRoutingConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TrafficRoutingConfig

type Rep TrafficRoutingConfig = D1 ('MetaData "TrafficRoutingConfig" "Amazonka.CodeDeploy.Types.TrafficRoutingConfig" "libZSservicesZSamazonka-codedeployZSamazonka-codedeploy" 'False) (C1 ('MetaCons "TrafficRoutingConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "timeBasedCanary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeBasedCanary)) :*: (S1 ('MetaSel ('Just "timeBasedLinear") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeBasedLinear)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TrafficRoutingType)))))

newTrafficRoutingConfig :: TrafficRoutingConfig 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:timeBasedCanary:TrafficRoutingConfig', trafficRoutingConfig_timeBasedCanary - 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.

$sel:timeBasedLinear:TrafficRoutingConfig', trafficRoutingConfig_timeBasedLinear - A configuration that shifts traffic from one version of a Lambda function or 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 ECS task sets are specified in the deployment's AppSpec file.

$sel:type':TrafficRoutingConfig', trafficRoutingConfig_type - The type of traffic shifting (TimeBasedCanary or TimeBasedLinear) used by a deployment configuration.

trafficRoutingConfig_timeBasedCanary :: Lens' TrafficRoutingConfig (Maybe TimeBasedCanary) Source #

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.

trafficRoutingConfig_timeBasedLinear :: Lens' TrafficRoutingConfig (Maybe TimeBasedLinear) Source #

A configuration that shifts traffic from one version of a Lambda function or 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 ECS task sets are specified in the deployment's AppSpec file.

trafficRoutingConfig_type :: Lens' TrafficRoutingConfig (Maybe TrafficRoutingType) Source #

The type of traffic shifting (TimeBasedCanary or TimeBasedLinear) used by a deployment configuration.