amazonka-codedeploy-2.0: Amazon CodeDeploy SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeDeploy.Types.TimeBasedCanary

Description

 
Synopsis

Documentation

data TimeBasedCanary Source #

A configuration that shifts traffic from one version of a Lambda function or Amazon 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.

See: newTimeBasedCanary smart constructor.

Constructors

TimeBasedCanary' 

Fields

  • canaryInterval :: Maybe Int

    The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.

  • canaryPercentage :: Maybe Int

    The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.

Instances

Instances details
FromJSON TimeBasedCanary Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TimeBasedCanary

ToJSON TimeBasedCanary Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TimeBasedCanary

Generic TimeBasedCanary Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TimeBasedCanary

Associated Types

type Rep TimeBasedCanary :: Type -> Type #

Read TimeBasedCanary Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TimeBasedCanary

Show TimeBasedCanary Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TimeBasedCanary

NFData TimeBasedCanary Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TimeBasedCanary

Methods

rnf :: TimeBasedCanary -> () #

Eq TimeBasedCanary Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TimeBasedCanary

Hashable TimeBasedCanary Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TimeBasedCanary

type Rep TimeBasedCanary Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.TimeBasedCanary

type Rep TimeBasedCanary = D1 ('MetaData "TimeBasedCanary" "Amazonka.CodeDeploy.Types.TimeBasedCanary" "amazonka-codedeploy-2.0-4OehMEUeOr9G9ZXD2VmvAo" 'False) (C1 ('MetaCons "TimeBasedCanary'" 'PrefixI 'True) (S1 ('MetaSel ('Just "canaryInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "canaryPercentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

newTimeBasedCanary :: TimeBasedCanary Source #

Create a value of TimeBasedCanary 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:canaryInterval:TimeBasedCanary', timeBasedCanary_canaryInterval - The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.

$sel:canaryPercentage:TimeBasedCanary', timeBasedCanary_canaryPercentage - The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.

timeBasedCanary_canaryInterval :: Lens' TimeBasedCanary (Maybe Int) Source #

The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.

timeBasedCanary_canaryPercentage :: Lens' TimeBasedCanary (Maybe Int) Source #

The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.