VM::EC...:Event(3pm)
π VM::EC2::Instance::Status::Event β the manual page bestie π
okay so this is VM::EC2::Instance::Status::Event from the User Contributed Perl Documentation β¨ and it's literally the object that describes a scheduled instance maintenance event on your EC2 instance. no cap, it's giving "AWS is gonna do something to your box, here's the heads up" energy π
πΈ NAME πΈ
VM::EC2::Instance::Status::Event β Object describing a scheduled instance maintenance event π
β¨ SYNOPSIS β¨
@status_items = $ec2->describe_instance_status();
for my $i (@status_items) {
for my $event ($i->events) {
print $i->instance_id,': ',
$event->code,' ',
$event->description, ' ',
$event->notBefore, ' ',
$event->notAfter,"\n";
}
}
bestie look at that loop within a loop π it's so clean, it ate fr fr π«Ά
π DESCRIPTION π
so this object describes a scheduled maintenance event on an instance, and you get it back by calling the events() method of one of the status item objects that $ec2->describe_instance_status() hands you π
π¨ NOTE: there is an inconsistency in the AWS documentation for this data type. The events field is documented as being a list, but the examples shown show a single object. At release time, the author was unable to verify which is correct, and so the code was written such that it will detect a single value in the response object and return this as a single-element list. periodt π
π¦ METHODS π¦
code()β the code for this event, one of"instance-reboot","system-reboot","instance-retirement"π₯description()β a description of the event π¬notBefore()β the earliest scheduled start time for the event β°notAfter()β the latest scheduled end time for the event β
and when you use this object in a string context, it interpolates as a string in the form:
system-reboot [2011-12-05T13:00:00+0000 - 2011-12-06T13:00:00+000]
look at her, main character energy, she just strings herself together like that π β¨
π SEE ALSO π
VM::EC2VM::EC2::GenericVM::EC2::InstanceVM::EC2::Instance::StateVM::EC2::Instance::StatusVM::EC2::Instance::StatusItemVM::EC2::Instance::Status::DetailsVM::EC2::Tag
the whole friend group fr fr π«Ά go read them too iykyk
π AUTHOR π
Lincoln Stein <lincoln.stein@gmail.com> π
Copyright (c) 2012 Ontario Institute for Cancer Research
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.
π and that's the whole page bestie, no notes, iconic behavior π
this little slice of the docs is from perl v5.38.2, dated 2024-08-10, and it lives under VM::EC...:Event(3pm) in the User Contributed Perl Documentation. mwah, go forth and describe your instance statuses ππβ¨
π¦ 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