VM::EC...Gateway(3pm)
π VM::EC2::VPC::CustomerGateway β the vibe
okay bestie, welcome to the manual page for VM::EC2::VPC::CustomerGateway(3pm) π this is the lil Perl module that holds all the tea about an Amazon EC2 Virtual Private Cloud customer gateway. yes it's a lot of words. no it's not scary. let's go π
β¨ NAME β¨
VM::EC2::VPC::CustomerGateway β an object that describes an Amazon EC2 Virtual Private Cloud customer gateway. that's it, that's the whole job, and it does it beautifully π¦
πΈ SYNOPSIS πΈ
the way you literally just do this:
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $gtwy = $ec2->describe_customer_gateways(-customer_gatway_id=>'cgw-12345678');
print $gtwy->ipAddress,"\n",
$gtwy->state,"\n";
no cap, that's the whole entrance. (and yes, -customer_gatway_id is spelled exactly like that in the source β do not "fix" it, i'm begging π copy it character for character, iykyk.)
π DESCRIPTION π
so this object represents an Amazon EC2 VPC route, and you get one handed to you by VM::EC2->describe_customer_gateways() and ->create_customer_gateway(). it's giving "here's your gateway, bestie, go be a main character with it" π
π METHODS π
these object methods are supported β every single one, no skipping, periodt:
customerGatewayIdβ the ID of the customer gateway. it's the name tag of the whole situation πstateβ the current state of the customer gateway. valid values are:pending|available|deleting|deleted. it's a whole journey, honestly πtypeβ the type of VPN connection the customer gateway supports (ipsec.1).ipAddressβ the Internet-routable IP address of the customer gateway's outside interface. the outside-interface one, specifically, don't get it twisted β¨bgpAsnβ the customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). say that five times fast, fr fr πtagSetβ tags assigned to the resource. cute little labels for your stuff π·οΈ
also, the object supports the tags() method described in VM::EC2::Generic β so you get that one on the house π«Ά
π¦ STRING OVERLOADING π¦
when you use this object in a string context, it will interpolate the customerGatewayId. so it just knows how to introduce itself. iconic behaviour honestly π
π SEE ALSO π
go read these too, bestie, they're all in the same friend group:
VM::EC2VM::EC2::GenericVM::EC2::TagVM::EC2::VPC
π AUTHOR π
Lance Kinley <lkinley@loyaltymethods.com> β thank you for your service π«‘
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.
okay so real talk: that license bit matters, don't skim it.LICENSEandDISCLAIMER.txtare both there for a reason π
and that's the whole page, bestie π this was perl v5.38.2, dated 2024-08-10, and you absolutely ate by reading to the end. slay, go describe some customer 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