File Coverage

blib/lib/Paws/OpsWorks/WeeklyAutoScalingSchedule.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::OpsWorks::WeeklyAutoScalingSchedule;
2 1     1   665 use Moose;
  1         5  
  1         9  
3             has Friday => (is => 'ro', isa => 'Paws::OpsWorks::DailyAutoScalingSchedule');
4             has Monday => (is => 'ro', isa => 'Paws::OpsWorks::DailyAutoScalingSchedule');
5             has Saturday => (is => 'ro', isa => 'Paws::OpsWorks::DailyAutoScalingSchedule');
6             has Sunday => (is => 'ro', isa => 'Paws::OpsWorks::DailyAutoScalingSchedule');
7             has Thursday => (is => 'ro', isa => 'Paws::OpsWorks::DailyAutoScalingSchedule');
8             has Tuesday => (is => 'ro', isa => 'Paws::OpsWorks::DailyAutoScalingSchedule');
9             has Wednesday => (is => 'ro', isa => 'Paws::OpsWorks::DailyAutoScalingSchedule');
10             1;
11              
12             ### main pod documentation begin ###
13              
14             =head1 NAME
15              
16             Paws::OpsWorks::WeeklyAutoScalingSchedule
17              
18             =head1 USAGE
19              
20             This class represents one of two things:
21              
22             =head3 Arguments in a call to a service
23              
24             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
25             Each attribute should be used as a named argument in the calls that expect this type of object.
26              
27             As an example, if Att1 is expected to be a Paws::OpsWorks::WeeklyAutoScalingSchedule object:
28              
29             $service_obj->Method(Att1 => { Friday => $value, ..., Wednesday => $value });
30              
31             =head3 Results returned from an API call
32              
33             Use accessors for each attribute. If Att1 is expected to be an Paws::OpsWorks::WeeklyAutoScalingSchedule object:
34              
35             $result = $service_obj->Method(...);
36             $result->Att1->Friday
37              
38             =head1 DESCRIPTION
39              
40             Describes a time-based instance's auto scaling schedule. The schedule
41             consists of a set of key-value pairs.
42              
43             =over
44              
45             =item *
46              
47             The key is the time period (a UTC hour) and must be an integer from 0 -
48             23.
49              
50             =item *
51              
52             The value indicates whether the instance should be online or offline
53             for the specified period, and must be set to "on" or "off"
54              
55             =back
56              
57             The default setting for all time periods is off, so you use the
58             following parameters primarily to specify the online periods. You don't
59             have to explicitly specify offline periods unless you want to change an
60             online period to an offline period.
61              
62             The following example specifies that the instance should be online for
63             four hours, from UTC 1200 - 1600. It will be off for the remainder of
64             the day.
65              
66             C<{ "12":"on", "13":"on", "14":"on", "15":"on" }>
67              
68             =head1 ATTRIBUTES
69              
70              
71             =head2 Friday => L<Paws::OpsWorks::DailyAutoScalingSchedule>
72              
73             The schedule for Friday.
74              
75              
76             =head2 Monday => L<Paws::OpsWorks::DailyAutoScalingSchedule>
77              
78             The schedule for Monday.
79              
80              
81             =head2 Saturday => L<Paws::OpsWorks::DailyAutoScalingSchedule>
82              
83             The schedule for Saturday.
84              
85              
86             =head2 Sunday => L<Paws::OpsWorks::DailyAutoScalingSchedule>
87              
88             The schedule for Sunday.
89              
90              
91             =head2 Thursday => L<Paws::OpsWorks::DailyAutoScalingSchedule>
92              
93             The schedule for Thursday.
94              
95              
96             =head2 Tuesday => L<Paws::OpsWorks::DailyAutoScalingSchedule>
97              
98             The schedule for Tuesday.
99              
100              
101             =head2 Wednesday => L<Paws::OpsWorks::DailyAutoScalingSchedule>
102              
103             The schedule for Wednesday.
104              
105              
106              
107             =head1 SEE ALSO
108              
109             This class forms part of L<Paws>, describing an object used in L<Paws::OpsWorks>
110              
111             =head1 BUGS and CONTRIBUTIONS
112              
113             The source code is located here: https://github.com/pplu/aws-sdk-perl
114              
115             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
116              
117             =cut
118