blib/lib/Paws/EC2/ImportVolume.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/EC2/ImportKeyPairResult.pm ↑ Summary blib/lib/Paws/EC2/ImportVolumeResult.pm »
1  
2 package Paws::EC2::ImportVolume;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has AvailabilityZone => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'availabilityZone' , required => 1);
5 1 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
6 1 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
7 1 has Image => (is => 'ro', isa => 'Paws::EC2::DiskImageDetail', traits => ['NameInRequest'], request_name => 'image' , required => 1);
8 1 has Volume => (is => 'ro', isa => 'Paws::EC2::VolumeDetail', traits => ['NameInRequest'], request_name => 'volume' , required => 1);
9  
10 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ImportVolume');
13 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::ImportVolumeResult');
14 1 class_has _result_key => (isa => 'Str', is => 'ro');
15 1 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::EC2::ImportVolume - Arguments for method ImportVolume on L<Paws::EC2>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method ImportVolume on the
26 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
27 as arguments to method ImportVolume.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ImportVolume.
30  
31 =head1 SYNOPSIS
32  
33 my $ec2 = Paws->service('EC2');
34 my $ImportVolumeResult = $ec2->ImportVolume(
35 AvailabilityZone => 'MyString',
36 Image => {
37 Bytes => 1,
38 Format => 'VMDK', # values: VMDK, RAW, VHD
39 ImportManifestUrl => 'MyString',
40  
41 },
42 Volume => {
43 Size => 1,
44  
45 },
46 Description => 'MyString', # OPTIONAL
47 DryRun => 1, # OPTIONAL
48 );
49  
50 # Results:
51 my $ConversionTask = $ImportVolumeResult->ConversionTask;
52  
53 # Returns a L<Paws::EC2::ImportVolumeResult> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/ImportVolume>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 B<REQUIRED> AvailabilityZone => Str
62  
63 The Availability Zone for the resulting EBS volume.
64  
65  
66  
67 =head2 Description => Str
68  
69 A description of the volume.
70  
71  
72  
73 =head2 DryRun => Bool
74  
75 Checks whether you have the required permissions for the action,
76 without actually making the request, and provides an error response. If
77 you have the required permissions, the error response is
78 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
79  
80  
81  
82 =head2 B<REQUIRED> Image => L<Paws::EC2::DiskImageDetail>
83  
84 The disk image.
85  
86  
87  
88 =head2 B<REQUIRED> Volume => L<Paws::EC2::VolumeDetail>
89  
90 The volume size.
91  
92  
93  
94  
95 =head1 SEE ALSO
96  
97 This class forms part of L<Paws>, documenting arguments for method ImportVolume in L<Paws::EC2>
98  
99 =head1 BUGS and CONTRIBUTIONS
100  
101 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
102  
103 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
104  
105 =cut
106  
« blib/lib/Paws/EC2/ImportKeyPairResult.pm ↑ Summary blib/lib/Paws/EC2/ImportVolumeResult.pm »