VM::EC...achment(3pm)
π 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 theVM::EC2::VPCobject 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::EC2VM::EC2::GenericVM::EC2::VPCVM::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
- 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