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