| 1 | |||
| 2 | package Paws::EC2::BundleInstance; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' ); | |
| 5 | 1 | has InstanceId => (is => 'ro', isa => 'Str', required => 1); | |
| 6 | 1 | has Storage => (is => 'ro', isa => 'Paws::EC2::Storage', required => 1); | |
| 7 | |||
| 8 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'BundleInstance'); | |
| 11 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::BundleInstanceResult'); | |
| 12 | 1 | class_has _result_key => (isa => 'Str', is => 'ro'); | |
| 13 | 1 | 1; | |
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::EC2::BundleInstance - Arguments for method BundleInstance on L<Paws::EC2> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method BundleInstance on the | ||
| 24 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 25 | as arguments to method BundleInstance. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to BundleInstance. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $ec2 = Paws->service('EC2'); | ||
| 32 | my $BundleInstanceResult = $ec2->BundleInstance( | ||
| 33 | InstanceId => 'MyInstanceId', | ||
| 34 | Storage => { | ||
| 35 | S3 => { | ||
| 36 | AWSAccessKeyId => 'MyString', # OPTIONAL | ||
| 37 | Bucket => 'MyString', # OPTIONAL | ||
| 38 | Prefix => 'MyString', # OPTIONAL | ||
| 39 | UploadPolicy => 'BlobBlob', # OPTIONAL | ||
| 40 | UploadPolicySignature => 'MyString', # OPTIONAL | ||
| 41 | }, # OPTIONAL | ||
| 42 | }, | ||
| 43 | DryRun => 1, # OPTIONAL | ||
| 44 | ); | ||
| 45 | |||
| 46 | # Results: | ||
| 47 | my $BundleTask = $BundleInstanceResult->BundleTask; | ||
| 48 | |||
| 49 | # Returns a L<Paws::EC2::BundleInstanceResult> object. | ||
| 50 | |||
| 51 | 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. | ||
| 52 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/BundleInstance> | ||
| 53 | |||
| 54 | =head1 ATTRIBUTES | ||
| 55 | |||
| 56 | |||
| 57 | =head2 DryRun => Bool | ||
| 58 | |||
| 59 | Checks whether you have the required permissions for the action, | ||
| 60 | without actually making the request, and provides an error response. If | ||
| 61 | you have the required permissions, the error response is | ||
| 62 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | =head2 B<REQUIRED> InstanceId => Str | ||
| 67 | |||
| 68 | The ID of the instance to bundle. | ||
| 69 | |||
| 70 | Type: String | ||
| 71 | |||
| 72 | Default: None | ||
| 73 | |||
| 74 | Required: Yes | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head2 B<REQUIRED> Storage => L<Paws::EC2::Storage> | ||
| 79 | |||
| 80 | The bucket in which to store the AMI. You can specify a bucket that you | ||
| 81 | already own or a new bucket that Amazon EC2 creates on your behalf. If | ||
| 82 | you specify a bucket that belongs to someone else, Amazon EC2 returns | ||
| 83 | an error. | ||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | =head1 SEE ALSO | ||
| 89 | |||
| 90 | This class forms part of L<Paws>, documenting arguments for method BundleInstance in L<Paws::EC2> | ||
| 91 | |||
| 92 | =head1 BUGS and CONTRIBUTIONS | ||
| 93 | |||
| 94 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 95 | |||
| 96 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 97 | |||
| 98 | =cut | ||
| 99 | |||