File Coverage

blib/lib/Paws/EC2/RegisterImage.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::RegisterImage;
3 1     1   641 use Moose;
  1     1   4  
  1         10  
  1         723  
  1         3  
  1         8  
4             has Architecture => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'architecture' );
5             has BillingProducts => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'BillingProduct' );
6             has BlockDeviceMappings => (is => 'ro', isa => 'ArrayRef[Paws::EC2::BlockDeviceMapping]', traits => ['NameInRequest'], request_name => 'BlockDeviceMapping' );
7             has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
8             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
9             has EnaSupport => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'enaSupport' );
10             has ImageLocation => (is => 'ro', isa => 'Str');
11             has KernelId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'kernelId' );
12             has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' , required => 1);
13             has RamdiskId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'ramdiskId' );
14             has RootDeviceName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'rootDeviceName' );
15             has SriovNetSupport => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sriovNetSupport' );
16             has VirtualizationType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'virtualizationType' );
17              
18 1     1   7180 use MooseX::ClassAttribute;
  1     1   3  
  1         9  
  1         8745  
  1         4  
  1         8  
19              
20             class_has _api_call => (isa => 'Str', is => 'ro', default => 'RegisterImage');
21             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::RegisterImageResult');
22             class_has _result_key => (isa => 'Str', is => 'ro');
23             1;
24              
25             ### main pod documentation begin ###
26              
27             =head1 NAME
28              
29             Paws::EC2::RegisterImage - Arguments for method RegisterImage on Paws::EC2
30              
31             =head1 DESCRIPTION
32              
33             This class represents the parameters used for calling the method RegisterImage on the
34             Amazon Elastic Compute Cloud service. Use the attributes of this class
35             as arguments to method RegisterImage.
36              
37             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RegisterImage.
38              
39             As an example:
40              
41             $service_obj->RegisterImage(Att1 => $value1, Att2 => $value2, ...);
42              
43             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.
44              
45             =head1 ATTRIBUTES
46              
47              
48             =head2 Architecture => Str
49              
50             The architecture of the AMI.
51              
52             Default: For Amazon EBS-backed AMIs, C<i386>. For instance store-backed
53             AMIs, the architecture specified in the manifest file.
54              
55             Valid values are: C<"i386">, C<"x86_64">
56              
57             =head2 BillingProducts => ArrayRef[Str|Undef]
58              
59             The billing product codes. Your account must be authorized to specify
60             billing product codes. Otherwise, you can use the AWS Marketplace to
61             bill for the use of an AMI.
62              
63              
64              
65             =head2 BlockDeviceMappings => ArrayRef[L<Paws::EC2::BlockDeviceMapping>]
66              
67             One or more block device mapping entries.
68              
69              
70              
71             =head2 Description => Str
72              
73             A description for your AMI.
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 EnaSupport => Bool
87              
88             Set to C<true> to enable enhanced networking with ENA for the AMI and
89             any instances that you launch from the AMI.
90              
91             This option is supported only for HVM AMIs. Specifying this option with
92             a PV AMI can make instances launched from the AMI unreachable.
93              
94              
95              
96             =head2 ImageLocation => Str
97              
98             The full path to your AMI manifest in Amazon S3 storage.
99              
100              
101              
102             =head2 KernelId => Str
103              
104             The ID of the kernel.
105              
106              
107              
108             =head2 B<REQUIRED> Name => Str
109              
110             A name for your AMI.
111              
112             Constraints: 3-128 alphanumeric characters, parentheses (()), square
113             brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single
114             quotes ('), at-signs (@), or underscores(_)
115              
116              
117              
118             =head2 RamdiskId => Str
119              
120             The ID of the RAM disk.
121              
122              
123              
124             =head2 RootDeviceName => Str
125              
126             The name of the root device (for example, C</dev/sda1>, or
127             C</dev/xvda>).
128              
129              
130              
131             =head2 SriovNetSupport => Str
132              
133             Set to C<simple> to enable enhanced networking with the Intel 82599
134             Virtual Function interface for the AMI and any instances that you
135             launch from the AMI.
136              
137             There is no way to disable C<sriovNetSupport> at this time.
138              
139             This option is supported only for HVM AMIs. Specifying this option with
140             a PV AMI can make instances launched from the AMI unreachable.
141              
142              
143              
144             =head2 VirtualizationType => Str
145              
146             The type of virtualization.
147              
148             Default: C<paravirtual>
149              
150              
151              
152              
153             =head1 SEE ALSO
154              
155             This class forms part of L<Paws>, documenting arguments for method RegisterImage in L<Paws::EC2>
156              
157             =head1 BUGS and CONTRIBUTIONS
158              
159             The source code is located here: https://github.com/pplu/aws-sdk-perl
160              
161             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
162              
163             =cut
164