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

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

πŸ’– NAME πŸ’–

VM::EC2::VPC::InternetGateway::Attachment β€” the lil' glow-up story of an internet gateway getting attached to a VPC 🫢


✨ SYNOPSIS ✨

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

okay so you grab your VM::EC2 object, pull the gateways, ask for the attachments, and boom β€” you're looping through them printing the vpcId and the state. main character energy fr fr πŸ’…


🌸 DESCRIPTION 🌸

This object is literally just the receipts πŸ“œ for when an EC2 Virtual Private Cloud internet gateway gets attached to a VPC. It holds the info about that attachment, no cap.


πŸŽ€ METHODS πŸŽ€

These object methods are supported, bestie:

  • vpcId β€” the ID of the VPC πŸ’œ
  • state β€” the state of the attachment; one of "attaching", "attached", "detaching" and "detached" πŸ¦‹

In addition, this object supports the following convenience method, and it's giving helpful:

  • vpc β€” Return the VM::EC2::VPC object corresponding to the attachment. check for changes in attachment state. πŸ‘€

🧚 STRING OVERLOADING 🧚

When used in a string context, this object will be interpolated as the vpcId. so like, "$attachment" just drops the vpcId in there. iconic ✨


🌈 SEE ALSO 🌈

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::VPC
  • VM::EC2::VPC::InternetGateway

go read those, iykyk πŸ’–


πŸ‘‘ 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. πŸ“„βœ¨


and that's the whole vibe check β€” this page came from perl v5.38.2, dated 2024-08-10, and the manual is VM::EC...achment(3pm). slay, bye bestie πŸ’…πŸ’–

πŸ“¦ where this page comes from