Skip to content

Simple Perl interface for the Amazon Direct Connect API

License

Notifications You must be signed in to change notification settings

megaport/p5-net-amazon-directconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Net-Amazon-DirectConnect

This is a simple Perl interface to the Amazon Direct Connect API.

Usage

use Net::Amazon::DirectConnect;

my $dc = Net::Amazon::DirectConnect->new;
# List connections
my $connections = $dc->action('DescribeConnections');

foreach my $dxcon (@{$connections->{connections}}) {
    say "$dxcon->{connectionId} -> $dxcon->{connectionName}";

    # List Virtual Interfaces
    my $virtual_interfaces = $dc->action('DescribeVirtualInterfaces', connectionId => $dxcon->{connectionId});
    foreach my $vif (@{$virtual_interfaces->{virtualInterfaces}}) {
        say "  $vif->{connectionId}";
    }
}

TODO

  • Better documentation
  • More tests
  • Package for CPAN

INSTALLATION

To install this module, run the following commands:

perl Build.PL
./Build
./Build test
./Build install

SUPPORT AND DOCUMENTATION

After installing, you might be able to find documentation for this module with the perldoc command.

perldoc Net::Amazon::DirectConnect