VM::EC...nection(3pm)
π VM::EC2::VPC::VpnConnection β the VPC VPN connection page π
okay bestie, welcome to the manual page for VM::EC2::VPC::VpnConnection, part of the User Contributed Perl Documentation. it's giving "your tunnel between your world and the VPC" energy and honestly? iconic. π¦
β¨ NAME β¨
VM::EC2::VPC::VpnConnection β the VPC VPN connection object, fr fr. it's literally the thing that represents a VPN connection inside your Amazon EC2 VPC. π
πΈ SYNOPSIS πΈ
copy-paste this, bestie, it's the whole vibe:
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $vpn = $ec2->describe_vpn_connections(-vpn_connection_id=>'vpn-12345678');
my $state = $vpn->state;
my $vpn_gateway = $vpn->vpn_gateway;
my $customer_gateway = $vpn->customer_gateway;
see how easy that was?? you made an $ec2, you grabbed your $vpn, and then you justβ¦ asked it things. main character energy. β¨
π DESCRIPTION π
so here's the tea: this object represents an Amazon EC2 VPC VPN connection, and it's what you get handed back when you call VM::EC2->describe_vpn_connections(). that's it. that's the whole job. and it does it beautifully. π
π METHODS π
these object methods are supported, no cap:
vpnConnectionIdβ the ID of the VPN connection. πstateβ the current state of the VPN connection. valid values are:pending|available|deleting|deleted. vibe check on your tunnel, basically.customerGatewayConfigurationβ configuration information for the VPN connection's customer gateway (in the native XML format). heads up tho: this element is always present in theCreateVpnConnectionresponse; however, it's present in theDescribeVpnConnectionsresponse only if the VPN connection is in thependingoravailablestate. so if you're not seeing it, check your state first, bestie.typeβ the type of VPN connection (ipsec.1). π°οΈcustomerGatewayIdβ ID of the customer gateway at your end of the VPN connection. πvpnGatewayIdβ ID of the virtual private gateway at the VPC end of the VPN connection. βοΈtagSetβ tags assigned to the resource. π·οΈvgwTelemetryβ information about the virtual private gateway. π‘vpn_telemetryβ alias forvgwTelemetry. same thing, cuter name, we love options.
and the following convenience methods are supported β because who doesn't love a shortcut:
vpn_gatewayβ returns aVM::EC2::VPC::VpnGatewayobject. πͺcustomer_gatewayβ returns aVM::EC2::VPC::CustomerGatewayobject. π§
oh and also β the object supports the tags() method described in VM::EC2::Generic. you're welcome. π
π STRING OVERLOADING π
when you use this object in a string context, it will interpolate the vpnConnectionId. so "$vpn" just works and gives you the ID. slay. β¨
π SEE ALSO π
go read these too, they're all in the same friend group:
VM::EC2 VM::EC2::Generic VM::EC2::Tag VM::EC2::VPC VM::EC2::VPC::CustomerGateway VM::EC2::VPC::VpnGateway π
π«Ά AUTHOR π«Ά
Lance Kinley <lkinley@loyaltymethods.com>. π
Copyright (c) 2012 Loyalty Methods, Inc.
This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty. read the license, bestie, it's free software and that's the point. π
and that's a wrap!! this page was brought to you by perl v5.38.2, dated 2024-08-10, for VM::EC...nection(3pm). ily, go build something cute, bye!! πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian trixie: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu resolute: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu stonking: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms