EC2/BundleInstanceResponse.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« EC2/BlockDeviceMapping.pm ↑ Summary EC2/ConfirmProductInstanceResponse.pm »
1 package Net::Amazon::EC2::BundleInstanceResponse;
2 2 $Net::Amazon::EC2::BundleInstanceResponse::VERSION = '0.36';
3 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 =head1 NAME
6  
7 Net::Amazon::EC2::BundleInstanceResponse
8  
9 =head1 DESCRIPTION
10  
11 A class representing a bundled instance
12  
13 =head1 ATTRIBUTES
14  
15 =over
16  
17 =item instance_id (required)
18  
19 Instance associated with this bundle task.
20  
21 =item bundle_id (required)
22  
23 Identifier for this task.
24  
25 =item state (required)
26  
27 The state of this bundling task.
28  
29 =item start_time (required)
30  
31 The time the bundle task started
32  
33 =item update_time (required)
34  
35 The time of the most recent update for the bundle.
36  
37 =item progress (required)
38  
39 A percentage description of the progress of the task, such as 94%.
40  
41 =item s3_bucket (required)
42  
43 The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
44  
45 =item s3_prefix (required)
46  
47 Specifies the beginning of the file name of the AMI.
48  
49 =item s3_aws_access_key_id (required)
50  
51 The Access Key ID of the owner of the Amazon S3 bucket.
52  
53 =item s3_upload_policy (required)
54  
55 An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on the user's behalf.
56  
57 =item s3_policy_upload_signature (required)
58  
59 The signature of the Base64 encoded JSON document.
60  
61 =item bundle_error_code (optional)
62  
63 Error code for bundle failure.
64  
65 =item bundle_error_message (optional)
66  
67 Error message associated with bundle failure.
68  
69 =back
70  
71 =cut
72  
73 2 has 'instance_id' => ( is => 'ro', isa => 'Str', required => 1 );
74 2 has 'bundle_id' => ( is => 'ro', isa => 'Str', required => 1 );
75 2 has 'state' => ( is => 'ro', isa => 'Str', required => 1 );
76 2 has 'start_time' => ( is => 'ro', isa => 'Str', required => 1 );
77 2 has 'update_time' => ( is => 'ro', isa => 'Str', required => 1 );
78 2 has 'progress' => ( is => 'ro', isa => 'Str', required => 1 );
79 2 has 's3_bucket' => ( is => 'ro', isa => 'Str', required => 1 );
80 2 has 's3_prefix' => ( is => 'ro', isa => 'Str', required => 1 );
81 2 has 's3_aws_access_key_id' => ( is => 'ro', isa => 'Str', required => 1 );
82 2 has 's3_upload_policy' => ( is => 'ro', isa => 'Str', required => 1 );
83 2 has 's3_policy_upload_signature' => ( is => 'ro', isa => 'Str', required => 1 );
84 2 has 'bundle_error_code' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
85 2 has 'bundle_error_message' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
86  
87 2 __PACKAGE__->meta->make_immutable();
88  
89 =head1 AUTHOR
90  
91 Jeff Kim <cpan@chosec.com>
92  
93 =head1 COPYRIGHT
94  
95 Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it
96 under the same terms as Perl itself.
97  
98 =cut
99  
100 2 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
101 2 1;
« EC2/BlockDeviceMapping.pm ↑ Summary EC2/ConfirmProductInstanceResponse.pm »