amazonka-opsworks-2.0: Amazon OpsWorks 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.OpsWorks.Types.AutoScalingThresholds

Description

 
Synopsis

Documentation

data AutoScalingThresholds Source #

Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when AWS OpsWorks Stacks starts or stops load-based instances.

See: newAutoScalingThresholds smart constructor.

Constructors

AutoScalingThresholds' 

Fields

  • alarms :: Maybe [Text]

    Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.

    To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms. You can either have AWS OpsWorks Stacks update the role for you when you first use this feature or you can edit the role manually. For more information, see Allowing AWS OpsWorks Stacks to Act on Your Behalf.

  • cpuThreshold :: Maybe Double

    The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.

  • ignoreMetricsTime :: Maybe Natural

    The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. For example, AWS OpsWorks Stacks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime allows you to direct AWS OpsWorks Stacks to suppress scaling events long enough to get the new instances online.

  • instanceCount :: Maybe Int

    The number of instances to add or remove when the load exceeds a threshold.

  • loadThreshold :: Maybe Double

    The load threshold. A value of -1 disables the threshold. For more information about how load is computed, see Load (computing).

  • memoryThreshold :: Maybe Double

    The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.

  • thresholdsWaitTime :: Maybe Natural

    The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.

Instances

Instances details
FromJSON AutoScalingThresholds Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.AutoScalingThresholds

ToJSON AutoScalingThresholds Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.AutoScalingThresholds

Generic AutoScalingThresholds Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.AutoScalingThresholds

Associated Types

type Rep AutoScalingThresholds :: Type -> Type #

Read AutoScalingThresholds Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.AutoScalingThresholds

Show AutoScalingThresholds Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.AutoScalingThresholds

NFData AutoScalingThresholds Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.AutoScalingThresholds

Methods

rnf :: AutoScalingThresholds -> () #

Eq AutoScalingThresholds Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.AutoScalingThresholds

Hashable AutoScalingThresholds Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.AutoScalingThresholds

type Rep AutoScalingThresholds Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.AutoScalingThresholds

type Rep AutoScalingThresholds = D1 ('MetaData "AutoScalingThresholds" "Amazonka.OpsWorks.Types.AutoScalingThresholds" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "AutoScalingThresholds'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "alarms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "cpuThreshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "ignoreMetricsTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: ((S1 ('MetaSel ('Just "instanceCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "loadThreshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "memoryThreshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "thresholdsWaitTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))))

newAutoScalingThresholds :: AutoScalingThresholds Source #

Create a value of AutoScalingThresholds 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:alarms:AutoScalingThresholds', autoScalingThresholds_alarms - Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.

To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms. You can either have AWS OpsWorks Stacks update the role for you when you first use this feature or you can edit the role manually. For more information, see Allowing AWS OpsWorks Stacks to Act on Your Behalf.

$sel:cpuThreshold:AutoScalingThresholds', autoScalingThresholds_cpuThreshold - The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.

$sel:ignoreMetricsTime:AutoScalingThresholds', autoScalingThresholds_ignoreMetricsTime - The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. For example, AWS OpsWorks Stacks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime allows you to direct AWS OpsWorks Stacks to suppress scaling events long enough to get the new instances online.

$sel:instanceCount:AutoScalingThresholds', autoScalingThresholds_instanceCount - The number of instances to add or remove when the load exceeds a threshold.

$sel:loadThreshold:AutoScalingThresholds', autoScalingThresholds_loadThreshold - The load threshold. A value of -1 disables the threshold. For more information about how load is computed, see Load (computing).

$sel:memoryThreshold:AutoScalingThresholds', autoScalingThresholds_memoryThreshold - The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.

$sel:thresholdsWaitTime:AutoScalingThresholds', autoScalingThresholds_thresholdsWaitTime - The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.

autoScalingThresholds_alarms :: Lens' AutoScalingThresholds (Maybe [Text]) Source #

Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.

To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms. You can either have AWS OpsWorks Stacks update the role for you when you first use this feature or you can edit the role manually. For more information, see Allowing AWS OpsWorks Stacks to Act on Your Behalf.

autoScalingThresholds_cpuThreshold :: Lens' AutoScalingThresholds (Maybe Double) Source #

The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.

autoScalingThresholds_ignoreMetricsTime :: Lens' AutoScalingThresholds (Maybe Natural) Source #

The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. For example, AWS OpsWorks Stacks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime allows you to direct AWS OpsWorks Stacks to suppress scaling events long enough to get the new instances online.

autoScalingThresholds_instanceCount :: Lens' AutoScalingThresholds (Maybe Int) Source #

The number of instances to add or remove when the load exceeds a threshold.

autoScalingThresholds_loadThreshold :: Lens' AutoScalingThresholds (Maybe Double) Source #

The load threshold. A value of -1 disables the threshold. For more information about how load is computed, see Load (computing).

autoScalingThresholds_memoryThreshold :: Lens' AutoScalingThresholds (Maybe Double) Source #

The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.

autoScalingThresholds_thresholdsWaitTime :: Lens' AutoScalingThresholds (Maybe Natural) Source #

The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.