VM::EC...Gateway(3pm)
π VM::EC2::VPC::InternetGateway π
okay bestie so this is a Perl module, it's VM::EC2::VPC::InternetGateway from the 3pm manual section, and it's literally just... a VPC internet gateway. that's it. that's the whole vibe. β¨
πΈ NAME πΈ
VM::EC2::VPC::InternetGateway β it's a VPC internet gateway, bestie. that's the name, that's the game. π
π¦ SYNOPSIS π¦
okay so here's the whole thing in action, no cap:
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my @gateways = $ec2->describe_internet_gateways;
for my $gw (@gateways) {
print $gw->internetGatewayId,"\n";
my @attachments = $gw->attachments;
}
look at her go. iconic. π
π DESCRIPTION π
so like, this object hands you the tea β about EC2 Virtual Private Cloud internet gateways. and what do those do?? they work together with routing tables (the way that they're a duo fr fr) so that instances chilling inside a VPC can actually talk to the outside world. it's giving "letting the girls out of the house". π
π METHODS π
these object methods are supported, and yes you need all of them:
internetGatewayIdβ the ID of the gateway. literally just the ID. she's simple, she's effective. πattachmentsβ an array ofVM::EC2::VPC::InternetGateway::Attachmentobjects, and each one describes a VPC that's attached to this gateway. so like, a whole roster of who's attached. π«Ά
this class also supports the VM::EC2 tagging interface. go check out VM::EC2::Generic for the details on that one, iykyk. πΈ
and ALSO, because she's generous, this object supports these convenience methods too:
attach($vpc)β attach this gateway to the VPC you point at (you can pass the ID, or aVM::EC2::VPCobject, either one slays). β¨detach($vpc)β detach this gateway from the VPC you point at (again: ID orVM::EC2::VPCobject, dealer's choice). π¦refreshβ refreshes the contents of the object, and the main reason you'd do that is to check whether the attachment state changed. like a lil vibe check on your attachments. π₯
π STRING OVERLOADING π
when you use this object in a string context, it gets interpolated as the internet gateway ID. so it just turns into its own ID. main character behavior honestly. π
β SEE ALSO β
VM::EC2VM::EC2::GenericVM::EC2::VPC
go read those too, bestie, they're all connected. π§
π AUTHOR π
Lincoln Stein <lincoln.stein@gmail.com>.
Copyright (c) 2012 Ontario Institute for Cancer Research
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.
ngl the legal bit is a lot but it matters, so don't skip it. π
and that's the whole page, periodt. π this was perl v5.38.2, dated 2024-08-10, and yeah the title got squished down to VM::EC...Gateway(3pm) in the footer but we know who she really is. mwah. πβ¨
π¦ 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