libZSservicesZSamazonka-emrZSamazonka-emr
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.EMR.Types.ScalingRule

Description

 
Synopsis

Documentation

data ScalingRule Source #

A scale-in or scale-out rule that defines scaling activity, including the CloudWatch metric alarm that triggers activity, how EC2 instances are added or removed, and the periodicity of adjustments. The automatic scaling policy for an instance group can comprise one or more automatic scaling rules.

See: newScalingRule smart constructor.

Constructors

ScalingRule' 

Fields

  • description :: Maybe Text

    A friendly, more verbose description of the automatic scaling rule.

  • name :: Text

    The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.

  • action :: ScalingAction

    The conditions that trigger an automatic scaling activity.

  • trigger :: ScalingTrigger

    The CloudWatch alarm definition that determines when automatic scaling activity is triggered.

Instances

Instances details
Eq ScalingRule Source # 
Instance details

Defined in Amazonka.EMR.Types.ScalingRule

Read ScalingRule Source # 
Instance details

Defined in Amazonka.EMR.Types.ScalingRule

Show ScalingRule Source # 
Instance details

Defined in Amazonka.EMR.Types.ScalingRule

Generic ScalingRule Source # 
Instance details

Defined in Amazonka.EMR.Types.ScalingRule

Associated Types

type Rep ScalingRule :: Type -> Type #

NFData ScalingRule Source # 
Instance details

Defined in Amazonka.EMR.Types.ScalingRule

Methods

rnf :: ScalingRule -> () #

Hashable ScalingRule Source # 
Instance details

Defined in Amazonka.EMR.Types.ScalingRule

ToJSON ScalingRule Source # 
Instance details

Defined in Amazonka.EMR.Types.ScalingRule

FromJSON ScalingRule Source # 
Instance details

Defined in Amazonka.EMR.Types.ScalingRule

type Rep ScalingRule Source # 
Instance details

Defined in Amazonka.EMR.Types.ScalingRule

type Rep ScalingRule = D1 ('MetaData "ScalingRule" "Amazonka.EMR.Types.ScalingRule" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "ScalingRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ScalingAction) :*: S1 ('MetaSel ('Just "trigger") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ScalingTrigger))))

newScalingRule Source #

Create a value of ScalingRule 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:description:ScalingRule', scalingRule_description - A friendly, more verbose description of the automatic scaling rule.

$sel:name:ScalingRule', scalingRule_name - The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.

$sel:action:ScalingRule', scalingRule_action - The conditions that trigger an automatic scaling activity.

$sel:trigger:ScalingRule', scalingRule_trigger - The CloudWatch alarm definition that determines when automatic scaling activity is triggered.

scalingRule_description :: Lens' ScalingRule (Maybe Text) Source #

A friendly, more verbose description of the automatic scaling rule.

scalingRule_name :: Lens' ScalingRule Text Source #

The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.

scalingRule_action :: Lens' ScalingRule ScalingAction Source #

The conditions that trigger an automatic scaling activity.

scalingRule_trigger :: Lens' ScalingRule ScalingTrigger Source #

The CloudWatch alarm definition that determines when automatic scaling activity is triggered.