blib/lib/Paws/AutoScalingPlans/UpdateScalingPlan.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AutoScalingPlans::UpdateScalingPlan;
3 use Moose;
4 has ApplicationSource => (is => 'ro', isa => 'Paws::AutoScalingPlans::ApplicationSource');
5 has ScalingInstructions => (is => 'ro', isa => 'ArrayRef[Paws::AutoScalingPlans::ScalingInstruction]');
6 has ScalingPlanName => (is => 'ro', isa => 'Str', required => 1);
7 has ScalingPlanVersion => (is => 'ro', isa => 'Int', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateScalingPlan');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AutoScalingPlans::UpdateScalingPlanResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::AutoScalingPlans::UpdateScalingPlan - Arguments for method UpdateScalingPlan on L<Paws::AutoScalingPlans>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method UpdateScalingPlan on the
25 L<AWS Auto Scaling Plans|Paws::AutoScalingPlans> service. Use the attributes of this class
26 as arguments to method UpdateScalingPlan.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateScalingPlan.
29  
30 =head1 SYNOPSIS
31  
32 my $autoscaling-plans = Paws->service('AutoScalingPlans');
33 my $UpdateScalingPlanResponse = $autoscaling -plans->UpdateScalingPlan(
34 ScalingPlanName => 'MyScalingPlanName',
35 ScalingPlanVersion => 1,
36 ApplicationSource => {
37 CloudFormationStackARN => 'MyXmlString', # OPTIONAL
38 TagFilters => [
39 {
40 Key => 'MyXmlStringMaxLen128', # min: 1, max: 128; OPTIONAL
41 Values => [
42 'MyXmlStringMaxLen256', ... # min: 1, max: 256
43 ], # OPTIONAL
44 },
45 ...
46 ], # OPTIONAL
47 }, # OPTIONAL
48 ScalingInstructions => [
49 {
50 MaxCapacity => 1,
51 MinCapacity => 1,
52 ResourceId => 'MyResourceIdMaxLen1600', # min: 1, max: 1600
53 ScalableDimension => 'autoscaling:autoScalingGroup:DesiredCapacity'
54 , # values: autoscaling:autoScalingGroup:DesiredCapacity, ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, rds:cluster:ReadReplicaCount, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
55 ServiceNamespace =>
56 'autoscaling', # values: autoscaling, ecs, ec2, rds, dynamodb
57 TargetTrackingConfigurations => [
58 {
59 TargetValue => 1,
60 CustomizedScalingMetricSpecification => {
61 MetricName => 'MyMetricName',
62 Namespace => 'MyMetricNamespace',
63 Statistic => 'Average'
64 , # values: Average, Minimum, Maximum, SampleCount, Sum
65 Dimensions => [
66 {
67 Name => 'MyMetricDimensionName',
68 Value => 'MyMetricDimensionValue',
69  
70 },
71 ...
72 ], # OPTIONAL
73 Unit => 'MyMetricUnit', # OPTIONAL
74 }, # OPTIONAL
75 DisableScaleIn => 1, # OPTIONAL
76 EstimatedInstanceWarmup => 1, # OPTIONAL
77 PredefinedScalingMetricSpecification => {
78 PredefinedScalingMetricType => 'ASGAverageCPUUtilization'
79 , # values: ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut
80 ResourceLabel =>
81 'MyResourceLabel', # min: 1, max: 1023; OPTIONAL
82 }, # OPTIONAL
83 ScaleInCooldown => 1, # OPTIONAL
84 ScaleOutCooldown => 1, # OPTIONAL
85 },
86 ...
87 ],
88 CustomizedLoadMetricSpecification => {
89 MetricName => 'MyMetricName',
90 Namespace => 'MyMetricNamespace',
91 Statistic =>
92 'Average', # values: Average, Minimum, Maximum, SampleCount, Sum
93 Dimensions => [
94 {
95 Name => 'MyMetricDimensionName',
96 Value => 'MyMetricDimensionValue',
97  
98 },
99 ...
100 ], # OPTIONAL
101 Unit => 'MyMetricUnit', # OPTIONAL
102 }, # OPTIONAL
103 DisableDynamicScaling => 1, # OPTIONAL
104 PredefinedLoadMetricSpecification => {
105 PredefinedLoadMetricType => 'ASGTotalCPUUtilization'
106 , # values: ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
107 ResourceLabel => 'MyResourceLabel', # min: 1, max: 1023; OPTIONAL
108 }, # OPTIONAL
109 PredictiveScalingMaxCapacityBehavior =>
110 'SetForecastCapacityToMaxCapacity'
111 , # values: SetForecastCapacityToMaxCapacity, SetMaxCapacityToForecastCapacity, SetMaxCapacityAboveForecastCapacity; OPTIONAL
112 PredictiveScalingMaxCapacityBuffer => 1,
113 PredictiveScalingMode => 'ForecastAndScale'
114 , # values: ForecastAndScale, ForecastOnly; OPTIONAL
115 ScalingPolicyUpdateBehavior => 'KeepExternalPolicies'
116 , # values: KeepExternalPolicies, ReplaceExternalPolicies; OPTIONAL
117 ScheduledActionBufferTime => 1, # OPTIONAL
118 },
119 ...
120 ], # OPTIONAL
121 );
122  
123 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.
124 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans/UpdateScalingPlan>
125  
126 =head1 ATTRIBUTES
127  
128  
129 =head2 ApplicationSource => L<Paws::AutoScalingPlans::ApplicationSource>
130  
131 A CloudFormation stack or set of tags.
132  
133 For more information, see ApplicationSource
134 (https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_ApplicationSource.html)
135 in the I<AWS Auto Scaling API Reference>.
136  
137  
138  
139 =head2 ScalingInstructions => ArrayRef[L<Paws::AutoScalingPlans::ScalingInstruction>]
140  
141 The scaling instructions.
142  
143 For more information, see ScalingInstruction
144 (https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_ScalingInstruction.html)
145 in the I<AWS Auto Scaling API Reference>.
146  
147  
148  
149 =head2 B<REQUIRED> ScalingPlanName => Str
150  
151 The name of the scaling plan.
152  
153  
154  
155 =head2 B<REQUIRED> ScalingPlanVersion => Int
156  
157 The version number of the scaling plan. The only valid value is C<1>.
158 Currently, you cannot have multiple scaling plan versions.
159  
160  
161  
162  
163 =head1 SEE ALSO
164  
165 This class forms part of L<Paws>, documenting arguments for method UpdateScalingPlan in L<Paws::AutoScalingPlans>
166  
167 =head1 BUGS and CONTRIBUTIONS
168  
169 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
170  
171 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
172  
173 =cut
174