VM::EC...ateway(3pm)
π VM::EC2::VPC::VpnGateway β the perl manual page, but make it cute π
okay so bestie, this is a page from the User Contributed Perl Documentation, and it's all about VM::EC2::VPC::VpnGateway β Virtual Private Cloud VPN gateway. yes it's a mouthful, no we're not renaming it, sit with me. π
β¨ NAME β¨
VM::EC2::VPC::VpnGateway β Virtual Private Cloud VPN gateway. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
here's the little summoning ritual, copy it exactly:
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $gtwy = $ec2->describe_vpn_gateways(-vpn_gatway_id=>'vgw-12345678');
my $state = $gtwy->state;
not me noticing -vpn_gatway_id is spelled that way in here π β keep it exactly like that, do NOT "fix" it, that's the whole point. π
π« DESCRIPTION π«
this object represents an Amazon EC2 VPC route (yes, route, that's literally what it says, I don't make the rules π«Ά), and it gets handed back to you by VM::EC2->describe_internet_gateways() and ->create_internet_gateway().
it's giving "I'm a little data blob holding your VPN gateway info and I'm thriving." π
π METHODS π
these object methods are supported, and every single one of them is here, no cap:
vpnGatewayIdβ The ID of the VPN gateway.stateβ The current state of the virtual private gateway. Valid values:pending|available|deleting|deletedtypeβ The type of VPN connection the virtual private gateway supports (ipsec.1)availabilityZoneβ The Availability Zone where the virtual private gateway was created, as aVM::EC2::AvailabilityZoneobject.attachmentsβ A list of VPCs attached to the VPN gateway.tagSetβ Tags assigned to the resource.zoneβ Alias foravailabilityZone.
π the convenience methods π
because bestie deserves a shortcut:
attachmentsβ Returns a series ofVM::EC2::VPC::VpnGateway::Attachmentobjects.
π‘ heads up: attachments shows up in both lists. that's not me being chaotic, that's literally the page. iconic behavior honestly.
the object also supports the tags() method described in VM::EC2::Generic. slay. β¨
π¦ STRING OVERLOADING π¦
when you use this object in a string context, it will interpolate the vpnGatewayId. so it just becomes its ID when you stringify it. main character energy fr fr. π
β SEE ALSO β
go read these next, iykyk:
VM::EC2VM::EC2::GenericVM::EC2::TagVM::EC2::VPCVM::EC2::VPC::VpnGateway::Attachment
π 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.
π«Ά so basically: free to use, share, remix β just readLICENSEandDISCLAIMER.txtlike a good citizen. no cap.
and that's the whole page, bestie!! this was documented with perl v5.38.2 and dated 2024-08-10, so if you're reading this, say thank you to the 2024-08-10 version of the docs. πβ¨π bye now, go describe some gateways. πΈπ¦
π¦ 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