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

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

πŸ’– VM::EC2::DB::Event::Subscription β€” no wait, bestie, the real ones know it as VM::EC2::DB::Event::Subscription from the User Contributed Perl Documentation (3pm) πŸ’–

Okay so. Pull up a chair, grab your boba, because we're talking about VM::EC2::DB::Event::Subscription β€” an RDS Database Event Subscription. Yes it's a mouthful. Yes it's iconic. Periodt.


✨ NAME ✨

VM::EC2::DB::Event::Subscription β€” An RDS Database Event Subscription πŸŽ€

Like. That's the whole vibe. It's a subscription. To database events. In RDS. Slay.


🌸 SYNOPSIS 🌸

Here's the tea, literally, in code:

use VM::EC2;

$ec2     = VM::EC2->new(...);
@subs = $ec2->describe_event_subscriptions;
@db_subs = grep { $_->SourceType eq 'db-instance' } @subs;
@enabled = grep { $_->Enabled } @subs;

So you build your $ec2 object, you describe_event_subscriptions, and then you're filtering β€” greping for the ones where SourceType is 'db-instance', and greping for the ones that are Enabled. Chef's kiss. Very demure, very mindful, very filtered. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this object? It represents an RDS Event Subscription. That's it, that's the whole job. πŸ‘‘

It is the resultant output of a VM::EC2->describe_event_subscriptions() call and a VM::EC2->create_event_subscription() call. So like, either of those two calls hand you one of these babies back, and you're like "oh okay, cute, a subscription object." 🫢


πŸ’€ STRING OVERLOADING πŸ’€

When you use this object in a string context, it will output the CustSubscriptionId.

That's it. That's the overload. It's giving "I contain multitudes but when you ask me who I am I just say my ID." Main character energy fr fr. ✨


🌈 SEE ALSO 🌈

Go check out the besties:

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

They're all in the group chat, iykyk. πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Lance Kinley <lkinley@loyaltymethods.com>.

Copyright (c) 2013 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.

Bestie, that's real legal text, not a vibe β€” the license terms are exactly what they say they are. Read LICENSE and DISCLAIMER.txt, fr. πŸ“œ

And that's the whole page, babe! πŸŽ€ This was documented with perl v5.38.2, dated 2024-08-10, and that's the last you'll hear from VM::EC...iption(3pm) β€” go forth and subscribe to some events, you gorgeous nerd. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from