VM::EC2::VPC::InternetGateway3pm
Usage
use VM::EC2;my $ec2 = VM::EC2->new(...);my @gateways = $ec2->describe_internet_gateways;for my $gw (@gateways) {print $gw->internetGatewayId,"\n";my @attachments = $gw->attachments;}
Overview
This object provides information about EC2 Virtual Private Cloud internet gateways, which, together with routing tables, allow instances within a VPC to communicate with the outside world.
Methods
These object methods are supported:
internetGatewayId -- the ID of the gatewayattachments -- An array of VM::EC2::VPC::InternetGateway::Attachmentobjects, each describing a VPC attached to this gateway.
This class supports the VM::EC2 tagging interface. See VM::EC2::Generic for information.
In addition, this object supports the following convenience methods:
attach($vpc) -- Attach this gateway to the indicated VPC (ID orVM::EC2::VPC object).detach($vpc) -- Detach this gateway from the indicated VPC (ID orVM::EC2::VPC object).refresh -- Refreshes the contents of the object, primarily tocheck for changes in attachment state.
String overloading
When used in a string context, this object will be interpolated as the internet gateway ID.
Releases
6 releases since Debian 8 (Jessie); the text changed 3 times.