| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::ECS::ManagedScaling; | ||
| 3 | use Moose; | ||
| 4 | has InstanceWarmupPeriod => (is => 'ro', isa => 'Int', request_name => 'instanceWarmupPeriod', traits => ['NameInRequest']); | ||
| 5 | has MaximumScalingStepSize => (is => 'ro', isa => 'Int', request_name => 'maximumScalingStepSize', traits => ['NameInRequest']); | ||
| 6 | has MinimumScalingStepSize => (is => 'ro', isa => 'Int', request_name => 'minimumScalingStepSize', traits => ['NameInRequest']); | ||
| 7 | has Status => (is => 'ro', isa => 'Str', request_name => 'status', traits => ['NameInRequest']); | ||
| 8 | has TargetCapacity => (is => 'ro', isa => 'Int', request_name => 'targetCapacity', traits => ['NameInRequest']); | ||
| 9 | |||
| 10 | 1; | ||
| 11 | |||
| 12 | ### main pod documentation begin ### | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | Paws::ECS::ManagedScaling | ||
| 17 | |||
| 18 | =head1 USAGE | ||
| 19 | |||
| 20 | This class represents one of two things: | ||
| 21 | |||
| 22 | =head3 Arguments in a call to a service | ||
| 23 | |||
| 24 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 25 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 26 | |||
| 27 | As an example, if Att1 is expected to be a Paws::ECS::ManagedScaling object: | ||
| 28 | |||
| 29 | $service_obj->Method(Att1 => { InstanceWarmupPeriod => $value, ..., TargetCapacity => $value }); | ||
| 30 | |||
| 31 | =head3 Results returned from an API call | ||
| 32 | |||
| 33 | Use accessors for each attribute. If Att1 is expected to be an Paws::ECS::ManagedScaling object: | ||
| 34 | |||
| 35 | $result = $service_obj->Method(...); | ||
| 36 | $result->Att1->InstanceWarmupPeriod | ||
| 37 | |||
| 38 | =head1 DESCRIPTION | ||
| 39 | |||
| 40 | The managed scaling settings for the Auto Scaling group capacity | ||
| 41 | provider. | ||
| 42 | |||
| 43 | When managed scaling is enabled, Amazon ECS manages the scale-in and | ||
| 44 | scale-out actions of the Auto Scaling group. Amazon ECS manages a | ||
| 45 | target tracking scaling policy using an Amazon ECS-managed CloudWatch | ||
| 46 | metric with the specified C<targetCapacity> value as the target value | ||
| 47 | for the metric. For more information, see Using Managed Scaling | ||
| 48 | (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/asg-capacity-providers.html#asg-capacity-providers-managed-scaling) | ||
| 49 | in the I<Amazon Elastic Container Service Developer Guide>. | ||
| 50 | |||
| 51 | If managed scaling is disabled, the user must manage the scaling of the | ||
| 52 | Auto Scaling group. | ||
| 53 | |||
| 54 | =head1 ATTRIBUTES | ||
| 55 | |||
| 56 | |||
| 57 | =head2 InstanceWarmupPeriod => Int | ||
| 58 | |||
| 59 | The period of time, in seconds, after a newly launched Amazon EC2 | ||
| 60 | instance can contribute to CloudWatch metrics for Auto Scaling group. | ||
| 61 | If this parameter is omitted, the default value of C<300> seconds is | ||
| 62 | used. | ||
| 63 | |||
| 64 | |||
| 65 | =head2 MaximumScalingStepSize => Int | ||
| 66 | |||
| 67 | The maximum number of container instances that Amazon ECS will scale in | ||
| 68 | or scale out at one time. If this parameter is omitted, the default | ||
| 69 | value of C<10000> is used. | ||
| 70 | |||
| 71 | |||
| 72 | =head2 MinimumScalingStepSize => Int | ||
| 73 | |||
| 74 | The minimum number of container instances that Amazon ECS will scale in | ||
| 75 | or scale out at one time. If this parameter is omitted, the default | ||
| 76 | value of C<1> is used. | ||
| 77 | |||
| 78 | |||
| 79 | =head2 Status => Str | ||
| 80 | |||
| 81 | Whether or not to enable managed scaling for the capacity provider. | ||
| 82 | |||
| 83 | |||
| 84 | =head2 TargetCapacity => Int | ||
| 85 | |||
| 86 | The target capacity value for the capacity provider. The specified | ||
| 87 | value must be greater than C<0> and less than or equal to C<100>. A | ||
| 88 | value of C<100> will result in the Amazon EC2 instances in your Auto | ||
| 89 | Scaling group being completely utilized. | ||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | =head1 SEE ALSO | ||
| 94 | |||
| 95 | This class forms part of L<Paws>, describing an object used in L<Paws::ECS> | ||
| 96 | |||
| 97 | =head1 BUGS and CONTRIBUTIONS | ||
| 98 | |||
| 99 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 100 | |||
| 101 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 102 | |||
| 103 | =cut | ||
| 104 |