blib/lib/Paws/IoT/Job.pm untested

filter: Statementstmt 0.0% 0 / 41 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 42 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::IoT::Job;
3 use Moose;
4 has AbortConfig => (is => 'ro', isa => 'Paws::IoT::AbortConfig', request_name => 'abortConfig', traits => ['NameInRequest']);
5 has Comment => (is => 'ro', isa => 'Str', request_name => 'comment', traits => ['NameInRequest']);
6 has CompletedAt => (is => 'ro', isa => 'Str', request_name => 'completedAt', traits => ['NameInRequest']);
7 has CreatedAt => (is => 'ro', isa => 'Str', request_name => 'createdAt', traits => ['NameInRequest']);
8 has Description => (is => 'ro', isa => 'Str', request_name => 'description', traits => ['NameInRequest']);
9 has ForceCanceled => (is => 'ro', isa => 'Bool', request_name => 'forceCanceled', traits => ['NameInRequest']);
10 has JobArn => (is => 'ro', isa => 'Str', request_name => 'jobArn', traits => ['NameInRequest']);
11 has JobExecutionsRolloutConfig => (is => 'ro', isa => 'Paws::IoT::JobExecutionsRolloutConfig', request_name => 'jobExecutionsRolloutConfig', traits => ['NameInRequest']);
12 has JobId => (is => 'ro', isa => 'Str', request_name => 'jobId', traits => ['NameInRequest']);
13 has JobProcessDetails => (is => 'ro', isa => 'Paws::IoT::JobProcessDetails', request_name => 'jobProcessDetails', traits => ['NameInRequest']);
14 has JobTemplateArn => (is => 'ro', isa => 'Str', request_name => 'jobTemplateArn', traits => ['NameInRequest']);
15 has LastUpdatedAt => (is => 'ro', isa => 'Str', request_name => 'lastUpdatedAt', traits => ['NameInRequest']);
16 has NamespaceId => (is => 'ro', isa => 'Str', request_name => 'namespaceId', traits => ['NameInRequest']);
17 has PresignedUrlConfig => (is => 'ro', isa => 'Paws::IoT::PresignedUrlConfig', request_name => 'presignedUrlConfig', traits => ['NameInRequest']);
18 has ReasonCode => (is => 'ro', isa => 'Str', request_name => 'reasonCode', traits => ['NameInRequest']);
19 has Status => (is => 'ro', isa => 'Str', request_name => 'status', traits => ['NameInRequest']);
20 has Targets => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'targets', traits => ['NameInRequest']);
21 has TargetSelection => (is => 'ro', isa => 'Str', request_name => 'targetSelection', traits => ['NameInRequest']);
22 has TimeoutConfig => (is => 'ro', isa => 'Paws::IoT::TimeoutConfig', request_name => 'timeoutConfig', traits => ['NameInRequest']);
23  
24 1;
25  
26 ### main pod documentation begin ###
27  
28 =head1 NAME
29  
30 Paws::IoT::Job
31  
32 =head1 USAGE
33  
34 This class represents one of two things:
35  
36 =head3 Arguments in a call to a service
37  
38 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
39 Each attribute should be used as a named argument in the calls that expect this type of object.
40  
41 As an example, if Att1 is expected to be a Paws::IoT::Job object:
42  
43 $service_obj->Method(Att1 => { AbortConfig => $value, ..., TimeoutConfig => $value });
44  
45 =head3 Results returned from an API call
46  
47 Use accessors for each attribute. If Att1 is expected to be an Paws::IoT::Job object:
48  
49 $result = $service_obj->Method(...);
50 $result->Att1->AbortConfig
51  
52 =head1 DESCRIPTION
53  
54 The C<Job> object contains details about a job.
55  
56 =head1 ATTRIBUTES
57  
58  
59 =head2 AbortConfig => L<Paws::IoT::AbortConfig>
60  
61 Configuration for criteria to abort the job.
62  
63  
64 =head2 Comment => Str
65  
66 If the job was updated, describes the reason for the update.
67  
68  
69 =head2 CompletedAt => Str
70  
71 The time, in seconds since the epoch, when the job was completed.
72  
73  
74 =head2 CreatedAt => Str
75  
76 The time, in seconds since the epoch, when the job was created.
77  
78  
79 =head2 Description => Str
80  
81 A short text description of the job.
82  
83  
84 =head2 ForceCanceled => Bool
85  
86 Will be C<true> if the job was canceled with the optional C<force>
87 parameter set to C<true>.
88  
89  
90 =head2 JobArn => Str
91  
92 An ARN identifying the job with format
93 "arn:aws:iot:region:account:job/jobId".
94  
95  
96 =head2 JobExecutionsRolloutConfig => L<Paws::IoT::JobExecutionsRolloutConfig>
97  
98 Allows you to create a staged rollout of a job.
99  
100  
101 =head2 JobId => Str
102  
103 The unique identifier you assigned to this job when it was created.
104  
105  
106 =head2 JobProcessDetails => L<Paws::IoT::JobProcessDetails>
107  
108 Details about the job process.
109  
110  
111 =head2 JobTemplateArn => Str
112  
113 The ARN of the job template used to create the job.
114  
115  
116 =head2 LastUpdatedAt => Str
117  
118 The time, in seconds since the epoch, when the job was last updated.
119  
120  
121 =head2 NamespaceId => Str
122  
123 The namespace used to indicate that a job is a customer-managed job.
124  
125 When you specify a value for this parameter, AWS IoT Core sends jobs
126 notifications to MQTT topics that contain the value in the following
127 format.
128  
129 C<$aws/things/I<THING_NAME>/jobs/I<JOB_ID>/notify-namespace-I<NAMESPACE_ID>/>
130  
131 The C<namespaceId> feature is in public preview.
132  
133  
134 =head2 PresignedUrlConfig => L<Paws::IoT::PresignedUrlConfig>
135  
136 Configuration for pre-signed S3 URLs.
137  
138  
139 =head2 ReasonCode => Str
140  
141 If the job was updated, provides the reason code for the update.
142  
143  
144 =head2 Status => Str
145  
146 The status of the job, one of C<IN_PROGRESS>, C<CANCELED>,
147 C<DELETION_IN_PROGRESS> or C<COMPLETED>.
148  
149  
150 =head2 Targets => ArrayRef[Str|Undef]
151  
152 A list of IoT things and thing groups to which the job should be sent.
153  
154  
155 =head2 TargetSelection => Str
156  
157 Specifies whether the job will continue to run (CONTINUOUS), or will be
158 complete after all those things specified as targets have completed the
159 job (SNAPSHOT). If continuous, the job may also be run on a thing when
160 a change is detected in a target. For example, a job will run on a
161 device when the thing representing the device is added to a target
162 group, even after the job was completed by all things originally in the
163 group.
164  
165  
166 =head2 TimeoutConfig => L<Paws::IoT::TimeoutConfig>
167  
168 Specifies the amount of time each device has to finish its execution of
169 the job. A timer is started when the job execution status is set to
170 C<IN_PROGRESS>. If the job execution status is not set to another
171 terminal state before the timer expires, it will be automatically set
172 to C<TIMED_OUT>.
173  
174  
175  
176 =head1 SEE ALSO
177  
178 This class forms part of L<Paws>, describing an object used in L<Paws::IoT>
179  
180 =head1 BUGS and CONTRIBUTIONS
181  
182 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
183  
184 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
185  
186 =cut
187