File Coverage

blib/lib/Paws/EC2/AllocateHosts.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::AllocateHosts;
3 1     1   767 use Moose;
  1         5  
  1         12  
4             has AutoPlacement => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'autoPlacement' );
5             has AvailabilityZone => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'availabilityZone' , required => 1);
6             has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken' );
7             has InstanceType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'instanceType' , required => 1);
8             has Quantity => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'quantity' , required => 1);
9              
10 1     1   11278 use MooseX::ClassAttribute;
  1         4  
  1         13  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'AllocateHosts');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::AllocateHostsResult');
14             class_has _result_key => (isa => 'Str', is => 'ro');
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::EC2::AllocateHosts - Arguments for method AllocateHosts on Paws::EC2
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method AllocateHosts on the
26             Amazon Elastic Compute Cloud service. Use the attributes of this class
27             as arguments to method AllocateHosts.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AllocateHosts.
30              
31             As an example:
32              
33             $service_obj->AllocateHosts(Att1 => $value1, Att2 => $value2, ...);
34              
35             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.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 AutoPlacement => Str
41              
42             This is enabled by default. This property allows instances to be
43             automatically placed onto available Dedicated Hosts, when you are
44             launching instances without specifying a host ID.
45              
46             Default: Enabled
47              
48             Valid values are: C<"on">, C<"off">
49              
50             =head2 B<REQUIRED> AvailabilityZone => Str
51              
52             The Availability Zone for the Dedicated Hosts.
53              
54              
55              
56             =head2 ClientToken => Str
57              
58             Unique, case-sensitive identifier you provide to ensure idempotency of
59             the request. For more information, see How to Ensure Idempotency in the
60             I<Amazon Elastic Compute Cloud User Guide>.
61              
62              
63              
64             =head2 B<REQUIRED> InstanceType => Str
65              
66             Specify the instance type that you want your Dedicated Hosts to be
67             configured for. When you specify the instance type, that is the only
68             instance type that you can launch onto that host.
69              
70              
71              
72             =head2 B<REQUIRED> Quantity => Int
73              
74             The number of Dedicated Hosts you want to allocate to your account with
75             these parameters.
76              
77              
78              
79              
80             =head1 SEE ALSO
81              
82             This class forms part of L<Paws>, documenting arguments for method AllocateHosts in L<Paws::EC2>
83              
84             =head1 BUGS and CONTRIBUTIONS
85              
86             The source code is located here: https://github.com/pplu/aws-sdk-perl
87              
88             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
89              
90             =cut
91