VM::EC...Gateway(3pm)

πŸ“¦
version 1.28 Β· 7 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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 of VM::EC2::VPC::InternetGateway::Attachment objects, 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 a VM::EC2::VPC object, either one slays). ✨
  • detach($vpc) β€” detach this gateway from the VPC you point at (again: ID or VM::EC2::VPC object, 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::EC2
  • VM::EC2::Generic
  • VM::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