| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::EMR::SimpleScalingPolicyConfiguration; | ||
| 3 | use Moose; | ||
| 4 | has AdjustmentType => (is => 'ro', isa => 'Str'); | ||
| 5 | has CoolDown => (is => 'ro', isa => 'Int'); | ||
| 6 | has ScalingAdjustment => (is => 'ro', isa => 'Int', required => 1); | ||
| 7 | |||
| 8 | 1; | ||
| 9 | |||
| 10 | ### main pod documentation begin ### | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Paws::EMR::SimpleScalingPolicyConfiguration | ||
| 15 | |||
| 16 | =head1 USAGE | ||
| 17 | |||
| 18 | This class represents one of two things: | ||
| 19 | |||
| 20 | =head3 Arguments in a call to a service | ||
| 21 | |||
| 22 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 23 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 24 | |||
| 25 | As an example, if Att1 is expected to be a Paws::EMR::SimpleScalingPolicyConfiguration object: | ||
| 26 | |||
| 27 | $service_obj->Method(Att1 => { AdjustmentType => $value, ..., ScalingAdjustment => $value }); | ||
| 28 | |||
| 29 | =head3 Results returned from an API call | ||
| 30 | |||
| 31 | Use accessors for each attribute. If Att1 is expected to be an Paws::EMR::SimpleScalingPolicyConfiguration object: | ||
| 32 | |||
| 33 | $result = $service_obj->Method(...); | ||
| 34 | $result->Att1->AdjustmentType | ||
| 35 | |||
| 36 | =head1 DESCRIPTION | ||
| 37 | |||
| 38 | An automatic scaling configuration, which describes how the policy adds | ||
| 39 | or removes instances, the cooldown period, and the number of EC2 | ||
| 40 | instances that will be added each time the CloudWatch metric alarm | ||
| 41 | condition is satisfied. | ||
| 42 | |||
| 43 | =head1 ATTRIBUTES | ||
| 44 | |||
| 45 | |||
| 46 | =head2 AdjustmentType => Str | ||
| 47 | |||
| 48 | The way in which EC2 instances are added (if C<ScalingAdjustment> is a | ||
| 49 | positive number) or terminated (if C<ScalingAdjustment> is a negative | ||
| 50 | number) each time the scaling activity is triggered. | ||
| 51 | C<CHANGE_IN_CAPACITY> is the default. C<CHANGE_IN_CAPACITY> indicates | ||
| 52 | that the EC2 instance count increments or decrements by | ||
| 53 | C<ScalingAdjustment>, which should be expressed as an integer. | ||
| 54 | C<PERCENT_CHANGE_IN_CAPACITY> indicates the instance count increments | ||
| 55 | or decrements by the percentage specified by C<ScalingAdjustment>, | ||
| 56 | which should be expressed as an integer. For example, 20 indicates an | ||
| 57 | increase in 20% increments of cluster capacity. C<EXACT_CAPACITY> | ||
| 58 | indicates the scaling activity results in an instance group with the | ||
| 59 | number of EC2 instances specified by C<ScalingAdjustment>, which should | ||
| 60 | be expressed as a positive integer. | ||
| 61 | |||
| 62 | |||
| 63 | =head2 CoolDown => Int | ||
| 64 | |||
| 65 | The amount of time, in seconds, after a scaling activity completes | ||
| 66 | before any further trigger-related scaling activities can start. The | ||
| 67 | default value is 0. | ||
| 68 | |||
| 69 | |||
| 70 | =head2 B<REQUIRED> ScalingAdjustment => Int | ||
| 71 | |||
| 72 | The amount by which to scale in or scale out, based on the specified | ||
| 73 | C<AdjustmentType>. A positive value adds to the instance group's EC2 | ||
| 74 | instance count while a negative number removes instances. If | ||
| 75 | C<AdjustmentType> is set to C<EXACT_CAPACITY>, the number should only | ||
| 76 | be a positive integer. If C<AdjustmentType> is set to | ||
| 77 | C<PERCENT_CHANGE_IN_CAPACITY>, the value should express the percentage | ||
| 78 | as an integer. For example, -20 indicates a decrease in 20% increments | ||
| 79 | of cluster capacity. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head1 SEE ALSO | ||
| 84 | |||
| 85 | This class forms part of L<Paws>, describing an object used in L<Paws::EMR> | ||
| 86 | |||
| 87 | =head1 BUGS and CONTRIBUTIONS | ||
| 88 | |||
| 89 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 90 | |||
| 91 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 92 | |||
| 93 | =cut | ||
| 94 |