blib/lib/Paws/AutoScaling/MixedInstancesPolicy.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/AutoScaling/MetricGranularityType.pm ↑ Summary blib/lib/Paws/AutoScaling/NotificationConfiguration.pm »
1 # Generated by default/object.tt
2 package Paws::AutoScaling::MixedInstancesPolicy;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has InstancesDistribution => (is => 'ro', isa => 'Paws::AutoScaling::InstancesDistribution');
5 1 has LaunchTemplate => (is => 'ro', isa => 'Paws::AutoScaling::LaunchTemplate');
6  
7 1 1;
8  
9 ### main pod documentation begin ###
10  
11 =head1 NAME
12  
13 Paws::AutoScaling::MixedInstancesPolicy
14  
15 =head1 USAGE
16  
17 This class represents one of two things:
18  
19 =head3 Arguments in a call to a service
20  
21 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22 Each attribute should be used as a named argument in the calls that expect this type of object.
23  
24 As an example, if Att1 is expected to be a Paws::AutoScaling::MixedInstancesPolicy object:
25  
26 $service_obj->Method(Att1 => { InstancesDistribution => $value, ..., LaunchTemplate => $value });
27  
28 =head3 Results returned from an API call
29  
30 Use accessors for each attribute. If Att1 is expected to be an Paws::AutoScaling::MixedInstancesPolicy object:
31  
32 $result = $service_obj->Method(...);
33 $result->Att1->InstancesDistribution
34  
35 =head1 DESCRIPTION
36  
37 Describes a mixed instances policy for an Auto Scaling group. With
38 mixed instances, your Auto Scaling group can provision a combination of
39 On-Demand Instances and Spot Instances across multiple instance types.
40 For more information, see Auto Scaling groups with multiple instance
41 types and purchase options
42 (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html)
43 in the I<Amazon EC2 Auto Scaling User Guide>.
44  
45 You can create a mixed instances policy for a new Auto Scaling group,
46 or you can create it for an existing group by updating the group to
47 specify C<MixedInstancesPolicy> as the top-level property instead of a
48 launch configuration or launch template.
49  
50 =head1 ATTRIBUTES
51  
52  
53 =head2 InstancesDistribution => L<Paws::AutoScaling::InstancesDistribution>
54  
55 Specifies the instances distribution. If not provided, the value for
56 each property in C<InstancesDistribution> uses a default value.
57  
58  
59 =head2 LaunchTemplate => L<Paws::AutoScaling::LaunchTemplate>
60  
61 Specifies the launch template to use and optionally the instance types
62 (overrides) that are used to provision EC2 instances to fulfill
63 On-Demand and Spot capacities. Required when creating a mixed instances
64 policy.
65  
66  
67  
68 =head1 SEE ALSO
69  
70 This class forms part of L<Paws>, describing an object used in L<Paws::AutoScaling>
71  
72 =head1 BUGS and CONTRIBUTIONS
73  
74 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
75  
76 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
77  
78 =cut
79  
« blib/lib/Paws/AutoScaling/MetricGranularityType.pm ↑ Summary blib/lib/Paws/AutoScaling/NotificationConfiguration.pm »