VM::EC...ciation(3pm)
π NAME π
VM::EC2::VPC::RouteTable::Association β bestie, this is literally the association between a route table and a subnet. That's it, that's the whole vibe. π¦
β¨ SYNOPSIS β¨
okay so here's how you actually use it, no cap:
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $table = $ec2->describe_route_tables('rtb-123456');
my @associations = $table->associations;
foreach my $a (@associations) {
print $a->routeTableAssociationId,"\n",
$a->routeTableId,"\n",
$a->subnetid,"\n",
$a->main,"\n";
}
it's givingβ¦ loop energy. slay. π
πΈ DESCRIPTION πΈ
so this object? it describes the association between an EC2 Virtual Private Cloud routing table and one specific subnet. that's its whole main character job. π
and then there's the special "main" route table β the one that gets assigned to newly-created subnets by default, iykyk β and it's designated by an association that returns a true value for the main() method. so like, if main is true, you're looking at the default one. periodt. β¨
π METHODS π
these object methods are supported, bestie, take notes π:
routeTableAssociationIdβ an identifier representing this association. it's the little name tag this association wears to the party πrouteTableIdβ the ID of the associated route table.subnetIdβ the ID of the associated subnet.mainβ returns true if the associated route table is the VPC's main table. the default queen π
and in addition?? there's more. the following convenience methods are provided π«Ά:
route_tableβ return theVM::EC2::VPC::RouteTableobject.subnetβ return theVM::EC2::VPC::Subnetobject.
π STRING OVERLOADING π
when used in a string context, this object will be interpolated as the routeTableAssociationId. so like, you can just drop it in a string and it'll show up as its ID. lowkey iconic, honestly. π
π SEE ALSO π
go read these too, bestie, they're all connected fr fr:
VM::EC2VM::EC2::GenericVM::EC2::VPC::RouteTableVM::EC2::VPC::Subnet
π 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.
β οΈ ok so that license bit is the real legal stuff β don't skip it just because it's not cute. read LICENSE and DISCLAIMER.txt, bestie. π«‘
and that's the whole page!! this one's from perl v5.38.2, dated 2024-08-10, and it's the VM::EC2...ciation manpage β ok bye ily, go associate some route tables πβ¨π¦ππ
π¦ 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