NAME
Paws::EMR::PutAutoScalingPolicy - Arguments for method PutAutoScalingPolicy on Paws::EMR
DESCRIPTION
This class represents the parameters used for calling the method PutAutoScalingPolicy on the Amazon Elastic MapReduce service. Use the attributes of this class as arguments to method PutAutoScalingPolicy.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutAutoScalingPolicy.
SYNOPSIS
my $elasticmapreduce = Paws->service('EMR');
my $PutAutoScalingPolicyOutput = $elasticmapreduce->PutAutoScalingPolicy(
AutoScalingPolicy => {
Constraints => {
MaxCapacity => 1,
MinCapacity => 1,
},
Rules => [
{
Action => {
SimpleScalingPolicyConfiguration => {
ScalingAdjustment => 1,
AdjustmentType => 'CHANGE_IN_CAPACITY'
, # values: CHANGE_IN_CAPACITY, PERCENT_CHANGE_IN_CAPACITY, EXACT_CAPACITY; OPTIONAL
CoolDown => 1,
},
Market => 'ON_DEMAND', # values: ON_DEMAND, SPOT; OPTIONAL
},
Name => 'MyString',
Trigger => {
CloudWatchAlarmDefinition => {
ComparisonOperator => 'GREATER_THAN_OR_EQUAL'
, # values: GREATER_THAN_OR_EQUAL, GREATER_THAN, LESS_THAN, LESS_THAN_OR_EQUAL
MetricName => 'MyString',
Period => 1,
Threshold => 1,
Dimensions => [
{
Key => 'MyString',
Value => 'MyString',
},
...
], # OPTIONAL
EvaluationPeriods => 1,
Namespace => 'MyString',
Statistic => 'SAMPLE_COUNT'
, # values: SAMPLE_COUNT, AVERAGE, SUM, MINIMUM, MAXIMUM; OPTIONAL
Unit => 'NONE'
, # values: NONE, SECONDS, MICRO_SECONDS, MILLI_SECONDS, BYTES, KILO_BYTES, MEGA_BYTES, GIGA_BYTES, TERA_BYTES, BITS, KILO_BITS, MEGA_BITS, GIGA_BITS, TERA_BITS, PERCENT, COUNT, BYTES_PER_SECOND, KILO_BYTES_PER_SECOND, MEGA_BYTES_PER_SECOND, GIGA_BYTES_PER_SECOND, TERA_BYTES_PER_SECOND, BITS_PER_SECOND, KILO_BITS_PER_SECOND, MEGA_BITS_PER_SECOND, GIGA_BITS_PER_SECOND, TERA_BITS_PER_SECOND, COUNT_PER_SECOND; OPTIONAL
},
},
Description => 'MyString',
},
...
],
},
ClusterId => 'MyClusterId',
InstanceGroupId => 'MyInstanceGroupId',
);
# Results:
my $AutoScalingPolicy = $PutAutoScalingPolicyOutput->AutoScalingPolicy;
my $ClusterArn = $PutAutoScalingPolicyOutput->ClusterArn;
my $ClusterId = $PutAutoScalingPolicyOutput->ClusterId;
my $InstanceGroupId = $PutAutoScalingPolicyOutput->InstanceGroupId;
# Returns a L<Paws::EMR::PutAutoScalingPolicyOutput> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce/PutAutoScalingPolicy
ATTRIBUTES
REQUIRED AutoScalingPolicy => Paws::EMR::AutoScalingPolicy
Specifies the definition of the automatic scaling policy.
REQUIRED ClusterId => Str
Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.
REQUIRED InstanceGroupId => Str
Specifies the ID of the instance group to which the automatic scaling policy is applied.
SEE ALSO
This class forms part of Paws, documenting arguments for method PutAutoScalingPolicy in Paws::EMR
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues