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

Description

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

Synopsis

Creating a Request

data PutAutoScalingPolicy Source #

See: newPutAutoScalingPolicy smart constructor.

Constructors

PutAutoScalingPolicy' 

Fields

  • clusterId :: Text

    Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.

  • instanceGroupId :: Text

    Specifies the ID of the instance group to which the automatic scaling policy is applied.

  • autoScalingPolicy :: AutoScalingPolicy

    Specifies the definition of the automatic scaling policy.

Instances

Instances details
Eq PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

Read PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

Show PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

Generic PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

Associated Types

type Rep PutAutoScalingPolicy :: Type -> Type #

NFData PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

Methods

rnf :: PutAutoScalingPolicy -> () #

Hashable PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

ToJSON PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

AWSRequest PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

Associated Types

type AWSResponse PutAutoScalingPolicy #

ToHeaders PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

ToPath PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

ToQuery PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

type Rep PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

type Rep PutAutoScalingPolicy = D1 ('MetaData "PutAutoScalingPolicy" "Amazonka.EMR.PutAutoScalingPolicy" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "PutAutoScalingPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clusterId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "instanceGroupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "autoScalingPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AutoScalingPolicy))))
type AWSResponse PutAutoScalingPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

newPutAutoScalingPolicy Source #

Create a value of PutAutoScalingPolicy 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:clusterId:PutAutoScalingPolicy', putAutoScalingPolicy_clusterId - Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.

$sel:instanceGroupId:PutAutoScalingPolicy', putAutoScalingPolicy_instanceGroupId - Specifies the ID of the instance group to which the automatic scaling policy is applied.

$sel:autoScalingPolicy:PutAutoScalingPolicy', putAutoScalingPolicy_autoScalingPolicy - Specifies the definition of the automatic scaling policy.

Request Lenses

putAutoScalingPolicy_clusterId :: Lens' PutAutoScalingPolicy Text Source #

Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.

putAutoScalingPolicy_instanceGroupId :: Lens' PutAutoScalingPolicy Text Source #

Specifies the ID of the instance group to which the automatic scaling policy is applied.

putAutoScalingPolicy_autoScalingPolicy :: Lens' PutAutoScalingPolicy AutoScalingPolicy Source #

Specifies the definition of the automatic scaling policy.

Destructuring the Response

data PutAutoScalingPolicyResponse Source #

See: newPutAutoScalingPolicyResponse smart constructor.

Constructors

PutAutoScalingPolicyResponse' 

Fields

Instances

Instances details
Eq PutAutoScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

Read PutAutoScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

Show PutAutoScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

Generic PutAutoScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

Associated Types

type Rep PutAutoScalingPolicyResponse :: Type -> Type #

NFData PutAutoScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

type Rep PutAutoScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoScalingPolicy

type Rep PutAutoScalingPolicyResponse = D1 ('MetaData "PutAutoScalingPolicyResponse" "Amazonka.EMR.PutAutoScalingPolicy" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "PutAutoScalingPolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clusterArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "clusterId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "autoScalingPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AutoScalingPolicyDescription)) :*: (S1 ('MetaSel ('Just "instanceGroupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newPutAutoScalingPolicyResponse Source #

Create a value of PutAutoScalingPolicyResponse 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:clusterArn:PutAutoScalingPolicyResponse', putAutoScalingPolicyResponse_clusterArn - The Amazon Resource Name (ARN) of the cluster.

$sel:clusterId:PutAutoScalingPolicy', putAutoScalingPolicyResponse_clusterId - Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.

$sel:autoScalingPolicy:PutAutoScalingPolicy', putAutoScalingPolicyResponse_autoScalingPolicy - The automatic scaling policy definition.

$sel:instanceGroupId:PutAutoScalingPolicy', putAutoScalingPolicyResponse_instanceGroupId - Specifies the ID of the instance group to which the scaling policy is applied.

$sel:httpStatus:PutAutoScalingPolicyResponse', putAutoScalingPolicyResponse_httpStatus - The response's http status code.

Response Lenses

putAutoScalingPolicyResponse_clusterId :: Lens' PutAutoScalingPolicyResponse (Maybe Text) Source #

Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.

putAutoScalingPolicyResponse_instanceGroupId :: Lens' PutAutoScalingPolicyResponse (Maybe Text) Source #

Specifies the ID of the instance group to which the scaling policy is applied.