blib/lib/Paws/EC2/ModifyHosts.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::ModifyHosts;
3 use Moose;
4 has AutoPlacement => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'autoPlacement' );
5 has HostIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'hostId' , required => 1);
6 has HostRecovery => (is => 'ro', isa => 'Str');
7 has InstanceFamily => (is => 'ro', isa => 'Str');
8 has InstanceType => (is => 'ro', isa => 'Str');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyHosts');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::ModifyHostsResult');
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::ModifyHosts - Arguments for method ModifyHosts on L<Paws::EC2>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method ModifyHosts on the
26 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
27 as arguments to method ModifyHosts.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyHosts.
30  
31 =head1 SYNOPSIS
32  
33 my $ec2 = Paws->service('EC2');
34 my $ModifyHostsResult = $ec2->ModifyHosts(
35 HostIds => [ 'MyDedicatedHostId', ... ],
36 AutoPlacement => 'on', # OPTIONAL
37 HostRecovery => 'on', # OPTIONAL
38 InstanceFamily => 'MyString', # OPTIONAL
39 InstanceType => 'MyString', # OPTIONAL
40 );
41  
42 # Results:
43 my $Successful = $ModifyHostsResult->Successful;
44 my $Unsuccessful = $ModifyHostsResult->Unsuccessful;
45  
46 # Returns a L<Paws::EC2::ModifyHostsResult> object.
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 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/ModifyHosts>
50  
51 =head1 ATTRIBUTES
52  
53  
54 =head2 AutoPlacement => Str
55  
56 Specify whether to enable or disable auto-placement.
57  
58 Valid values are: C<"on">, C<"off">
59  
60 =head2 B<REQUIRED> HostIds => ArrayRef[Str|Undef]
61  
62 The IDs of the Dedicated Hosts to modify.
63  
64  
65  
66 =head2 HostRecovery => Str
67  
68 Indicates whether to enable or disable host recovery for the Dedicated
69 Host. For more information, see Host recovery
70 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html)
71 in the I<Amazon EC2 User Guide>.
72  
73 Valid values are: C<"on">, C<"off">
74  
75 =head2 InstanceFamily => Str
76  
77 Specifies the instance family to be supported by the Dedicated Host.
78 Specify this parameter to modify a Dedicated Host to support multiple
79 instance types within its current instance family.
80  
81 If you want to modify a Dedicated Host to support a specific instance
82 type only, omit this parameter and specify B<InstanceType> instead. You
83 cannot specify B<InstanceFamily> and B<InstanceType> in the same
84 request.
85  
86  
87  
88 =head2 InstanceType => Str
89  
90 Specifies the instance type to be supported by the Dedicated Host.
91 Specify this parameter to modify a Dedicated Host to support only a
92 specific instance type.
93  
94 If you want to modify a Dedicated Host to support multiple instance
95 types in its current instance family, omit this parameter and specify
96 B<InstanceFamily> instead. You cannot specify B<InstanceType> and
97 B<InstanceFamily> in the same request.
98  
99  
100  
101  
102 =head1 SEE ALSO
103  
104 This class forms part of L<Paws>, documenting arguments for method ModifyHosts in L<Paws::EC2>
105  
106 =head1 BUGS and CONTRIBUTIONS
107  
108 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
109  
110 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
111  
112 =cut
113