1VM::EC2::Instance::StatUusse:r:ECvoennttr(i3b)uted PerlVDMo:c:uEmCe2n:t:aItnisotnance::Status::Event(3)
2
3
4

NAME

6       VM::EC2::Instance::Status::Event - Object describing a scheduled
7       instance maintenance event
8

SYNOPSIS

10        @status_items = $ec2->describe_instance_status();
11        for my $i (@status_items) {
12           for my $event ($i->events) {
13              print $i->instance_id,': ',
14                    $event->code,' ',
15                    $event->description, ' ',
16                    $event->notBefore, ' ',
17                    $event->notAfter,"\n";
18           }
19        }
20

DESCRIPTION

22       This objects describes a scheduled maintenance event on an instance,
23       and is returned by calling the events() method of one of the status
24       item objects returned by $ec2->describe_instance_status().
25
26       NOTE: There is an inconsistency in the AWS documentation for this data
27       type. The events field is documented as being a list, but the examples
28       shown show a single object. At release time, I was unable to verify
29       which is correct and have written the code such that it will detect a
30       single value in the response object and return this as a single-element
31       list.
32

METHODS

34        code()        -- The code for this event, one of "instance-reboot",
35                           "system-reboot", "instance-retirement"
36
37        description() -- A description of the event.
38
39        notBefore()   -- The earliest scheduled start time for the event.
40
41        notAfter()    -- The latest scheduled end time for the event.
42
43       When used in a string context, this object interpolates as a string in
44       the form:
45
46        system-reboot [2011-12-05T13:00:00+0000 - 2011-12-06T13:00:00+000]
47

SEE ALSO

49       VM::EC2 VM::EC2::Generic VM::EC2::Instance VM::EC2::Instance::State
50       VM::EC2::Instance::Status VM::EC2::Instance::StatusItem
51       VM::EC2::Instance::Status::Details VM::EC2::Tag
52

AUTHOR

54       Lincoln Stein <lincoln.stein@gmail.com>.
55
56       Copyright (c) 2012 Ontario Institute for Cancer Research
57
58       This package and its accompanying libraries is free software; you can
59       redistribute it and/or modify it under the terms of the GPL (either
60       version 1, or at your option, any later version) or the Artistic
61       License 2.0.  Refer to LICENSE for the full license text. In addition,
62       please see DISCLAIMER.txt for disclaimers of warranty.
63
64
65
66perl v5.36.0                      2022-07-22VM::EC2::Instance::Status::Event(3)
Impressum