File Coverage

blib/lib/Paws/EC2/ImportImage.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::ImportImage;
3 1     1   290 use Moose;
  1         2  
  1         5  
4             has Architecture => (is => 'ro', isa => 'Str');
5             has ClientData => (is => 'ro', isa => 'Paws::EC2::ClientData');
6             has ClientToken => (is => 'ro', isa => 'Str');
7             has Description => (is => 'ro', isa => 'Str');
8             has DiskContainers => (is => 'ro', isa => 'ArrayRef[Paws::EC2::ImageDiskContainer]', traits => ['NameInRequest'], request_name => 'DiskContainer' );
9             has DryRun => (is => 'ro', isa => 'Bool');
10             has Hypervisor => (is => 'ro', isa => 'Str');
11             has LicenseType => (is => 'ro', isa => 'Str');
12             has Platform => (is => 'ro', isa => 'Str');
13             has RoleName => (is => 'ro', isa => 'Str');
14              
15 1     1   5327 use MooseX::ClassAttribute;
  1         2  
  1         11  
16              
17             class_has _api_call => (isa => 'Str', is => 'ro', default => 'ImportImage');
18             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::ImportImageResult');
19             class_has _result_key => (isa => 'Str', is => 'ro');
20             1;
21              
22             ### main pod documentation begin ###
23              
24             =head1 NAME
25              
26             Paws::EC2::ImportImage - Arguments for method ImportImage on Paws::EC2
27              
28             =head1 DESCRIPTION
29              
30             This class represents the parameters used for calling the method ImportImage on the
31             Amazon Elastic Compute Cloud service. Use the attributes of this class
32             as arguments to method ImportImage.
33              
34             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ImportImage.
35              
36             As an example:
37              
38             $service_obj->ImportImage(Att1 => $value1, Att2 => $value2, ...);
39              
40             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.
41              
42             =head1 ATTRIBUTES
43              
44              
45             =head2 Architecture => Str
46              
47             The architecture of the virtual machine.
48              
49             Valid values: C<i386> | C<x86_64>
50              
51              
52              
53             =head2 ClientData => L<Paws::EC2::ClientData>
54              
55             The client-specific data.
56              
57              
58              
59             =head2 ClientToken => Str
60              
61             The token to enable idempotency for VM import requests.
62              
63              
64              
65             =head2 Description => Str
66              
67             A description string for the import image task.
68              
69              
70              
71             =head2 DiskContainers => ArrayRef[L<Paws::EC2::ImageDiskContainer>]
72              
73             Information about the disk containers.
74              
75              
76              
77             =head2 DryRun => Bool
78              
79             Checks whether you have the required permissions for the action,
80             without actually making the request, and provides an error response. If
81             you have the required permissions, the error response is
82             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
83              
84              
85              
86             =head2 Hypervisor => Str
87              
88             The target hypervisor platform.
89              
90             Valid values: C<xen>
91              
92              
93              
94             =head2 LicenseType => Str
95              
96             The license type to be used for the Amazon Machine Image (AMI) after
97             importing.
98              
99             B<Note:> You may only use BYOL if you have existing licenses with
100             rights to use these licenses in a third party cloud like AWS. For more
101             information, see Prerequisites in the VM Import/Export User Guide.
102              
103             Valid values: C<AWS> | C<BYOL>
104              
105              
106              
107             =head2 Platform => Str
108              
109             The operating system of the virtual machine.
110              
111             Valid values: C<Windows> | C<Linux>
112              
113              
114              
115             =head2 RoleName => Str
116              
117             The name of the role to use when not using the default role,
118             'vmimport'.
119              
120              
121              
122              
123             =head1 SEE ALSO
124              
125             This class forms part of L<Paws>, documenting arguments for method ImportImage in L<Paws::EC2>
126              
127             =head1 BUGS and CONTRIBUTIONS
128              
129             The source code is located here: https://github.com/pplu/aws-sdk-perl
130              
131             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
132              
133             =cut
134