@aws-sdk/client-iot 3.696.0 → 3.698.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.
Files changed (91) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/index.js +555 -0
  3. package/dist-es/IoT.js +16 -0
  4. package/dist-es/commands/CreateCommandCommand.js +22 -0
  5. package/dist-es/commands/DeleteCommandCommand.js +22 -0
  6. package/dist-es/commands/DeleteCommandExecutionCommand.js +22 -0
  7. package/dist-es/commands/GetCommandCommand.js +22 -0
  8. package/dist-es/commands/GetCommandExecutionCommand.js +22 -0
  9. package/dist-es/commands/ListCommandExecutionsCommand.js +22 -0
  10. package/dist-es/commands/ListCommandsCommand.js +22 -0
  11. package/dist-es/commands/UpdateCommandCommand.js +22 -0
  12. package/dist-es/commands/index.js +8 -0
  13. package/dist-es/models/models_0.js +4 -0
  14. package/dist-es/models/models_1.js +12 -0
  15. package/dist-es/pagination/ListCommandExecutionsPaginator.js +4 -0
  16. package/dist-es/pagination/ListCommandsPaginator.js +4 -0
  17. package/dist-es/pagination/index.js +2 -0
  18. package/dist-es/protocols/Aws_restJson1.js +387 -0
  19. package/dist-types/IoT.d.ts +58 -0
  20. package/dist-types/IoTClient.d.ts +10 -2
  21. package/dist-types/commands/AssociateSbomWithPackageVersionCommand.d.ts +2 -2
  22. package/dist-types/commands/AssociateTargetsWithJobCommand.d.ts +4 -3
  23. package/dist-types/commands/CreateCommandCommand.d.ts +127 -0
  24. package/dist-types/commands/CreateJobTemplateCommand.d.ts +1 -1
  25. package/dist-types/commands/CreatePackageCommand.d.ts +2 -2
  26. package/dist-types/commands/CreatePackageVersionCommand.d.ts +2 -2
  27. package/dist-types/commands/CreateTopicRuleDestinationCommand.d.ts +2 -1
  28. package/dist-types/commands/DeleteAccountAuditConfigurationCommand.d.ts +1 -1
  29. package/dist-types/commands/DeleteAuditSuppressionCommand.d.ts +1 -1
  30. package/dist-types/commands/DeleteCommandCommand.d.ts +84 -0
  31. package/dist-types/commands/DeleteCommandExecutionCommand.d.ts +87 -0
  32. package/dist-types/commands/DeleteJobCommand.d.ts +6 -7
  33. package/dist-types/commands/DisassociateSbomFromPackageVersionCommand.d.ts +1 -1
  34. package/dist-types/commands/GetCommandCommand.d.ts +121 -0
  35. package/dist-types/commands/GetCommandExecutionCommand.d.ts +117 -0
  36. package/dist-types/commands/ListCommandExecutionsCommand.d.ts +116 -0
  37. package/dist-types/commands/ListCommandsCommand.d.ts +96 -0
  38. package/dist-types/commands/ListDetectMitigationActionsExecutionsCommand.d.ts +2 -1
  39. package/dist-types/commands/ListDetectMitigationActionsTasksCommand.d.ts +1 -1
  40. package/dist-types/commands/ListDimensionsCommand.d.ts +1 -1
  41. package/dist-types/commands/ListDomainConfigurationsCommand.d.ts +1 -1
  42. package/dist-types/commands/ListFleetMetricsCommand.d.ts +1 -1
  43. package/dist-types/commands/ListIndicesCommand.d.ts +1 -1
  44. package/dist-types/commands/ListJobExecutionsForJobCommand.d.ts +1 -1
  45. package/dist-types/commands/ListJobExecutionsForThingCommand.d.ts +1 -1
  46. package/dist-types/commands/ListJobTemplatesCommand.d.ts +1 -2
  47. package/dist-types/commands/ListJobsCommand.d.ts +1 -1
  48. package/dist-types/commands/UpdateCommandCommand.d.ts +94 -0
  49. package/dist-types/commands/UpdatePackageCommand.d.ts +1 -1
  50. package/dist-types/commands/UpdatePackageConfigurationCommand.d.ts +1 -1
  51. package/dist-types/commands/UpdatePackageVersionCommand.d.ts +1 -1
  52. package/dist-types/commands/index.d.ts +8 -0
  53. package/dist-types/models/models_0.d.ts +332 -236
  54. package/dist-types/models/models_1.d.ts +880 -784
  55. package/dist-types/models/models_2.d.ts +671 -11
  56. package/dist-types/pagination/ListCommandExecutionsPaginator.d.ts +7 -0
  57. package/dist-types/pagination/ListCommandsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/index.d.ts +2 -0
  59. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  60. package/dist-types/ts3.4/IoT.d.ts +138 -0
  61. package/dist-types/ts3.4/IoTClient.d.ts +48 -0
  62. package/dist-types/ts3.4/commands/CreateCommandCommand.d.ts +50 -0
  63. package/dist-types/ts3.4/commands/CreateTopicRuleDestinationCommand.d.ts +2 -4
  64. package/dist-types/ts3.4/commands/DeleteAccountAuditConfigurationCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/DeleteAuditSuppressionCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/DeleteCommandCommand.d.ts +50 -0
  67. package/dist-types/ts3.4/commands/DeleteCommandExecutionCommand.d.ts +51 -0
  68. package/dist-types/ts3.4/commands/GetCommandCommand.d.ts +47 -0
  69. package/dist-types/ts3.4/commands/GetCommandExecutionCommand.d.ts +51 -0
  70. package/dist-types/ts3.4/commands/ListCommandExecutionsCommand.d.ts +51 -0
  71. package/dist-types/ts3.4/commands/ListCommandsCommand.d.ts +47 -0
  72. package/dist-types/ts3.4/commands/ListDetectMitigationActionsExecutionsCommand.d.ts +2 -4
  73. package/dist-types/ts3.4/commands/ListDetectMitigationActionsTasksCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/ListDimensionsCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/ListDomainConfigurationsCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/ListFleetMetricsCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/ListIndicesCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/ListJobExecutionsForJobCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/ListJobExecutionsForThingCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/ListJobTemplatesCommand.d.ts +4 -2
  81. package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/UpdateCommandCommand.d.ts +50 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  84. package/dist-types/ts3.4/models/models_0.d.ts +39 -21
  85. package/dist-types/ts3.4/models/models_1.d.ts +148 -129
  86. package/dist-types/ts3.4/models/models_2.d.ts +147 -1
  87. package/dist-types/ts3.4/pagination/ListCommandExecutionsPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/ListCommandsPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  90. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
  91. package/package.json +1 -1
@@ -314,6 +314,26 @@ export const se_CreateCertificateProviderCommand = async (input, context) => {
314
314
  b.m("POST").h(headers).b(body);
315
315
  return b.build();
316
316
  };
317
+ export const se_CreateCommandCommand = async (input, context) => {
318
+ const b = rb(input, context);
319
+ const headers = {
320
+ "content-type": "application/json",
321
+ };
322
+ b.bp("/commands/{commandId}");
323
+ b.p("commandId", () => input.commandId, "{commandId}", false);
324
+ let body;
325
+ body = JSON.stringify(take(input, {
326
+ description: [],
327
+ displayName: [],
328
+ mandatoryParameters: (_) => se_CommandParameterList(_, context),
329
+ namespace: [],
330
+ payload: (_) => se_CommandPayload(_, context),
331
+ roleArn: [],
332
+ tags: (_) => _json(_),
333
+ }));
334
+ b.m("PUT").h(headers).b(body);
335
+ return b.build();
336
+ };
317
337
  export const se_CreateCustomMetricCommand = async (input, context) => {
318
338
  const b = rb(input, context);
319
339
  const headers = {
@@ -862,6 +882,27 @@ export const se_DeleteCertificateProviderCommand = async (input, context) => {
862
882
  b.m("DELETE").h(headers).b(body);
863
883
  return b.build();
864
884
  };
885
+ export const se_DeleteCommandCommand = async (input, context) => {
886
+ const b = rb(input, context);
887
+ const headers = {};
888
+ b.bp("/commands/{commandId}");
889
+ b.p("commandId", () => input.commandId, "{commandId}", false);
890
+ let body;
891
+ b.m("DELETE").h(headers).b(body);
892
+ return b.build();
893
+ };
894
+ export const se_DeleteCommandExecutionCommand = async (input, context) => {
895
+ const b = rb(input, context);
896
+ const headers = {};
897
+ b.bp("/command-executions/{executionId}");
898
+ b.p("executionId", () => input.executionId, "{executionId}", false);
899
+ const query = map({
900
+ [_tA]: [, __expectNonNull(input[_tA], `targetArn`)],
901
+ });
902
+ let body;
903
+ b.m("DELETE").h(headers).q(query).b(body);
904
+ return b.build();
905
+ };
865
906
  export const se_DeleteCustomMetricCommand = async (input, context) => {
866
907
  const b = rb(input, context);
867
908
  const headers = {};
@@ -1605,6 +1646,28 @@ export const se_GetCardinalityCommand = async (input, context) => {
1605
1646
  b.m("POST").h(headers).b(body);
1606
1647
  return b.build();
1607
1648
  };
1649
+ export const se_GetCommandCommand = async (input, context) => {
1650
+ const b = rb(input, context);
1651
+ const headers = {};
1652
+ b.bp("/commands/{commandId}");
1653
+ b.p("commandId", () => input.commandId, "{commandId}", false);
1654
+ let body;
1655
+ b.m("GET").h(headers).b(body);
1656
+ return b.build();
1657
+ };
1658
+ export const se_GetCommandExecutionCommand = async (input, context) => {
1659
+ const b = rb(input, context);
1660
+ const headers = {};
1661
+ b.bp("/command-executions/{executionId}");
1662
+ b.p("executionId", () => input.executionId, "{executionId}", false);
1663
+ const query = map({
1664
+ [_tA]: [, __expectNonNull(input[_tA], `targetArn`)],
1665
+ [_iR]: [() => input.includeResult !== void 0, () => input[_iR].toString()],
1666
+ });
1667
+ let body;
1668
+ b.m("GET").h(headers).q(query).b(body);
1669
+ return b.build();
1670
+ };
1608
1671
  export const se_GetEffectivePoliciesCommand = async (input, context) => {
1609
1672
  const b = rb(input, context);
1610
1673
  const headers = {
@@ -1968,6 +2031,44 @@ export const se_ListCertificatesByCACommand = async (input, context) => {
1968
2031
  b.m("GET").h(headers).q(query).b(body);
1969
2032
  return b.build();
1970
2033
  };
2034
+ export const se_ListCommandExecutionsCommand = async (input, context) => {
2035
+ const b = rb(input, context);
2036
+ const headers = {
2037
+ "content-type": "application/json",
2038
+ };
2039
+ b.bp("/command-executions");
2040
+ const query = map({
2041
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
2042
+ [_nT]: [, input[_nT]],
2043
+ });
2044
+ let body;
2045
+ body = JSON.stringify(take(input, {
2046
+ commandArn: [],
2047
+ completedTimeFilter: (_) => _json(_),
2048
+ namespace: [],
2049
+ sortOrder: [],
2050
+ startedTimeFilter: (_) => _json(_),
2051
+ status: [],
2052
+ targetArn: [],
2053
+ }));
2054
+ b.m("POST").h(headers).q(query).b(body);
2055
+ return b.build();
2056
+ };
2057
+ export const se_ListCommandsCommand = async (input, context) => {
2058
+ const b = rb(input, context);
2059
+ const headers = {};
2060
+ b.bp("/commands");
2061
+ const query = map({
2062
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
2063
+ [_nT]: [, input[_nT]],
2064
+ [_n]: [, input[_n]],
2065
+ [_cPN]: [, input[_cPN]],
2066
+ [_sO]: [, input[_sO]],
2067
+ });
2068
+ let body;
2069
+ b.m("GET").h(headers).q(query).b(body);
2070
+ return b.build();
2071
+ };
1971
2072
  export const se_ListCustomMetricsCommand = async (input, context) => {
1972
2073
  const b = rb(input, context);
1973
2074
  const headers = {};
@@ -3148,6 +3249,22 @@ export const se_UpdateCertificateProviderCommand = async (input, context) => {
3148
3249
  b.m("PUT").h(headers).b(body);
3149
3250
  return b.build();
3150
3251
  };
3252
+ export const se_UpdateCommandCommand = async (input, context) => {
3253
+ const b = rb(input, context);
3254
+ const headers = {
3255
+ "content-type": "application/json",
3256
+ };
3257
+ b.bp("/commands/{commandId}");
3258
+ b.p("commandId", () => input.commandId, "{commandId}", false);
3259
+ let body;
3260
+ body = JSON.stringify(take(input, {
3261
+ deprecated: [],
3262
+ description: [],
3263
+ displayName: [],
3264
+ }));
3265
+ b.m("PATCH").h(headers).b(body);
3266
+ return b.build();
3267
+ };
3151
3268
  export const se_UpdateCustomMetricCommand = async (input, context) => {
3152
3269
  const b = rb(input, context);
3153
3270
  const headers = {
@@ -3801,6 +3918,21 @@ export const de_CreateCertificateProviderCommand = async (output, context) => {
3801
3918
  Object.assign(contents, doc);
3802
3919
  return contents;
3803
3920
  };
3921
+ export const de_CreateCommandCommand = async (output, context) => {
3922
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3923
+ return de_CommandError(output, context);
3924
+ }
3925
+ const contents = map({
3926
+ $metadata: deserializeMetadata(output),
3927
+ });
3928
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3929
+ const doc = take(data, {
3930
+ commandArn: __expectString,
3931
+ commandId: __expectString,
3932
+ });
3933
+ Object.assign(contents, doc);
3934
+ return contents;
3935
+ };
3804
3936
  export const de_CreateCustomMetricCommand = async (output, context) => {
3805
3937
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3806
3938
  return de_CommandError(output, context);
@@ -4284,6 +4416,29 @@ export const de_DeleteCertificateProviderCommand = async (output, context) => {
4284
4416
  await collectBody(output.body, context);
4285
4417
  return contents;
4286
4418
  };
4419
+ export const de_DeleteCommandCommand = async (output, context) => {
4420
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4421
+ return de_CommandError(output, context);
4422
+ }
4423
+ const contents = map({
4424
+ $metadata: deserializeMetadata(output),
4425
+ });
4426
+ map(contents, {
4427
+ statusCode: [, output.statusCode],
4428
+ });
4429
+ await collectBody(output.body, context);
4430
+ return contents;
4431
+ };
4432
+ export const de_DeleteCommandExecutionCommand = async (output, context) => {
4433
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4434
+ return de_CommandError(output, context);
4435
+ }
4436
+ const contents = map({
4437
+ $metadata: deserializeMetadata(output),
4438
+ });
4439
+ await collectBody(output.body, context);
4440
+ return contents;
4441
+ };
4287
4442
  export const de_DeleteCustomMetricCommand = async (output, context) => {
4288
4443
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4289
4444
  return de_CommandError(output, context);
@@ -5306,6 +5461,57 @@ export const de_GetCardinalityCommand = async (output, context) => {
5306
5461
  Object.assign(contents, doc);
5307
5462
  return contents;
5308
5463
  };
5464
+ export const de_GetCommandCommand = async (output, context) => {
5465
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5466
+ return de_CommandError(output, context);
5467
+ }
5468
+ const contents = map({
5469
+ $metadata: deserializeMetadata(output),
5470
+ });
5471
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5472
+ const doc = take(data, {
5473
+ commandArn: __expectString,
5474
+ commandId: __expectString,
5475
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5476
+ deprecated: __expectBoolean,
5477
+ description: __expectString,
5478
+ displayName: __expectString,
5479
+ lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5480
+ mandatoryParameters: (_) => de_CommandParameterList(_, context),
5481
+ namespace: __expectString,
5482
+ payload: (_) => de_CommandPayload(_, context),
5483
+ pendingDeletion: __expectBoolean,
5484
+ roleArn: __expectString,
5485
+ });
5486
+ Object.assign(contents, doc);
5487
+ return contents;
5488
+ };
5489
+ export const de_GetCommandExecutionCommand = async (output, context) => {
5490
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5491
+ return de_CommandError(output, context);
5492
+ }
5493
+ const contents = map({
5494
+ $metadata: deserializeMetadata(output),
5495
+ });
5496
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5497
+ const doc = take(data, {
5498
+ commandArn: __expectString,
5499
+ completedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5500
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5501
+ executionId: __expectString,
5502
+ executionTimeoutSeconds: __expectLong,
5503
+ lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5504
+ parameters: (_) => de_CommandExecutionParameterMap(_, context),
5505
+ result: (_) => de_CommandExecutionResultMap(_, context),
5506
+ startedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5507
+ status: __expectString,
5508
+ statusReason: _json,
5509
+ targetArn: __expectString,
5510
+ timeToLive: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5511
+ });
5512
+ Object.assign(contents, doc);
5513
+ return contents;
5514
+ };
5309
5515
  export const de_GetEffectivePoliciesCommand = async (output, context) => {
5310
5516
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5311
5517
  return de_CommandError(output, context);
@@ -5760,6 +5966,36 @@ export const de_ListCertificatesByCACommand = async (output, context) => {
5760
5966
  Object.assign(contents, doc);
5761
5967
  return contents;
5762
5968
  };
5969
+ export const de_ListCommandExecutionsCommand = async (output, context) => {
5970
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5971
+ return de_CommandError(output, context);
5972
+ }
5973
+ const contents = map({
5974
+ $metadata: deserializeMetadata(output),
5975
+ });
5976
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5977
+ const doc = take(data, {
5978
+ commandExecutions: (_) => de_CommandExecutionSummaryList(_, context),
5979
+ nextToken: __expectString,
5980
+ });
5981
+ Object.assign(contents, doc);
5982
+ return contents;
5983
+ };
5984
+ export const de_ListCommandsCommand = async (output, context) => {
5985
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5986
+ return de_CommandError(output, context);
5987
+ }
5988
+ const contents = map({
5989
+ $metadata: deserializeMetadata(output),
5990
+ });
5991
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5992
+ const doc = take(data, {
5993
+ commands: (_) => de_CommandSummaryList(_, context),
5994
+ nextToken: __expectString,
5995
+ });
5996
+ Object.assign(contents, doc);
5997
+ return contents;
5998
+ };
5763
5999
  export const de_ListCustomMetricsCommand = async (output, context) => {
5764
6000
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5765
6001
  return de_CommandError(output, context);
@@ -6907,6 +7143,24 @@ export const de_UpdateCertificateProviderCommand = async (output, context) => {
6907
7143
  Object.assign(contents, doc);
6908
7144
  return contents;
6909
7145
  };
7146
+ export const de_UpdateCommandCommand = async (output, context) => {
7147
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7148
+ return de_CommandError(output, context);
7149
+ }
7150
+ const contents = map({
7151
+ $metadata: deserializeMetadata(output),
7152
+ });
7153
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7154
+ const doc = take(data, {
7155
+ commandId: __expectString,
7156
+ deprecated: __expectBoolean,
7157
+ description: __expectString,
7158
+ displayName: __expectString,
7159
+ lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
7160
+ });
7161
+ Object.assign(contents, doc);
7162
+ return contents;
7163
+ };
6910
7164
  export const de_UpdateCustomMetricCommand = async (output, context) => {
6911
7165
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6912
7166
  return de_CommandError(output, context);
@@ -7849,6 +8103,38 @@ const se_CodeSigningSignature = (input, context) => {
7849
8103
  inlineDocument: context.base64Encoder,
7850
8104
  });
7851
8105
  };
8106
+ const se_CommandParameter = (input, context) => {
8107
+ return take(input, {
8108
+ defaultValue: (_) => se_CommandParameterValue(_, context),
8109
+ description: [],
8110
+ name: [],
8111
+ value: (_) => se_CommandParameterValue(_, context),
8112
+ });
8113
+ };
8114
+ const se_CommandParameterList = (input, context) => {
8115
+ return input
8116
+ .filter((e) => e != null)
8117
+ .map((entry) => {
8118
+ return se_CommandParameter(entry, context);
8119
+ });
8120
+ };
8121
+ const se_CommandParameterValue = (input, context) => {
8122
+ return take(input, {
8123
+ B: [],
8124
+ BIN: context.base64Encoder,
8125
+ D: __serializeFloat,
8126
+ I: [],
8127
+ L: [],
8128
+ S: [],
8129
+ UL: [],
8130
+ });
8131
+ };
8132
+ const se_CommandPayload = (input, context) => {
8133
+ return take(input, {
8134
+ content: context.base64Encoder,
8135
+ contentType: [],
8136
+ });
8137
+ };
7852
8138
  const se_CustomCodeSigning = (input, context) => {
7853
8139
  return take(input, {
7854
8140
  certificateChain: _json,
@@ -8207,6 +8493,102 @@ const de_CodeSigningSignature = (output, context) => {
8207
8493
  inlineDocument: context.base64Decoder,
8208
8494
  });
8209
8495
  };
8496
+ const de_CommandExecutionParameterMap = (output, context) => {
8497
+ return Object.entries(output).reduce((acc, [key, value]) => {
8498
+ if (value === null) {
8499
+ return acc;
8500
+ }
8501
+ acc[key] = de_CommandParameterValue(value, context);
8502
+ return acc;
8503
+ }, {});
8504
+ };
8505
+ const de_CommandExecutionResult = (output, context) => {
8506
+ return take(output, {
8507
+ B: __expectBoolean,
8508
+ BIN: context.base64Decoder,
8509
+ S: __expectString,
8510
+ });
8511
+ };
8512
+ const de_CommandExecutionResultMap = (output, context) => {
8513
+ return Object.entries(output).reduce((acc, [key, value]) => {
8514
+ if (value === null) {
8515
+ return acc;
8516
+ }
8517
+ acc[key] = de_CommandExecutionResult(value, context);
8518
+ return acc;
8519
+ }, {});
8520
+ };
8521
+ const de_CommandExecutionSummary = (output, context) => {
8522
+ return take(output, {
8523
+ commandArn: __expectString,
8524
+ completedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
8525
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
8526
+ executionId: __expectString,
8527
+ startedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
8528
+ status: __expectString,
8529
+ targetArn: __expectString,
8530
+ });
8531
+ };
8532
+ const de_CommandExecutionSummaryList = (output, context) => {
8533
+ const retVal = (output || [])
8534
+ .filter((e) => e != null)
8535
+ .map((entry) => {
8536
+ return de_CommandExecutionSummary(entry, context);
8537
+ });
8538
+ return retVal;
8539
+ };
8540
+ const de_CommandParameter = (output, context) => {
8541
+ return take(output, {
8542
+ defaultValue: (_) => de_CommandParameterValue(_, context),
8543
+ description: __expectString,
8544
+ name: __expectString,
8545
+ value: (_) => de_CommandParameterValue(_, context),
8546
+ });
8547
+ };
8548
+ const de_CommandParameterList = (output, context) => {
8549
+ const retVal = (output || [])
8550
+ .filter((e) => e != null)
8551
+ .map((entry) => {
8552
+ return de_CommandParameter(entry, context);
8553
+ });
8554
+ return retVal;
8555
+ };
8556
+ const de_CommandParameterValue = (output, context) => {
8557
+ return take(output, {
8558
+ B: __expectBoolean,
8559
+ BIN: context.base64Decoder,
8560
+ D: __limitedParseDouble,
8561
+ I: __expectInt32,
8562
+ L: __expectLong,
8563
+ S: __expectString,
8564
+ UL: __expectString,
8565
+ });
8566
+ };
8567
+ const de_CommandPayload = (output, context) => {
8568
+ return take(output, {
8569
+ content: context.base64Decoder,
8570
+ contentType: __expectString,
8571
+ });
8572
+ };
8573
+ const de_CommandSummary = (output, context) => {
8574
+ return take(output, {
8575
+ commandArn: __expectString,
8576
+ commandId: __expectString,
8577
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
8578
+ deprecated: __expectBoolean,
8579
+ displayName: __expectString,
8580
+ lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
8581
+ pendingDeletion: __expectBoolean,
8582
+ });
8583
+ };
8584
+ const de_CommandSummaryList = (output, context) => {
8585
+ const retVal = (output || [])
8586
+ .filter((e) => e != null)
8587
+ .map((entry) => {
8588
+ return de_CommandSummary(entry, context);
8589
+ });
8590
+ return retVal;
8591
+ };
8210
8592
  const de_CustomCodeSigning = (output, context) => {
8211
8593
  return take(output, {
8212
8594
  certificateChain: _json,
@@ -8782,6 +9164,7 @@ const _aV = "attributeValue";
8782
9164
  const _bCT = "behaviorCriteriaType";
8783
9165
  const _bS = "beforeSubstitution";
8784
9166
  const _cI = "clientId";
9167
+ const _cPN = "commandParameterName";
8785
9168
  const _cT = "clientToken";
8786
9169
  const _dN = "dimensionName";
8787
9170
  const _dS = "deleteStream";
@@ -8796,11 +9179,13 @@ const _fD = "forceDelete";
8796
9179
  const _fDAWSJ = "forceDeleteAWSJob";
8797
9180
  const _fI = "findingId";
8798
9181
  const _iAO = "isAscendingOrder";
9182
+ const _iR = "includeResult";
8799
9183
  const _jI = "jobId";
8800
9184
  const _lSA = "listSuppressedAlerts";
8801
9185
  const _m = "marker";
8802
9186
  const _mN = "metricName";
8803
9187
  const _mR = "maxResults";
9188
+ const _n = "namespace";
8804
9189
  const _nARS = "newAutoRegistrationStatus";
8805
9190
  const _nI = "namespaceId";
8806
9191
  const _nPF = "namePrefixFilter";
@@ -8818,11 +9203,13 @@ const _rT = "reportType";
8818
9203
  const _s = "status";
8819
9204
  const _sAA = "setAsActive";
8820
9205
  const _sAD = "setAsDefault";
9206
+ const _sO = "sortOrder";
8821
9207
  const _sPN = "securityProfileName";
8822
9208
  const _sPTA = "securityProfileTargetArn";
8823
9209
  const _sT = "startTime";
8824
9210
  const _sTe = "serviceType";
8825
9211
  const _t = "tags";
9212
+ const _tA = "targetArn";
8826
9213
  const _tAA = "targetAwsAccount";
8827
9214
  const _tGI = "thingGroupId";
8828
9215
  const _tGN = "thingGroupName";
@@ -21,6 +21,7 @@ import { CreateAuthorizerCommandInput, CreateAuthorizerCommandOutput } from "./c
21
21
  import { CreateBillingGroupCommandInput, CreateBillingGroupCommandOutput } from "./commands/CreateBillingGroupCommand";
22
22
  import { CreateCertificateFromCsrCommandInput, CreateCertificateFromCsrCommandOutput } from "./commands/CreateCertificateFromCsrCommand";
23
23
  import { CreateCertificateProviderCommandInput, CreateCertificateProviderCommandOutput } from "./commands/CreateCertificateProviderCommand";
24
+ import { CreateCommandCommandInput, CreateCommandCommandOutput } from "./commands/CreateCommandCommand";
24
25
  import { CreateCustomMetricCommandInput, CreateCustomMetricCommandOutput } from "./commands/CreateCustomMetricCommand";
25
26
  import { CreateDimensionCommandInput, CreateDimensionCommandOutput } from "./commands/CreateDimensionCommand";
26
27
  import { CreateDomainConfigurationCommandInput, CreateDomainConfigurationCommandOutput } from "./commands/CreateDomainConfigurationCommand";
@@ -54,6 +55,8 @@ import { DeleteBillingGroupCommandInput, DeleteBillingGroupCommandOutput } from
54
55
  import { DeleteCACertificateCommandInput, DeleteCACertificateCommandOutput } from "./commands/DeleteCACertificateCommand";
55
56
  import { DeleteCertificateCommandInput, DeleteCertificateCommandOutput } from "./commands/DeleteCertificateCommand";
56
57
  import { DeleteCertificateProviderCommandInput, DeleteCertificateProviderCommandOutput } from "./commands/DeleteCertificateProviderCommand";
58
+ import { DeleteCommandCommandInput, DeleteCommandCommandOutput } from "./commands/DeleteCommandCommand";
59
+ import { DeleteCommandExecutionCommandInput, DeleteCommandExecutionCommandOutput } from "./commands/DeleteCommandExecutionCommand";
57
60
  import { DeleteCustomMetricCommandInput, DeleteCustomMetricCommandOutput } from "./commands/DeleteCustomMetricCommand";
58
61
  import { DeleteDimensionCommandInput, DeleteDimensionCommandOutput } from "./commands/DeleteDimensionCommand";
59
62
  import { DeleteDomainConfigurationCommandInput, DeleteDomainConfigurationCommandOutput } from "./commands/DeleteDomainConfigurationCommand";
@@ -126,6 +129,8 @@ import { EnableTopicRuleCommandInput, EnableTopicRuleCommandOutput } from "./com
126
129
  import { GetBehaviorModelTrainingSummariesCommandInput, GetBehaviorModelTrainingSummariesCommandOutput } from "./commands/GetBehaviorModelTrainingSummariesCommand";
127
130
  import { GetBucketsAggregationCommandInput, GetBucketsAggregationCommandOutput } from "./commands/GetBucketsAggregationCommand";
128
131
  import { GetCardinalityCommandInput, GetCardinalityCommandOutput } from "./commands/GetCardinalityCommand";
132
+ import { GetCommandCommandInput, GetCommandCommandOutput } from "./commands/GetCommandCommand";
133
+ import { GetCommandExecutionCommandInput, GetCommandExecutionCommandOutput } from "./commands/GetCommandExecutionCommand";
129
134
  import { GetEffectivePoliciesCommandInput, GetEffectivePoliciesCommandOutput } from "./commands/GetEffectivePoliciesCommand";
130
135
  import { GetIndexingConfigurationCommandInput, GetIndexingConfigurationCommandOutput } from "./commands/GetIndexingConfigurationCommand";
131
136
  import { GetJobDocumentCommandInput, GetJobDocumentCommandOutput } from "./commands/GetJobDocumentCommand";
@@ -155,6 +160,8 @@ import { ListCACertificatesCommandInput, ListCACertificatesCommandOutput } from
155
160
  import { ListCertificateProvidersCommandInput, ListCertificateProvidersCommandOutput } from "./commands/ListCertificateProvidersCommand";
156
161
  import { ListCertificatesByCACommandInput, ListCertificatesByCACommandOutput } from "./commands/ListCertificatesByCACommand";
157
162
  import { ListCertificatesCommandInput, ListCertificatesCommandOutput } from "./commands/ListCertificatesCommand";
163
+ import { ListCommandExecutionsCommandInput, ListCommandExecutionsCommandOutput } from "./commands/ListCommandExecutionsCommand";
164
+ import { ListCommandsCommandInput, ListCommandsCommandOutput } from "./commands/ListCommandsCommand";
158
165
  import { ListCustomMetricsCommandInput, ListCustomMetricsCommandOutput } from "./commands/ListCustomMetricsCommand";
159
166
  import { ListDetectMitigationActionsExecutionsCommandInput, ListDetectMitigationActionsExecutionsCommandOutput } from "./commands/ListDetectMitigationActionsExecutionsCommand";
160
167
  import { ListDetectMitigationActionsTasksCommandInput, ListDetectMitigationActionsTasksCommandOutput } from "./commands/ListDetectMitigationActionsTasksCommand";
@@ -237,6 +244,7 @@ import { UpdateBillingGroupCommandInput, UpdateBillingGroupCommandOutput } from
237
244
  import { UpdateCACertificateCommandInput, UpdateCACertificateCommandOutput } from "./commands/UpdateCACertificateCommand";
238
245
  import { UpdateCertificateCommandInput, UpdateCertificateCommandOutput } from "./commands/UpdateCertificateCommand";
239
246
  import { UpdateCertificateProviderCommandInput, UpdateCertificateProviderCommandOutput } from "./commands/UpdateCertificateProviderCommand";
247
+ import { UpdateCommandCommandInput, UpdateCommandCommandOutput } from "./commands/UpdateCommandCommand";
240
248
  import { UpdateCustomMetricCommandInput, UpdateCustomMetricCommandOutput } from "./commands/UpdateCustomMetricCommand";
241
249
  import { UpdateDimensionCommandInput, UpdateDimensionCommandOutput } from "./commands/UpdateDimensionCommand";
242
250
  import { UpdateDomainConfigurationCommandInput, UpdateDomainConfigurationCommandOutput } from "./commands/UpdateDomainConfigurationCommand";
@@ -397,6 +405,12 @@ export interface IoT {
397
405
  createCertificateProvider(args: CreateCertificateProviderCommandInput, options?: __HttpHandlerOptions): Promise<CreateCertificateProviderCommandOutput>;
398
406
  createCertificateProvider(args: CreateCertificateProviderCommandInput, cb: (err: any, data?: CreateCertificateProviderCommandOutput) => void): void;
399
407
  createCertificateProvider(args: CreateCertificateProviderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCertificateProviderCommandOutput) => void): void;
408
+ /**
409
+ * @see {@link CreateCommandCommand}
410
+ */
411
+ createCommand(args: CreateCommandCommandInput, options?: __HttpHandlerOptions): Promise<CreateCommandCommandOutput>;
412
+ createCommand(args: CreateCommandCommandInput, cb: (err: any, data?: CreateCommandCommandOutput) => void): void;
413
+ createCommand(args: CreateCommandCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCommandCommandOutput) => void): void;
400
414
  /**
401
415
  * @see {@link CreateCustomMetricCommand}
402
416
  */
@@ -597,6 +611,18 @@ export interface IoT {
597
611
  deleteCertificateProvider(args: DeleteCertificateProviderCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCertificateProviderCommandOutput>;
598
612
  deleteCertificateProvider(args: DeleteCertificateProviderCommandInput, cb: (err: any, data?: DeleteCertificateProviderCommandOutput) => void): void;
599
613
  deleteCertificateProvider(args: DeleteCertificateProviderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCertificateProviderCommandOutput) => void): void;
614
+ /**
615
+ * @see {@link DeleteCommandCommand}
616
+ */
617
+ deleteCommand(args: DeleteCommandCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCommandCommandOutput>;
618
+ deleteCommand(args: DeleteCommandCommandInput, cb: (err: any, data?: DeleteCommandCommandOutput) => void): void;
619
+ deleteCommand(args: DeleteCommandCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCommandCommandOutput) => void): void;
620
+ /**
621
+ * @see {@link DeleteCommandExecutionCommand}
622
+ */
623
+ deleteCommandExecution(args: DeleteCommandExecutionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCommandExecutionCommandOutput>;
624
+ deleteCommandExecution(args: DeleteCommandExecutionCommandInput, cb: (err: any, data?: DeleteCommandExecutionCommandOutput) => void): void;
625
+ deleteCommandExecution(args: DeleteCommandExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCommandExecutionCommandOutput) => void): void;
600
626
  /**
601
627
  * @see {@link DeleteCustomMetricCommand}
602
628
  */
@@ -1035,6 +1061,18 @@ export interface IoT {
1035
1061
  getCardinality(args: GetCardinalityCommandInput, options?: __HttpHandlerOptions): Promise<GetCardinalityCommandOutput>;
1036
1062
  getCardinality(args: GetCardinalityCommandInput, cb: (err: any, data?: GetCardinalityCommandOutput) => void): void;
1037
1063
  getCardinality(args: GetCardinalityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCardinalityCommandOutput) => void): void;
1064
+ /**
1065
+ * @see {@link GetCommandCommand}
1066
+ */
1067
+ getCommand(args: GetCommandCommandInput, options?: __HttpHandlerOptions): Promise<GetCommandCommandOutput>;
1068
+ getCommand(args: GetCommandCommandInput, cb: (err: any, data?: GetCommandCommandOutput) => void): void;
1069
+ getCommand(args: GetCommandCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCommandCommandOutput) => void): void;
1070
+ /**
1071
+ * @see {@link GetCommandExecutionCommand}
1072
+ */
1073
+ getCommandExecution(args: GetCommandExecutionCommandInput, options?: __HttpHandlerOptions): Promise<GetCommandExecutionCommandOutput>;
1074
+ getCommandExecution(args: GetCommandExecutionCommandInput, cb: (err: any, data?: GetCommandExecutionCommandOutput) => void): void;
1075
+ getCommandExecution(args: GetCommandExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCommandExecutionCommandOutput) => void): void;
1038
1076
  /**
1039
1077
  * @see {@link GetEffectivePoliciesCommand}
1040
1078
  */
@@ -1223,6 +1261,20 @@ export interface IoT {
1223
1261
  listCertificatesByCA(args: ListCertificatesByCACommandInput, options?: __HttpHandlerOptions): Promise<ListCertificatesByCACommandOutput>;
1224
1262
  listCertificatesByCA(args: ListCertificatesByCACommandInput, cb: (err: any, data?: ListCertificatesByCACommandOutput) => void): void;
1225
1263
  listCertificatesByCA(args: ListCertificatesByCACommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCertificatesByCACommandOutput) => void): void;
1264
+ /**
1265
+ * @see {@link ListCommandExecutionsCommand}
1266
+ */
1267
+ listCommandExecutions(): Promise<ListCommandExecutionsCommandOutput>;
1268
+ listCommandExecutions(args: ListCommandExecutionsCommandInput, options?: __HttpHandlerOptions): Promise<ListCommandExecutionsCommandOutput>;
1269
+ listCommandExecutions(args: ListCommandExecutionsCommandInput, cb: (err: any, data?: ListCommandExecutionsCommandOutput) => void): void;
1270
+ listCommandExecutions(args: ListCommandExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCommandExecutionsCommandOutput) => void): void;
1271
+ /**
1272
+ * @see {@link ListCommandsCommand}
1273
+ */
1274
+ listCommands(): Promise<ListCommandsCommandOutput>;
1275
+ listCommands(args: ListCommandsCommandInput, options?: __HttpHandlerOptions): Promise<ListCommandsCommandOutput>;
1276
+ listCommands(args: ListCommandsCommandInput, cb: (err: any, data?: ListCommandsCommandOutput) => void): void;
1277
+ listCommands(args: ListCommandsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCommandsCommandOutput) => void): void;
1226
1278
  /**
1227
1279
  * @see {@link ListCustomMetricsCommand}
1228
1280
  */
@@ -1745,6 +1797,12 @@ export interface IoT {
1745
1797
  updateCertificateProvider(args: UpdateCertificateProviderCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCertificateProviderCommandOutput>;
1746
1798
  updateCertificateProvider(args: UpdateCertificateProviderCommandInput, cb: (err: any, data?: UpdateCertificateProviderCommandOutput) => void): void;
1747
1799
  updateCertificateProvider(args: UpdateCertificateProviderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCertificateProviderCommandOutput) => void): void;
1800
+ /**
1801
+ * @see {@link UpdateCommandCommand}
1802
+ */
1803
+ updateCommand(args: UpdateCommandCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCommandCommandOutput>;
1804
+ updateCommand(args: UpdateCommandCommandInput, cb: (err: any, data?: UpdateCommandCommandOutput) => void): void;
1805
+ updateCommand(args: UpdateCommandCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCommandCommandOutput) => void): void;
1748
1806
  /**
1749
1807
  * @see {@link UpdateCustomMetricCommand}
1750
1808
  */