File Coverage

blib/lib/Paws/AutoScaling/CreateAutoScalingGroup.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::AutoScaling::CreateAutoScalingGroup;
3 1     1   453 use Moose;
  1     1   2  
  1         7  
  1         619  
  1         3  
  1         8  
4             has AutoScalingGroupName => (is => 'ro', isa => 'Str', required => 1);
5             has AvailabilityZones => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
6             has DefaultCooldown => (is => 'ro', isa => 'Int');
7             has DesiredCapacity => (is => 'ro', isa => 'Int');
8             has HealthCheckGracePeriod => (is => 'ro', isa => 'Int');
9             has HealthCheckType => (is => 'ro', isa => 'Str');
10             has InstanceId => (is => 'ro', isa => 'Str');
11             has LaunchConfigurationName => (is => 'ro', isa => 'Str');
12             has LifecycleHookSpecificationList => (is => 'ro', isa => 'ArrayRef[Paws::AutoScaling::LifecycleHookSpecification]');
13             has LoadBalancerNames => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
14             has MaxSize => (is => 'ro', isa => 'Int', required => 1);
15             has MinSize => (is => 'ro', isa => 'Int', required => 1);
16             has NewInstancesProtectedFromScaleIn => (is => 'ro', isa => 'Bool');
17             has PlacementGroup => (is => 'ro', isa => 'Str');
18             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::AutoScaling::Tag]');
19             has TargetGroupARNs => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
20             has TerminationPolicies => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
21             has VPCZoneIdentifier => (is => 'ro', isa => 'Str');
22              
23 1     1   6483 use MooseX::ClassAttribute;
  1     1   3  
  1         11  
  1         6180  
  1         2  
  1         9  
24              
25             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAutoScalingGroup');
26             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
27             class_has _result_key => (isa => 'Str', is => 'ro');
28             1;
29              
30             ### main pod documentation begin ###
31              
32             =head1 NAME
33              
34             Paws::AutoScaling::CreateAutoScalingGroup - Arguments for method CreateAutoScalingGroup on Paws::AutoScaling
35              
36             =head1 DESCRIPTION
37              
38             This class represents the parameters used for calling the method CreateAutoScalingGroup on the
39             Auto Scaling service. Use the attributes of this class
40             as arguments to method CreateAutoScalingGroup.
41              
42             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAutoScalingGroup.
43              
44             As an example:
45              
46             $service_obj->CreateAutoScalingGroup(Att1 => $value1, Att2 => $value2, ...);
47              
48             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.
49              
50             =head1 ATTRIBUTES
51              
52              
53             =head2 B<REQUIRED> AutoScalingGroupName => Str
54              
55             The name of the group. This name must be unique within the scope of
56             your AWS account.
57              
58              
59              
60             =head2 AvailabilityZones => ArrayRef[Str|Undef]
61              
62             One or more Availability Zones for the group. This parameter is
63             optional if you specify one or more subnets.
64              
65              
66              
67             =head2 DefaultCooldown => Int
68              
69             The amount of time, in seconds, after a scaling activity completes
70             before another scaling activity can start. The default is 300.
71              
72             For more information, see Auto Scaling Cooldowns in the I<Auto Scaling
73             User Guide>.
74              
75              
76              
77             =head2 DesiredCapacity => Int
78              
79             The number of EC2 instances that should be running in the group. This
80             number must be greater than or equal to the minimum size of the group
81             and less than or equal to the maximum size of the group. If you do not
82             specify a desired capacity, the default is the minimum size of the
83             group.
84              
85              
86              
87             =head2 HealthCheckGracePeriod => Int
88              
89             The amount of time, in seconds, that Auto Scaling waits before checking
90             the health status of an EC2 instance that has come into service. During
91             this time, any health check failures for the instance are ignored. The
92             default is 0.
93              
94             This parameter is required if you are adding an C<ELB> health check.
95              
96             For more information, see Health Checks in the I<Auto Scaling User
97             Guide>.
98              
99              
100              
101             =head2 HealthCheckType => Str
102              
103             The service to use for the health checks. The valid values are C<EC2>
104             and C<ELB>.
105              
106             By default, health checks use Amazon EC2 instance status checks to
107             determine the health of an instance. For more information, see Health
108             Checks in the I<Auto Scaling User Guide>.
109              
110              
111              
112             =head2 InstanceId => Str
113              
114             The ID of the instance used to create a launch configuration for the
115             group. Alternatively, specify a launch configuration instead of an EC2
116             instance.
117              
118             When you specify an ID of an instance, Auto Scaling creates a new
119             launch configuration and associates it with the group. This launch
120             configuration derives its attributes from the specified instance, with
121             the exception of the block device mapping.
122              
123             For more information, see Create an Auto Scaling Group Using an EC2
124             Instance in the I<Auto Scaling User Guide>.
125              
126              
127              
128             =head2 LaunchConfigurationName => Str
129              
130             The name of the launch configuration. Alternatively, specify an EC2
131             instance instead of a launch configuration.
132              
133              
134              
135             =head2 LifecycleHookSpecificationList => ArrayRef[L<Paws::AutoScaling::LifecycleHookSpecification>]
136              
137             One or more lifecycle hooks.
138              
139              
140              
141             =head2 LoadBalancerNames => ArrayRef[Str|Undef]
142              
143             One or more Classic Load Balancers. To specify an Application Load
144             Balancer, use C<TargetGroupARNs> instead.
145              
146             For more information, see Using a Load Balancer With an Auto Scaling
147             Group in the I<Auto Scaling User Guide>.
148              
149              
150              
151             =head2 B<REQUIRED> MaxSize => Int
152              
153             The maximum size of the group.
154              
155              
156              
157             =head2 B<REQUIRED> MinSize => Int
158              
159             The minimum size of the group.
160              
161              
162              
163             =head2 NewInstancesProtectedFromScaleIn => Bool
164              
165             Indicates whether newly launched instances are protected from
166             termination by Auto Scaling when scaling in.
167              
168              
169              
170             =head2 PlacementGroup => Str
171              
172             The name of the placement group into which you'll launch your
173             instances, if any. For more information, see Placement Groups in the
174             I<Amazon Elastic Compute Cloud User Guide>.
175              
176              
177              
178             =head2 Tags => ArrayRef[L<Paws::AutoScaling::Tag>]
179              
180             One or more tags.
181              
182             For more information, see Tagging Auto Scaling Groups and Instances in
183             the I<Auto Scaling User Guide>.
184              
185              
186              
187             =head2 TargetGroupARNs => ArrayRef[Str|Undef]
188              
189             The Amazon Resource Names (ARN) of the target groups.
190              
191              
192              
193             =head2 TerminationPolicies => ArrayRef[Str|Undef]
194              
195             One or more termination policies used to select the instance to
196             terminate. These policies are executed in the order that they are
197             listed.
198              
199             For more information, see Controlling Which Instances Auto Scaling
200             Terminates During Scale In in the I<Auto Scaling User Guide>.
201              
202              
203              
204             =head2 VPCZoneIdentifier => Str
205              
206             A comma-separated list of subnet identifiers for your virtual private
207             cloud (VPC).
208              
209             If you specify subnets and Availability Zones with this call, ensure
210             that the subnets' Availability Zones match the Availability Zones
211             specified.
212              
213             For more information, see Launching Auto Scaling Instances in a VPC in
214             the I<Auto Scaling User Guide>.
215              
216              
217              
218              
219             =head1 SEE ALSO
220              
221             This class forms part of L<Paws>, documenting arguments for method CreateAutoScalingGroup in L<Paws::AutoScaling>
222              
223             =head1 BUGS and CONTRIBUTIONS
224              
225             The source code is located here: https://github.com/pplu/aws-sdk-perl
226              
227             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
228              
229             =cut
230