VM::EC...nection(3pm)
π VM::EC2::VPC::PeeringConnection π
okay bestie, so this is a page from the User Contributed Perl Documentation and it's literally all about VM::EC2::VPC::PeeringConnection β aka the little object that holds your Virtual Private Cloud Peering Connection. VPC peering?? connecting two VPCs so they can talk?? it's giving networking main character energy fr fr π
β¨ NAME β¨
VM::EC2::VPC::PeeringConnection β Virtual Private Cloud Peering Connection. no cap, that's the whole name. π«Ά
πΈ SYNOPSIS πΈ
here's the vibe check, bestie β this is how you actually use it:
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $pcx = $ec2->describe_vpc_peering_connections(-vpc_peering_connection_id=>'pcx-12345678');
my $status = $pcx->status;
see how clean that is?? you make your $ec2, you go grab the peering connection by its id, and then you just ask for the status. obsessed. π
π¦ DESCRIPTION π¦
so basically this object is an Amazon EC2 VPC peering connection. like, it represents one. and you don't even have to build it yourself β it gets handed to you by these three:
VM::EC2->describe_vpc_peering_connections()create_vpc_peering_connection()accept_vpc_peering_connection()
so if you're calling any of those, surprise, you already have one of these cuties. π
π METHODS π
these object methods are supported, and yes, every single one of them matters:
vpcPeeringConnectionIdβ the ID of the VPC peering connection πrequesterVpcInfoβ information about the requester VPCaccepterVpcInfoβ information about the accepter VPCstatusβ the status of the VPC peering connectionexpirationTimeβ the time that an unaccepted VPC peering connection will expire β°tagSetβ tags assigned to the resource.
π the convenience methods π
because we love a shortcut, these are also provided:
acceptβ accepts the peering connection request.
NOTE: must be in the 'pending-acceptance' state to be successful β οΈ
rejectβ rejects the peering connection request.
NOTE: must be in the 'pending-acceptance' state to be successful β οΈ
refreshβ refreshes the object πcurrent_statusβ refreshes the object and returns the status. super useful for checking status after callingreject()oraccept()π
also!! the object supports the tags() method described in VM::EC2::Generic. slay. β¨
π§ STRING OVERLOADING π§
when you use this object in a string context, it will interpolate the vpcPeeringConnectionId. so like, it just knows how to be a string. iconic behavior honestly. π
π SEE ALSO π
go read these too, they're the friend group:
VM::EC2VM::EC2::GenericVM::EC2::TagVM::EC2::VPC
π AUTHOR π
Lance Kinley <lkinley@loyaltymethods.com>.
Copyright (c) 2014 Loyalty Methods, Inc.
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.
okay that's the whole page bestie, every single fact preserved, nothing skipped, we ate and left no crumbs π
perl v5.38.2 Β· 2024-08-10 β mwah, that's a wrap, go peer some VPCs 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