@aws-sdk/client-iot-jobs-data-plane 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +413 -443
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/IoTJobsDataPlaneClient.js +2 -0
- package/dist-es/commands/DescribeJobExecutionCommand.js +3 -9
- package/dist-es/commands/GetPendingJobExecutionsCommand.js +3 -9
- package/dist-es/commands/StartCommandExecutionCommand.js +3 -9
- package/dist-es/commands/StartNextPendingJobExecutionCommand.js +3 -9
- package/dist-es/commands/UpdateJobExecutionCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +372 -0
- package/dist-types/IoTJobsDataPlaneClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +36 -0
- package/dist-types/ts3.4/IoTJobsDataPlaneClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +42 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -378
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -47
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -65
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
|
-
var uuid = require('@smithy/uuid');
|
|
20
18
|
|
|
21
19
|
const resolveClientEndpointParameters = (options) => {
|
|
22
20
|
return Object.assign(options, {
|
|
@@ -92,6 +90,7 @@ class IoTJobsDataPlaneClient extends smithyClient.Client {
|
|
|
92
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
95
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -111,14 +110,14 @@ class IoTJobsDataPlaneClient extends smithyClient.Client {
|
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
|
|
114
|
-
class IoTJobsDataPlaneServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let IoTJobsDataPlaneServiceException$1 = class IoTJobsDataPlaneServiceException extends smithyClient.ServiceException {
|
|
115
114
|
constructor(options) {
|
|
116
115
|
super(options);
|
|
117
116
|
Object.setPrototypeOf(this, IoTJobsDataPlaneServiceException.prototype);
|
|
118
117
|
}
|
|
119
|
-
}
|
|
118
|
+
};
|
|
120
119
|
|
|
121
|
-
class CertificateValidationException extends IoTJobsDataPlaneServiceException {
|
|
120
|
+
let CertificateValidationException$1 = class CertificateValidationException extends IoTJobsDataPlaneServiceException$1 {
|
|
122
121
|
name = "CertificateValidationException";
|
|
123
122
|
$fault = "client";
|
|
124
123
|
constructor(opts) {
|
|
@@ -129,8 +128,8 @@ class CertificateValidationException extends IoTJobsDataPlaneServiceException {
|
|
|
129
128
|
});
|
|
130
129
|
Object.setPrototypeOf(this, CertificateValidationException.prototype);
|
|
131
130
|
}
|
|
132
|
-
}
|
|
133
|
-
class ConflictException extends IoTJobsDataPlaneServiceException {
|
|
131
|
+
};
|
|
132
|
+
let ConflictException$1 = class ConflictException extends IoTJobsDataPlaneServiceException$1 {
|
|
134
133
|
name = "ConflictException";
|
|
135
134
|
$fault = "client";
|
|
136
135
|
resourceId;
|
|
@@ -143,7 +142,7 @@ class ConflictException extends IoTJobsDataPlaneServiceException {
|
|
|
143
142
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
144
143
|
this.resourceId = opts.resourceId;
|
|
145
144
|
}
|
|
146
|
-
}
|
|
145
|
+
};
|
|
147
146
|
const JobExecutionStatus = {
|
|
148
147
|
CANCELED: "CANCELED",
|
|
149
148
|
FAILED: "FAILED",
|
|
@@ -154,7 +153,7 @@ const JobExecutionStatus = {
|
|
|
154
153
|
SUCCEEDED: "SUCCEEDED",
|
|
155
154
|
TIMED_OUT: "TIMED_OUT",
|
|
156
155
|
};
|
|
157
|
-
class InvalidRequestException extends IoTJobsDataPlaneServiceException {
|
|
156
|
+
let InvalidRequestException$1 = class InvalidRequestException extends IoTJobsDataPlaneServiceException$1 {
|
|
158
157
|
name = "InvalidRequestException";
|
|
159
158
|
$fault = "client";
|
|
160
159
|
constructor(opts) {
|
|
@@ -165,8 +164,8 @@ class InvalidRequestException extends IoTJobsDataPlaneServiceException {
|
|
|
165
164
|
});
|
|
166
165
|
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
167
166
|
}
|
|
168
|
-
}
|
|
169
|
-
class ResourceNotFoundException extends IoTJobsDataPlaneServiceException {
|
|
167
|
+
};
|
|
168
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends IoTJobsDataPlaneServiceException$1 {
|
|
170
169
|
name = "ResourceNotFoundException";
|
|
171
170
|
$fault = "client";
|
|
172
171
|
constructor(opts) {
|
|
@@ -177,8 +176,8 @@ class ResourceNotFoundException extends IoTJobsDataPlaneServiceException {
|
|
|
177
176
|
});
|
|
178
177
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
179
178
|
}
|
|
180
|
-
}
|
|
181
|
-
class ServiceUnavailableException extends IoTJobsDataPlaneServiceException {
|
|
179
|
+
};
|
|
180
|
+
let ServiceUnavailableException$1 = class ServiceUnavailableException extends IoTJobsDataPlaneServiceException$1 {
|
|
182
181
|
name = "ServiceUnavailableException";
|
|
183
182
|
$fault = "server";
|
|
184
183
|
constructor(opts) {
|
|
@@ -189,8 +188,8 @@ class ServiceUnavailableException extends IoTJobsDataPlaneServiceException {
|
|
|
189
188
|
});
|
|
190
189
|
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
191
190
|
}
|
|
192
|
-
}
|
|
193
|
-
class TerminalStateException extends IoTJobsDataPlaneServiceException {
|
|
191
|
+
};
|
|
192
|
+
let TerminalStateException$1 = class TerminalStateException extends IoTJobsDataPlaneServiceException$1 {
|
|
194
193
|
name = "TerminalStateException";
|
|
195
194
|
$fault = "client";
|
|
196
195
|
constructor(opts) {
|
|
@@ -201,8 +200,8 @@ class TerminalStateException extends IoTJobsDataPlaneServiceException {
|
|
|
201
200
|
});
|
|
202
201
|
Object.setPrototypeOf(this, TerminalStateException.prototype);
|
|
203
202
|
}
|
|
204
|
-
}
|
|
205
|
-
class ThrottlingException extends IoTJobsDataPlaneServiceException {
|
|
203
|
+
};
|
|
204
|
+
let ThrottlingException$1 = class ThrottlingException extends IoTJobsDataPlaneServiceException$1 {
|
|
206
205
|
name = "ThrottlingException";
|
|
207
206
|
$fault = "client";
|
|
208
207
|
payload;
|
|
@@ -215,8 +214,8 @@ class ThrottlingException extends IoTJobsDataPlaneServiceException {
|
|
|
215
214
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
216
215
|
this.payload = opts.payload;
|
|
217
216
|
}
|
|
218
|
-
}
|
|
219
|
-
class InternalServerException extends IoTJobsDataPlaneServiceException {
|
|
217
|
+
};
|
|
218
|
+
let InternalServerException$1 = class InternalServerException extends IoTJobsDataPlaneServiceException$1 {
|
|
220
219
|
name = "InternalServerException";
|
|
221
220
|
$fault = "server";
|
|
222
221
|
constructor(opts) {
|
|
@@ -227,8 +226,8 @@ class InternalServerException extends IoTJobsDataPlaneServiceException {
|
|
|
227
226
|
});
|
|
228
227
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
229
228
|
}
|
|
230
|
-
}
|
|
231
|
-
class InvalidStateTransitionException extends IoTJobsDataPlaneServiceException {
|
|
229
|
+
};
|
|
230
|
+
let InvalidStateTransitionException$1 = class InvalidStateTransitionException extends IoTJobsDataPlaneServiceException$1 {
|
|
232
231
|
name = "InvalidStateTransitionException";
|
|
233
232
|
$fault = "client";
|
|
234
233
|
constructor(opts) {
|
|
@@ -239,8 +238,8 @@ class InvalidStateTransitionException extends IoTJobsDataPlaneServiceException {
|
|
|
239
238
|
});
|
|
240
239
|
Object.setPrototypeOf(this, InvalidStateTransitionException.prototype);
|
|
241
240
|
}
|
|
242
|
-
}
|
|
243
|
-
class ServiceQuotaExceededException extends IoTJobsDataPlaneServiceException {
|
|
241
|
+
};
|
|
242
|
+
let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends IoTJobsDataPlaneServiceException$1 {
|
|
244
243
|
name = "ServiceQuotaExceededException";
|
|
245
244
|
$fault = "client";
|
|
246
245
|
constructor(opts) {
|
|
@@ -251,8 +250,8 @@ class ServiceQuotaExceededException extends IoTJobsDataPlaneServiceException {
|
|
|
251
250
|
});
|
|
252
251
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
253
252
|
}
|
|
254
|
-
}
|
|
255
|
-
class ValidationException extends IoTJobsDataPlaneServiceException {
|
|
253
|
+
};
|
|
254
|
+
let ValidationException$1 = class ValidationException extends IoTJobsDataPlaneServiceException$1 {
|
|
256
255
|
name = "ValidationException";
|
|
257
256
|
$fault = "client";
|
|
258
257
|
constructor(opts) {
|
|
@@ -263,394 +262,385 @@ class ValidationException extends IoTJobsDataPlaneServiceException {
|
|
|
263
262
|
});
|
|
264
263
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
265
264
|
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
const se_DescribeJobExecutionCommand = async (input, context) => {
|
|
269
|
-
const b = core.requestBuilder(input, context);
|
|
270
|
-
const headers = {};
|
|
271
|
-
b.bp("/things/{thingName}/jobs/{jobId}");
|
|
272
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
273
|
-
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
274
|
-
const query = smithyClient.map({
|
|
275
|
-
[_iJD]: [() => input.includeJobDocument !== void 0, () => input[_iJD].toString()],
|
|
276
|
-
[_eN]: [() => input.executionNumber !== void 0, () => input[_eN].toString()],
|
|
277
|
-
});
|
|
278
|
-
let body;
|
|
279
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
280
|
-
return b.build();
|
|
281
|
-
};
|
|
282
|
-
const se_GetPendingJobExecutionsCommand = async (input, context) => {
|
|
283
|
-
const b = core.requestBuilder(input, context);
|
|
284
|
-
const headers = {};
|
|
285
|
-
b.bp("/things/{thingName}/jobs");
|
|
286
|
-
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
287
|
-
let body;
|
|
288
|
-
b.m("GET").h(headers).b(body);
|
|
289
|
-
return b.build();
|
|
290
|
-
};
|
|
291
|
-
const se_StartCommandExecutionCommand = async (input, context) => {
|
|
292
|
-
const b = core.requestBuilder(input, context);
|
|
293
|
-
const headers = {
|
|
294
|
-
"content-type": "application/json",
|
|
295
|
-
};
|
|
296
|
-
b.bp("/command-executions");
|
|
297
|
-
let body;
|
|
298
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
299
|
-
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
300
|
-
commandArn: [],
|
|
301
|
-
executionTimeoutSeconds: [],
|
|
302
|
-
parameters: (_) => se_CommandExecutionParameterMap(_, context),
|
|
303
|
-
targetArn: [],
|
|
304
|
-
}));
|
|
305
|
-
b.m("POST").h(headers).b(body);
|
|
306
|
-
return b.build();
|
|
307
|
-
};
|
|
308
|
-
const se_StartNextPendingJobExecutionCommand = async (input, context) => {
|
|
309
|
-
const b = core.requestBuilder(input, context);
|
|
310
|
-
const headers = {
|
|
311
|
-
"content-type": "application/json",
|
|
312
|
-
};
|
|
313
|
-
b.bp("/things/{thingName}/jobs/$next");
|
|
314
|
-
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
315
|
-
let body;
|
|
316
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
317
|
-
statusDetails: (_) => smithyClient._json(_),
|
|
318
|
-
stepTimeoutInMinutes: [],
|
|
319
|
-
}));
|
|
320
|
-
b.m("PUT").h(headers).b(body);
|
|
321
|
-
return b.build();
|
|
322
|
-
};
|
|
323
|
-
const se_UpdateJobExecutionCommand = async (input, context) => {
|
|
324
|
-
const b = core.requestBuilder(input, context);
|
|
325
|
-
const headers = {
|
|
326
|
-
"content-type": "application/json",
|
|
327
|
-
};
|
|
328
|
-
b.bp("/things/{thingName}/jobs/{jobId}");
|
|
329
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
330
|
-
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
331
|
-
let body;
|
|
332
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
333
|
-
executionNumber: [],
|
|
334
|
-
expectedVersion: [],
|
|
335
|
-
includeJobDocument: [],
|
|
336
|
-
includeJobExecutionState: [],
|
|
337
|
-
status: [],
|
|
338
|
-
statusDetails: (_) => smithyClient._json(_),
|
|
339
|
-
stepTimeoutInMinutes: [],
|
|
340
|
-
}));
|
|
341
|
-
b.m("POST").h(headers).b(body);
|
|
342
|
-
return b.build();
|
|
343
|
-
};
|
|
344
|
-
const de_DescribeJobExecutionCommand = async (output, context) => {
|
|
345
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
346
|
-
return de_CommandError(output, context);
|
|
347
|
-
}
|
|
348
|
-
const contents = smithyClient.map({
|
|
349
|
-
$metadata: deserializeMetadata(output),
|
|
350
|
-
});
|
|
351
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
352
|
-
const doc = smithyClient.take(data, {
|
|
353
|
-
execution: smithyClient._json,
|
|
354
|
-
});
|
|
355
|
-
Object.assign(contents, doc);
|
|
356
|
-
return contents;
|
|
357
265
|
};
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
const
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
const
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
const
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}
|
|
405
|
-
const contents = smithyClient.map({
|
|
406
|
-
$metadata: deserializeMetadata(output),
|
|
407
|
-
});
|
|
408
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
409
|
-
const doc = smithyClient.take(data, {
|
|
410
|
-
executionState: smithyClient._json,
|
|
411
|
-
jobDocument: smithyClient.expectString,
|
|
412
|
-
});
|
|
413
|
-
Object.assign(contents, doc);
|
|
414
|
-
return contents;
|
|
415
|
-
};
|
|
416
|
-
const de_CommandError = async (output, context) => {
|
|
417
|
-
const parsedOutput = {
|
|
418
|
-
...output,
|
|
419
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
420
|
-
};
|
|
421
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
422
|
-
switch (errorCode) {
|
|
423
|
-
case "CertificateValidationException":
|
|
424
|
-
case "com.amazonaws.iotjobsdataplane#CertificateValidationException":
|
|
425
|
-
throw await de_CertificateValidationExceptionRes(parsedOutput);
|
|
426
|
-
case "InvalidRequestException":
|
|
427
|
-
case "com.amazonaws.iotjobsdataplane#InvalidRequestException":
|
|
428
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput);
|
|
429
|
-
case "ResourceNotFoundException":
|
|
430
|
-
case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException":
|
|
431
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
432
|
-
case "ServiceUnavailableException":
|
|
433
|
-
case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException":
|
|
434
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
435
|
-
case "TerminalStateException":
|
|
436
|
-
case "com.amazonaws.iotjobsdataplane#TerminalStateException":
|
|
437
|
-
throw await de_TerminalStateExceptionRes(parsedOutput);
|
|
438
|
-
case "ThrottlingException":
|
|
439
|
-
case "com.amazonaws.iotjobsdataplane#ThrottlingException":
|
|
440
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
441
|
-
case "ConflictException":
|
|
442
|
-
case "com.amazonaws.iotjobsdataplane#ConflictException":
|
|
443
|
-
throw await de_ConflictExceptionRes(parsedOutput);
|
|
444
|
-
case "InternalServerException":
|
|
445
|
-
case "com.amazonaws.iotjobsdataplane#InternalServerException":
|
|
446
|
-
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
447
|
-
case "ServiceQuotaExceededException":
|
|
448
|
-
case "com.amazonaws.iotjobsdataplane#ServiceQuotaExceededException":
|
|
449
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
450
|
-
case "ValidationException":
|
|
451
|
-
case "com.amazonaws.iotjobsdataplane#ValidationException":
|
|
452
|
-
throw await de_ValidationExceptionRes(parsedOutput);
|
|
453
|
-
case "InvalidStateTransitionException":
|
|
454
|
-
case "com.amazonaws.iotjobsdataplane#InvalidStateTransitionException":
|
|
455
|
-
throw await de_InvalidStateTransitionExceptionRes(parsedOutput);
|
|
456
|
-
default:
|
|
457
|
-
const parsedBody = parsedOutput.body;
|
|
458
|
-
return throwDefaultError({
|
|
459
|
-
output,
|
|
460
|
-
parsedBody,
|
|
461
|
-
errorCode,
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
const throwDefaultError = smithyClient.withBaseException(IoTJobsDataPlaneServiceException);
|
|
466
|
-
const de_CertificateValidationExceptionRes = async (parsedOutput, context) => {
|
|
467
|
-
const contents = smithyClient.map({});
|
|
468
|
-
const data = parsedOutput.body;
|
|
469
|
-
const doc = smithyClient.take(data, {
|
|
470
|
-
message: smithyClient.expectString,
|
|
471
|
-
});
|
|
472
|
-
Object.assign(contents, doc);
|
|
473
|
-
const exception = new CertificateValidationException({
|
|
474
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
475
|
-
...contents,
|
|
476
|
-
});
|
|
477
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
478
|
-
};
|
|
479
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
480
|
-
const contents = smithyClient.map({});
|
|
481
|
-
const data = parsedOutput.body;
|
|
482
|
-
const doc = smithyClient.take(data, {
|
|
483
|
-
message: smithyClient.expectString,
|
|
484
|
-
resourceId: smithyClient.expectString,
|
|
485
|
-
});
|
|
486
|
-
Object.assign(contents, doc);
|
|
487
|
-
const exception = new ConflictException({
|
|
488
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
489
|
-
...contents,
|
|
490
|
-
});
|
|
491
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
492
|
-
};
|
|
493
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
494
|
-
const contents = smithyClient.map({});
|
|
495
|
-
const data = parsedOutput.body;
|
|
496
|
-
const doc = smithyClient.take(data, {
|
|
497
|
-
message: smithyClient.expectString,
|
|
498
|
-
});
|
|
499
|
-
Object.assign(contents, doc);
|
|
500
|
-
const exception = new InternalServerException({
|
|
501
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
502
|
-
...contents,
|
|
503
|
-
});
|
|
504
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
505
|
-
};
|
|
506
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
507
|
-
const contents = smithyClient.map({});
|
|
508
|
-
const data = parsedOutput.body;
|
|
509
|
-
const doc = smithyClient.take(data, {
|
|
510
|
-
message: smithyClient.expectString,
|
|
511
|
-
});
|
|
512
|
-
Object.assign(contents, doc);
|
|
513
|
-
const exception = new InvalidRequestException({
|
|
514
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
515
|
-
...contents,
|
|
516
|
-
});
|
|
517
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
518
|
-
};
|
|
519
|
-
const de_InvalidStateTransitionExceptionRes = async (parsedOutput, context) => {
|
|
520
|
-
const contents = smithyClient.map({});
|
|
521
|
-
const data = parsedOutput.body;
|
|
522
|
-
const doc = smithyClient.take(data, {
|
|
523
|
-
message: smithyClient.expectString,
|
|
524
|
-
});
|
|
525
|
-
Object.assign(contents, doc);
|
|
526
|
-
const exception = new InvalidStateTransitionException({
|
|
527
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
528
|
-
...contents,
|
|
529
|
-
});
|
|
530
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
531
|
-
};
|
|
532
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
533
|
-
const contents = smithyClient.map({});
|
|
534
|
-
const data = parsedOutput.body;
|
|
535
|
-
const doc = smithyClient.take(data, {
|
|
536
|
-
message: smithyClient.expectString,
|
|
537
|
-
});
|
|
538
|
-
Object.assign(contents, doc);
|
|
539
|
-
const exception = new ResourceNotFoundException({
|
|
540
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
541
|
-
...contents,
|
|
542
|
-
});
|
|
543
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
544
|
-
};
|
|
545
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
546
|
-
const contents = smithyClient.map({});
|
|
547
|
-
const data = parsedOutput.body;
|
|
548
|
-
const doc = smithyClient.take(data, {
|
|
549
|
-
message: smithyClient.expectString,
|
|
550
|
-
});
|
|
551
|
-
Object.assign(contents, doc);
|
|
552
|
-
const exception = new ServiceQuotaExceededException({
|
|
553
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
554
|
-
...contents,
|
|
555
|
-
});
|
|
556
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
557
|
-
};
|
|
558
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
559
|
-
const contents = smithyClient.map({});
|
|
560
|
-
const data = parsedOutput.body;
|
|
561
|
-
const doc = smithyClient.take(data, {
|
|
562
|
-
message: smithyClient.expectString,
|
|
563
|
-
});
|
|
564
|
-
Object.assign(contents, doc);
|
|
565
|
-
const exception = new ServiceUnavailableException({
|
|
566
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
567
|
-
...contents,
|
|
568
|
-
});
|
|
569
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
570
|
-
};
|
|
571
|
-
const de_TerminalStateExceptionRes = async (parsedOutput, context) => {
|
|
572
|
-
const contents = smithyClient.map({});
|
|
573
|
-
const data = parsedOutput.body;
|
|
574
|
-
const doc = smithyClient.take(data, {
|
|
575
|
-
message: smithyClient.expectString,
|
|
576
|
-
});
|
|
577
|
-
Object.assign(contents, doc);
|
|
578
|
-
const exception = new TerminalStateException({
|
|
579
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
580
|
-
...contents,
|
|
581
|
-
});
|
|
582
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
583
|
-
};
|
|
584
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
585
|
-
const contents = smithyClient.map({});
|
|
586
|
-
const data = parsedOutput.body;
|
|
587
|
-
const doc = smithyClient.take(data, {
|
|
588
|
-
message: smithyClient.expectString,
|
|
589
|
-
payload: context.base64Decoder,
|
|
590
|
-
});
|
|
591
|
-
Object.assign(contents, doc);
|
|
592
|
-
const exception = new ThrottlingException({
|
|
593
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
594
|
-
...contents,
|
|
595
|
-
});
|
|
596
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
597
|
-
};
|
|
598
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
599
|
-
const contents = smithyClient.map({});
|
|
600
|
-
const data = parsedOutput.body;
|
|
601
|
-
const doc = smithyClient.take(data, {
|
|
602
|
-
message: smithyClient.expectString,
|
|
603
|
-
});
|
|
604
|
-
Object.assign(contents, doc);
|
|
605
|
-
const exception = new ValidationException({
|
|
606
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
607
|
-
...contents,
|
|
608
|
-
});
|
|
609
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
610
|
-
};
|
|
611
|
-
const se_CommandExecutionParameterMap = (input, context) => {
|
|
612
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
613
|
-
if (value === null) {
|
|
614
|
-
return acc;
|
|
615
|
-
}
|
|
616
|
-
acc[key] = se_CommandParameterValue(value, context);
|
|
617
|
-
return acc;
|
|
618
|
-
}, {});
|
|
619
|
-
};
|
|
620
|
-
const se_CommandParameterValue = (input, context) => {
|
|
621
|
-
return smithyClient.take(input, {
|
|
622
|
-
B: [],
|
|
623
|
-
BIN: context.base64Encoder,
|
|
624
|
-
D: smithyClient.serializeFloat,
|
|
625
|
-
I: [],
|
|
626
|
-
L: [],
|
|
627
|
-
S: [],
|
|
628
|
-
UL: [],
|
|
629
|
-
});
|
|
630
|
-
};
|
|
631
|
-
const deserializeMetadata = (output) => ({
|
|
632
|
-
httpStatusCode: output.statusCode,
|
|
633
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
634
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
635
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
636
|
-
});
|
|
266
|
+
|
|
267
|
+
const _B = "B";
|
|
268
|
+
const _BIN = "BIN";
|
|
269
|
+
const _CE = "ConflictException";
|
|
270
|
+
const _CEPM = "CommandExecutionParameterMap";
|
|
271
|
+
const _CPV = "CommandParameterValue";
|
|
272
|
+
const _CVE = "CertificateValidationException";
|
|
273
|
+
const _D = "D";
|
|
274
|
+
const _DJE = "DescribeJobExecution";
|
|
275
|
+
const _DJER = "DescribeJobExecutionRequest";
|
|
276
|
+
const _DJERe = "DescribeJobExecutionResponse";
|
|
277
|
+
const _GPJE = "GetPendingJobExecutions";
|
|
278
|
+
const _GPJER = "GetPendingJobExecutionsRequest";
|
|
279
|
+
const _GPJERe = "GetPendingJobExecutionsResponse";
|
|
280
|
+
const _I = "I";
|
|
281
|
+
const _IRE = "InvalidRequestException";
|
|
282
|
+
const _ISE = "InternalServerException";
|
|
283
|
+
const _ISTE = "InvalidStateTransitionException";
|
|
284
|
+
const _JE = "JobExecution";
|
|
285
|
+
const _JES = "JobExecutionState";
|
|
286
|
+
const _JESL = "JobExecutionSummaryList";
|
|
287
|
+
const _JESo = "JobExecutionSummary";
|
|
288
|
+
const _L = "L";
|
|
289
|
+
const _RNFE = "ResourceNotFoundException";
|
|
290
|
+
const _S = "S";
|
|
291
|
+
const _SCE = "StartCommandExecution";
|
|
292
|
+
const _SCER = "StartCommandExecutionRequest";
|
|
293
|
+
const _SCERt = "StartCommandExecutionResponse";
|
|
294
|
+
const _SNPJE = "StartNextPendingJobExecution";
|
|
295
|
+
const _SNPJER = "StartNextPendingJobExecutionRequest";
|
|
296
|
+
const _SNPJERt = "StartNextPendingJobExecutionResponse";
|
|
297
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
298
|
+
const _SUE = "ServiceUnavailableException";
|
|
299
|
+
const _TE = "ThrottlingException";
|
|
300
|
+
const _TSE = "TerminalStateException";
|
|
301
|
+
const _UJE = "UpdateJobExecution";
|
|
302
|
+
const _UJER = "UpdateJobExecutionRequest";
|
|
303
|
+
const _UJERp = "UpdateJobExecutionResponse";
|
|
304
|
+
const _UL = "UL";
|
|
305
|
+
const _VE = "ValidationException";
|
|
306
|
+
const _aSBTO = "approximateSecondsBeforeTimedOut";
|
|
307
|
+
const _c = "client";
|
|
308
|
+
const _cA = "commandArn";
|
|
309
|
+
const _cT = "clientToken";
|
|
310
|
+
const _e = "error";
|
|
311
|
+
const _eI = "executionId";
|
|
637
312
|
const _eN = "executionNumber";
|
|
313
|
+
const _eS = "executionState";
|
|
314
|
+
const _eTS = "executionTimeoutSeconds";
|
|
315
|
+
const _eV = "expectedVersion";
|
|
316
|
+
const _ex = "execution";
|
|
317
|
+
const _h = "http";
|
|
318
|
+
const _hE = "httpError";
|
|
319
|
+
const _hQ = "httpQuery";
|
|
638
320
|
const _iJD = "includeJobDocument";
|
|
321
|
+
const _iJES = "includeJobExecutionState";
|
|
322
|
+
const _iPJ = "inProgressJobs";
|
|
323
|
+
const _jD = "jobDocument";
|
|
324
|
+
const _jI = "jobId";
|
|
325
|
+
const _lUA = "lastUpdatedAt";
|
|
326
|
+
const _m = "message";
|
|
327
|
+
const _p = "parameters";
|
|
328
|
+
const _pa = "payload";
|
|
329
|
+
const _qA = "queuedAt";
|
|
330
|
+
const _qJ = "queuedJobs";
|
|
331
|
+
const _rI = "resourceId";
|
|
332
|
+
const _s = "server";
|
|
333
|
+
const _sA = "startedAt";
|
|
334
|
+
const _sD = "statusDetails";
|
|
335
|
+
const _sTIM = "stepTimeoutInMinutes";
|
|
336
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.iotjobsdataplane";
|
|
337
|
+
const _st = "status";
|
|
338
|
+
const _tA = "targetArn";
|
|
339
|
+
const _tN = "thingName";
|
|
340
|
+
const _vN = "versionNumber";
|
|
341
|
+
const n0 = "com.amazonaws.iotjobsdataplane";
|
|
342
|
+
var CertificateValidationException = [
|
|
343
|
+
-3,
|
|
344
|
+
n0,
|
|
345
|
+
_CVE,
|
|
346
|
+
{
|
|
347
|
+
[_e]: _c,
|
|
348
|
+
[_hE]: 400,
|
|
349
|
+
},
|
|
350
|
+
[_m],
|
|
351
|
+
[0],
|
|
352
|
+
];
|
|
353
|
+
schema.TypeRegistry.for(n0).registerError(CertificateValidationException, CertificateValidationException$1);
|
|
354
|
+
var CommandParameterValue = [
|
|
355
|
+
3,
|
|
356
|
+
n0,
|
|
357
|
+
_CPV,
|
|
358
|
+
0,
|
|
359
|
+
[_S, _B, _I, _L, _D, _BIN, _UL],
|
|
360
|
+
[0, 2, 1, 1, 1, 21, 0],
|
|
361
|
+
];
|
|
362
|
+
var ConflictException = [
|
|
363
|
+
-3,
|
|
364
|
+
n0,
|
|
365
|
+
_CE,
|
|
366
|
+
{
|
|
367
|
+
[_e]: _c,
|
|
368
|
+
[_hE]: 409,
|
|
369
|
+
},
|
|
370
|
+
[_m, _rI],
|
|
371
|
+
[0, 0],
|
|
372
|
+
];
|
|
373
|
+
schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
|
|
374
|
+
var DescribeJobExecutionRequest = [
|
|
375
|
+
3,
|
|
376
|
+
n0,
|
|
377
|
+
_DJER,
|
|
378
|
+
0,
|
|
379
|
+
[_jI, _tN, _iJD, _eN],
|
|
380
|
+
[
|
|
381
|
+
[0, 1],
|
|
382
|
+
[0, 1],
|
|
383
|
+
[
|
|
384
|
+
2,
|
|
385
|
+
{
|
|
386
|
+
[_hQ]: _iJD,
|
|
387
|
+
},
|
|
388
|
+
],
|
|
389
|
+
[
|
|
390
|
+
1,
|
|
391
|
+
{
|
|
392
|
+
[_hQ]: _eN,
|
|
393
|
+
},
|
|
394
|
+
],
|
|
395
|
+
],
|
|
396
|
+
];
|
|
397
|
+
var DescribeJobExecutionResponse = [3, n0, _DJERe, 0, [_ex], [() => JobExecution]];
|
|
398
|
+
var GetPendingJobExecutionsRequest = [3, n0, _GPJER, 0, [_tN], [[0, 1]]];
|
|
399
|
+
var GetPendingJobExecutionsResponse = [
|
|
400
|
+
3,
|
|
401
|
+
n0,
|
|
402
|
+
_GPJERe,
|
|
403
|
+
0,
|
|
404
|
+
[_iPJ, _qJ],
|
|
405
|
+
[() => JobExecutionSummaryList, () => JobExecutionSummaryList],
|
|
406
|
+
];
|
|
407
|
+
var InternalServerException = [
|
|
408
|
+
-3,
|
|
409
|
+
n0,
|
|
410
|
+
_ISE,
|
|
411
|
+
{
|
|
412
|
+
[_e]: _s,
|
|
413
|
+
[_hE]: 500,
|
|
414
|
+
},
|
|
415
|
+
[_m],
|
|
416
|
+
[0],
|
|
417
|
+
];
|
|
418
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
|
419
|
+
var InvalidRequestException = [
|
|
420
|
+
-3,
|
|
421
|
+
n0,
|
|
422
|
+
_IRE,
|
|
423
|
+
{
|
|
424
|
+
[_e]: _c,
|
|
425
|
+
[_hE]: 400,
|
|
426
|
+
},
|
|
427
|
+
[_m],
|
|
428
|
+
[0],
|
|
429
|
+
];
|
|
430
|
+
schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
|
|
431
|
+
var InvalidStateTransitionException = [
|
|
432
|
+
-3,
|
|
433
|
+
n0,
|
|
434
|
+
_ISTE,
|
|
435
|
+
{
|
|
436
|
+
[_e]: _c,
|
|
437
|
+
[_hE]: 409,
|
|
438
|
+
},
|
|
439
|
+
[_m],
|
|
440
|
+
[0],
|
|
441
|
+
];
|
|
442
|
+
schema.TypeRegistry.for(n0).registerError(InvalidStateTransitionException, InvalidStateTransitionException$1);
|
|
443
|
+
var JobExecution = [
|
|
444
|
+
3,
|
|
445
|
+
n0,
|
|
446
|
+
_JE,
|
|
447
|
+
0,
|
|
448
|
+
[_jI, _tN, _st, _sD, _qA, _sA, _lUA, _aSBTO, _vN, _eN, _jD],
|
|
449
|
+
[0, 0, 0, 128 | 0, 1, 1, 1, 1, 1, 1, 0],
|
|
450
|
+
];
|
|
451
|
+
var JobExecutionState = [3, n0, _JES, 0, [_st, _sD, _vN], [0, 128 | 0, 1]];
|
|
452
|
+
var JobExecutionSummary = [
|
|
453
|
+
3,
|
|
454
|
+
n0,
|
|
455
|
+
_JESo,
|
|
456
|
+
0,
|
|
457
|
+
[_jI, _qA, _sA, _lUA, _vN, _eN],
|
|
458
|
+
[0, 1, 1, 1, 1, 1],
|
|
459
|
+
];
|
|
460
|
+
var ResourceNotFoundException = [
|
|
461
|
+
-3,
|
|
462
|
+
n0,
|
|
463
|
+
_RNFE,
|
|
464
|
+
{
|
|
465
|
+
[_e]: _c,
|
|
466
|
+
[_hE]: 404,
|
|
467
|
+
},
|
|
468
|
+
[_m],
|
|
469
|
+
[0],
|
|
470
|
+
];
|
|
471
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
472
|
+
var ServiceQuotaExceededException = [
|
|
473
|
+
-3,
|
|
474
|
+
n0,
|
|
475
|
+
_SQEE,
|
|
476
|
+
{
|
|
477
|
+
[_e]: _c,
|
|
478
|
+
[_hE]: 402,
|
|
479
|
+
},
|
|
480
|
+
[_m],
|
|
481
|
+
[0],
|
|
482
|
+
];
|
|
483
|
+
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
|
|
484
|
+
var ServiceUnavailableException = [
|
|
485
|
+
-3,
|
|
486
|
+
n0,
|
|
487
|
+
_SUE,
|
|
488
|
+
{
|
|
489
|
+
[_e]: _s,
|
|
490
|
+
[_hE]: 503,
|
|
491
|
+
},
|
|
492
|
+
[_m],
|
|
493
|
+
[0],
|
|
494
|
+
];
|
|
495
|
+
schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
|
|
496
|
+
var StartCommandExecutionRequest = [
|
|
497
|
+
3,
|
|
498
|
+
n0,
|
|
499
|
+
_SCER,
|
|
500
|
+
0,
|
|
501
|
+
[_tA, _cA, _p, _eTS, _cT],
|
|
502
|
+
[0, 0, () => CommandExecutionParameterMap, 1, [0, 4]],
|
|
503
|
+
];
|
|
504
|
+
var StartCommandExecutionResponse = [3, n0, _SCERt, 0, [_eI], [0]];
|
|
505
|
+
var StartNextPendingJobExecutionRequest = [
|
|
506
|
+
3,
|
|
507
|
+
n0,
|
|
508
|
+
_SNPJER,
|
|
509
|
+
0,
|
|
510
|
+
[_tN, _sD, _sTIM],
|
|
511
|
+
[[0, 1], 128 | 0, 1],
|
|
512
|
+
];
|
|
513
|
+
var StartNextPendingJobExecutionResponse = [
|
|
514
|
+
3,
|
|
515
|
+
n0,
|
|
516
|
+
_SNPJERt,
|
|
517
|
+
0,
|
|
518
|
+
[_ex],
|
|
519
|
+
[() => JobExecution],
|
|
520
|
+
];
|
|
521
|
+
var TerminalStateException = [
|
|
522
|
+
-3,
|
|
523
|
+
n0,
|
|
524
|
+
_TSE,
|
|
525
|
+
{
|
|
526
|
+
[_e]: _c,
|
|
527
|
+
[_hE]: 410,
|
|
528
|
+
},
|
|
529
|
+
[_m],
|
|
530
|
+
[0],
|
|
531
|
+
];
|
|
532
|
+
schema.TypeRegistry.for(n0).registerError(TerminalStateException, TerminalStateException$1);
|
|
533
|
+
var ThrottlingException = [
|
|
534
|
+
-3,
|
|
535
|
+
n0,
|
|
536
|
+
_TE,
|
|
537
|
+
{
|
|
538
|
+
[_e]: _c,
|
|
539
|
+
[_hE]: 429,
|
|
540
|
+
},
|
|
541
|
+
[_m, _pa],
|
|
542
|
+
[0, 21],
|
|
543
|
+
];
|
|
544
|
+
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
545
|
+
var UpdateJobExecutionRequest = [
|
|
546
|
+
3,
|
|
547
|
+
n0,
|
|
548
|
+
_UJER,
|
|
549
|
+
0,
|
|
550
|
+
[_jI, _tN, _st, _sD, _sTIM, _eV, _iJES, _iJD, _eN],
|
|
551
|
+
[[0, 1], [0, 1], 0, 128 | 0, 1, 1, 2, 2, 1],
|
|
552
|
+
];
|
|
553
|
+
var UpdateJobExecutionResponse = [
|
|
554
|
+
3,
|
|
555
|
+
n0,
|
|
556
|
+
_UJERp,
|
|
557
|
+
0,
|
|
558
|
+
[_eS, _jD],
|
|
559
|
+
[() => JobExecutionState, 0],
|
|
560
|
+
];
|
|
561
|
+
var ValidationException = [
|
|
562
|
+
-3,
|
|
563
|
+
n0,
|
|
564
|
+
_VE,
|
|
565
|
+
{
|
|
566
|
+
[_e]: _c,
|
|
567
|
+
[_hE]: 400,
|
|
568
|
+
},
|
|
569
|
+
[_m],
|
|
570
|
+
[0],
|
|
571
|
+
];
|
|
572
|
+
schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
|
|
573
|
+
var IoTJobsDataPlaneServiceException = [
|
|
574
|
+
-3,
|
|
575
|
+
_sm,
|
|
576
|
+
"IoTJobsDataPlaneServiceException",
|
|
577
|
+
0,
|
|
578
|
+
[],
|
|
579
|
+
[],
|
|
580
|
+
];
|
|
581
|
+
schema.TypeRegistry.for(_sm).registerError(IoTJobsDataPlaneServiceException, IoTJobsDataPlaneServiceException$1);
|
|
582
|
+
var JobExecutionSummaryList = [1, n0, _JESL, 0, () => JobExecutionSummary];
|
|
583
|
+
var CommandExecutionParameterMap = [2, n0, _CEPM, 0, 0, () => CommandParameterValue];
|
|
584
|
+
var DescribeJobExecution = [
|
|
585
|
+
9,
|
|
586
|
+
n0,
|
|
587
|
+
_DJE,
|
|
588
|
+
{
|
|
589
|
+
[_h]: ["GET", "/things/{thingName}/jobs/{jobId}", 200],
|
|
590
|
+
},
|
|
591
|
+
() => DescribeJobExecutionRequest,
|
|
592
|
+
() => DescribeJobExecutionResponse,
|
|
593
|
+
];
|
|
594
|
+
var GetPendingJobExecutions = [
|
|
595
|
+
9,
|
|
596
|
+
n0,
|
|
597
|
+
_GPJE,
|
|
598
|
+
{
|
|
599
|
+
[_h]: ["GET", "/things/{thingName}/jobs", 200],
|
|
600
|
+
},
|
|
601
|
+
() => GetPendingJobExecutionsRequest,
|
|
602
|
+
() => GetPendingJobExecutionsResponse,
|
|
603
|
+
];
|
|
604
|
+
var StartCommandExecution = [
|
|
605
|
+
9,
|
|
606
|
+
n0,
|
|
607
|
+
_SCE,
|
|
608
|
+
{
|
|
609
|
+
[_h]: ["POST", "/command-executions", 200],
|
|
610
|
+
},
|
|
611
|
+
() => StartCommandExecutionRequest,
|
|
612
|
+
() => StartCommandExecutionResponse,
|
|
613
|
+
];
|
|
614
|
+
var StartNextPendingJobExecution = [
|
|
615
|
+
9,
|
|
616
|
+
n0,
|
|
617
|
+
_SNPJE,
|
|
618
|
+
{
|
|
619
|
+
[_h]: ["PUT", "/things/{thingName}/jobs/$next", 200],
|
|
620
|
+
},
|
|
621
|
+
() => StartNextPendingJobExecutionRequest,
|
|
622
|
+
() => StartNextPendingJobExecutionResponse,
|
|
623
|
+
];
|
|
624
|
+
var UpdateJobExecution = [
|
|
625
|
+
9,
|
|
626
|
+
n0,
|
|
627
|
+
_UJE,
|
|
628
|
+
{
|
|
629
|
+
[_h]: ["POST", "/things/{thingName}/jobs/{jobId}", 200],
|
|
630
|
+
},
|
|
631
|
+
() => UpdateJobExecutionRequest,
|
|
632
|
+
() => UpdateJobExecutionResponse,
|
|
633
|
+
];
|
|
639
634
|
|
|
640
635
|
class DescribeJobExecutionCommand extends smithyClient.Command
|
|
641
636
|
.classBuilder()
|
|
642
637
|
.ep(commonParams)
|
|
643
638
|
.m(function (Command, cs, config, o) {
|
|
644
|
-
return [
|
|
645
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
646
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
647
|
-
];
|
|
639
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
648
640
|
})
|
|
649
641
|
.s("IotLaserThingJobManagerExternalService", "DescribeJobExecution", {})
|
|
650
642
|
.n("IoTJobsDataPlaneClient", "DescribeJobExecutionCommand")
|
|
651
|
-
.
|
|
652
|
-
.ser(se_DescribeJobExecutionCommand)
|
|
653
|
-
.de(de_DescribeJobExecutionCommand)
|
|
643
|
+
.sc(DescribeJobExecution)
|
|
654
644
|
.build() {
|
|
655
645
|
}
|
|
656
646
|
|
|
@@ -658,16 +648,11 @@ class GetPendingJobExecutionsCommand extends smithyClient.Command
|
|
|
658
648
|
.classBuilder()
|
|
659
649
|
.ep(commonParams)
|
|
660
650
|
.m(function (Command, cs, config, o) {
|
|
661
|
-
return [
|
|
662
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
663
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
664
|
-
];
|
|
651
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
665
652
|
})
|
|
666
653
|
.s("IotLaserThingJobManagerExternalService", "GetPendingJobExecutions", {})
|
|
667
654
|
.n("IoTJobsDataPlaneClient", "GetPendingJobExecutionsCommand")
|
|
668
|
-
.
|
|
669
|
-
.ser(se_GetPendingJobExecutionsCommand)
|
|
670
|
-
.de(de_GetPendingJobExecutionsCommand)
|
|
655
|
+
.sc(GetPendingJobExecutions)
|
|
671
656
|
.build() {
|
|
672
657
|
}
|
|
673
658
|
|
|
@@ -675,16 +660,11 @@ class StartCommandExecutionCommand extends smithyClient.Command
|
|
|
675
660
|
.classBuilder()
|
|
676
661
|
.ep(commonParams)
|
|
677
662
|
.m(function (Command, cs, config, o) {
|
|
678
|
-
return [
|
|
679
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
680
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
681
|
-
];
|
|
663
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
682
664
|
})
|
|
683
665
|
.s("IotLaserThingJobManagerExternalService", "StartCommandExecution", {})
|
|
684
666
|
.n("IoTJobsDataPlaneClient", "StartCommandExecutionCommand")
|
|
685
|
-
.
|
|
686
|
-
.ser(se_StartCommandExecutionCommand)
|
|
687
|
-
.de(de_StartCommandExecutionCommand)
|
|
667
|
+
.sc(StartCommandExecution)
|
|
688
668
|
.build() {
|
|
689
669
|
}
|
|
690
670
|
|
|
@@ -692,16 +672,11 @@ class StartNextPendingJobExecutionCommand extends smithyClient.Command
|
|
|
692
672
|
.classBuilder()
|
|
693
673
|
.ep(commonParams)
|
|
694
674
|
.m(function (Command, cs, config, o) {
|
|
695
|
-
return [
|
|
696
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
697
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
698
|
-
];
|
|
675
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
699
676
|
})
|
|
700
677
|
.s("IotLaserThingJobManagerExternalService", "StartNextPendingJobExecution", {})
|
|
701
678
|
.n("IoTJobsDataPlaneClient", "StartNextPendingJobExecutionCommand")
|
|
702
|
-
.
|
|
703
|
-
.ser(se_StartNextPendingJobExecutionCommand)
|
|
704
|
-
.de(de_StartNextPendingJobExecutionCommand)
|
|
679
|
+
.sc(StartNextPendingJobExecution)
|
|
705
680
|
.build() {
|
|
706
681
|
}
|
|
707
682
|
|
|
@@ -709,16 +684,11 @@ class UpdateJobExecutionCommand extends smithyClient.Command
|
|
|
709
684
|
.classBuilder()
|
|
710
685
|
.ep(commonParams)
|
|
711
686
|
.m(function (Command, cs, config, o) {
|
|
712
|
-
return [
|
|
713
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
714
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
715
|
-
];
|
|
687
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
716
688
|
})
|
|
717
689
|
.s("IotLaserThingJobManagerExternalService", "UpdateJobExecution", {})
|
|
718
690
|
.n("IoTJobsDataPlaneClient", "UpdateJobExecutionCommand")
|
|
719
|
-
.
|
|
720
|
-
.ser(se_UpdateJobExecutionCommand)
|
|
721
|
-
.de(de_UpdateJobExecutionCommand)
|
|
691
|
+
.sc(UpdateJobExecution)
|
|
722
692
|
.build() {
|
|
723
693
|
}
|
|
724
694
|
|
|
@@ -741,23 +711,23 @@ Object.defineProperty(exports, "__Client", {
|
|
|
741
711
|
enumerable: true,
|
|
742
712
|
get: function () { return smithyClient.Client; }
|
|
743
713
|
});
|
|
744
|
-
exports.CertificateValidationException = CertificateValidationException;
|
|
745
|
-
exports.ConflictException = ConflictException;
|
|
714
|
+
exports.CertificateValidationException = CertificateValidationException$1;
|
|
715
|
+
exports.ConflictException = ConflictException$1;
|
|
746
716
|
exports.DescribeJobExecutionCommand = DescribeJobExecutionCommand;
|
|
747
717
|
exports.GetPendingJobExecutionsCommand = GetPendingJobExecutionsCommand;
|
|
748
|
-
exports.InternalServerException = InternalServerException;
|
|
749
|
-
exports.InvalidRequestException = InvalidRequestException;
|
|
750
|
-
exports.InvalidStateTransitionException = InvalidStateTransitionException;
|
|
718
|
+
exports.InternalServerException = InternalServerException$1;
|
|
719
|
+
exports.InvalidRequestException = InvalidRequestException$1;
|
|
720
|
+
exports.InvalidStateTransitionException = InvalidStateTransitionException$1;
|
|
751
721
|
exports.IoTJobsDataPlane = IoTJobsDataPlane;
|
|
752
722
|
exports.IoTJobsDataPlaneClient = IoTJobsDataPlaneClient;
|
|
753
|
-
exports.IoTJobsDataPlaneServiceException = IoTJobsDataPlaneServiceException;
|
|
723
|
+
exports.IoTJobsDataPlaneServiceException = IoTJobsDataPlaneServiceException$1;
|
|
754
724
|
exports.JobExecutionStatus = JobExecutionStatus;
|
|
755
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
756
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
757
|
-
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
725
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
726
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
|
|
727
|
+
exports.ServiceUnavailableException = ServiceUnavailableException$1;
|
|
758
728
|
exports.StartCommandExecutionCommand = StartCommandExecutionCommand;
|
|
759
729
|
exports.StartNextPendingJobExecutionCommand = StartNextPendingJobExecutionCommand;
|
|
760
|
-
exports.TerminalStateException = TerminalStateException;
|
|
761
|
-
exports.ThrottlingException = ThrottlingException;
|
|
730
|
+
exports.TerminalStateException = TerminalStateException$1;
|
|
731
|
+
exports.ThrottlingException = ThrottlingException$1;
|
|
762
732
|
exports.UpdateJobExecutionCommand = UpdateJobExecutionCommand;
|
|
763
|
-
exports.ValidationException = ValidationException;
|
|
733
|
+
exports.ValidationException = ValidationException$1;
|