Amazon-EC2

 view release on metacpan or  search on metacpan

lib/Amazon/EC2.pm  view on Meta::CPAN


=head1 SYNOPSIS

 use strict;
 use warnings;
 
 use Amazon::EC2;
 use Amazon::Credentials;
 use Data::Dumper;
 
 my $ec2 = new Amazon::EC2({credentials => new Amazon::Credentials});
 
 my $result = $ec2->DescribeInstances();
 
 print Dumper($result);

=head1 DESCRIPTION

Perl interface to the Amazon EC2 API

=head1 METHODS

lib/Amazon/EC2.pm  view on Meta::CPAN

=head2 new

 new( options )

=over 5

=item region

AWS region.  default: us-east-1

=item credentials

An C<Amazon::Credentials> object.  You can specify your credentials
using this object or by setting your access keys and optional token
directly.

=item aws_secret_access_key

Your AWS secret access key.

=item aws_access_key_id

Your AWS access key id.

=item token

Optional token if your credentials were temporary (from the role or assumed role).

=back

I<Note that if no credentials are given, the constructor will behave as if you had done:>

 new Amazon::EC2({credentials => new Amazon::Credentials});

I<...which will use your default credentials. See C<Amazon::Credentials>.>

=cut

my @API_METHODS = qw/AcceptReservedInstancesExchangeQuote
		     AcceptVpcEndpointConnections
		     AcceptVpcPeeringConnection
		     AllocateAddress
		     AllocateHosts
		     AssignIpv6Addresses
		     AssignPrivateIpAddresses



( run in 0.233 second using v1.01-cache-2.11-cpan-a5abf4f5562 )