1{
2    "smithy": "1.0",
3    "metadata": {
4        "suppressions": [
5            {
6                "id": "HttpMethodSemantics",
7                "namespace": "*"
8            },
9            {
10                "id": "HttpResponseCodeSemantics",
11                "namespace": "*"
12            },
13            {
14                "id": "PaginatedTrait",
15                "namespace": "*"
16            },
17            {
18                "id": "HttpHeaderTrait",
19                "namespace": "*"
20            },
21            {
22                "id": "HttpUriConflict",
23                "namespace": "*"
24            },
25            {
26                "id": "Service",
27                "namespace": "*"
28            }
29        ]
30    },
31    "shapes": {
32        "com.amazonaws.iotjobsdataplane#ApproximateSecondsBeforeTimedOut": {
33            "type": "long",
34            "traits": {
35                "smithy.api#box": {}
36            }
37        },
38        "com.amazonaws.iotjobsdataplane#BinaryBlob": {
39            "type": "blob"
40        },
41        "com.amazonaws.iotjobsdataplane#CertificateValidationException": {
42            "type": "structure",
43            "members": {
44                "message": {
45                    "target": "com.amazonaws.iotjobsdataplane#errorMessage",
46                    "traits": {
47                        "smithy.api#documentation": "<p>Additional information about the exception.</p>"
48                    }
49                }
50            },
51            "traits": {
52                "smithy.api#documentation": "<p>The certificate is invalid.</p>",
53                "smithy.api#error": "client",
54                "smithy.api#httpError": 400
55            }
56        },
57        "com.amazonaws.iotjobsdataplane#DescribeJobExecution": {
58            "type": "operation",
59            "input": {
60                "target": "com.amazonaws.iotjobsdataplane#DescribeJobExecutionRequest"
61            },
62            "output": {
63                "target": "com.amazonaws.iotjobsdataplane#DescribeJobExecutionResponse"
64            },
65            "errors": [
66                {
67                    "target": "com.amazonaws.iotjobsdataplane#CertificateValidationException"
68                },
69                {
70                    "target": "com.amazonaws.iotjobsdataplane#InvalidRequestException"
71                },
72                {
73                    "target": "com.amazonaws.iotjobsdataplane#ResourceNotFoundException"
74                },
75                {
76                    "target": "com.amazonaws.iotjobsdataplane#ServiceUnavailableException"
77                },
78                {
79                    "target": "com.amazonaws.iotjobsdataplane#TerminalStateException"
80                },
81                {
82                    "target": "com.amazonaws.iotjobsdataplane#ThrottlingException"
83                }
84            ],
85            "traits": {
86                "smithy.api#documentation": "<p>Gets details of a job execution.</p>",
87                "smithy.api#http": {
88                    "method": "GET",
89                    "uri": "/things/{thingName}/jobs/{jobId}",
90                    "code": 200
91                }
92            }
93        },
94        "com.amazonaws.iotjobsdataplane#DescribeJobExecutionJobId": {
95            "type": "string",
96            "traits": {
97                "smithy.api#pattern": "[a-zA-Z0-9_-]+|^\\$next"
98            }
99        },
100        "com.amazonaws.iotjobsdataplane#DescribeJobExecutionRequest": {
101            "type": "structure",
102            "members": {
103                "jobId": {
104                    "target": "com.amazonaws.iotjobsdataplane#DescribeJobExecutionJobId",
105                    "traits": {
106                        "smithy.api#documentation": "<p>The unique identifier assigned to this job when it was created.</p>",
107                        "smithy.api#httpLabel": {},
108                        "smithy.api#required": {}
109                    }
110                },
111                "thingName": {
112                    "target": "com.amazonaws.iotjobsdataplane#ThingName",
113                    "traits": {
114                        "smithy.api#documentation": "<p>The thing name associated with the device the job execution is running on.</p>",
115                        "smithy.api#httpLabel": {},
116                        "smithy.api#required": {}
117                    }
118                },
119                "includeJobDocument": {
120                    "target": "com.amazonaws.iotjobsdataplane#IncludeJobDocument",
121                    "traits": {
122                        "smithy.api#documentation": "<p>Optional. When set to true, the response contains the job document. The default is false.</p>",
123                        "smithy.api#httpQuery": "includeJobDocument"
124                    }
125                },
126                "executionNumber": {
127                    "target": "com.amazonaws.iotjobsdataplane#ExecutionNumber",
128                    "traits": {
129                        "smithy.api#documentation": "<p>Optional. A number that identifies a particular job execution on a particular device. If not specified,\n         the latest job execution is returned.</p>",
130                        "smithy.api#httpQuery": "executionNumber"
131                    }
132                }
133            }
134        },
135        "com.amazonaws.iotjobsdataplane#DescribeJobExecutionResponse": {
136            "type": "structure",
137            "members": {
138                "execution": {
139                    "target": "com.amazonaws.iotjobsdataplane#JobExecution",
140                    "traits": {
141                        "smithy.api#documentation": "<p>Contains data about a job execution.</p>"
142                    }
143                }
144            }
145        },
146        "com.amazonaws.iotjobsdataplane#DetailsKey": {
147            "type": "string",
148            "traits": {
149                "smithy.api#length": {
150                    "min": 1,
151                    "max": 128
152                },
153                "smithy.api#pattern": "[a-zA-Z0-9:_-]+"
154            }
155        },
156        "com.amazonaws.iotjobsdataplane#DetailsMap": {
157            "type": "map",
158            "key": {
159                "target": "com.amazonaws.iotjobsdataplane#DetailsKey"
160            },
161            "value": {
162                "target": "com.amazonaws.iotjobsdataplane#DetailsValue"
163            }
164        },
165        "com.amazonaws.iotjobsdataplane#DetailsValue": {
166            "type": "string",
167            "traits": {
168                "smithy.api#length": {
169                    "min": 1,
170                    "max": 1024
171                },
172                "smithy.api#pattern": "[^\\p{C}]*+"
173            }
174        },
175        "com.amazonaws.iotjobsdataplane#ExecutionNumber": {
176            "type": "long",
177            "traits": {
178                "smithy.api#box": {}
179            }
180        },
181        "com.amazonaws.iotjobsdataplane#ExpectedVersion": {
182            "type": "long",
183            "traits": {
184                "smithy.api#box": {}
185            }
186        },
187        "com.amazonaws.iotjobsdataplane#GetPendingJobExecutions": {
188            "type": "operation",
189            "input": {
190                "target": "com.amazonaws.iotjobsdataplane#GetPendingJobExecutionsRequest"
191            },
192            "output": {
193                "target": "com.amazonaws.iotjobsdataplane#GetPendingJobExecutionsResponse"
194            },
195            "errors": [
196                {
197                    "target": "com.amazonaws.iotjobsdataplane#CertificateValidationException"
198                },
199                {
200                    "target": "com.amazonaws.iotjobsdataplane#InvalidRequestException"
201                },
202                {
203                    "target": "com.amazonaws.iotjobsdataplane#ResourceNotFoundException"
204                },
205                {
206                    "target": "com.amazonaws.iotjobsdataplane#ServiceUnavailableException"
207                },
208                {
209                    "target": "com.amazonaws.iotjobsdataplane#ThrottlingException"
210                }
211            ],
212            "traits": {
213                "smithy.api#documentation": "<p>Gets the list of all jobs for a thing that are not in a terminal status.</p>",
214                "smithy.api#http": {
215                    "method": "GET",
216                    "uri": "/things/{thingName}/jobs",
217                    "code": 200
218                }
219            }
220        },
221        "com.amazonaws.iotjobsdataplane#GetPendingJobExecutionsRequest": {
222            "type": "structure",
223            "members": {
224                "thingName": {
225                    "target": "com.amazonaws.iotjobsdataplane#ThingName",
226                    "traits": {
227                        "smithy.api#documentation": "<p>The name of the thing that is executing the job.</p>",
228                        "smithy.api#httpLabel": {},
229                        "smithy.api#required": {}
230                    }
231                }
232            }
233        },
234        "com.amazonaws.iotjobsdataplane#GetPendingJobExecutionsResponse": {
235            "type": "structure",
236            "members": {
237                "inProgressJobs": {
238                    "target": "com.amazonaws.iotjobsdataplane#JobExecutionSummaryList",
239                    "traits": {
240                        "smithy.api#documentation": "<p>A list of JobExecutionSummary objects with status IN_PROGRESS.</p>"
241                    }
242                },
243                "queuedJobs": {
244                    "target": "com.amazonaws.iotjobsdataplane#JobExecutionSummaryList",
245                    "traits": {
246                        "smithy.api#documentation": "<p>A list of JobExecutionSummary objects with status QUEUED.</p>"
247                    }
248                }
249            }
250        },
251        "com.amazonaws.iotjobsdataplane#IncludeExecutionState": {
252            "type": "boolean",
253            "traits": {
254                "smithy.api#box": {}
255            }
256        },
257        "com.amazonaws.iotjobsdataplane#IncludeJobDocument": {
258            "type": "boolean",
259            "traits": {
260                "smithy.api#box": {}
261            }
262        },
263        "com.amazonaws.iotjobsdataplane#InvalidRequestException": {
264            "type": "structure",
265            "members": {
266                "message": {
267                    "target": "com.amazonaws.iotjobsdataplane#errorMessage",
268                    "traits": {
269                        "smithy.api#documentation": "<p>The message for the exception.</p>"
270                    }
271                }
272            },
273            "traits": {
274                "smithy.api#documentation": "<p>The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error.</p>",
275                "smithy.api#error": "client",
276                "smithy.api#httpError": 400
277            }
278        },
279        "com.amazonaws.iotjobsdataplane#InvalidStateTransitionException": {
280            "type": "structure",
281            "members": {
282                "message": {
283                    "target": "com.amazonaws.iotjobsdataplane#errorMessage"
284                }
285            },
286            "traits": {
287                "smithy.api#documentation": "<p>An update attempted to change the job execution to a state that is invalid because of the job execution's\n         current state (for example, an attempt to change a request in state SUCCESS to state IN_PROGRESS). In this\n         case, the body of the error message also contains the executionState field.</p>",
288                "smithy.api#error": "client",
289                "smithy.api#httpError": 409
290            }
291        },
292        "com.amazonaws.iotjobsdataplane#IotLaserThingJobManagerExternalService": {
293            "type": "service",
294            "version": "2017-09-29",
295            "operations": [
296                {
297                    "target": "com.amazonaws.iotjobsdataplane#DescribeJobExecution"
298                },
299                {
300                    "target": "com.amazonaws.iotjobsdataplane#GetPendingJobExecutions"
301                },
302                {
303                    "target": "com.amazonaws.iotjobsdataplane#StartNextPendingJobExecution"
304                },
305                {
306                    "target": "com.amazonaws.iotjobsdataplane#UpdateJobExecution"
307                }
308            ],
309            "traits": {
310                "aws.api#service": {
311                    "sdkId": "IoT Jobs Data Plane",
312                    "arnNamespace": "iot-jobs-data",
313                    "cloudFormationName": "IoTJobsDataPlane",
314                    "cloudTrailEventSource": "iotjobsdataplane.amazonaws.com",
315                    "endpointPrefix": "data.jobs.iot"
316                },
317                "aws.auth#sigv4": {
318                    "name": "iot-jobs-data"
319                },
320                "aws.protocols#restJson1": {},
321                "smithy.api#documentation": "<p>AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to\n         and executed on one or more devices connected to AWS IoT. For example, you can define a job that instructs a\n         set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform\n         remote troubleshooting operations.</p>\n         <p> To create a job, you make a job document which is a description of the remote operations to be\n         performed, and you specify a list of targets that should perform the operations. The targets can be individual\n         things, thing groups or both.</p>\n         <p> AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the\n         execution of the job by downloading the job document, performing the operations it specifies, and reporting its\n         progress to AWS IoT. The Jobs service provides commands to track the progress of a job on a specific target and\n         for all the targets of the job</p>",
322                "smithy.api#title": "AWS IoT Jobs Data Plane"
323            }
324        },
325        "com.amazonaws.iotjobsdataplane#JobDocument": {
326            "type": "string",
327            "traits": {
328                "smithy.api#length": {
329                    "min": 0,
330                    "max": 32768
331                }
332            }
333        },
334        "com.amazonaws.iotjobsdataplane#JobExecution": {
335            "type": "structure",
336            "members": {
337                "jobId": {
338                    "target": "com.amazonaws.iotjobsdataplane#JobId",
339                    "traits": {
340                        "smithy.api#documentation": "<p>The unique identifier you assigned to this job when it was created.</p>"
341                    }
342                },
343                "thingName": {
344                    "target": "com.amazonaws.iotjobsdataplane#ThingName",
345                    "traits": {
346                        "smithy.api#documentation": "<p>The name of the thing that is executing the job.</p>"
347                    }
348                },
349                "status": {
350                    "target": "com.amazonaws.iotjobsdataplane#JobExecutionStatus",
351                    "traits": {
352                        "smithy.api#documentation": "<p>The status of the job execution. Can be one of: \"QUEUED\", \"IN_PROGRESS\", \"FAILED\", \"SUCCESS\", \"CANCELED\",\n         \"REJECTED\", or \"REMOVED\".</p>"
353                    }
354                },
355                "statusDetails": {
356                    "target": "com.amazonaws.iotjobsdataplane#DetailsMap",
357                    "traits": {
358                        "smithy.api#documentation": "<p>A collection of name/value pairs that describe the status of the job execution.</p>"
359                    }
360                },
361                "queuedAt": {
362                    "target": "com.amazonaws.iotjobsdataplane#QueuedAt",
363                    "traits": {
364                        "smithy.api#documentation": "<p>The time, in milliseconds since the epoch, when the job execution was enqueued.</p>"
365                    }
366                },
367                "startedAt": {
368                    "target": "com.amazonaws.iotjobsdataplane#StartedAt",
369                    "traits": {
370                        "smithy.api#documentation": "<p>The time, in milliseconds since the epoch, when the job execution was started.</p>"
371                    }
372                },
373                "lastUpdatedAt": {
374                    "target": "com.amazonaws.iotjobsdataplane#LastUpdatedAt",
375                    "traits": {
376                        "smithy.api#documentation": "<p>The time, in milliseconds since the epoch, when the job execution was last updated. </p>"
377                    }
378                },
379                "approximateSecondsBeforeTimedOut": {
380                    "target": "com.amazonaws.iotjobsdataplane#ApproximateSecondsBeforeTimedOut",
381                    "traits": {
382                        "smithy.api#documentation": "<p>The estimated number of seconds that remain before the job execution status will be\n           changed to <code>TIMED_OUT</code>.</p>"
383                    }
384                },
385                "versionNumber": {
386                    "target": "com.amazonaws.iotjobsdataplane#VersionNumber",
387                    "traits": {
388                        "smithy.api#documentation": "<p>The version of the job execution. Job execution versions are incremented each time they are updated by a\n         device.</p>"
389                    }
390                },
391                "executionNumber": {
392                    "target": "com.amazonaws.iotjobsdataplane#ExecutionNumber",
393                    "traits": {
394                        "smithy.api#documentation": "<p>A number that identifies a particular job execution on a particular device. It can be used later in\n         commands that return or update job execution information.</p>"
395                    }
396                },
397                "jobDocument": {
398                    "target": "com.amazonaws.iotjobsdataplane#JobDocument",
399                    "traits": {
400                        "smithy.api#documentation": "<p>The content of the job document.</p>"
401                    }
402                }
403            },
404            "traits": {
405                "smithy.api#documentation": "<p>Contains data about a job execution.</p>"
406            }
407        },
408        "com.amazonaws.iotjobsdataplane#JobExecutionState": {
409            "type": "structure",
410            "members": {
411                "status": {
412                    "target": "com.amazonaws.iotjobsdataplane#JobExecutionStatus",
413                    "traits": {
414                        "smithy.api#documentation": "<p>The status of the job execution. Can be one of: \"QUEUED\", \"IN_PROGRESS\", \"FAILED\", \"SUCCESS\", \"CANCELED\",\n         \"REJECTED\", or \"REMOVED\".</p>"
415                    }
416                },
417                "statusDetails": {
418                    "target": "com.amazonaws.iotjobsdataplane#DetailsMap",
419                    "traits": {
420                        "smithy.api#documentation": "<p>A collection of name/value pairs that describe the status of the job execution.</p>"
421                    }
422                },
423                "versionNumber": {
424                    "target": "com.amazonaws.iotjobsdataplane#VersionNumber",
425                    "traits": {
426                        "smithy.api#documentation": "<p>The version of the job execution. Job execution versions are incremented each time they are updated by a\n         device.</p>"
427                    }
428                }
429            },
430            "traits": {
431                "smithy.api#documentation": "<p>Contains data about the state of a job execution.</p>"
432            }
433        },
434        "com.amazonaws.iotjobsdataplane#JobExecutionStatus": {
435            "type": "string",
436            "traits": {
437                "smithy.api#enum": [
438                    {
439                        "value": "QUEUED",
440                        "name": "QUEUED"
441                    },
442                    {
443                        "value": "IN_PROGRESS",
444                        "name": "IN_PROGRESS"
445                    },
446                    {
447                        "value": "SUCCEEDED",
448                        "name": "SUCCEEDED"
449                    },
450                    {
451                        "value": "FAILED",
452                        "name": "FAILED"
453                    },
454                    {
455                        "value": "TIMED_OUT",
456                        "name": "TIMED_OUT"
457                    },
458                    {
459                        "value": "REJECTED",
460                        "name": "REJECTED"
461                    },
462                    {
463                        "value": "REMOVED",
464                        "name": "REMOVED"
465                    },
466                    {
467                        "value": "CANCELED",
468                        "name": "CANCELED"
469                    }
470                ]
471            }
472        },
473        "com.amazonaws.iotjobsdataplane#JobExecutionSummary": {
474            "type": "structure",
475            "members": {
476                "jobId": {
477                    "target": "com.amazonaws.iotjobsdataplane#JobId",
478                    "traits": {
479                        "smithy.api#documentation": "<p>The unique identifier you assigned to this job when it was created.</p>"
480                    }
481                },
482                "queuedAt": {
483                    "target": "com.amazonaws.iotjobsdataplane#QueuedAt",
484                    "traits": {
485                        "smithy.api#documentation": "<p>The time, in milliseconds since the epoch, when the job execution was enqueued.</p>"
486                    }
487                },
488                "startedAt": {
489                    "target": "com.amazonaws.iotjobsdataplane#StartedAt",
490                    "traits": {
491                        "smithy.api#documentation": "<p>The time, in milliseconds since the epoch, when the job execution started.</p>"
492                    }
493                },
494                "lastUpdatedAt": {
495                    "target": "com.amazonaws.iotjobsdataplane#LastUpdatedAt",
496                    "traits": {
497                        "smithy.api#documentation": "<p>The time, in milliseconds since the epoch, when the job execution was last updated.</p>"
498                    }
499                },
500                "versionNumber": {
501                    "target": "com.amazonaws.iotjobsdataplane#VersionNumber",
502                    "traits": {
503                        "smithy.api#documentation": "<p>The version of the job execution. Job execution versions are incremented each time AWS IoT Jobs receives\n         an update from a device.</p>"
504                    }
505                },
506                "executionNumber": {
507                    "target": "com.amazonaws.iotjobsdataplane#ExecutionNumber",
508                    "traits": {
509                        "smithy.api#documentation": "<p>A number that identifies a particular job execution on a particular device.</p>"
510                    }
511                }
512            },
513            "traits": {
514                "smithy.api#documentation": "<p>Contains a subset of information about a job execution.</p>"
515            }
516        },
517        "com.amazonaws.iotjobsdataplane#JobExecutionSummaryList": {
518            "type": "list",
519            "member": {
520                "target": "com.amazonaws.iotjobsdataplane#JobExecutionSummary"
521            }
522        },
523        "com.amazonaws.iotjobsdataplane#JobId": {
524            "type": "string",
525            "traits": {
526                "smithy.api#length": {
527                    "min": 1,
528                    "max": 64
529                },
530                "smithy.api#pattern": "[a-zA-Z0-9_-]+"
531            }
532        },
533        "com.amazonaws.iotjobsdataplane#LastUpdatedAt": {
534            "type": "long"
535        },
536        "com.amazonaws.iotjobsdataplane#QueuedAt": {
537            "type": "long"
538        },
539        "com.amazonaws.iotjobsdataplane#ResourceNotFoundException": {
540            "type": "structure",
541            "members": {
542                "message": {
543                    "target": "com.amazonaws.iotjobsdataplane#errorMessage",
544                    "traits": {
545                        "smithy.api#documentation": "<p>The message for the exception.</p>"
546                    }
547                }
548            },
549            "traits": {
550                "smithy.api#documentation": "<p>The specified resource does not exist.</p>",
551                "smithy.api#error": "client",
552                "smithy.api#httpError": 404
553            }
554        },
555        "com.amazonaws.iotjobsdataplane#ServiceUnavailableException": {
556            "type": "structure",
557            "members": {
558                "message": {
559                    "target": "com.amazonaws.iotjobsdataplane#errorMessage",
560                    "traits": {
561                        "smithy.api#documentation": "<p>The message for the exception.</p>"
562                    }
563                }
564            },
565            "traits": {
566                "smithy.api#documentation": "<p>The service is temporarily unavailable.</p>",
567                "smithy.api#error": "server",
568                "smithy.api#httpError": 503
569            }
570        },
571        "com.amazonaws.iotjobsdataplane#StartNextPendingJobExecution": {
572            "type": "operation",
573            "input": {
574                "target": "com.amazonaws.iotjobsdataplane#StartNextPendingJobExecutionRequest"
575            },
576            "output": {
577                "target": "com.amazonaws.iotjobsdataplane#StartNextPendingJobExecutionResponse"
578            },
579            "errors": [
580                {
581                    "target": "com.amazonaws.iotjobsdataplane#CertificateValidationException"
582                },
583                {
584                    "target": "com.amazonaws.iotjobsdataplane#InvalidRequestException"
585                },
586                {
587                    "target": "com.amazonaws.iotjobsdataplane#ResourceNotFoundException"
588                },
589                {
590                    "target": "com.amazonaws.iotjobsdataplane#ServiceUnavailableException"
591                },
592                {
593                    "target": "com.amazonaws.iotjobsdataplane#ThrottlingException"
594                }
595            ],
596            "traits": {
597                "smithy.api#documentation": "<p>Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.</p>",
598                "smithy.api#http": {
599                    "method": "PUT",
600                    "uri": "/things/{thingName}/jobs/$next",
601                    "code": 200
602                }
603            }
604        },
605        "com.amazonaws.iotjobsdataplane#StartNextPendingJobExecutionRequest": {
606            "type": "structure",
607            "members": {
608                "thingName": {
609                    "target": "com.amazonaws.iotjobsdataplane#ThingName",
610                    "traits": {
611                        "smithy.api#documentation": "<p>The name of the thing associated with the device.</p>",
612                        "smithy.api#httpLabel": {},
613                        "smithy.api#required": {}
614                    }
615                },
616                "statusDetails": {
617                    "target": "com.amazonaws.iotjobsdataplane#DetailsMap",
618                    "traits": {
619                        "smithy.api#documentation": "<p>A collection of name/value pairs that describe the status of the job execution. If not specified, the\n         statusDetails are unchanged.</p>"
620                    }
621                },
622                "stepTimeoutInMinutes": {
623                    "target": "com.amazonaws.iotjobsdataplane#StepTimeoutInMinutes",
624                    "traits": {
625                        "smithy.api#documentation": "<p>Specifies the amount of time this device has to finish execution of this job. If the job \n           execution status is not set to a terminal state before this timer expires, or before the \n           timer is reset (by calling <code>UpdateJobExecution</code>, setting the status to\n           <code>IN_PROGRESS</code> and specifying a new timeout value in field <code>stepTimeoutInMinutes</code>) \n           the job execution status will be automatically set to <code>TIMED_OUT</code>.  Note that setting \n           this timeout has no effect on that job execution timeout which may have been specified when \n           the job was created (<code>CreateJob</code> using field <code>timeoutConfig</code>).</p>"
626                    }
627                }
628            }
629        },
630        "com.amazonaws.iotjobsdataplane#StartNextPendingJobExecutionResponse": {
631            "type": "structure",
632            "members": {
633                "execution": {
634                    "target": "com.amazonaws.iotjobsdataplane#JobExecution",
635                    "traits": {
636                        "smithy.api#documentation": "<p>A JobExecution object.</p>"
637                    }
638                }
639            }
640        },
641        "com.amazonaws.iotjobsdataplane#StartedAt": {
642            "type": "long",
643            "traits": {
644                "smithy.api#box": {}
645            }
646        },
647        "com.amazonaws.iotjobsdataplane#StepTimeoutInMinutes": {
648            "type": "long",
649            "traits": {
650                "smithy.api#box": {}
651            }
652        },
653        "com.amazonaws.iotjobsdataplane#TerminalStateException": {
654            "type": "structure",
655            "members": {
656                "message": {
657                    "target": "com.amazonaws.iotjobsdataplane#errorMessage"
658                }
659            },
660            "traits": {
661                "smithy.api#documentation": "<p>The job is in a terminal state.</p>",
662                "smithy.api#error": "client",
663                "smithy.api#httpError": 410
664            }
665        },
666        "com.amazonaws.iotjobsdataplane#ThingName": {
667            "type": "string",
668            "traits": {
669                "smithy.api#length": {
670                    "min": 1,
671                    "max": 128
672                },
673                "smithy.api#pattern": "[a-zA-Z0-9:_-]+"
674            }
675        },
676        "com.amazonaws.iotjobsdataplane#ThrottlingException": {
677            "type": "structure",
678            "members": {
679                "message": {
680                    "target": "com.amazonaws.iotjobsdataplane#errorMessage",
681                    "traits": {
682                        "smithy.api#documentation": "<p>The message associated with the exception.</p>"
683                    }
684                },
685                "payload": {
686                    "target": "com.amazonaws.iotjobsdataplane#BinaryBlob",
687                    "traits": {
688                        "smithy.api#documentation": "<p>The payload associated with the exception.</p>"
689                    }
690                }
691            },
692            "traits": {
693                "smithy.api#documentation": "<p>The rate exceeds the limit.</p>",
694                "smithy.api#error": "client",
695                "smithy.api#httpError": 429
696            }
697        },
698        "com.amazonaws.iotjobsdataplane#UpdateJobExecution": {
699            "type": "operation",
700            "input": {
701                "target": "com.amazonaws.iotjobsdataplane#UpdateJobExecutionRequest"
702            },
703            "output": {
704                "target": "com.amazonaws.iotjobsdataplane#UpdateJobExecutionResponse"
705            },
706            "errors": [
707                {
708                    "target": "com.amazonaws.iotjobsdataplane#CertificateValidationException"
709                },
710                {
711                    "target": "com.amazonaws.iotjobsdataplane#InvalidRequestException"
712                },
713                {
714                    "target": "com.amazonaws.iotjobsdataplane#InvalidStateTransitionException"
715                },
716                {
717                    "target": "com.amazonaws.iotjobsdataplane#ResourceNotFoundException"
718                },
719                {
720                    "target": "com.amazonaws.iotjobsdataplane#ServiceUnavailableException"
721                },
722                {
723                    "target": "com.amazonaws.iotjobsdataplane#ThrottlingException"
724                }
725            ],
726            "traits": {
727                "smithy.api#documentation": "<p>Updates the status of a job execution.</p>",
728                "smithy.api#http": {
729                    "method": "POST",
730                    "uri": "/things/{thingName}/jobs/{jobId}",
731                    "code": 200
732                }
733            }
734        },
735        "com.amazonaws.iotjobsdataplane#UpdateJobExecutionRequest": {
736            "type": "structure",
737            "members": {
738                "jobId": {
739                    "target": "com.amazonaws.iotjobsdataplane#JobId",
740                    "traits": {
741                        "smithy.api#documentation": "<p>The unique identifier assigned to this job when it was created.</p>",
742                        "smithy.api#httpLabel": {},
743                        "smithy.api#required": {}
744                    }
745                },
746                "thingName": {
747                    "target": "com.amazonaws.iotjobsdataplane#ThingName",
748                    "traits": {
749                        "smithy.api#documentation": "<p>The name of the thing associated with the device.</p>",
750                        "smithy.api#httpLabel": {},
751                        "smithy.api#required": {}
752                    }
753                },
754                "status": {
755                    "target": "com.amazonaws.iotjobsdataplane#JobExecutionStatus",
756                    "traits": {
757                        "smithy.api#documentation": "<p>The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified\n         on every update.</p>",
758                        "smithy.api#required": {}
759                    }
760                },
761                "statusDetails": {
762                    "target": "com.amazonaws.iotjobsdataplane#DetailsMap",
763                    "traits": {
764                        "smithy.api#documentation": "<p> Optional. A collection of name/value pairs that describe the status of the job execution. If not\n         specified, the statusDetails are unchanged.</p>"
765                    }
766                },
767                "stepTimeoutInMinutes": {
768                    "target": "com.amazonaws.iotjobsdataplane#StepTimeoutInMinutes",
769                    "traits": {
770                        "smithy.api#documentation": "<p>Specifies the amount of time this device has to finish execution of this job. If the job \n           execution status is not set to a terminal state before this timer expires, or before the \n           timer is reset (by again calling <code>UpdateJobExecution</code>, setting the status to\n           <code>IN_PROGRESS</code> and specifying a new timeout value in this field) the job execution\n           status will be automatically set to <code>TIMED_OUT</code>.  Note that setting or resetting \n           this timeout has no effect on that job execution timeout which may have been specified when \n           the job was created (<code>CreateJob</code> using field <code>timeoutConfig</code>).</p>"
771                    }
772                },
773                "expectedVersion": {
774                    "target": "com.amazonaws.iotjobsdataplane#ExpectedVersion",
775                    "traits": {
776                        "smithy.api#documentation": "<p>Optional. The expected current version of the job execution. Each time you update the job execution, its\n         version is incremented. If the version of the job execution stored in Jobs does not match, the update is\n         rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data\n         is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain\n         the job execution status data.)</p>"
777                    }
778                },
779                "includeJobExecutionState": {
780                    "target": "com.amazonaws.iotjobsdataplane#IncludeExecutionState",
781                    "traits": {
782                        "smithy.api#documentation": "<p>Optional. When included and set to true, the response contains the JobExecutionState data. The default is\n         false.</p>"
783                    }
784                },
785                "includeJobDocument": {
786                    "target": "com.amazonaws.iotjobsdataplane#IncludeJobDocument",
787                    "traits": {
788                        "smithy.api#documentation": "<p>Optional. When set to true, the response contains the job document. The default is false.</p>"
789                    }
790                },
791                "executionNumber": {
792                    "target": "com.amazonaws.iotjobsdataplane#ExecutionNumber",
793                    "traits": {
794                        "smithy.api#documentation": "<p>Optional. A number that identifies a particular job execution on a particular device.</p>"
795                    }
796                }
797            }
798        },
799        "com.amazonaws.iotjobsdataplane#UpdateJobExecutionResponse": {
800            "type": "structure",
801            "members": {
802                "executionState": {
803                    "target": "com.amazonaws.iotjobsdataplane#JobExecutionState",
804                    "traits": {
805                        "smithy.api#documentation": "<p>A JobExecutionState object.</p>"
806                    }
807                },
808                "jobDocument": {
809                    "target": "com.amazonaws.iotjobsdataplane#JobDocument",
810                    "traits": {
811                        "smithy.api#documentation": "<p>The contents of the Job Documents.</p>"
812                    }
813                }
814            }
815        },
816        "com.amazonaws.iotjobsdataplane#VersionNumber": {
817            "type": "long"
818        },
819        "com.amazonaws.iotjobsdataplane#errorMessage": {
820            "type": "string"
821        }
822    }
823}
824