1VM::EC2::VPC::InternetGUasteerwaCyo(n3t)ributed Perl DocVuMm:e:nEtCa2t:i:oVnPC::InternetGateway(3)
2
3
4
6 VM::EC2::VPC::InternetGateway -- A VPC internet gateway
7
9 use VM::EC2;
10 my $ec2 = VM::EC2->new(...);
11 my @gateways = $ec2->describe_internet_gateways;
12
13 for my $gw (@gateways) {
14 print $gw->internetGatewayId,"\n";
15 my @attachments = $gw->attachments;
16 }
17
19 This object provides information about EC2 Virtual Private Cloud
20 internet gateways, which, together with routing tables, allow instances
21 within a VPC to communicate with the outside world.
22
24 These object methods are supported:
25
26 internetGatewayId -- the ID of the gateway
27 attachments -- An array of VM::EC2::VPC::InternetGateway::Attachment
28 objects, each describing a VPC attached to this gateway.
29
30 This class supports the VM::EC2 tagging interface. See VM::EC2::Generic
31 for information.
32
33 In addition, this object supports the following convenience methods:
34
35 attach($vpc) -- Attach this gateway to the indicated VPC (ID or
36 VM::EC2::VPC object).
37 detach($vpc) -- Detach this gateway from the indicated VPC (ID or
38 VM::EC2::VPC object).
39 refresh -- Refreshes the contents of the object, primarily to
40 check for changes in attachment state.
41
43 When used in a string context, this object will be interpolated as the
44 internet gateway ID.
45
47 VM::EC2 VM::EC2::Generic VM::EC2::VPC
48
50 Lincoln Stein <lincoln.stein@gmail.com>.
51
52 Copyright (c) 2012 Ontario Institute for Cancer Research
53
54 This package and its accompanying libraries is free software; you can
55 redistribute it and/or modify it under the terms of the GPL (either
56 version 1, or at your option, any later version) or the Artistic
57 License 2.0. Refer to LICENSE for the full license text. In addition,
58 please see DISCLAIMER.txt for disclaimers of warranty.
59
60
61
62perl v5.32.0 2020-07-28 VM::EC2::VPC::InternetGateway(3)