File Coverage

blib/lib/Paws/EC2/ModifyInstanceAttribute.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::ModifyInstanceAttribute;
3 1     1   470 use Moose;
  1         2  
  1         7  
4             has Attribute => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'attribute' );
5             has BlockDeviceMappings => (is => 'ro', isa => 'ArrayRef[Paws::EC2::InstanceBlockDeviceMappingSpecification]', traits => ['NameInRequest'], request_name => 'blockDeviceMapping' );
6             has DisableApiTermination => (is => 'ro', isa => 'Paws::EC2::AttributeBooleanValue', traits => ['NameInRequest'], request_name => 'disableApiTermination' );
7             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
8             has EbsOptimized => (is => 'ro', isa => 'Paws::EC2::AttributeBooleanValue', traits => ['NameInRequest'], request_name => 'ebsOptimized' );
9             has EnaSupport => (is => 'ro', isa => 'Paws::EC2::AttributeBooleanValue', traits => ['NameInRequest'], request_name => 'enaSupport' );
10             has Groups => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'GroupId' );
11             has InstanceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'instanceId' , required => 1);
12             has InstanceInitiatedShutdownBehavior => (is => 'ro', isa => 'Paws::EC2::AttributeValue', traits => ['NameInRequest'], request_name => 'instanceInitiatedShutdownBehavior' );
13             has InstanceType => (is => 'ro', isa => 'Paws::EC2::AttributeValue', traits => ['NameInRequest'], request_name => 'instanceType' );
14             has Kernel => (is => 'ro', isa => 'Paws::EC2::AttributeValue', traits => ['NameInRequest'], request_name => 'kernel' );
15             has Ramdisk => (is => 'ro', isa => 'Paws::EC2::AttributeValue', traits => ['NameInRequest'], request_name => 'ramdisk' );
16             has SourceDestCheck => (is => 'ro', isa => 'Paws::EC2::AttributeBooleanValue');
17             has SriovNetSupport => (is => 'ro', isa => 'Paws::EC2::AttributeValue', traits => ['NameInRequest'], request_name => 'sriovNetSupport' );
18             has UserData => (is => 'ro', isa => 'Paws::EC2::BlobAttributeValue', traits => ['NameInRequest'], request_name => 'userData' );
19             has Value => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'value' );
20              
21 1     1   6528 use MooseX::ClassAttribute;
  1         4  
  1         9  
22              
23             class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyInstanceAttribute');
24             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
25             class_has _result_key => (isa => 'Str', is => 'ro');
26             1;
27              
28             ### main pod documentation begin ###
29              
30             =head1 NAME
31              
32             Paws::EC2::ModifyInstanceAttribute - Arguments for method ModifyInstanceAttribute on Paws::EC2
33              
34             =head1 DESCRIPTION
35              
36             This class represents the parameters used for calling the method ModifyInstanceAttribute on the
37             Amazon Elastic Compute Cloud service. Use the attributes of this class
38             as arguments to method ModifyInstanceAttribute.
39              
40             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyInstanceAttribute.
41              
42             As an example:
43              
44             $service_obj->ModifyInstanceAttribute(Att1 => $value1, Att2 => $value2, ...);
45              
46             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.
47              
48             =head1 ATTRIBUTES
49              
50              
51             =head2 Attribute => Str
52              
53             The name of the attribute.
54              
55             Valid values are: C<"instanceType">, C<"kernel">, C<"ramdisk">, C<"userData">, C<"disableApiTermination">, C<"instanceInitiatedShutdownBehavior">, C<"rootDeviceName">, C<"blockDeviceMapping">, C<"productCodes">, C<"sourceDestCheck">, C<"groupSet">, C<"ebsOptimized">, C<"sriovNetSupport">, C<"enaSupport">
56              
57             =head2 BlockDeviceMappings => ArrayRef[L<Paws::EC2::InstanceBlockDeviceMappingSpecification>]
58              
59             Modifies the C<DeleteOnTermination> attribute for volumes that are
60             currently attached. The volume must be owned by the caller. If no value
61             is specified for C<DeleteOnTermination>, the default is C<true> and the
62             volume is deleted when the instance is terminated.
63              
64             To add instance store volumes to an Amazon EBS-backed instance, you
65             must add them when you launch the instance. For more information, see
66             Updating the Block Device Mapping when Launching an Instance in the
67             I<Amazon Elastic Compute Cloud User Guide>.
68              
69              
70              
71             =head2 DisableApiTermination => L<Paws::EC2::AttributeBooleanValue>
72              
73             If the value is C<true>, you can't terminate the instance using the
74             Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use
75             this parameter for Spot Instances.
76              
77              
78              
79             =head2 DryRun => Bool
80              
81             Checks whether you have the required permissions for the action,
82             without actually making the request, and provides an error response. If
83             you have the required permissions, the error response is
84             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
85              
86              
87              
88             =head2 EbsOptimized => L<Paws::EC2::AttributeBooleanValue>
89              
90             Specifies whether the instance is optimized for Amazon EBS I/O. This
91             optimization provides dedicated throughput to Amazon EBS and an
92             optimized configuration stack to provide optimal EBS I/O performance.
93             This optimization isn't available with all instance types. Additional
94             usage charges apply when using an EBS Optimized instance.
95              
96              
97              
98             =head2 EnaSupport => L<Paws::EC2::AttributeBooleanValue>
99              
100             Set to C<true> to enable enhanced networking with ENA for the instance.
101              
102             This option is supported only for HVM instances. Specifying this option
103             with a PV instance can make it unreachable.
104              
105              
106              
107             =head2 Groups => ArrayRef[Str|Undef]
108              
109             [EC2-VPC] Changes the security groups of the instance. You must specify
110             at least one security group, even if it's just the default security
111             group for the VPC. You must specify the security group ID, not the
112             security group name.
113              
114              
115              
116             =head2 B<REQUIRED> InstanceId => Str
117              
118             The ID of the instance.
119              
120              
121              
122             =head2 InstanceInitiatedShutdownBehavior => L<Paws::EC2::AttributeValue>
123              
124             Specifies whether an instance stops or terminates when you initiate
125             shutdown from the instance (using the operating system command for
126             system shutdown).
127              
128              
129              
130             =head2 InstanceType => L<Paws::EC2::AttributeValue>
131              
132             Changes the instance type to the specified value. For more information,
133             see Instance Types. If the instance type is not valid, the error
134             returned is C<InvalidInstanceAttributeValue>.
135              
136              
137              
138             =head2 Kernel => L<Paws::EC2::AttributeValue>
139              
140             Changes the instance's kernel to the specified value. We recommend that
141             you use PV-GRUB instead of kernels and RAM disks. For more information,
142             see PV-GRUB.
143              
144              
145              
146             =head2 Ramdisk => L<Paws::EC2::AttributeValue>
147              
148             Changes the instance's RAM disk to the specified value. We recommend
149             that you use PV-GRUB instead of kernels and RAM disks. For more
150             information, see PV-GRUB.
151              
152              
153              
154             =head2 SourceDestCheck => L<Paws::EC2::AttributeBooleanValue>
155              
156             Specifies whether source/destination checking is enabled. A value of
157             C<true> means that checking is enabled, and C<false> means that
158             checking is disabled. This value must be C<false> for a NAT instance to
159             perform NAT.
160              
161              
162              
163             =head2 SriovNetSupport => L<Paws::EC2::AttributeValue>
164              
165             Set to C<simple> to enable enhanced networking with the Intel 82599
166             Virtual Function interface for the instance.
167              
168             There is no way to disable enhanced networking with the Intel 82599
169             Virtual Function interface at this time.
170              
171             This option is supported only for HVM instances. Specifying this option
172             with a PV instance can make it unreachable.
173              
174              
175              
176             =head2 UserData => L<Paws::EC2::BlobAttributeValue>
177              
178             Changes the instance's user data to the specified value. If you are
179             using an AWS SDK or command line tool, base64-encoding is performed for
180             you, and you can load the text from a file. Otherwise, you must provide
181             base64-encoded text.
182              
183              
184              
185             =head2 Value => Str
186              
187             A new value for the attribute. Use only with the C<kernel>, C<ramdisk>,
188             C<userData>, C<disableApiTermination>, or
189             C<instanceInitiatedShutdownBehavior> attribute.
190              
191              
192              
193              
194             =head1 SEE ALSO
195              
196             This class forms part of L<Paws>, documenting arguments for method ModifyInstanceAttribute in L<Paws::EC2>
197              
198             =head1 BUGS and CONTRIBUTIONS
199              
200             The source code is located here: https://github.com/pplu/aws-sdk-perl
201              
202             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
203              
204             =cut
205