File Coverage

blib/lib/Paws/EC2/EbsBlockDevice.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             package Paws::EC2::EbsBlockDevice;
2 1     1   457 use Moose;
  1     1   3  
  1         7  
  1         929  
  1         5  
  1         11  
3             has DeleteOnTermination => (is => 'ro', isa => 'Bool', request_name => 'deleteOnTermination', traits => ['NameInRequest']);
4             has Encrypted => (is => 'ro', isa => 'Bool', request_name => 'encrypted', traits => ['NameInRequest']);
5             has Iops => (is => 'ro', isa => 'Int', request_name => 'iops', traits => ['NameInRequest']);
6             has SnapshotId => (is => 'ro', isa => 'Str', request_name => 'snapshotId', traits => ['NameInRequest']);
7             has VolumeSize => (is => 'ro', isa => 'Int', request_name => 'volumeSize', traits => ['NameInRequest']);
8             has VolumeType => (is => 'ro', isa => 'Str', request_name => 'volumeType', traits => ['NameInRequest']);
9             1;
10              
11             ### main pod documentation begin ###
12              
13             =head1 NAME
14              
15             Paws::EC2::EbsBlockDevice
16              
17             =head1 USAGE
18              
19             This class represents one of two things:
20              
21             =head3 Arguments in a call to a service
22              
23             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24             Each attribute should be used as a named argument in the calls that expect this type of object.
25              
26             As an example, if Att1 is expected to be a Paws::EC2::EbsBlockDevice object:
27              
28             $service_obj->Method(Att1 => { DeleteOnTermination => $value, ..., VolumeType => $value });
29              
30             =head3 Results returned from an API call
31              
32             Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::EbsBlockDevice object:
33              
34             $result = $service_obj->Method(...);
35             $result->Att1->DeleteOnTermination
36              
37             =head1 DESCRIPTION
38              
39             This class has no description
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 DeleteOnTermination => Bool
45              
46             Indicates whether the EBS volume is deleted on instance termination.
47              
48              
49             =head2 Encrypted => Bool
50              
51             Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS
52             volumes may only be attached to instances that support Amazon EBS
53             encryption.
54              
55              
56             =head2 Iops => Int
57              
58             The number of I/O operations per second (IOPS) that the volume
59             supports. For C<io1>, this represents the number of IOPS that are
60             provisioned for the volume. For C<gp2>, this represents the baseline
61             performance of the volume and the rate at which the volume accumulates
62             I/O credits for bursting. For more information about General Purpose
63             SSD baseline performance, I/O credits, and bursting, see Amazon EBS
64             Volume Types in the I<Amazon Elastic Compute Cloud User Guide>.
65              
66             Constraint: Range is 100-20000 IOPS for C<io1> volumes and 100-10000
67             IOPS for C<gp2> volumes.
68              
69             Condition: This parameter is required for requests to create C<io1>
70             volumes; it is not used in requests to create C<gp2>, C<st1>, C<sc1>,
71             or C<standard> volumes.
72              
73              
74             =head2 SnapshotId => Str
75              
76             The ID of the snapshot.
77              
78              
79             =head2 VolumeSize => Int
80              
81             The size of the volume, in GiB.
82              
83             Constraints: 1-16384 for General Purpose SSD (C<gp2>), 4-16384 for
84             Provisioned IOPS SSD (C<io1>), 500-16384 for Throughput Optimized HDD
85             (C<st1>), 500-16384 for Cold HDD (C<sc1>), and 1-1024 for Magnetic
86             (C<standard>) volumes. If you specify a snapshot, the volume size must
87             be equal to or larger than the snapshot size.
88              
89             Default: If you're creating the volume from a snapshot and don't
90             specify a volume size, the default is the snapshot size.
91              
92              
93             =head2 VolumeType => Str
94              
95             The volume type: C<gp2>, C<io1>, C<st1>, C<sc1>, or C<standard>.
96              
97             Default: C<standard>
98              
99              
100              
101             =head1 SEE ALSO
102              
103             This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
104              
105             =head1 BUGS and CONTRIBUTIONS
106              
107             The source code is located here: https://github.com/pplu/aws-sdk-perl
108              
109             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
110              
111             =cut