VM::EC...iation(3pm)
π VM::EC2::NetworkInterface::Association(3pm) π
okay bestie, listen up β this is a page from the User Contributed Perl Documentation, and it's about VM::EC2::NetworkInterface::Association. That's a whole mouthful, i know, but it's literally just an object that represents an association of a network interface with an elastic public IP address. slay.
β¨ NAME β¨
VM::EC2::NetworkInterface::Association β Object representing an association of a network interface with an elastic public IP address π¦
πΈ SYNOPSIS πΈ
here's the vibe, copy-paste ready, no cap:
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $interface = $ec2->describe_network_interfaces('eni-12345');
my $association = $interface->association;
my $id = $association->associationId;
my $public_ip = $association->ipOwnerId;
my $address = $association->address;
look at her go π
π DESCRIPTION π
so this object gives you access to an elastic address association object, which reversibly associates an elastic public IP address with an elastic network interface (an ENI). the way it just... attaches and detaches. iconic behavior fr fr.
also pls go read VM::EC2::Generic for the methods that every single VM::EC2 object shares. they're not repeated here, bestie, they live over there. π«Ά
π METHODS π
these object methods are supported, and yes, they're all here, i'm not skipping a single one:
associationIdpublicIppublicDnsNameipOwnerIdallocationId
and in addition, this object supports the following convenience method:
address()β Returns theVM::EC2::Addressobject involved in the association. it's giving "here's the whole address object, you're welcome" π
β STRING OVERLOADING β
when you use this object in a string context, it gets interpolated as the public IP address. so you can just drop it in a string and it'll show up as the IP. main character energy tbh. π
π SEE ALSO π
VM::EC2VM::EC2::Generic
go read those too, they're the supporting cast and they ate. π
π 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.
tl;dr on the legal bit: it's free software, GPL (v1 or later, or your call, any later version) or Artistic License 2.0, your pick β but go actually readLICENSEandDISCLAIMER.txt, don't just trust me on this one. π
and that's the whole page, bestie π mwah. this was perl v5.38.2, dated 2024-08-10, and it's the VM::EC2::NetworkInterface::Association(3pm) page β go forth and associate those elastic IPs 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