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

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

πŸ’– 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::EC2
  • VM::EC2::Generic
  • VM::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 to LICENSE for the full license text. also, please see DISCLAIMER.txt for 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