@aws-sdk/client-iot-jobs-data-plane 3.956.0 → 3.958.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/README.md CHANGED
@@ -29,10 +29,8 @@ to track the progress of a job on a specific target and for all the targets of t
29
29
  job</p>
30
30
 
31
31
  ## Installing
32
-
33
32
  To install this package, simply type add or install @aws-sdk/client-iot-jobs-data-plane
34
33
  using your favorite package manager:
35
-
36
34
  - `npm install @aws-sdk/client-iot-jobs-data-plane`
37
35
  - `yarn add @aws-sdk/client-iot-jobs-data-plane`
38
36
  - `pnpm add @aws-sdk/client-iot-jobs-data-plane`
@@ -68,9 +66,7 @@ To send a request, you:
68
66
  // a client can be shared by different commands.
69
67
  const client = new IoTJobsDataPlaneClient({ region: "REGION" });
70
68
 
71
- const params = {
72
- /** input parameters */
73
- };
69
+ const params = { /** input parameters */ };
74
70
  const command = new GetPendingJobExecutionsCommand(params);
75
71
  ```
76
72
 
@@ -229,7 +225,6 @@ DescribeJobExecution
229
225
  </summary>
230
226
 
231
227
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-jobs-data-plane/command/DescribeJobExecutionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-jobs-data-plane/Interface/DescribeJobExecutionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-jobs-data-plane/Interface/DescribeJobExecutionCommandOutput/)
232
-
233
228
  </details>
234
229
  <details>
235
230
  <summary>
@@ -237,7 +232,6 @@ GetPendingJobExecutions
237
232
  </summary>
238
233
 
239
234
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-jobs-data-plane/command/GetPendingJobExecutionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-jobs-data-plane/Interface/GetPendingJobExecutionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-jobs-data-plane/Interface/GetPendingJobExecutionsCommandOutput/)
240
-
241
235
  </details>
242
236
  <details>
243
237
  <summary>
@@ -245,7 +239,6 @@ StartCommandExecution
245
239
  </summary>
246
240
 
247
241
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-jobs-data-plane/command/StartCommandExecutionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-jobs-data-plane/Interface/StartCommandExecutionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-jobs-data-plane/Interface/StartCommandExecutionCommandOutput/)
248
-
249
242
  </details>
250
243
  <details>
251
244
  <summary>
@@ -253,7 +246,6 @@ StartNextPendingJobExecution
253
246
  </summary>
254
247
 
255
248
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-jobs-data-plane/command/StartNextPendingJobExecutionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-jobs-data-plane/Interface/StartNextPendingJobExecutionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-jobs-data-plane/Interface/StartNextPendingJobExecutionCommandOutput/)
256
-
257
249
  </details>
258
250
  <details>
259
251
  <summary>
@@ -261,5 +253,4 @@ UpdateJobExecution
261
253
  </summary>
262
254
 
263
255
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-jobs-data-plane/command/UpdateJobExecutionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-jobs-data-plane/Interface/UpdateJobExecutionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-jobs-data-plane/Interface/UpdateJobExecutionCommandOutput/)
264
-
265
256
  </details>
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const defaultIoTJobsDataPlaneHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
8
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
- (() => {
11
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
- })(),
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
13
12
  };
14
13
  };
15
14
  exports.defaultIoTJobsDataPlaneHttpAuthSchemeParametersProvider = defaultIoTJobsDataPlaneHttpAuthSchemeParametersProvider;
package/dist-cjs/index.js CHANGED
@@ -329,167 +329,164 @@ const _tA = "targetArn";
329
329
  const _tN = "thingName";
330
330
  const _vN = "versionNumber";
331
331
  const n0 = "com.amazonaws.iotjobsdataplane";
332
- var CertificateValidationException$ = [-3, n0, _CVE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
332
+ var CertificateValidationException$ = [-3, n0, _CVE,
333
+ { [_e]: _c, [_hE]: 400 },
334
+ [_m],
335
+ [0]
336
+ ];
333
337
  schema.TypeRegistry.for(n0).registerError(CertificateValidationException$, CertificateValidationException);
334
- var CommandParameterValue$ = [
335
- 3,
336
- n0,
337
- _CPV,
338
+ var CommandParameterValue$ = [3, n0, _CPV,
338
339
  0,
339
340
  [_S, _B, _I, _L, _D, _BIN, _UL],
340
- [0, 2, 1, 1, 1, 21, 0],
341
+ [0, 2, 1, 1, 1, 21, 0]
342
+ ];
343
+ var ConflictException$ = [-3, n0, _CE,
344
+ { [_e]: _c, [_hE]: 409 },
345
+ [_m, _rI],
346
+ [0, 0]
341
347
  ];
342
- var ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_m, _rI], [0, 0]];
343
348
  schema.TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
344
- var DescribeJobExecutionRequest$ = [
345
- 3,
346
- n0,
347
- _DJER,
349
+ var DescribeJobExecutionRequest$ = [3, n0, _DJER,
348
350
  0,
349
351
  [_jI, _tN, _iJD, _eN],
350
- [
351
- [0, 1],
352
- [0, 1],
353
- [2, { [_hQ]: _iJD }],
354
- [1, { [_hQ]: _eN }],
355
- ],
356
- ];
357
- var DescribeJobExecutionResponse$ = [3, n0, _DJERe, 0, [_ex], [() => JobExecution$]];
358
- var GetPendingJobExecutionsRequest$ = [3, n0, _GPJER, 0, [_tN], [[0, 1]]];
359
- var GetPendingJobExecutionsResponse$ = [
360
- 3,
361
- n0,
362
- _GPJERe,
352
+ [[0, 1], [0, 1], [2, { [_hQ]: _iJD }], [1, { [_hQ]: _eN }]]
353
+ ];
354
+ var DescribeJobExecutionResponse$ = [3, n0, _DJERe,
355
+ 0,
356
+ [_ex],
357
+ [() => JobExecution$]
358
+ ];
359
+ var GetPendingJobExecutionsRequest$ = [3, n0, _GPJER,
360
+ 0,
361
+ [_tN],
362
+ [[0, 1]]
363
+ ];
364
+ var GetPendingJobExecutionsResponse$ = [3, n0, _GPJERe,
363
365
  0,
364
366
  [_iPJ, _qJ],
365
- [() => JobExecutionSummaryList, () => JobExecutionSummaryList],
367
+ [() => JobExecutionSummaryList, () => JobExecutionSummaryList]
368
+ ];
369
+ var InternalServerException$ = [-3, n0, _ISE,
370
+ { [_e]: _s, [_hE]: 500 },
371
+ [_m],
372
+ [0]
366
373
  ];
367
- var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_m], [0]];
368
374
  schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
369
- var InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
375
+ var InvalidRequestException$ = [-3, n0, _IRE,
376
+ { [_e]: _c, [_hE]: 400 },
377
+ [_m],
378
+ [0]
379
+ ];
370
380
  schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
371
- var InvalidStateTransitionException$ = [-3, n0, _ISTE, { [_e]: _c, [_hE]: 409 }, [_m], [0]];
381
+ var InvalidStateTransitionException$ = [-3, n0, _ISTE,
382
+ { [_e]: _c, [_hE]: 409 },
383
+ [_m],
384
+ [0]
385
+ ];
372
386
  schema.TypeRegistry.for(n0).registerError(InvalidStateTransitionException$, InvalidStateTransitionException);
373
- var JobExecution$ = [
374
- 3,
375
- n0,
376
- _JE,
387
+ var JobExecution$ = [3, n0, _JE,
377
388
  0,
378
389
  [_jI, _tN, _st, _sD, _qA, _sA, _lUA, _aSBTO, _vN, _eN, _jD],
379
- [0, 0, 0, 128 | 0, 1, 1, 1, 1, 1, 1, 0],
390
+ [0, 0, 0, 128 | 0, 1, 1, 1, 1, 1, 1, 0]
380
391
  ];
381
- var JobExecutionState$ = [3, n0, _JES, 0, [_st, _sD, _vN], [0, 128 | 0, 1]];
382
- var JobExecutionSummary$ = [
383
- 3,
384
- n0,
385
- _JESo,
392
+ var JobExecutionState$ = [3, n0, _JES,
393
+ 0,
394
+ [_st, _sD, _vN],
395
+ [0, 128 | 0, 1]
396
+ ];
397
+ var JobExecutionSummary$ = [3, n0, _JESo,
386
398
  0,
387
399
  [_jI, _qA, _sA, _lUA, _vN, _eN],
388
- [0, 1, 1, 1, 1, 1],
400
+ [0, 1, 1, 1, 1, 1]
401
+ ];
402
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
403
+ { [_e]: _c, [_hE]: 404 },
404
+ [_m],
405
+ [0]
389
406
  ];
390
- var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
391
407
  schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
392
- var ServiceQuotaExceededException$ = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 402 }, [_m], [0]];
408
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
409
+ { [_e]: _c, [_hE]: 402 },
410
+ [_m],
411
+ [0]
412
+ ];
393
413
  schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
394
- var ServiceUnavailableException$ = [-3, n0, _SUE, { [_e]: _s, [_hE]: 503 }, [_m], [0]];
414
+ var ServiceUnavailableException$ = [-3, n0, _SUE,
415
+ { [_e]: _s, [_hE]: 503 },
416
+ [_m],
417
+ [0]
418
+ ];
395
419
  schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
396
- var StartCommandExecutionRequest$ = [
397
- 3,
398
- n0,
399
- _SCER,
420
+ var StartCommandExecutionRequest$ = [3, n0, _SCER,
400
421
  0,
401
422
  [_tA, _cA, _p, _eTS, _cT],
402
- [0, 0, () => CommandExecutionParameterMap, 1, [0, 4]],
423
+ [0, 0, () => CommandExecutionParameterMap, 1, [0, 4]]
424
+ ];
425
+ var StartCommandExecutionResponse$ = [3, n0, _SCERt,
426
+ 0,
427
+ [_eI],
428
+ [0]
403
429
  ];
404
- var StartCommandExecutionResponse$ = [3, n0, _SCERt, 0, [_eI], [0]];
405
- var StartNextPendingJobExecutionRequest$ = [
406
- 3,
407
- n0,
408
- _SNPJER,
430
+ var StartNextPendingJobExecutionRequest$ = [3, n0, _SNPJER,
409
431
  0,
410
432
  [_tN, _sD, _sTIM],
411
- [[0, 1], 128 | 0, 1],
433
+ [[0, 1], 128 | 0, 1]
412
434
  ];
413
- var StartNextPendingJobExecutionResponse$ = [
414
- 3,
415
- n0,
416
- _SNPJERt,
435
+ var StartNextPendingJobExecutionResponse$ = [3, n0, _SNPJERt,
417
436
  0,
418
437
  [_ex],
419
- [() => JobExecution$],
438
+ [() => JobExecution$]
439
+ ];
440
+ var TerminalStateException$ = [-3, n0, _TSE,
441
+ { [_e]: _c, [_hE]: 410 },
442
+ [_m],
443
+ [0]
420
444
  ];
421
- var TerminalStateException$ = [-3, n0, _TSE, { [_e]: _c, [_hE]: 410 }, [_m], [0]];
422
445
  schema.TypeRegistry.for(n0).registerError(TerminalStateException$, TerminalStateException);
423
- var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m, _pa], [0, 21]];
446
+ var ThrottlingException$ = [-3, n0, _TE,
447
+ { [_e]: _c, [_hE]: 429 },
448
+ [_m, _pa],
449
+ [0, 21]
450
+ ];
424
451
  schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
425
- var UpdateJobExecutionRequest$ = [
426
- 3,
427
- n0,
428
- _UJER,
452
+ var UpdateJobExecutionRequest$ = [3, n0, _UJER,
429
453
  0,
430
454
  [_jI, _tN, _st, _sD, _sTIM, _eV, _iJES, _iJD, _eN],
431
- [[0, 1], [0, 1], 0, 128 | 0, 1, 1, 2, 2, 1],
455
+ [[0, 1], [0, 1], 0, 128 | 0, 1, 1, 2, 2, 1]
432
456
  ];
433
- var UpdateJobExecutionResponse$ = [
434
- 3,
435
- n0,
436
- _UJERp,
457
+ var UpdateJobExecutionResponse$ = [3, n0, _UJERp,
437
458
  0,
438
459
  [_eS, _jD],
439
- [() => JobExecutionState$, 0],
460
+ [() => JobExecutionState$, 0]
440
461
  ];
441
- var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
442
- schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
443
- var IoTJobsDataPlaneServiceException$ = [
444
- -3,
445
- _sm,
446
- "IoTJobsDataPlaneServiceException",
447
- 0,
448
- [],
449
- [],
462
+ var ValidationException$ = [-3, n0, _VE,
463
+ { [_e]: _c, [_hE]: 400 },
464
+ [_m],
465
+ [0]
450
466
  ];
467
+ schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
468
+ var IoTJobsDataPlaneServiceException$ = [-3, _sm, "IoTJobsDataPlaneServiceException", 0, [], []];
451
469
  schema.TypeRegistry.for(_sm).registerError(IoTJobsDataPlaneServiceException$, IoTJobsDataPlaneServiceException);
452
- var JobExecutionSummaryList = [1, n0, _JESL, 0, () => JobExecutionSummary$];
453
- var CommandExecutionParameterMap = [2, n0, _CEPM, 0, 0, () => CommandParameterValue$];
454
- var DescribeJobExecution$ = [
455
- 9,
456
- n0,
457
- _DJE,
458
- { [_h]: ["GET", "/things/{thingName}/jobs/{jobId}", 200] },
459
- () => DescribeJobExecutionRequest$,
460
- () => DescribeJobExecutionResponse$,
461
- ];
462
- var GetPendingJobExecutions$ = [
463
- 9,
464
- n0,
465
- _GPJE,
466
- { [_h]: ["GET", "/things/{thingName}/jobs", 200] },
467
- () => GetPendingJobExecutionsRequest$,
468
- () => GetPendingJobExecutionsResponse$,
469
- ];
470
- var StartCommandExecution$ = [
471
- 9,
472
- n0,
473
- _SCE,
474
- { [_h]: ["POST", "/command-executions", 200] },
475
- () => StartCommandExecutionRequest$,
476
- () => StartCommandExecutionResponse$,
477
- ];
478
- var StartNextPendingJobExecution$ = [
479
- 9,
480
- n0,
481
- _SNPJE,
482
- { [_h]: ["PUT", "/things/{thingName}/jobs/$next", 200] },
483
- () => StartNextPendingJobExecutionRequest$,
484
- () => StartNextPendingJobExecutionResponse$,
485
- ];
486
- var UpdateJobExecution$ = [
487
- 9,
488
- n0,
489
- _UJE,
490
- { [_h]: ["POST", "/things/{thingName}/jobs/{jobId}", 200] },
491
- () => UpdateJobExecutionRequest$,
492
- () => UpdateJobExecutionResponse$,
470
+ var JobExecutionSummaryList = [1, n0, _JESL,
471
+ 0, () => JobExecutionSummary$
472
+ ];
473
+ var CommandExecutionParameterMap = [2, n0, _CEPM,
474
+ 0, 0, () => CommandParameterValue$
475
+ ];
476
+ var DescribeJobExecution$ = [9, n0, _DJE,
477
+ { [_h]: ["GET", "/things/{thingName}/jobs/{jobId}", 200] }, () => DescribeJobExecutionRequest$, () => DescribeJobExecutionResponse$
478
+ ];
479
+ var GetPendingJobExecutions$ = [9, n0, _GPJE,
480
+ { [_h]: ["GET", "/things/{thingName}/jobs", 200] }, () => GetPendingJobExecutionsRequest$, () => GetPendingJobExecutionsResponse$
481
+ ];
482
+ var StartCommandExecution$ = [9, n0, _SCE,
483
+ { [_h]: ["POST", "/command-executions", 200] }, () => StartCommandExecutionRequest$, () => StartCommandExecutionResponse$
484
+ ];
485
+ var StartNextPendingJobExecution$ = [9, n0, _SNPJE,
486
+ { [_h]: ["PUT", "/things/{thingName}/jobs/$next", 200] }, () => StartNextPendingJobExecutionRequest$, () => StartNextPendingJobExecutionResponse$
487
+ ];
488
+ var UpdateJobExecution$ = [9, n0, _UJE,
489
+ { [_h]: ["POST", "/things/{thingName}/jobs/{jobId}", 200] }, () => UpdateJobExecutionRequest$, () => UpdateJobExecutionResponse$
493
490
  ];
494
491
 
495
492
  class DescribeJobExecutionCommand extends smithyClient.Command
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
24
24
  defaultsMode,
25
25
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
26
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
- (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
28
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
29
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
30
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
34
34
  authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
35
35
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
36
36
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
37
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
38
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
39
38
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
40
- region: config?.region ??
41
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
39
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
42
40
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
43
41
  retryMode: config?.retryMode ??
44
42
  (0, node_config_provider_1.loadConfig)({
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultIoTJobsDataPlaneHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
6
- region: (await normalizeProvider(config.region)()) ||
7
- (() => {
8
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
- })(),
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
10
9
  };
11
10
  };
12
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
20
20
  defaultsMode,
21
21
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
22
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
24
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
25
  region: config?.region ?? invalidProvider("Region is missing"),
27
26
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -1,7 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
- import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
4
+ import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
6
  import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
30
30
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
31
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
32
32
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
35
34
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
- region: config?.region ??
37
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
35
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
36
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
39
37
  retryMode: config?.retryMode ??
40
38
  loadNodeConfig({
@@ -76,166 +76,163 @@ const n0 = "com.amazonaws.iotjobsdataplane";
76
76
  import { TypeRegistry } from "@smithy/core/schema";
77
77
  import { CertificateValidationException, ConflictException, InternalServerException, InvalidRequestException, InvalidStateTransitionException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, TerminalStateException, ThrottlingException, ValidationException, } from "../models/errors";
78
78
  import { IoTJobsDataPlaneServiceException } from "../models/IoTJobsDataPlaneServiceException";
79
- export var CertificateValidationException$ = [-3, n0, _CVE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
79
+ export var CertificateValidationException$ = [-3, n0, _CVE,
80
+ { [_e]: _c, [_hE]: 400 },
81
+ [_m],
82
+ [0]
83
+ ];
80
84
  TypeRegistry.for(n0).registerError(CertificateValidationException$, CertificateValidationException);
81
- export var CommandParameterValue$ = [
82
- 3,
83
- n0,
84
- _CPV,
85
+ export var CommandParameterValue$ = [3, n0, _CPV,
85
86
  0,
86
87
  [_S, _B, _I, _L, _D, _BIN, _UL],
87
- [0, 2, 1, 1, 1, 21, 0],
88
+ [0, 2, 1, 1, 1, 21, 0]
89
+ ];
90
+ export var ConflictException$ = [-3, n0, _CE,
91
+ { [_e]: _c, [_hE]: 409 },
92
+ [_m, _rI],
93
+ [0, 0]
88
94
  ];
89
- export var ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_m, _rI], [0, 0]];
90
95
  TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
91
- export var DescribeJobExecutionRequest$ = [
92
- 3,
93
- n0,
94
- _DJER,
96
+ export var DescribeJobExecutionRequest$ = [3, n0, _DJER,
95
97
  0,
96
98
  [_jI, _tN, _iJD, _eN],
97
- [
98
- [0, 1],
99
- [0, 1],
100
- [2, { [_hQ]: _iJD }],
101
- [1, { [_hQ]: _eN }],
102
- ],
103
- ];
104
- export var DescribeJobExecutionResponse$ = [3, n0, _DJERe, 0, [_ex], [() => JobExecution$]];
105
- export var GetPendingJobExecutionsRequest$ = [3, n0, _GPJER, 0, [_tN], [[0, 1]]];
106
- export var GetPendingJobExecutionsResponse$ = [
107
- 3,
108
- n0,
109
- _GPJERe,
99
+ [[0, 1], [0, 1], [2, { [_hQ]: _iJD }], [1, { [_hQ]: _eN }]]
100
+ ];
101
+ export var DescribeJobExecutionResponse$ = [3, n0, _DJERe,
102
+ 0,
103
+ [_ex],
104
+ [() => JobExecution$]
105
+ ];
106
+ export var GetPendingJobExecutionsRequest$ = [3, n0, _GPJER,
107
+ 0,
108
+ [_tN],
109
+ [[0, 1]]
110
+ ];
111
+ export var GetPendingJobExecutionsResponse$ = [3, n0, _GPJERe,
110
112
  0,
111
113
  [_iPJ, _qJ],
112
- [() => JobExecutionSummaryList, () => JobExecutionSummaryList],
114
+ [() => JobExecutionSummaryList, () => JobExecutionSummaryList]
115
+ ];
116
+ export var InternalServerException$ = [-3, n0, _ISE,
117
+ { [_e]: _s, [_hE]: 500 },
118
+ [_m],
119
+ [0]
113
120
  ];
114
- export var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_m], [0]];
115
121
  TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
116
- export var InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
122
+ export var InvalidRequestException$ = [-3, n0, _IRE,
123
+ { [_e]: _c, [_hE]: 400 },
124
+ [_m],
125
+ [0]
126
+ ];
117
127
  TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
118
- export var InvalidStateTransitionException$ = [-3, n0, _ISTE, { [_e]: _c, [_hE]: 409 }, [_m], [0]];
128
+ export var InvalidStateTransitionException$ = [-3, n0, _ISTE,
129
+ { [_e]: _c, [_hE]: 409 },
130
+ [_m],
131
+ [0]
132
+ ];
119
133
  TypeRegistry.for(n0).registerError(InvalidStateTransitionException$, InvalidStateTransitionException);
120
- export var JobExecution$ = [
121
- 3,
122
- n0,
123
- _JE,
134
+ export var JobExecution$ = [3, n0, _JE,
124
135
  0,
125
136
  [_jI, _tN, _st, _sD, _qA, _sA, _lUA, _aSBTO, _vN, _eN, _jD],
126
- [0, 0, 0, 128 | 0, 1, 1, 1, 1, 1, 1, 0],
137
+ [0, 0, 0, 128 | 0, 1, 1, 1, 1, 1, 1, 0]
127
138
  ];
128
- export var JobExecutionState$ = [3, n0, _JES, 0, [_st, _sD, _vN], [0, 128 | 0, 1]];
129
- export var JobExecutionSummary$ = [
130
- 3,
131
- n0,
132
- _JESo,
139
+ export var JobExecutionState$ = [3, n0, _JES,
140
+ 0,
141
+ [_st, _sD, _vN],
142
+ [0, 128 | 0, 1]
143
+ ];
144
+ export var JobExecutionSummary$ = [3, n0, _JESo,
133
145
  0,
134
146
  [_jI, _qA, _sA, _lUA, _vN, _eN],
135
- [0, 1, 1, 1, 1, 1],
147
+ [0, 1, 1, 1, 1, 1]
148
+ ];
149
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
150
+ { [_e]: _c, [_hE]: 404 },
151
+ [_m],
152
+ [0]
136
153
  ];
137
- export var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
138
154
  TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
139
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 402 }, [_m], [0]];
155
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
156
+ { [_e]: _c, [_hE]: 402 },
157
+ [_m],
158
+ [0]
159
+ ];
140
160
  TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
141
- export var ServiceUnavailableException$ = [-3, n0, _SUE, { [_e]: _s, [_hE]: 503 }, [_m], [0]];
161
+ export var ServiceUnavailableException$ = [-3, n0, _SUE,
162
+ { [_e]: _s, [_hE]: 503 },
163
+ [_m],
164
+ [0]
165
+ ];
142
166
  TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
143
- export var StartCommandExecutionRequest$ = [
144
- 3,
145
- n0,
146
- _SCER,
167
+ export var StartCommandExecutionRequest$ = [3, n0, _SCER,
147
168
  0,
148
169
  [_tA, _cA, _p, _eTS, _cT],
149
- [0, 0, () => CommandExecutionParameterMap, 1, [0, 4]],
170
+ [0, 0, () => CommandExecutionParameterMap, 1, [0, 4]]
171
+ ];
172
+ export var StartCommandExecutionResponse$ = [3, n0, _SCERt,
173
+ 0,
174
+ [_eI],
175
+ [0]
150
176
  ];
151
- export var StartCommandExecutionResponse$ = [3, n0, _SCERt, 0, [_eI], [0]];
152
- export var StartNextPendingJobExecutionRequest$ = [
153
- 3,
154
- n0,
155
- _SNPJER,
177
+ export var StartNextPendingJobExecutionRequest$ = [3, n0, _SNPJER,
156
178
  0,
157
179
  [_tN, _sD, _sTIM],
158
- [[0, 1], 128 | 0, 1],
180
+ [[0, 1], 128 | 0, 1]
159
181
  ];
160
- export var StartNextPendingJobExecutionResponse$ = [
161
- 3,
162
- n0,
163
- _SNPJERt,
182
+ export var StartNextPendingJobExecutionResponse$ = [3, n0, _SNPJERt,
164
183
  0,
165
184
  [_ex],
166
- [() => JobExecution$],
185
+ [() => JobExecution$]
186
+ ];
187
+ export var TerminalStateException$ = [-3, n0, _TSE,
188
+ { [_e]: _c, [_hE]: 410 },
189
+ [_m],
190
+ [0]
167
191
  ];
168
- export var TerminalStateException$ = [-3, n0, _TSE, { [_e]: _c, [_hE]: 410 }, [_m], [0]];
169
192
  TypeRegistry.for(n0).registerError(TerminalStateException$, TerminalStateException);
170
- export var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m, _pa], [0, 21]];
193
+ export var ThrottlingException$ = [-3, n0, _TE,
194
+ { [_e]: _c, [_hE]: 429 },
195
+ [_m, _pa],
196
+ [0, 21]
197
+ ];
171
198
  TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
172
- export var UpdateJobExecutionRequest$ = [
173
- 3,
174
- n0,
175
- _UJER,
199
+ export var UpdateJobExecutionRequest$ = [3, n0, _UJER,
176
200
  0,
177
201
  [_jI, _tN, _st, _sD, _sTIM, _eV, _iJES, _iJD, _eN],
178
- [[0, 1], [0, 1], 0, 128 | 0, 1, 1, 2, 2, 1],
202
+ [[0, 1], [0, 1], 0, 128 | 0, 1, 1, 2, 2, 1]
179
203
  ];
180
- export var UpdateJobExecutionResponse$ = [
181
- 3,
182
- n0,
183
- _UJERp,
204
+ export var UpdateJobExecutionResponse$ = [3, n0, _UJERp,
184
205
  0,
185
206
  [_eS, _jD],
186
- [() => JobExecutionState$, 0],
207
+ [() => JobExecutionState$, 0]
187
208
  ];
188
- export var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
189
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
190
- export var IoTJobsDataPlaneServiceException$ = [
191
- -3,
192
- _sm,
193
- "IoTJobsDataPlaneServiceException",
194
- 0,
195
- [],
196
- [],
209
+ export var ValidationException$ = [-3, n0, _VE,
210
+ { [_e]: _c, [_hE]: 400 },
211
+ [_m],
212
+ [0]
197
213
  ];
214
+ TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
215
+ export var IoTJobsDataPlaneServiceException$ = [-3, _sm, "IoTJobsDataPlaneServiceException", 0, [], []];
198
216
  TypeRegistry.for(_sm).registerError(IoTJobsDataPlaneServiceException$, IoTJobsDataPlaneServiceException);
199
- var JobExecutionSummaryList = [1, n0, _JESL, 0, () => JobExecutionSummary$];
200
- var CommandExecutionParameterMap = [2, n0, _CEPM, 0, 0, () => CommandParameterValue$];
217
+ var JobExecutionSummaryList = [1, n0, _JESL,
218
+ 0, () => JobExecutionSummary$
219
+ ];
220
+ var CommandExecutionParameterMap = [2, n0, _CEPM,
221
+ 0, 0, () => CommandParameterValue$
222
+ ];
201
223
  var DetailsMap = 128 | 0;
202
- export var DescribeJobExecution$ = [
203
- 9,
204
- n0,
205
- _DJE,
206
- { [_h]: ["GET", "/things/{thingName}/jobs/{jobId}", 200] },
207
- () => DescribeJobExecutionRequest$,
208
- () => DescribeJobExecutionResponse$,
209
- ];
210
- export var GetPendingJobExecutions$ = [
211
- 9,
212
- n0,
213
- _GPJE,
214
- { [_h]: ["GET", "/things/{thingName}/jobs", 200] },
215
- () => GetPendingJobExecutionsRequest$,
216
- () => GetPendingJobExecutionsResponse$,
217
- ];
218
- export var StartCommandExecution$ = [
219
- 9,
220
- n0,
221
- _SCE,
222
- { [_h]: ["POST", "/command-executions", 200] },
223
- () => StartCommandExecutionRequest$,
224
- () => StartCommandExecutionResponse$,
225
- ];
226
- export var StartNextPendingJobExecution$ = [
227
- 9,
228
- n0,
229
- _SNPJE,
230
- { [_h]: ["PUT", "/things/{thingName}/jobs/$next", 200] },
231
- () => StartNextPendingJobExecutionRequest$,
232
- () => StartNextPendingJobExecutionResponse$,
233
- ];
234
- export var UpdateJobExecution$ = [
235
- 9,
236
- n0,
237
- _UJE,
238
- { [_h]: ["POST", "/things/{thingName}/jobs/{jobId}", 200] },
239
- () => UpdateJobExecutionRequest$,
240
- () => UpdateJobExecutionResponse$,
224
+ export var DescribeJobExecution$ = [9, n0, _DJE,
225
+ { [_h]: ["GET", "/things/{thingName}/jobs/{jobId}", 200] }, () => DescribeJobExecutionRequest$, () => DescribeJobExecutionResponse$
226
+ ];
227
+ export var GetPendingJobExecutions$ = [9, n0, _GPJE,
228
+ { [_h]: ["GET", "/things/{thingName}/jobs", 200] }, () => GetPendingJobExecutionsRequest$, () => GetPendingJobExecutionsResponse$
229
+ ];
230
+ export var StartCommandExecution$ = [9, n0, _SCE,
231
+ { [_h]: ["POST", "/command-executions", 200] }, () => StartCommandExecutionRequest$, () => StartCommandExecutionResponse$
232
+ ];
233
+ export var StartNextPendingJobExecution$ = [9, n0, _SNPJE,
234
+ { [_h]: ["PUT", "/things/{thingName}/jobs/$next", 200] }, () => StartNextPendingJobExecutionRequest$, () => StartNextPendingJobExecutionResponse$
235
+ ];
236
+ export var UpdateJobExecution$ = [9, n0, _UJE,
237
+ { [_h]: ["POST", "/things/{thingName}/jobs/{jobId}", 200] }, () => UpdateJobExecutionRequest$, () => UpdateJobExecutionResponse$
241
238
  ];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot-jobs-data-plane",
3
3
  "description": "AWS SDK for JavaScript Iot Jobs Data Plane Client for Node.js, Browser and React Native",
4
- "version": "3.956.0",
4
+ "version": "3.958.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-iot-jobs-data-plane",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
- "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
9
+ "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.956.0",
25
- "@aws-sdk/credential-provider-node": "3.956.0",
26
- "@aws-sdk/middleware-host-header": "3.956.0",
27
- "@aws-sdk/middleware-logger": "3.956.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.956.0",
29
- "@aws-sdk/middleware-user-agent": "3.956.0",
30
- "@aws-sdk/region-config-resolver": "3.956.0",
31
- "@aws-sdk/types": "3.956.0",
32
- "@aws-sdk/util-endpoints": "3.956.0",
33
- "@aws-sdk/util-user-agent-browser": "3.956.0",
34
- "@aws-sdk/util-user-agent-node": "3.956.0",
24
+ "@aws-sdk/core": "3.957.0",
25
+ "@aws-sdk/credential-provider-node": "3.958.0",
26
+ "@aws-sdk/middleware-host-header": "3.957.0",
27
+ "@aws-sdk/middleware-logger": "3.957.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.957.0",
29
+ "@aws-sdk/middleware-user-agent": "3.957.0",
30
+ "@aws-sdk/region-config-resolver": "3.957.0",
31
+ "@aws-sdk/types": "3.957.0",
32
+ "@aws-sdk/util-endpoints": "3.957.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.957.0",
34
+ "@aws-sdk/util-user-agent-node": "3.957.0",
35
35
  "@smithy/config-resolver": "^4.4.5",
36
36
  "@smithy/core": "^3.20.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.8",