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.AutoScalingPolicy

Description

 
Synopsis

Documentation

data AutoScalingPolicy Source #

An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. An automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

See: newAutoScalingPolicy smart constructor.

Constructors

AutoScalingPolicy' 

Fields

  • constraints :: ScalingConstraints

    The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.

  • rules :: [ScalingRule]

    The scale-in and scale-out rules that comprise the automatic scaling policy.

Instances

Instances details
Eq AutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.Types.AutoScalingPolicy

Read AutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.Types.AutoScalingPolicy

Show AutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.Types.AutoScalingPolicy

Generic AutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.Types.AutoScalingPolicy

Associated Types

type Rep AutoScalingPolicy :: Type -> Type #

NFData AutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.Types.AutoScalingPolicy

Methods

rnf :: AutoScalingPolicy -> () #

Hashable AutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.Types.AutoScalingPolicy

ToJSON AutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.Types.AutoScalingPolicy

type Rep AutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.Types.AutoScalingPolicy

type Rep AutoScalingPolicy = D1 ('MetaData "AutoScalingPolicy" "Amazonka.EMR.Types.AutoScalingPolicy" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "AutoScalingPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "constraints") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ScalingConstraints) :*: S1 ('MetaSel ('Just "rules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ScalingRule])))

newAutoScalingPolicy Source #

Create a value of AutoScalingPolicy 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:constraints:AutoScalingPolicy', autoScalingPolicy_constraints - The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.

$sel:rules:AutoScalingPolicy', autoScalingPolicy_rules - The scale-in and scale-out rules that comprise the automatic scaling policy.

autoScalingPolicy_constraints :: Lens' AutoScalingPolicy ScalingConstraints Source #

The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.

autoScalingPolicy_rules :: Lens' AutoScalingPolicy [ScalingRule] Source #

The scale-in and scale-out rules that comprise the automatic scaling policy.