1VM::EC2::BlockDevice::EUBsSe(r3)Contributed Perl DocumenVtMa:t:iEoCn2::BlockDevice::EBS(3)
2
3
4

NAME

6       VM::EC2::BlockDevice::EBS - Object describing how to initialize an
7       Amazon EBS volume from an image
8

SYNOPSIS

10         use VM::EC2;
11
12         $image      = $ec2->describe_images(-image_id=>'ami-123456');
13         my @devices = $image->blockDeviceMapping;
14         for my $d (@devices) {
15           my $ebs = $d->ebs;
16           my $snapshot_id    = $ebs->snapshotId;
17           my $size           = $ebs->volumeSize;
18           my $delete         = $ebs->deleteOnTermination;
19         }
20

DESCRIPTION

22       This object is used to describe the parameters used to create an Amazon
23       EBS volume when running an image. Generally you will not call this
24       directly, as all its methods are passed through by the
25       VM::EC2::BlockDevice object returned from the blockDeviceMapping()
26       call.
27
28       See VM::EC2::BlockDevice for a simpler way to get the information
29       needed.
30
31       It is easy to confuse this with VM::EC2::BlockDevice::Mapping::EBS,
32       which describes the attachment of an existing EBS volume to an
33       instance. This class is instead used to store the parameters that will
34       be used to generate a new EBS volume when an image is launched.
35

METHODS

37       The following object methods are supported:
38
39        snapshotId  -- ID of the snapshot used to create this EBS when an
40                       instance is launched from this image.
41        volumeSize  -- Size of the EBS volume (in gigs).
42        deleteOnTermination -- Whether this EBS will be deleted when the
43                       instance terminates. Note that this will return
44                       perl 0/1 values rather than the strings "false"/"true"
45        volumeType  -- The volume type, one of "standard" or "io1"
46        iops        -- The number of I/O operations per second that the volume
47                       supports, an integer between 100 and 2000. Only valid for
48                       volumes of type "io1".
49

STRING OVERLOADING

51       NONE.
52

SEE ALSO

54       VM::EC2 VM::EC2::Generic VM::EC2::Snapshot VM::EC2::BlockDevice
55

AUTHOR

57       Lincoln Stein <lincoln.stein@gmail.com>.
58
59       Copyright (c) 2011 Ontario Institute for Cancer Research
60
61       This package and its accompanying libraries is free software; you can
62       redistribute it and/or modify it under the terms of the GPL (either
63       version 1, or at your option, any later version) or the Artistic
64       License 2.0.  Refer to LICENSE for the full license text. In addition,
65       please see DISCLAIMER.txt for disclaimers of warranty.
66
67
68
69perl v5.32.0                      2020-07-28      VM::EC2::BlockDevice::EBS(3)
Impressum