VM::EC...pcInfo(3pm)
π VM::EC2::VPC::PeeringConnection::VpcInfo β the tea β
okay so bestie, you're looking at a page from the User Contributed Perl Documentation set, and the module in question is VM::EC2::VPC::PeeringConnection::VpcInfo. yes that's a lot of colons, she's got main character energy and a very long name, we love that for her π
β¨ NAME β¨
VM::EC2::VPC::PeeringConnection::VpcInfo β Virtual Private Cloud Peering Connection VPC Information
like. it holds the VPC info that lives inside an Amazon EC2 VPC Peering Connection. that's the whole vibe π¦
β¨ SYNOPSIS β¨
here's how you actually use her:
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $pcx = $ec2->describe_vpc_peering_connections(-vpc_peering_connection_id=>'pcx-12345678');
my $req_vpc = $pcx->requesterVpcInfo;
my $acc_vpc = $pcx->accepterVpcInfo;
print $req_vpc->vpcId,' requested to connect to ',$acc_vpc->vpcId,"\n";
okay so you spin up your VM::EC2 object, you go grab the peering connection by its id, and then you pull requesterVpcInfo and accepterVpcInfo off it. then you print who's asking to connect to who. iconic. no cap π₯
β¨ DESCRIPTION β¨
this object represents VPC Information from an Amazon EC2 VPC Peering Connection. that's it, that's the whole job, and she does it beautifully π
β¨ METHODS β¨
these object methods are supported, bestie β memorize them, there's literally only three:
vpcIdβ the ID of the VPC πownerIdβ the AWS account ID of the VPC owner πcidrBlockβ the CIDR block for the VPC π
β¨ STRING OVERLOADING β¨
when you use this object in a string context, it interpolates the VpcId. so you can just drop her straight into a string and she'll show up with her VPC id. periodt π
β¨
β¨ SEE ALSO β¨
go check out her friends, they're all slaying too:
VM::EC2VM::EC2::GenericVM::EC2::VPC
β¨ AUTHOR β¨
written by Lance Kinley <lkinley@loyaltymethods.com>. π«Ά
copyright (c) 2014 Loyalty Methods, Inc.
okay so the legal tea, and you genuinely need to know this: 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 toLICENSEfor the full license text. also, please seeDISCLAIMER.txtfor disclaimers of warranty. fr fr, go read those. π
and that's the whole page bestie!! this one's from perl v5.38.2, dated 2024-08-10 β so she's got a lil vintage moment going on but she still eats πβ¨π bye ily, go peer some VPCs π¦
π¦ 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