| 1 | package Paws::ApplicationAutoScaling; | ||
| 2 | use Moose; | ||
| 3 | sub service { 'application-autoscaling' } | ||
| 4 | sub signing_name { 'application-autoscaling' } | ||
| 5 | sub version { '2016-02-06' } | ||
| 6 | sub target_prefix { 'AnyScaleFrontendService' } | ||
| 7 | sub json_version { "1.1" } | ||
| 8 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | ||
| 9 | has retry => (is => 'ro', isa => 'HashRef', default => sub { | ||
| 10 | { base => 'rand', type => 'exponential', growth_factor => 2 } | ||
| 11 | }); | ||
| 12 | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ | ||
| 13 | ] }); | ||
| 14 | |||
| 15 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller'; | ||
| 16 | |||
| 17 | |||
| 18 | sub DeleteScalingPolicy { | ||
| 19 | my $self = shift; | ||
| 20 | my $call_object = $self->new_with_coercions('Paws::ApplicationAutoScaling::DeleteScalingPolicy', @_); | ||
| 21 | return $self->caller->do_call($self, $call_object); | ||
| 22 | } | ||
| 23 | sub DeleteScheduledAction { | ||
| 24 | my $self = shift; | ||
| 25 | my $call_object = $self->new_with_coercions('Paws::ApplicationAutoScaling::DeleteScheduledAction', @_); | ||
| 26 | return $self->caller->do_call($self, $call_object); | ||
| 27 | } | ||
| 28 | sub DeregisterScalableTarget { | ||
| 29 | my $self = shift; | ||
| 30 | my $call_object = $self->new_with_coercions('Paws::ApplicationAutoScaling::DeregisterScalableTarget', @_); | ||
| 31 | return $self->caller->do_call($self, $call_object); | ||
| 32 | } | ||
| 33 | sub DescribeScalableTargets { | ||
| 34 | my $self = shift; | ||
| 35 | my $call_object = $self->new_with_coercions('Paws::ApplicationAutoScaling::DescribeScalableTargets', @_); | ||
| 36 | return $self->caller->do_call($self, $call_object); | ||
| 37 | } | ||
| 38 | sub DescribeScalingActivities { | ||
| 39 | my $self = shift; | ||
| 40 | my $call_object = $self->new_with_coercions('Paws::ApplicationAutoScaling::DescribeScalingActivities', @_); | ||
| 41 | return $self->caller->do_call($self, $call_object); | ||
| 42 | } | ||
| 43 | sub DescribeScalingPolicies { | ||
| 44 | my $self = shift; | ||
| 45 | my $call_object = $self->new_with_coercions('Paws::ApplicationAutoScaling::DescribeScalingPolicies', @_); | ||
| 46 | return $self->caller->do_call($self, $call_object); | ||
| 47 | } | ||
| 48 | sub DescribeScheduledActions { | ||
| 49 | my $self = shift; | ||
| 50 | my $call_object = $self->new_with_coercions('Paws::ApplicationAutoScaling::DescribeScheduledActions', @_); | ||
| 51 | return $self->caller->do_call($self, $call_object); | ||
| 52 | } | ||
| 53 | sub PutScalingPolicy { | ||
| 54 | my $self = shift; | ||
| 55 | my $call_object = $self->new_with_coercions('Paws::ApplicationAutoScaling::PutScalingPolicy', @_); | ||
| 56 | return $self->caller->do_call($self, $call_object); | ||
| 57 | } | ||
| 58 | sub PutScheduledAction { | ||
| 59 | my $self = shift; | ||
| 60 | my $call_object = $self->new_with_coercions('Paws::ApplicationAutoScaling::PutScheduledAction', @_); | ||
| 61 | return $self->caller->do_call($self, $call_object); | ||
| 62 | } | ||
| 63 | sub RegisterScalableTarget { | ||
| 64 | my $self = shift; | ||
| 65 | my $call_object = $self->new_with_coercions('Paws::ApplicationAutoScaling::RegisterScalableTarget', @_); | ||
| 66 | return $self->caller->do_call($self, $call_object); | ||
| 67 | } | ||
| 68 | |||
| 69 | sub DescribeAllScalableTargets { | ||
| 70 | my $self = shift; | ||
| 71 | |||
| 72 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 73 | my $result = $self->DescribeScalableTargets(@_); | ||
| 74 | my $next_result = $result; | ||
| 75 | |||
| 76 | if (not defined $callback) { | ||
| 77 | while ($next_result->NextToken) { | ||
| 78 | $next_result = $self->DescribeScalableTargets(@_, NextToken => $next_result->NextToken); | ||
| 79 | push @{ $result->ScalableTargets }, @{ $next_result->ScalableTargets }; | ||
| 80 | } | ||
| 81 | return $result; | ||
| 82 | } else { | ||
| 83 | while ($result->NextToken) { | ||
| 84 | $callback->($_ => 'ScalableTargets') foreach (@{ $result->ScalableTargets }); | ||
| 85 | $result = $self->DescribeScalableTargets(@_, NextToken => $result->NextToken); | ||
| 86 | } | ||
| 87 | $callback->($_ => 'ScalableTargets') foreach (@{ $result->ScalableTargets }); | ||
| 88 | } | ||
| 89 | |||
| 90 | return undef | ||
| 91 | } | ||
| 92 | sub DescribeAllScalingActivities { | ||
| 93 | my $self = shift; | ||
| 94 | |||
| 95 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 96 | my $result = $self->DescribeScalingActivities(@_); | ||
| 97 | my $next_result = $result; | ||
| 98 | |||
| 99 | if (not defined $callback) { | ||
| 100 | while ($next_result->NextToken) { | ||
| 101 | $next_result = $self->DescribeScalingActivities(@_, NextToken => $next_result->NextToken); | ||
| 102 | push @{ $result->ScalingActivities }, @{ $next_result->ScalingActivities }; | ||
| 103 | } | ||
| 104 | return $result; | ||
| 105 | } else { | ||
| 106 | while ($result->NextToken) { | ||
| 107 | $callback->($_ => 'ScalingActivities') foreach (@{ $result->ScalingActivities }); | ||
| 108 | $result = $self->DescribeScalingActivities(@_, NextToken => $result->NextToken); | ||
| 109 | } | ||
| 110 | $callback->($_ => 'ScalingActivities') foreach (@{ $result->ScalingActivities }); | ||
| 111 | } | ||
| 112 | |||
| 113 | return undef | ||
| 114 | } | ||
| 115 | sub DescribeAllScalingPolicies { | ||
| 116 | my $self = shift; | ||
| 117 | |||
| 118 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 119 | my $result = $self->DescribeScalingPolicies(@_); | ||
| 120 | my $next_result = $result; | ||
| 121 | |||
| 122 | if (not defined $callback) { | ||
| 123 | while ($next_result->NextToken) { | ||
| 124 | $next_result = $self->DescribeScalingPolicies(@_, NextToken => $next_result->NextToken); | ||
| 125 | push @{ $result->ScalingPolicies }, @{ $next_result->ScalingPolicies }; | ||
| 126 | } | ||
| 127 | return $result; | ||
| 128 | } else { | ||
| 129 | while ($result->NextToken) { | ||
| 130 | $callback->($_ => 'ScalingPolicies') foreach (@{ $result->ScalingPolicies }); | ||
| 131 | $result = $self->DescribeScalingPolicies(@_, NextToken => $result->NextToken); | ||
| 132 | } | ||
| 133 | $callback->($_ => 'ScalingPolicies') foreach (@{ $result->ScalingPolicies }); | ||
| 134 | } | ||
| 135 | |||
| 136 | return undef | ||
| 137 | } | ||
| 138 | sub DescribeAllScheduledActions { | ||
| 139 | my $self = shift; | ||
| 140 | |||
| 141 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 142 | my $result = $self->DescribeScheduledActions(@_); | ||
| 143 | my $next_result = $result; | ||
| 144 | |||
| 145 | if (not defined $callback) { | ||
| 146 | while ($next_result->NextToken) { | ||
| 147 | $next_result = $self->DescribeScheduledActions(@_, NextToken => $next_result->NextToken); | ||
| 148 | push @{ $result->ScheduledActions }, @{ $next_result->ScheduledActions }; | ||
| 149 | } | ||
| 150 | return $result; | ||
| 151 | } else { | ||
| 152 | while ($result->NextToken) { | ||
| 153 | $callback->($_ => 'ScheduledActions') foreach (@{ $result->ScheduledActions }); | ||
| 154 | $result = $self->DescribeScheduledActions(@_, NextToken => $result->NextToken); | ||
| 155 | } | ||
| 156 | $callback->($_ => 'ScheduledActions') foreach (@{ $result->ScheduledActions }); | ||
| 157 | } | ||
| 158 | |||
| 159 | return undef | ||
| 160 | } | ||
| 161 | |||
| 162 | |||
| 163 | sub operations { qw/DeleteScalingPolicy DeleteScheduledAction DeregisterScalableTarget DescribeScalableTargets DescribeScalingActivities DescribeScalingPolicies DescribeScheduledActions PutScalingPolicy PutScheduledAction RegisterScalableTarget / } | ||
| 164 | |||
| 165 | 1; | ||
| 166 | |||
| 167 | ### main pod documentation begin ### | ||
| 168 | |||
| 169 | =head1 NAME | ||
| 170 | |||
| 171 | Paws::ApplicationAutoScaling - Perl Interface to AWS Application Auto Scaling | ||
| 172 | |||
| 173 | =head1 SYNOPSIS | ||
| 174 | |||
| 175 | use Paws; | ||
| 176 | |||
| 177 | my $obj = Paws->service('ApplicationAutoScaling'); | ||
| 178 | my $res = $obj->Method( | ||
| 179 | Arg1 => $val1, | ||
| 180 | Arg2 => [ 'V1', 'V2' ], | ||
| 181 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||
| 182 | # of the arguments type | ||
| 183 | Arg3 => { Att1 => 'Val1' }, | ||
| 184 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||
| 185 | # the constructor of the arguments type | ||
| 186 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||
| 187 | ); | ||
| 188 | |||
| 189 | =head1 DESCRIPTION | ||
| 190 | |||
| 191 | With Application Auto Scaling, you can configure automatic scaling for | ||
| 192 | the following resources: | ||
| 193 | |||
| 194 | =over | ||
| 195 | |||
| 196 | =item * | ||
| 197 | |||
| 198 | Amazon ECS services | ||
| 199 | |||
| 200 | =item * | ||
| 201 | |||
| 202 | Amazon EC2 Spot Fleet requests | ||
| 203 | |||
| 204 | =item * | ||
| 205 | |||
| 206 | Amazon EMR clusters | ||
| 207 | |||
| 208 | =item * | ||
| 209 | |||
| 210 | Amazon AppStream 2.0 fleets | ||
| 211 | |||
| 212 | =item * | ||
| 213 | |||
| 214 | Amazon DynamoDB tables and global secondary indexes throughput capacity | ||
| 215 | |||
| 216 | =item * | ||
| 217 | |||
| 218 | Amazon Aurora Replicas | ||
| 219 | |||
| 220 | =item * | ||
| 221 | |||
| 222 | Amazon SageMaker endpoint variants | ||
| 223 | |||
| 224 | =item * | ||
| 225 | |||
| 226 | Custom resources provided by your own applications or services | ||
| 227 | |||
| 228 | =item * | ||
| 229 | |||
| 230 | Amazon Comprehend document classification and entity recognizer | ||
| 231 | endpoints | ||
| 232 | |||
| 233 | =item * | ||
| 234 | |||
| 235 | AWS Lambda function provisioned concurrency | ||
| 236 | |||
| 237 | =item * | ||
| 238 | |||
| 239 | Amazon Keyspaces (for Apache Cassandra) tables | ||
| 240 | |||
| 241 | =item * | ||
| 242 | |||
| 243 | Amazon Managed Streaming for Apache Kafka broker storage | ||
| 244 | |||
| 245 | =back | ||
| 246 | |||
| 247 | B<API Summary> | ||
| 248 | |||
| 249 | The Application Auto Scaling service API includes three key sets of | ||
| 250 | actions: | ||
| 251 | |||
| 252 | =over | ||
| 253 | |||
| 254 | =item * | ||
| 255 | |||
| 256 | Register and manage scalable targets - Register AWS or custom resources | ||
| 257 | as scalable targets (a resource that Application Auto Scaling can | ||
| 258 | scale), set minimum and maximum capacity limits, and retrieve | ||
| 259 | information on existing scalable targets. | ||
| 260 | |||
| 261 | =item * | ||
| 262 | |||
| 263 | Configure and manage automatic scaling - Define scaling policies to | ||
| 264 | dynamically scale your resources in response to CloudWatch alarms, | ||
| 265 | schedule one-time or recurring scaling actions, and retrieve your | ||
| 266 | recent scaling activity history. | ||
| 267 | |||
| 268 | =item * | ||
| 269 | |||
| 270 | Suspend and resume scaling - Temporarily suspend and later resume | ||
| 271 | automatic scaling by calling the RegisterScalableTarget | ||
| 272 | (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html) | ||
| 273 | API action for any Application Auto Scaling scalable target. You can | ||
| 274 | suspend and resume (individually or in combination) scale-out | ||
| 275 | activities that are triggered by a scaling policy, scale-in activities | ||
| 276 | that are triggered by a scaling policy, and scheduled scaling. | ||
| 277 | |||
| 278 | =back | ||
| 279 | |||
| 280 | To learn more about Application Auto Scaling, including information | ||
| 281 | about granting IAM users required permissions for Application Auto | ||
| 282 | Scaling actions, see the Application Auto Scaling User Guide | ||
| 283 | (https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html). | ||
| 284 | |||
| 285 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06> | ||
| 286 | |||
| 287 | |||
| 288 | =head1 METHODS | ||
| 289 | |||
| 290 | =head2 DeleteScalingPolicy | ||
| 291 | |||
| 292 | =over | ||
| 293 | |||
| 294 | =item PolicyName => Str | ||
| 295 | |||
| 296 | =item ResourceId => Str | ||
| 297 | |||
| 298 | =item ScalableDimension => Str | ||
| 299 | |||
| 300 | =item ServiceNamespace => Str | ||
| 301 | |||
| 302 | |||
| 303 | =back | ||
| 304 | |||
| 305 | Each argument is described in detail in: L<Paws::ApplicationAutoScaling::DeleteScalingPolicy> | ||
| 306 | |||
| 307 | Returns: a L<Paws::ApplicationAutoScaling::DeleteScalingPolicyResponse> instance | ||
| 308 | |||
| 309 | Deletes the specified scaling policy for an Application Auto Scaling | ||
| 310 | scalable target. | ||
| 311 | |||
| 312 | Deleting a step scaling policy deletes the underlying alarm action, but | ||
| 313 | does not delete the CloudWatch alarm associated with the scaling | ||
| 314 | policy, even if it no longer has an associated action. | ||
| 315 | |||
| 316 | For more information, see Delete a step scaling policy | ||
| 317 | (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html#delete-step-scaling-policy) | ||
| 318 | and Delete a target tracking scaling policy | ||
| 319 | (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#delete-target-tracking-policy) | ||
| 320 | in the I<Application Auto Scaling User Guide>. | ||
| 321 | |||
| 322 | |||
| 323 | =head2 DeleteScheduledAction | ||
| 324 | |||
| 325 | =over | ||
| 326 | |||
| 327 | =item ResourceId => Str | ||
| 328 | |||
| 329 | =item ScalableDimension => Str | ||
| 330 | |||
| 331 | =item ScheduledActionName => Str | ||
| 332 | |||
| 333 | =item ServiceNamespace => Str | ||
| 334 | |||
| 335 | |||
| 336 | =back | ||
| 337 | |||
| 338 | Each argument is described in detail in: L<Paws::ApplicationAutoScaling::DeleteScheduledAction> | ||
| 339 | |||
| 340 | Returns: a L<Paws::ApplicationAutoScaling::DeleteScheduledActionResponse> instance | ||
| 341 | |||
| 342 | Deletes the specified scheduled action for an Application Auto Scaling | ||
| 343 | scalable target. | ||
| 344 | |||
| 345 | For more information, see Delete a scheduled action | ||
| 346 | (https://docs.aws.amazon.com/autoscaling/application/userguide/scheduled-scaling-additional-cli-commands.html#delete-scheduled-action) | ||
| 347 | in the I<Application Auto Scaling User Guide>. | ||
| 348 | |||
| 349 | |||
| 350 | =head2 DeregisterScalableTarget | ||
| 351 | |||
| 352 | =over | ||
| 353 | |||
| 354 | =item ResourceId => Str | ||
| 355 | |||
| 356 | =item ScalableDimension => Str | ||
| 357 | |||
| 358 | =item ServiceNamespace => Str | ||
| 359 | |||
| 360 | |||
| 361 | =back | ||
| 362 | |||
| 363 | Each argument is described in detail in: L<Paws::ApplicationAutoScaling::DeregisterScalableTarget> | ||
| 364 | |||
| 365 | Returns: a L<Paws::ApplicationAutoScaling::DeregisterScalableTargetResponse> instance | ||
| 366 | |||
| 367 | Deregisters an Application Auto Scaling scalable target when you have | ||
| 368 | finished using it. To see which resources have been registered, use | ||
| 369 | DescribeScalableTargets | ||
| 370 | (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html). | ||
| 371 | |||
| 372 | Deregistering a scalable target deletes the scaling policies and the | ||
| 373 | scheduled actions that are associated with it. | ||
| 374 | |||
| 375 | |||
| 376 | =head2 DescribeScalableTargets | ||
| 377 | |||
| 378 | =over | ||
| 379 | |||
| 380 | =item ServiceNamespace => Str | ||
| 381 | |||
| 382 | =item [MaxResults => Int] | ||
| 383 | |||
| 384 | =item [NextToken => Str] | ||
| 385 | |||
| 386 | =item [ResourceIds => ArrayRef[Str|Undef]] | ||
| 387 | |||
| 388 | =item [ScalableDimension => Str] | ||
| 389 | |||
| 390 | |||
| 391 | =back | ||
| 392 | |||
| 393 | Each argument is described in detail in: L<Paws::ApplicationAutoScaling::DescribeScalableTargets> | ||
| 394 | |||
| 395 | Returns: a L<Paws::ApplicationAutoScaling::DescribeScalableTargetsResponse> instance | ||
| 396 | |||
| 397 | Gets information about the scalable targets in the specified namespace. | ||
| 398 | |||
| 399 | You can filter the results using C<ResourceIds> and | ||
| 400 | C<ScalableDimension>. | ||
| 401 | |||
| 402 | |||
| 403 | =head2 DescribeScalingActivities | ||
| 404 | |||
| 405 | =over | ||
| 406 | |||
| 407 | =item ServiceNamespace => Str | ||
| 408 | |||
| 409 | =item [MaxResults => Int] | ||
| 410 | |||
| 411 | =item [NextToken => Str] | ||
| 412 | |||
| 413 | =item [ResourceId => Str] | ||
| 414 | |||
| 415 | =item [ScalableDimension => Str] | ||
| 416 | |||
| 417 | |||
| 418 | =back | ||
| 419 | |||
| 420 | Each argument is described in detail in: L<Paws::ApplicationAutoScaling::DescribeScalingActivities> | ||
| 421 | |||
| 422 | Returns: a L<Paws::ApplicationAutoScaling::DescribeScalingActivitiesResponse> instance | ||
| 423 | |||
| 424 | Provides descriptive information about the scaling activities in the | ||
| 425 | specified namespace from the previous six weeks. | ||
| 426 | |||
| 427 | You can filter the results using C<ResourceId> and | ||
| 428 | C<ScalableDimension>. | ||
| 429 | |||
| 430 | |||
| 431 | =head2 DescribeScalingPolicies | ||
| 432 | |||
| 433 | =over | ||
| 434 | |||
| 435 | =item ServiceNamespace => Str | ||
| 436 | |||
| 437 | =item [MaxResults => Int] | ||
| 438 | |||
| 439 | =item [NextToken => Str] | ||
| 440 | |||
| 441 | =item [PolicyNames => ArrayRef[Str|Undef]] | ||
| 442 | |||
| 443 | =item [ResourceId => Str] | ||
| 444 | |||
| 445 | =item [ScalableDimension => Str] | ||
| 446 | |||
| 447 | |||
| 448 | =back | ||
| 449 | |||
| 450 | Each argument is described in detail in: L<Paws::ApplicationAutoScaling::DescribeScalingPolicies> | ||
| 451 | |||
| 452 | Returns: a L<Paws::ApplicationAutoScaling::DescribeScalingPoliciesResponse> instance | ||
| 453 | |||
| 454 | Describes the Application Auto Scaling scaling policies for the | ||
| 455 | specified service namespace. | ||
| 456 | |||
| 457 | You can filter the results using C<ResourceId>, C<ScalableDimension>, | ||
| 458 | and C<PolicyNames>. | ||
| 459 | |||
| 460 | For more information, see Target tracking scaling policies | ||
| 461 | (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html) | ||
| 462 | and Step scaling policies | ||
| 463 | (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html) | ||
| 464 | in the I<Application Auto Scaling User Guide>. | ||
| 465 | |||
| 466 | |||
| 467 | =head2 DescribeScheduledActions | ||
| 468 | |||
| 469 | =over | ||
| 470 | |||
| 471 | =item ServiceNamespace => Str | ||
| 472 | |||
| 473 | =item [MaxResults => Int] | ||
| 474 | |||
| 475 | =item [NextToken => Str] | ||
| 476 | |||
| 477 | =item [ResourceId => Str] | ||
| 478 | |||
| 479 | =item [ScalableDimension => Str] | ||
| 480 | |||
| 481 | =item [ScheduledActionNames => ArrayRef[Str|Undef]] | ||
| 482 | |||
| 483 | |||
| 484 | =back | ||
| 485 | |||
| 486 | Each argument is described in detail in: L<Paws::ApplicationAutoScaling::DescribeScheduledActions> | ||
| 487 | |||
| 488 | Returns: a L<Paws::ApplicationAutoScaling::DescribeScheduledActionsResponse> instance | ||
| 489 | |||
| 490 | Describes the Application Auto Scaling scheduled actions for the | ||
| 491 | specified service namespace. | ||
| 492 | |||
| 493 | You can filter the results using the C<ResourceId>, | ||
| 494 | C<ScalableDimension>, and C<ScheduledActionNames> parameters. | ||
| 495 | |||
| 496 | For more information, see Scheduled scaling | ||
| 497 | (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html) | ||
| 498 | and Managing scheduled scaling | ||
| 499 | (https://docs.aws.amazon.com/autoscaling/application/userguide/scheduled-scaling-additional-cli-commands.html) | ||
| 500 | in the I<Application Auto Scaling User Guide>. | ||
| 501 | |||
| 502 | |||
| 503 | =head2 PutScalingPolicy | ||
| 504 | |||
| 505 | =over | ||
| 506 | |||
| 507 | =item PolicyName => Str | ||
| 508 | |||
| 509 | =item ResourceId => Str | ||
| 510 | |||
| 511 | =item ScalableDimension => Str | ||
| 512 | |||
| 513 | =item ServiceNamespace => Str | ||
| 514 | |||
| 515 | =item [PolicyType => Str] | ||
| 516 | |||
| 517 | =item [StepScalingPolicyConfiguration => L<Paws::ApplicationAutoScaling::StepScalingPolicyConfiguration>] | ||
| 518 | |||
| 519 | =item [TargetTrackingScalingPolicyConfiguration => L<Paws::ApplicationAutoScaling::TargetTrackingScalingPolicyConfiguration>] | ||
| 520 | |||
| 521 | |||
| 522 | =back | ||
| 523 | |||
| 524 | Each argument is described in detail in: L<Paws::ApplicationAutoScaling::PutScalingPolicy> | ||
| 525 | |||
| 526 | Returns: a L<Paws::ApplicationAutoScaling::PutScalingPolicyResponse> instance | ||
| 527 | |||
| 528 | Creates or updates a scaling policy for an Application Auto Scaling | ||
| 529 | scalable target. | ||
| 530 | |||
| 531 | Each scalable target is identified by a service namespace, resource ID, | ||
| 532 | and scalable dimension. A scaling policy applies to the scalable target | ||
| 533 | identified by those three attributes. You cannot create a scaling | ||
| 534 | policy until you have registered the resource as a scalable target. | ||
| 535 | |||
| 536 | Multiple scaling policies can be in force at the same time for the same | ||
| 537 | scalable target. You can have one or more target tracking scaling | ||
| 538 | policies, one or more step scaling policies, or both. However, there is | ||
| 539 | a chance that multiple policies could conflict, instructing the | ||
| 540 | scalable target to scale out or in at the same time. Application Auto | ||
| 541 | Scaling gives precedence to the policy that provides the largest | ||
| 542 | capacity for both scale out and scale in. For example, if one policy | ||
| 543 | increases capacity by 3, another policy increases capacity by 200 | ||
| 544 | percent, and the current capacity is 10, Application Auto Scaling uses | ||
| 545 | the policy with the highest calculated capacity (200% of 10 = 20) and | ||
| 546 | scales out to 30. | ||
| 547 | |||
| 548 | We recommend caution, however, when using target tracking scaling | ||
| 549 | policies with step scaling policies because conflicts between these | ||
| 550 | policies can cause undesirable behavior. For example, if the step | ||
| 551 | scaling policy initiates a scale-in activity before the target tracking | ||
| 552 | policy is ready to scale in, the scale-in activity will not be blocked. | ||
| 553 | After the scale-in activity completes, the target tracking policy could | ||
| 554 | instruct the scalable target to scale out again. | ||
| 555 | |||
| 556 | For more information, see Target tracking scaling policies | ||
| 557 | (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html) | ||
| 558 | and Step scaling policies | ||
| 559 | (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html) | ||
| 560 | in the I<Application Auto Scaling User Guide>. | ||
| 561 | |||
| 562 | If a scalable target is deregistered, the scalable target is no longer | ||
| 563 | available to execute scaling policies. Any scaling policies that were | ||
| 564 | specified for the scalable target are deleted. | ||
| 565 | |||
| 566 | |||
| 567 | =head2 PutScheduledAction | ||
| 568 | |||
| 569 | =over | ||
| 570 | |||
| 571 | =item ResourceId => Str | ||
| 572 | |||
| 573 | =item ScalableDimension => Str | ||
| 574 | |||
| 575 | =item ScheduledActionName => Str | ||
| 576 | |||
| 577 | =item ServiceNamespace => Str | ||
| 578 | |||
| 579 | =item [EndTime => Str] | ||
| 580 | |||
| 581 | =item [ScalableTargetAction => L<Paws::ApplicationAutoScaling::ScalableTargetAction>] | ||
| 582 | |||
| 583 | =item [Schedule => Str] | ||
| 584 | |||
| 585 | =item [StartTime => Str] | ||
| 586 | |||
| 587 | =item [Timezone => Str] | ||
| 588 | |||
| 589 | |||
| 590 | =back | ||
| 591 | |||
| 592 | Each argument is described in detail in: L<Paws::ApplicationAutoScaling::PutScheduledAction> | ||
| 593 | |||
| 594 | Returns: a L<Paws::ApplicationAutoScaling::PutScheduledActionResponse> instance | ||
| 595 | |||
| 596 | Creates or updates a scheduled action for an Application Auto Scaling | ||
| 597 | scalable target. | ||
| 598 | |||
| 599 | Each scalable target is identified by a service namespace, resource ID, | ||
| 600 | and scalable dimension. A scheduled action applies to the scalable | ||
| 601 | target identified by those three attributes. You cannot create a | ||
| 602 | scheduled action until you have registered the resource as a scalable | ||
| 603 | target. | ||
| 604 | |||
| 605 | When start and end times are specified with a recurring schedule using | ||
| 606 | a cron expression or rates, they form the boundaries for when the | ||
| 607 | recurring action starts and stops. | ||
| 608 | |||
| 609 | To update a scheduled action, specify the parameters that you want to | ||
| 610 | change. If you don't specify start and end times, the old values are | ||
| 611 | deleted. | ||
| 612 | |||
| 613 | For more information, see Scheduled scaling | ||
| 614 | (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html) | ||
| 615 | in the I<Application Auto Scaling User Guide>. | ||
| 616 | |||
| 617 | If a scalable target is deregistered, the scalable target is no longer | ||
| 618 | available to run scheduled actions. Any scheduled actions that were | ||
| 619 | specified for the scalable target are deleted. | ||
| 620 | |||
| 621 | |||
| 622 | =head2 RegisterScalableTarget | ||
| 623 | |||
| 624 | =over | ||
| 625 | |||
| 626 | =item ResourceId => Str | ||
| 627 | |||
| 628 | =item ScalableDimension => Str | ||
| 629 | |||
| 630 | =item ServiceNamespace => Str | ||
| 631 | |||
| 632 | =item [MaxCapacity => Int] | ||
| 633 | |||
| 634 | =item [MinCapacity => Int] | ||
| 635 | |||
| 636 | =item [RoleARN => Str] | ||
| 637 | |||
| 638 | =item [SuspendedState => L<Paws::ApplicationAutoScaling::SuspendedState>] | ||
| 639 | |||
| 640 | |||
| 641 | =back | ||
| 642 | |||
| 643 | Each argument is described in detail in: L<Paws::ApplicationAutoScaling::RegisterScalableTarget> | ||
| 644 | |||
| 645 | Returns: a L<Paws::ApplicationAutoScaling::RegisterScalableTargetResponse> instance | ||
| 646 | |||
| 647 | Registers or updates a scalable target. | ||
| 648 | |||
| 649 | A scalable target is a resource that Application Auto Scaling can scale | ||
| 650 | out and scale in. Scalable targets are uniquely identified by the | ||
| 651 | combination of resource ID, scalable dimension, and namespace. | ||
| 652 | |||
| 653 | When you register a new scalable target, you must specify values for | ||
| 654 | minimum and maximum capacity. Current capacity will be adjusted within | ||
| 655 | the specified range when scaling starts. Application Auto Scaling | ||
| 656 | scaling policies will not scale capacity to values that are outside of | ||
| 657 | this range. | ||
| 658 | |||
| 659 | After you register a scalable target, you do not need to register it | ||
| 660 | again to use other Application Auto Scaling operations. To see which | ||
| 661 | resources have been registered, use DescribeScalableTargets | ||
| 662 | (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html). | ||
| 663 | You can also view the scaling policies for a service namespace by using | ||
| 664 | DescribeScalableTargets | ||
| 665 | (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html). | ||
| 666 | If you no longer need a scalable target, you can deregister it by using | ||
| 667 | DeregisterScalableTarget | ||
| 668 | (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DeregisterScalableTarget.html). | ||
| 669 | |||
| 670 | To update a scalable target, specify the parameters that you want to | ||
| 671 | change. Include the parameters that identify the scalable target: | ||
| 672 | resource ID, scalable dimension, and namespace. Any parameters that you | ||
| 673 | don't specify are not changed by this update request. | ||
| 674 | |||
| 675 | |||
| 676 | |||
| 677 | |||
| 678 | =head1 PAGINATORS | ||
| 679 | |||
| 680 | Paginator methods are helpers that repetively call methods that return partial results | ||
| 681 | |||
| 682 | =head2 DescribeAllScalableTargets(sub { },ServiceNamespace => Str, [MaxResults => Int, NextToken => Str, ResourceIds => ArrayRef[Str|Undef], ScalableDimension => Str]) | ||
| 683 | |||
| 684 | =head2 DescribeAllScalableTargets(ServiceNamespace => Str, [MaxResults => Int, NextToken => Str, ResourceIds => ArrayRef[Str|Undef], ScalableDimension => Str]) | ||
| 685 | |||
| 686 | |||
| 687 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 688 | |||
| 689 | - ScalableTargets, passing the object as the first parameter, and the string 'ScalableTargets' as the second parameter | ||
| 690 | |||
| 691 | If not, it will return a a L<Paws::ApplicationAutoScaling::DescribeScalableTargetsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 692 | |||
| 693 | |||
| 694 | =head2 DescribeAllScalingActivities(sub { },ServiceNamespace => Str, [MaxResults => Int, NextToken => Str, ResourceId => Str, ScalableDimension => Str]) | ||
| 695 | |||
| 696 | =head2 DescribeAllScalingActivities(ServiceNamespace => Str, [MaxResults => Int, NextToken => Str, ResourceId => Str, ScalableDimension => Str]) | ||
| 697 | |||
| 698 | |||
| 699 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 700 | |||
| 701 | - ScalingActivities, passing the object as the first parameter, and the string 'ScalingActivities' as the second parameter | ||
| 702 | |||
| 703 | If not, it will return a a L<Paws::ApplicationAutoScaling::DescribeScalingActivitiesResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 704 | |||
| 705 | |||
| 706 | =head2 DescribeAllScalingPolicies(sub { },ServiceNamespace => Str, [MaxResults => Int, NextToken => Str, PolicyNames => ArrayRef[Str|Undef], ResourceId => Str, ScalableDimension => Str]) | ||
| 707 | |||
| 708 | =head2 DescribeAllScalingPolicies(ServiceNamespace => Str, [MaxResults => Int, NextToken => Str, PolicyNames => ArrayRef[Str|Undef], ResourceId => Str, ScalableDimension => Str]) | ||
| 709 | |||
| 710 | |||
| 711 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 712 | |||
| 713 | - ScalingPolicies, passing the object as the first parameter, and the string 'ScalingPolicies' as the second parameter | ||
| 714 | |||
| 715 | If not, it will return a a L<Paws::ApplicationAutoScaling::DescribeScalingPoliciesResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 716 | |||
| 717 | |||
| 718 | =head2 DescribeAllScheduledActions(sub { },ServiceNamespace => Str, [MaxResults => Int, NextToken => Str, ResourceId => Str, ScalableDimension => Str, ScheduledActionNames => ArrayRef[Str|Undef]]) | ||
| 719 | |||
| 720 | =head2 DescribeAllScheduledActions(ServiceNamespace => Str, [MaxResults => Int, NextToken => Str, ResourceId => Str, ScalableDimension => Str, ScheduledActionNames => ArrayRef[Str|Undef]]) | ||
| 721 | |||
| 722 | |||
| 723 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 724 | |||
| 725 | - ScheduledActions, passing the object as the first parameter, and the string 'ScheduledActions' as the second parameter | ||
| 726 | |||
| 727 | If not, it will return a a L<Paws::ApplicationAutoScaling::DescribeScheduledActionsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 728 | |||
| 729 | |||
| 730 | |||
| 731 | |||
| 732 | |||
| 733 | =head1 SEE ALSO | ||
| 734 | |||
| 735 | This service class forms part of L<Paws> | ||
| 736 | |||
| 737 | =head1 BUGS and CONTRIBUTIONS | ||
| 738 | |||
| 739 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 740 | |||
| 741 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 742 | |||
| 743 | =cut | ||
| 744 |