File Coverage

blib/lib/Paws/EC2/ModifyVolume.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::ModifyVolume;
3 1     1   484 use Moose;
  1         2  
  1         9  
4             has DryRun => (is => 'ro', isa => 'Bool');
5             has Iops => (is => 'ro', isa => 'Int');
6             has Size => (is => 'ro', isa => 'Int');
7             has VolumeId => (is => 'ro', isa => 'Str', required => 1);
8             has VolumeType => (is => 'ro', isa => 'Str');
9              
10 1     1   7416 use MooseX::ClassAttribute;
  1         3  
  1         10  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyVolume');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::ModifyVolumeResult');
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::ModifyVolume - Arguments for method ModifyVolume on Paws::EC2
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method ModifyVolume on the
26             Amazon Elastic Compute Cloud service. Use the attributes of this class
27             as arguments to method ModifyVolume.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyVolume.
30              
31             As an example:
32              
33             $service_obj->ModifyVolume(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 DryRun => Bool
41              
42             Checks whether you have the required permissions for the action,
43             without actually making the request, and provides an error response. If
44             you have the required permissions, the error response is
45             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
46              
47              
48              
49             =head2 Iops => Int
50              
51             Target IOPS rate of the volume to be modified.
52              
53             Only valid for Provisioned IOPS SSD (C<io1>) volumes. For more
54             information about C<io1> IOPS configuration, see
55             http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops.
56              
57             Default: If no IOPS value is specified, the existing value is retained.
58              
59              
60              
61             =head2 Size => Int
62              
63             Target size in GiB of the volume to be modified. Target volume size
64             must be greater than or equal to than the existing size of the volume.
65             For information about available EBS volume sizes, see
66             http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html.
67              
68             Default: If no size is specified, the existing size is retained.
69              
70              
71              
72             =head2 B<REQUIRED> VolumeId => Str
73              
74              
75              
76              
77              
78             =head2 VolumeType => Str
79              
80             Target EBS volume type of the volume to be modified
81              
82             The API does not support modifications for volume type C<standard>. You
83             also cannot change the type of a volume to C<standard>.
84              
85             Default: If no type is specified, the existing type is retained.
86              
87             Valid values are: C<"standard">, C<"io1">, C<"gp2">, C<"sc1">, C<"st1">
88              
89              
90             =head1 SEE ALSO
91              
92             This class forms part of L<Paws>, documenting arguments for method ModifyVolume in L<Paws::EC2>
93              
94             =head1 BUGS and CONTRIBUTIONS
95              
96             The source code is located here: https://github.com/pplu/aws-sdk-perl
97              
98             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
99              
100             =cut
101