line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::AutoScaling::PutScalingPolicy; |
3
|
1
|
|
|
1
|
|
570
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
11
|
|
4
|
|
|
|
|
|
|
has AdjustmentType => (is => 'ro', isa => 'Str'); |
5
|
|
|
|
|
|
|
has AutoScalingGroupName => (is => 'ro', isa => 'Str', required => 1); |
6
|
|
|
|
|
|
|
has Cooldown => (is => 'ro', isa => 'Int'); |
7
|
|
|
|
|
|
|
has EstimatedInstanceWarmup => (is => 'ro', isa => 'Int'); |
8
|
|
|
|
|
|
|
has MetricAggregationType => (is => 'ro', isa => 'Str'); |
9
|
|
|
|
|
|
|
has MinAdjustmentMagnitude => (is => 'ro', isa => 'Int'); |
10
|
|
|
|
|
|
|
has MinAdjustmentStep => (is => 'ro', isa => 'Int'); |
11
|
|
|
|
|
|
|
has PolicyName => (is => 'ro', isa => 'Str', required => 1); |
12
|
|
|
|
|
|
|
has PolicyType => (is => 'ro', isa => 'Str'); |
13
|
|
|
|
|
|
|
has ScalingAdjustment => (is => 'ro', isa => 'Int'); |
14
|
|
|
|
|
|
|
has StepAdjustments => (is => 'ro', isa => 'ArrayRef[Paws::AutoScaling::StepAdjustment]'); |
15
|
|
|
|
|
|
|
has TargetTrackingConfiguration => (is => 'ro', isa => 'Paws::AutoScaling::TargetTrackingConfiguration'); |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
|
9849
|
use MooseX::ClassAttribute; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
13
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutScalingPolicy'); |
20
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AutoScaling::PolicyARNType'); |
21
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro', default => 'PutScalingPolicyResult'); |
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
### main pod documentation begin ### |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 NAME |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Paws::AutoScaling::PutScalingPolicy - Arguments for method PutScalingPolicy on Paws::AutoScaling |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 DESCRIPTION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
This class represents the parameters used for calling the method PutScalingPolicy on the |
33
|
|
|
|
|
|
|
Auto Scaling service. Use the attributes of this class |
34
|
|
|
|
|
|
|
as arguments to method PutScalingPolicy. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutScalingPolicy. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
As an example: |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
$service_obj->PutScalingPolicy(Att1 => $value1, Att2 => $value2, ...); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
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. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 AdjustmentType => Str |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
The adjustment type. The valid values are C<ChangeInCapacity>, |
50
|
|
|
|
|
|
|
C<ExactCapacity>, and C<PercentChangeInCapacity>. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This parameter is supported if the policy type is C<SimpleScaling> or |
53
|
|
|
|
|
|
|
C<StepScaling>. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
For more information, see Dynamic Scaling in the I<Auto Scaling User |
56
|
|
|
|
|
|
|
Guide>. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 B<REQUIRED> AutoScalingGroupName => Str |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
The name or ARN of the group. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 Cooldown => Int |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
The amount of time, in seconds, after a scaling activity completes and |
69
|
|
|
|
|
|
|
before the next scaling activity can start. If this parameter is not |
70
|
|
|
|
|
|
|
specified, the default cooldown period for the group applies. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This parameter is supported if the policy type is C<SimpleScaling>. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
For more information, see Auto Scaling Cooldowns in the I<Auto Scaling |
75
|
|
|
|
|
|
|
User Guide>. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head2 EstimatedInstanceWarmup => Int |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
The estimated time, in seconds, until a newly launched instance can |
82
|
|
|
|
|
|
|
contribute to the CloudWatch metrics. The default is to use the value |
83
|
|
|
|
|
|
|
specified for the default cooldown period for the group. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
This parameter is supported if the policy type is C<StepScaling> or |
86
|
|
|
|
|
|
|
C<TargetTrackingScaling>. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head2 MetricAggregationType => Str |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
The aggregation type for the CloudWatch metrics. The valid values are |
93
|
|
|
|
|
|
|
C<Minimum>, C<Maximum>, and C<Average>. If the aggregation type is |
94
|
|
|
|
|
|
|
null, the value is treated as C<Average>. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This parameter is supported if the policy type is C<StepScaling>. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head2 MinAdjustmentMagnitude => Int |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
The minimum number of instances to scale. If the value of |
103
|
|
|
|
|
|
|
C<AdjustmentType> is C<PercentChangeInCapacity>, the scaling policy |
104
|
|
|
|
|
|
|
changes the C<DesiredCapacity> of the Auto Scaling group by at least |
105
|
|
|
|
|
|
|
this many instances. Otherwise, the error is C<ValidationError>. |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
This parameter is supported if the policy type is C<SimpleScaling> or |
108
|
|
|
|
|
|
|
C<StepScaling>. |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head2 MinAdjustmentStep => Int |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Available for backward compatibility. Use C<MinAdjustmentMagnitude> |
115
|
|
|
|
|
|
|
instead. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head2 B<REQUIRED> PolicyName => Str |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
The name of the policy. |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=head2 PolicyType => Str |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
The policy type. The valid values are C<SimpleScaling>, C<StepScaling>, |
128
|
|
|
|
|
|
|
and C<TargetTrackingScaling>. If the policy type is null, the value is |
129
|
|
|
|
|
|
|
treated as C<SimpleScaling>. |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=head2 ScalingAdjustment => Int |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
The amount by which to scale, based on the specified adjustment type. A |
136
|
|
|
|
|
|
|
positive value adds to the current capacity while a negative number |
137
|
|
|
|
|
|
|
removes from the current capacity. |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
This parameter is required if the policy type is C<SimpleScaling> and |
140
|
|
|
|
|
|
|
not supported otherwise. |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=head2 StepAdjustments => ArrayRef[L<Paws::AutoScaling::StepAdjustment>] |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
A set of adjustments that enable you to scale based on the size of the |
147
|
|
|
|
|
|
|
alarm breach. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
This parameter is required if the policy type is C<StepScaling> and not |
150
|
|
|
|
|
|
|
supported otherwise. |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=head2 TargetTrackingConfiguration => L<Paws::AutoScaling::TargetTrackingConfiguration> |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
A target tracking policy. |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
This parameter is required if the policy type is |
159
|
|
|
|
|
|
|
C<TargetTrackingScaling> and not supported otherwise. |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=head1 SEE ALSO |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method PutScalingPolicy in L<Paws::AutoScaling> |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=cut |
175
|
|
|
|
|
|
|
|