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

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

πŸ’– 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 the VM::EC2::VPC::RouteTable object.
  • subnet β€” return the VM::EC2::VPC::Subnet object.

🌈 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::EC2
  • VM::EC2::Generic
  • VM::EC2::VPC::RouteTable
  • VM::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