File Coverage

blib/lib/Paws/EC2/CreateImage.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::CreateImage;
3 1     1   586 use Moose;
  1     1   3  
  1         7  
  1         664  
  1         3  
  1         11  
4             has BlockDeviceMappings => (is => 'ro', isa => 'ArrayRef[Paws::EC2::BlockDeviceMapping]', traits => ['NameInRequest'], request_name => 'blockDeviceMapping' );
5             has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
6             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
7             has InstanceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'instanceId' , required => 1);
8             has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' , required => 1);
9             has NoReboot => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'noReboot' );
10              
11 1     1   7683 use MooseX::ClassAttribute;
  1     1   2  
  1         8  
  1         6908  
  1         3  
  1         11  
12              
13             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateImage');
14             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateImageResult');
15             class_has _result_key => (isa => 'Str', is => 'ro');
16             1;
17              
18             ### main pod documentation begin ###
19              
20             =head1 NAME
21              
22             Paws::EC2::CreateImage - Arguments for method CreateImage on Paws::EC2
23              
24             =head1 DESCRIPTION
25              
26             This class represents the parameters used for calling the method CreateImage on the
27             Amazon Elastic Compute Cloud service. Use the attributes of this class
28             as arguments to method CreateImage.
29              
30             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateImage.
31              
32             As an example:
33              
34             $service_obj->CreateImage(Att1 => $value1, Att2 => $value2, ...);
35              
36             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.
37              
38             =head1 ATTRIBUTES
39              
40              
41             =head2 BlockDeviceMappings => ArrayRef[L<Paws::EC2::BlockDeviceMapping>]
42              
43             Information about one or more block device mappings.
44              
45              
46              
47             =head2 Description => Str
48              
49             A description for the new image.
50              
51              
52              
53             =head2 DryRun => Bool
54              
55             Checks whether you have the required permissions for the action,
56             without actually making the request, and provides an error response. If
57             you have the required permissions, the error response is
58             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
59              
60              
61              
62             =head2 B<REQUIRED> InstanceId => Str
63              
64             The ID of the instance.
65              
66              
67              
68             =head2 B<REQUIRED> Name => Str
69              
70             A name for the new image.
71              
72             Constraints: 3-128 alphanumeric characters, parentheses (()), square
73             brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single
74             quotes ('), at-signs (@), or underscores(_)
75              
76              
77              
78             =head2 NoReboot => Bool
79              
80             By default, Amazon EC2 attempts to shut down and reboot the instance
81             before creating the image. If the 'No Reboot' option is set, Amazon EC2
82             doesn't shut down the instance before creating the image. When this
83             option is used, file system integrity on the created image can't be
84             guaranteed.
85              
86              
87              
88              
89             =head1 SEE ALSO
90              
91             This class forms part of L<Paws>, documenting arguments for method CreateImage in L<Paws::EC2>
92              
93             =head1 BUGS and CONTRIBUTIONS
94              
95             The source code is located here: https://github.com/pplu/aws-sdk-perl
96              
97             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
98              
99             =cut
100