1VM::EC2::VPC::VpnGatewaUys:e:rAtCtoancthrmiebnutt(e3dVpMmP:)e:rElC2D:o:cVuPmCe:n:tVaptniGoanteway::Attachment(3pm)
2
3
4
6 VM::EC2::VPC::VpnGateway::Attachment -- Attachment of a vpn gateway to
7 a VPC
8
10 use VM::EC2;
11 my $ec2 = VM::EC2->new(...);
12 my $gw = $ec2->describe_vpn_gateways('vpn-12345678');
13 my @attachments = $gw->attachments;
14 for my $a (@attachments) {
15 print $a->vpcId,"\n",
16 $a->state,"\n";
17 }
18
20 This object provides information about the attachment of a EC2 Virtual
21 Private Cloud internet gateway to a VPC.
22
24 These object methods are supported:
25
26 vpcId -- the ID of the VPC
27 state -- the state of the attachment; one of "attaching", "attached",
28 "detaching" and "detached"
29
30 In addition, this object supports the following convenience method:
31
32 vpc -- Return the VM::EC2::VPC object corresponding to the attachment.
33 check for changes in attachment state.
34
36 When used in a string context, this object will be interpolated as the
37 vpcId.
38
40 VM::EC2 VM::EC2::Generic VM::EC2::VPC VM::EC2::VPC::VpnGateway
41
43 Lincoln Stein <lincoln.stein@gmail.com>.
44
45 Copyright (c) 2012 Ontario Institute for Cancer Research
46
47 This package and its accompanying libraries is free software; you can
48 redistribute it and/or modify it under the terms of the GPL (either
49 version 1, or at your option, any later version) or the Artistic
50 License 2.0. Refer to LICENSE for the full license text. In addition,
51 please see DISCLAIMER.txt for disclaimers of warranty.
52
53
54
55perl v5.38.0 2023V-M0:7:-E2C12::VPC::VpnGateway::Attachment(3pm)