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

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

πŸ’– VM::EC2::VPC::VpnGateway::Attachment β€” the manual page, but make it cute πŸ’–

okay bestie, so this is VM::EC2::VPC::VpnGateway::Attachment from the Perl user-contributed docs (3pm section, iykyk). it's the little object that holds the deets about a VPN gateway getting attached to a VPC. lowkey essential, highkey underrated. let's go 🫢


✨ NAME ✨

VM::EC2::VPC::VpnGateway::Attachment β€” it's giving "attachment of a vpn gateway to a VPC". that's the whole vibe. that's the job. πŸ’…


🌸 SYNOPSIS 🌸

here's how you actually use it, no cap:

use VM::EC2;
my $ec2      = VM::EC2->new(...);
my $gw = $ec2->describe_vpn_gateways('vpn-12345678');
my @attachments = $gw->attachments;
for my $a (@attachments) {
   print $a->vpcId,"\n",
         $a->state,"\n";
}

see how easy that was?? iconic behaviour fr fr ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: this object is literally the info packet about the attachment of an EC2 Virtual Private Cloud internet gateway to a VPC. it doesn't do a ton, it just knows things and tells you about them. main character energy, honestly. πŸ‘‘


πŸ’… METHODS πŸ’…

these object methods are supported, bestie β€” memorize them, they're on the quiz:

  • vpcId β€” the ID of the VPC πŸ’œ
  • state β€” the state of the attachment. it's one of "attaching", "attached", "detaching" and "detached". so like, it's either on its way in, here, on its way out, or gone. the full arc. 😭

plus, in addition, this object supports the following convenience method:

  • vpc β€” Return the VM::EC2::VPC object corresponding to the attachment.
ngl there's a little note trailing after that method list in the original that says "check for changes in attachment state." so like… keep an eye on it, bestie. πŸ‘€

πŸŽ€ STRING OVERLOADING πŸŽ€

when you use this object in a string context, it gets interpolated as the vpcId. so you can just drop it in a string and it'll show up as its vpcId. slay. 🌈


⭐ SEE ALSO ⭐

go read these too, they're all part of the same friend group:

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::VPC
  • VM::EC2::VPC::VpnGateway

πŸ‘‘ AUTHOR πŸ‘‘

Lincoln Stein <lincoln.stein@gmail.com>. legend behaviour. 🫢

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. πŸ’–


and that's the whole page, bestie!! πŸŽ€ this was perl v5.38.2, dated 2024-08-10, straight from the VM::EC2::VPC::VpnGateway::Attachment (3pm) manual. go forth and attach ur gateways responsibly βœ¨πŸ’…πŸ¦‹

πŸ“¦ where this page comes from