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

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

πŸ’– VM::EC2::DB::EC2SecurityGroup β€” the tea β˜•

okay bestie, so this little icon lives in the User Contributed Perl Documentation manual (that's the 3pm bit, iykyk), and it's giving very specific but very useful. Let's get into it 🫢


✨ NAME ✨

VM::EC2::DB::EC2SecurityGroup β€” literally an RDS Database EC2 Security Group. that's the whole thing. that's the vibe. πŸ’…


✨ SYNOPSIS ✨

here's how you actually use it, no gatekeeping:

use VM::EC2;

$ec2 = VM::EC2->new(...);
$group = $ec2->authorize_db_security_group_ingress(-db_security_group_name => 'dbgroup',
                                                   -ec2_security_group_name => 'ec2group',
                                                   -ec2_security_group_owner_id => '123456789123');
print $_,"\n" foreach $group->EC2SecurityGroups;

so you spin up your $ec2 object, you call authorize_db_security_group_ingress with your -db_security_group_name, your -ec2_security_group_name and your -ec2_security_group_owner_id, and then you loop over $group->EC2SecurityGroups and print each one with a newline. clean. slay. 🌸


✨ DESCRIPTION ✨

okay so real talk: this object represents an EC2 Security Group that is authorized in a DB Security Group. that's it. that's the assignment. it's the lil' container holding the info about which EC2 security group got the green light inside your DB security group. πŸŽ€


✨ STRING OVERLOADING ✨

the way this object just knows what to do in string context 😭 when you use it as a string, it returns the EC2 Security Group ID. so you can just drop it in a print or interpolate it and it hands you the ID like the main character it is. πŸ‘‘


✨ SEE ALSO ✨

go check out its friends, fr fr:

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::DB::Instance

✨ AUTHOR ✨

Lance Kinley <lkinley@loyaltymethods.com> πŸ’œ

Copyright (c) 2013 Loyalty Methods, Inc.

okay legal bestie moment, listen up πŸ“’ 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. read the fine print, it matters 🫢

and that's a wrap on this page, bestie ✨ it was shipped as part of perl v5.38.2 and dated 2024-08-10 β€” go forth and authorize those security groups, you absolute legend πŸ’–πŸŒˆπŸ’…

πŸ“¦ where this page comes from