@aws-sdk/client-iot 3.651.1 → 3.652.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 (56) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +276 -91
  3. package/dist-es/IoT.js +6 -0
  4. package/dist-es/commands/AssociateSbomWithPackageVersionCommand.js +22 -0
  5. package/dist-es/commands/DisassociateSbomFromPackageVersionCommand.js +22 -0
  6. package/dist-es/commands/ListSbomValidationResultsCommand.js +22 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +55 -49
  9. package/dist-es/models/models_1.js +1 -0
  10. package/dist-es/models/models_2.js +9 -0
  11. package/dist-es/pagination/ListSbomValidationResultsPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/protocols/Aws_restJson1.js +118 -14
  14. package/dist-types/IoT.d.ts +21 -0
  15. package/dist-types/IoTClient.d.ts +5 -2
  16. package/dist-types/commands/AssociateSbomWithPackageVersionCommand.d.ts +98 -0
  17. package/dist-types/commands/CreatePackageVersionCommand.d.ts +8 -0
  18. package/dist-types/commands/DeleteCACertificateCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteCertificateCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteCertificateProviderCommand.d.ts +1 -1
  21. package/dist-types/commands/DescribeJobCommand.d.ts +1 -0
  22. package/dist-types/commands/DisassociateSbomFromPackageVersionCommand.d.ts +77 -0
  23. package/dist-types/commands/GetJobDocumentCommand.d.ts +1 -0
  24. package/dist-types/commands/GetPackageVersionCommand.d.ts +16 -0
  25. package/dist-types/commands/ListMetricValuesCommand.d.ts +2 -1
  26. package/dist-types/commands/ListMitigationActionsCommand.d.ts +1 -1
  27. package/dist-types/commands/ListOTAUpdatesCommand.d.ts +1 -1
  28. package/dist-types/commands/ListSbomValidationResultsCommand.d.ts +86 -0
  29. package/dist-types/commands/UpdatePackageVersionCommand.d.ts +8 -0
  30. package/dist-types/commands/UpdateStreamCommand.d.ts +3 -0
  31. package/dist-types/commands/index.d.ts +3 -0
  32. package/dist-types/models/models_0.d.ts +171 -121
  33. package/dist-types/models/models_1.d.ts +109 -129
  34. package/dist-types/models/models_2.d.ts +238 -2
  35. package/dist-types/pagination/ListSbomValidationResultsPaginator.d.ts +7 -0
  36. package/dist-types/pagination/index.d.ts +1 -0
  37. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  38. package/dist-types/ts3.4/IoT.d.ts +57 -0
  39. package/dist-types/ts3.4/IoTClient.d.ts +18 -0
  40. package/dist-types/ts3.4/commands/AssociateSbomWithPackageVersionCommand.d.ts +40 -0
  41. package/dist-types/ts3.4/commands/DeleteCACertificateCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/DeleteCertificateCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/DeleteCertificateProviderCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/DisassociateSbomFromPackageVersionCommand.d.ts +40 -0
  45. package/dist-types/ts3.4/commands/ListMetricValuesCommand.d.ts +2 -4
  46. package/dist-types/ts3.4/commands/ListMitigationActionsCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/ListOTAUpdatesCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/ListSbomValidationResultsCommand.d.ts +40 -0
  49. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  50. package/dist-types/ts3.4/models/models_0.d.ts +58 -43
  51. package/dist-types/ts3.4/models/models_1.d.ts +27 -32
  52. package/dist-types/ts3.4/models/models_2.d.ts +67 -0
  53. package/dist-types/ts3.4/pagination/ListSbomValidationResultsPaginator.d.ts +11 -0
  54. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  55. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  56. package/package.json +1 -1
package/dist-es/IoT.js CHANGED
@@ -2,6 +2,7 @@ import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { AcceptCertificateTransferCommand, } from "./commands/AcceptCertificateTransferCommand";
3
3
  import { AddThingToBillingGroupCommand, } from "./commands/AddThingToBillingGroupCommand";
4
4
  import { AddThingToThingGroupCommand, } from "./commands/AddThingToThingGroupCommand";
5
+ import { AssociateSbomWithPackageVersionCommand, } from "./commands/AssociateSbomWithPackageVersionCommand";
5
6
  import { AssociateTargetsWithJobCommand, } from "./commands/AssociateTargetsWithJobCommand";
6
7
  import { AttachPolicyCommand, } from "./commands/AttachPolicyCommand";
7
8
  import { AttachPrincipalPolicyCommand, } from "./commands/AttachPrincipalPolicyCommand";
@@ -120,6 +121,7 @@ import { DetachPrincipalPolicyCommand, } from "./commands/DetachPrincipalPolicyC
120
121
  import { DetachSecurityProfileCommand, } from "./commands/DetachSecurityProfileCommand";
121
122
  import { DetachThingPrincipalCommand, } from "./commands/DetachThingPrincipalCommand";
122
123
  import { DisableTopicRuleCommand, } from "./commands/DisableTopicRuleCommand";
124
+ import { DisassociateSbomFromPackageVersionCommand, } from "./commands/DisassociateSbomFromPackageVersionCommand";
123
125
  import { EnableTopicRuleCommand, } from "./commands/EnableTopicRuleCommand";
124
126
  import { GetBehaviorModelTrainingSummariesCommand, } from "./commands/GetBehaviorModelTrainingSummariesCommand";
125
127
  import { GetBucketsAggregationCommand, } from "./commands/GetBucketsAggregationCommand";
@@ -180,6 +182,7 @@ import { ListProvisioningTemplatesCommand, } from "./commands/ListProvisioningTe
180
182
  import { ListProvisioningTemplateVersionsCommand, } from "./commands/ListProvisioningTemplateVersionsCommand";
181
183
  import { ListRelatedResourcesForAuditFindingCommand, } from "./commands/ListRelatedResourcesForAuditFindingCommand";
182
184
  import { ListRoleAliasesCommand, } from "./commands/ListRoleAliasesCommand";
185
+ import { ListSbomValidationResultsCommand, } from "./commands/ListSbomValidationResultsCommand";
183
186
  import { ListScheduledAuditsCommand, } from "./commands/ListScheduledAuditsCommand";
184
187
  import { ListSecurityProfilesCommand, } from "./commands/ListSecurityProfilesCommand";
185
188
  import { ListSecurityProfilesForTargetCommand, } from "./commands/ListSecurityProfilesForTargetCommand";
@@ -259,6 +262,7 @@ const commands = {
259
262
  AcceptCertificateTransferCommand,
260
263
  AddThingToBillingGroupCommand,
261
264
  AddThingToThingGroupCommand,
265
+ AssociateSbomWithPackageVersionCommand,
262
266
  AssociateTargetsWithJobCommand,
263
267
  AttachPolicyCommand,
264
268
  AttachPrincipalPolicyCommand,
@@ -377,6 +381,7 @@ const commands = {
377
381
  DetachSecurityProfileCommand,
378
382
  DetachThingPrincipalCommand,
379
383
  DisableTopicRuleCommand,
384
+ DisassociateSbomFromPackageVersionCommand,
380
385
  EnableTopicRuleCommand,
381
386
  GetBehaviorModelTrainingSummariesCommand,
382
387
  GetBucketsAggregationCommand,
@@ -437,6 +442,7 @@ const commands = {
437
442
  ListProvisioningTemplateVersionsCommand,
438
443
  ListRelatedResourcesForAuditFindingCommand,
439
444
  ListRoleAliasesCommand,
445
+ ListSbomValidationResultsCommand,
440
446
  ListScheduledAuditsCommand,
441
447
  ListSecurityProfilesCommand,
442
448
  ListSecurityProfilesForTargetCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_AssociateSbomWithPackageVersionCommand, se_AssociateSbomWithPackageVersionCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class AssociateSbomWithPackageVersionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIotService", "AssociateSbomWithPackageVersion", {})
17
+ .n("IoTClient", "AssociateSbomWithPackageVersionCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_AssociateSbomWithPackageVersionCommand)
20
+ .de(de_AssociateSbomWithPackageVersionCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DisassociateSbomFromPackageVersionCommand, se_DisassociateSbomFromPackageVersionCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DisassociateSbomFromPackageVersionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIotService", "DisassociateSbomFromPackageVersion", {})
17
+ .n("IoTClient", "DisassociateSbomFromPackageVersionCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DisassociateSbomFromPackageVersionCommand)
20
+ .de(de_DisassociateSbomFromPackageVersionCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListSbomValidationResultsCommand, se_ListSbomValidationResultsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListSbomValidationResultsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIotService", "ListSbomValidationResults", {})
17
+ .n("IoTClient", "ListSbomValidationResultsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListSbomValidationResultsCommand)
20
+ .de(de_ListSbomValidationResultsCommand)
21
+ .build() {
22
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./AcceptCertificateTransferCommand";
2
2
  export * from "./AddThingToBillingGroupCommand";
3
3
  export * from "./AddThingToThingGroupCommand";
4
+ export * from "./AssociateSbomWithPackageVersionCommand";
4
5
  export * from "./AssociateTargetsWithJobCommand";
5
6
  export * from "./AttachPolicyCommand";
6
7
  export * from "./AttachPrincipalPolicyCommand";
@@ -119,6 +120,7 @@ export * from "./DetachPrincipalPolicyCommand";
119
120
  export * from "./DetachSecurityProfileCommand";
120
121
  export * from "./DetachThingPrincipalCommand";
121
122
  export * from "./DisableTopicRuleCommand";
123
+ export * from "./DisassociateSbomFromPackageVersionCommand";
122
124
  export * from "./EnableTopicRuleCommand";
123
125
  export * from "./GetBehaviorModelTrainingSummariesCommand";
124
126
  export * from "./GetBucketsAggregationCommand";
@@ -179,6 +181,7 @@ export * from "./ListProvisioningTemplateVersionsCommand";
179
181
  export * from "./ListProvisioningTemplatesCommand";
180
182
  export * from "./ListRelatedResourcesForAuditFindingCommand";
181
183
  export * from "./ListRoleAliasesCommand";
184
+ export * from "./ListSbomValidationResultsCommand";
182
185
  export * from "./ListScheduledAuditsCommand";
183
186
  export * from "./ListSecurityProfilesCommand";
184
187
  export * from "./ListSecurityProfilesForTargetCommand";
@@ -166,6 +166,60 @@ export const AggregationTypeName = {
166
166
  export const AlertTargetType = {
167
167
  SNS: "SNS",
168
168
  };
169
+ export const SbomValidationStatus = {
170
+ FAILED: "FAILED",
171
+ IN_PROGRESS: "IN_PROGRESS",
172
+ SUCCEEDED: "SUCCEEDED",
173
+ };
174
+ export class ConflictException extends __BaseException {
175
+ constructor(opts) {
176
+ super({
177
+ name: "ConflictException",
178
+ $fault: "client",
179
+ ...opts,
180
+ });
181
+ this.name = "ConflictException";
182
+ this.$fault = "client";
183
+ Object.setPrototypeOf(this, ConflictException.prototype);
184
+ this.resourceId = opts.resourceId;
185
+ }
186
+ }
187
+ export class InternalServerException extends __BaseException {
188
+ constructor(opts) {
189
+ super({
190
+ name: "InternalServerException",
191
+ $fault: "server",
192
+ ...opts,
193
+ });
194
+ this.name = "InternalServerException";
195
+ this.$fault = "server";
196
+ Object.setPrototypeOf(this, InternalServerException.prototype);
197
+ }
198
+ }
199
+ export class ServiceQuotaExceededException extends __BaseException {
200
+ constructor(opts) {
201
+ super({
202
+ name: "ServiceQuotaExceededException",
203
+ $fault: "client",
204
+ ...opts,
205
+ });
206
+ this.name = "ServiceQuotaExceededException";
207
+ this.$fault = "client";
208
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
209
+ }
210
+ }
211
+ export class ValidationException extends __BaseException {
212
+ constructor(opts) {
213
+ super({
214
+ name: "ValidationException",
215
+ $fault: "client",
216
+ ...opts,
217
+ });
218
+ this.name = "ValidationException";
219
+ this.$fault = "client";
220
+ Object.setPrototypeOf(this, ValidationException.prototype);
221
+ }
222
+ }
169
223
  export class LimitExceededException extends __BaseException {
170
224
  constructor(opts) {
171
225
  super({
@@ -419,19 +473,6 @@ export const TargetSelection = {
419
473
  CONTINUOUS: "CONTINUOUS",
420
474
  SNAPSHOT: "SNAPSHOT",
421
475
  };
422
- export class ConflictException extends __BaseException {
423
- constructor(opts) {
424
- super({
425
- name: "ConflictException",
426
- $fault: "client",
427
- ...opts,
428
- });
429
- this.name = "ConflictException";
430
- this.$fault = "client";
431
- Object.setPrototypeOf(this, ConflictException.prototype);
432
- this.resourceId = opts.resourceId;
433
- }
434
- }
435
476
  export const LogLevel = {
436
477
  DEBUG: "DEBUG",
437
478
  DISABLED: "DISABLED",
@@ -469,42 +510,6 @@ export const OTAUpdateStatus = {
469
510
  DELETE_FAILED: "DELETE_FAILED",
470
511
  DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
471
512
  };
472
- export class InternalServerException extends __BaseException {
473
- constructor(opts) {
474
- super({
475
- name: "InternalServerException",
476
- $fault: "server",
477
- ...opts,
478
- });
479
- this.name = "InternalServerException";
480
- this.$fault = "server";
481
- Object.setPrototypeOf(this, InternalServerException.prototype);
482
- }
483
- }
484
- export class ServiceQuotaExceededException extends __BaseException {
485
- constructor(opts) {
486
- super({
487
- name: "ServiceQuotaExceededException",
488
- $fault: "client",
489
- ...opts,
490
- });
491
- this.name = "ServiceQuotaExceededException";
492
- this.$fault = "client";
493
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
494
- }
495
- }
496
- export class ValidationException extends __BaseException {
497
- constructor(opts) {
498
- super({
499
- name: "ValidationException",
500
- $fault: "client",
501
- ...opts,
502
- });
503
- this.name = "ValidationException";
504
- this.$fault = "client";
505
- Object.setPrototypeOf(this, ValidationException.prototype);
506
- }
507
- }
508
513
  export const PackageVersionStatus = {
509
514
  DEPRECATED: "DEPRECATED",
510
515
  DRAFT: "DRAFT",
@@ -610,6 +615,7 @@ export const CreatePackageVersionRequestFilterSensitiveLog = (obj) => ({
610
615
  ...obj,
611
616
  ...(obj.description && { description: SENSITIVE_STRING }),
612
617
  ...(obj.attributes && { attributes: SENSITIVE_STRING }),
618
+ ...(obj.recipe && { recipe: SENSITIVE_STRING }),
613
619
  });
614
620
  export const CreatePackageVersionResponseFilterSensitiveLog = (obj) => ({
615
621
  ...obj,
@@ -163,4 +163,5 @@ export const GetPackageVersionResponseFilterSensitiveLog = (obj) => ({
163
163
  ...obj,
164
164
  ...(obj.description && { description: SENSITIVE_STRING }),
165
165
  ...(obj.attributes && { attributes: SENSITIVE_STRING }),
166
+ ...(obj.recipe && { recipe: SENSITIVE_STRING }),
166
167
  });
@@ -1,5 +1,13 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { IoTServiceException as __BaseException } from "./IoTServiceException";
3
+ export const SbomValidationResult = {
4
+ FAILED: "FAILED",
5
+ SUCCEEDED: "SUCCEEDED",
6
+ };
7
+ export const SbomValidationErrorCode = {
8
+ FILE_SIZE_LIMIT_EXCEEDED: "FILE_SIZE_LIMIT_EXCEEDED",
9
+ INCOMPATIBLE_FORMAT: "INCOMPATIBLE_FORMAT",
10
+ };
3
11
  export const ReportType = {
4
12
  ERRORS: "ERRORS",
5
13
  RESULTS: "RESULTS",
@@ -93,4 +101,5 @@ export const UpdatePackageVersionRequestFilterSensitiveLog = (obj) => ({
93
101
  ...obj,
94
102
  ...(obj.description && { description: SENSITIVE_STRING }),
95
103
  ...(obj.attributes && { attributes: SENSITIVE_STRING }),
104
+ ...(obj.recipe && { recipe: SENSITIVE_STRING }),
96
105
  });
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListSbomValidationResultsCommand, } from "../commands/ListSbomValidationResultsCommand";
3
+ import { IoTClient } from "../IoTClient";
4
+ export const paginateListSbomValidationResults = createPaginator(IoTClient, ListSbomValidationResultsCommand, "nextToken", "nextToken", "maxResults");
@@ -38,6 +38,7 @@ export * from "./ListProvisioningTemplateVersionsPaginator";
38
38
  export * from "./ListProvisioningTemplatesPaginator";
39
39
  export * from "./ListRelatedResourcesForAuditFindingPaginator";
40
40
  export * from "./ListRoleAliasesPaginator";
41
+ export * from "./ListSbomValidationResultsPaginator";
41
42
  export * from "./ListScheduledAuditsPaginator";
42
43
  export * from "./ListSecurityProfilesForTargetPaginator";
43
44
  export * from "./ListSecurityProfilesPaginator";
@@ -51,6 +51,24 @@ export const se_AddThingToThingGroupCommand = async (input, context) => {
51
51
  b.m("PUT").h(headers).b(body);
52
52
  return b.build();
53
53
  };
54
+ export const se_AssociateSbomWithPackageVersionCommand = async (input, context) => {
55
+ const b = rb(input, context);
56
+ const headers = {
57
+ "content-type": "application/json",
58
+ };
59
+ b.bp("/packages/{packageName}/versions/{versionName}/sbom");
60
+ b.p("packageName", () => input.packageName, "{packageName}", false);
61
+ b.p("versionName", () => input.versionName, "{versionName}", false);
62
+ const query = map({
63
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
64
+ });
65
+ let body;
66
+ body = JSON.stringify(take(input, {
67
+ sbom: (_) => _json(_),
68
+ }));
69
+ b.m("PUT").h(headers).q(query).b(body);
70
+ return b.build();
71
+ };
54
72
  export const se_AssociateTargetsWithJobCommand = async (input, context) => {
55
73
  const b = rb(input, context);
56
74
  const headers = {
@@ -525,8 +543,10 @@ export const se_CreatePackageVersionCommand = async (input, context) => {
525
543
  });
526
544
  let body;
527
545
  body = JSON.stringify(take(input, {
546
+ artifact: (_) => _json(_),
528
547
  attributes: (_) => _json(_),
529
548
  description: [],
549
+ recipe: [],
530
550
  tags: (_) => _json(_),
531
551
  }));
532
552
  b.m("PUT").h(headers).q(query).b(body);
@@ -1313,8 +1333,11 @@ export const se_DescribeJobCommand = async (input, context) => {
1313
1333
  const headers = {};
1314
1334
  b.bp("/jobs/{jobId}");
1315
1335
  b.p("jobId", () => input.jobId, "{jobId}", false);
1336
+ const query = map({
1337
+ [_bS]: [() => input.beforeSubstitution !== void 0, () => input[_bS].toString()],
1338
+ });
1316
1339
  let body;
1317
- b.m("GET").h(headers).b(body);
1340
+ b.m("GET").h(headers).q(query).b(body);
1318
1341
  return b.build();
1319
1342
  };
1320
1343
  export const se_DescribeJobExecutionCommand = async (input, context) => {
@@ -1508,6 +1531,19 @@ export const se_DisableTopicRuleCommand = async (input, context) => {
1508
1531
  b.m("POST").h(headers).b(body);
1509
1532
  return b.build();
1510
1533
  };
1534
+ export const se_DisassociateSbomFromPackageVersionCommand = async (input, context) => {
1535
+ const b = rb(input, context);
1536
+ const headers = {};
1537
+ b.bp("/packages/{packageName}/versions/{versionName}/sbom");
1538
+ b.p("packageName", () => input.packageName, "{packageName}", false);
1539
+ b.p("versionName", () => input.versionName, "{versionName}", false);
1540
+ const query = map({
1541
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
1542
+ });
1543
+ let body;
1544
+ b.m("DELETE").h(headers).q(query).b(body);
1545
+ return b.build();
1546
+ };
1511
1547
  export const se_EnableTopicRuleCommand = async (input, context) => {
1512
1548
  const b = rb(input, context);
1513
1549
  const headers = {};
@@ -1593,8 +1629,11 @@ export const se_GetJobDocumentCommand = async (input, context) => {
1593
1629
  const headers = {};
1594
1630
  b.bp("/jobs/{jobId}/job-document");
1595
1631
  b.p("jobId", () => input.jobId, "{jobId}", false);
1632
+ const query = map({
1633
+ [_bS]: [() => input.beforeSubstitution !== void 0, () => input[_bS].toString()],
1634
+ });
1596
1635
  let body;
1597
- b.m("GET").h(headers).b(body);
1636
+ b.m("GET").h(headers).q(query).b(body);
1598
1637
  return b.build();
1599
1638
  };
1600
1639
  export const se_GetLoggingOptionsCommand = async (input, context) => {
@@ -2287,6 +2326,21 @@ export const se_ListRoleAliasesCommand = async (input, context) => {
2287
2326
  b.m("GET").h(headers).q(query).b(body);
2288
2327
  return b.build();
2289
2328
  };
2329
+ export const se_ListSbomValidationResultsCommand = async (input, context) => {
2330
+ const b = rb(input, context);
2331
+ const headers = {};
2332
+ b.bp("/packages/{packageName}/versions/{versionName}/sbom-validation-results");
2333
+ b.p("packageName", () => input.packageName, "{packageName}", false);
2334
+ b.p("versionName", () => input.versionName, "{versionName}", false);
2335
+ const query = map({
2336
+ [_vR]: [, input[_vR]],
2337
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
2338
+ [_nT]: [, input[_nT]],
2339
+ });
2340
+ let body;
2341
+ b.m("GET").h(headers).q(query).b(body);
2342
+ return b.build();
2343
+ };
2290
2344
  export const se_ListScheduledAuditsCommand = async (input, context) => {
2291
2345
  const b = rb(input, context);
2292
2346
  const headers = {};
@@ -3258,8 +3312,10 @@ export const se_UpdatePackageVersionCommand = async (input, context) => {
3258
3312
  let body;
3259
3313
  body = JSON.stringify(take(input, {
3260
3314
  action: [],
3315
+ artifact: (_) => _json(_),
3261
3316
  attributes: (_) => _json(_),
3262
3317
  description: [],
3318
+ recipe: [],
3263
3319
  }));
3264
3320
  b.m("PATCH").h(headers).q(query).b(body);
3265
3321
  return b.build();
@@ -3462,6 +3518,23 @@ export const de_AddThingToThingGroupCommand = async (output, context) => {
3462
3518
  await collectBody(output.body, context);
3463
3519
  return contents;
3464
3520
  };
3521
+ export const de_AssociateSbomWithPackageVersionCommand = async (output, context) => {
3522
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3523
+ return de_CommandError(output, context);
3524
+ }
3525
+ const contents = map({
3526
+ $metadata: deserializeMetadata(output),
3527
+ });
3528
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3529
+ const doc = take(data, {
3530
+ packageName: __expectString,
3531
+ sbom: _json,
3532
+ sbomValidationStatus: __expectString,
3533
+ versionName: __expectString,
3534
+ });
3535
+ Object.assign(contents, doc);
3536
+ return contents;
3537
+ };
3465
3538
  export const de_AssociateTargetsWithJobCommand = async (output, context) => {
3466
3539
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3467
3540
  return de_CommandError(output, context);
@@ -5114,6 +5187,16 @@ export const de_DisableTopicRuleCommand = async (output, context) => {
5114
5187
  await collectBody(output.body, context);
5115
5188
  return contents;
5116
5189
  };
5190
+ export const de_DisassociateSbomFromPackageVersionCommand = async (output, context) => {
5191
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5192
+ return de_CommandError(output, context);
5193
+ }
5194
+ const contents = map({
5195
+ $metadata: deserializeMetadata(output),
5196
+ });
5197
+ await collectBody(output.body, context);
5198
+ return contents;
5199
+ };
5117
5200
  export const de_EnableTopicRuleCommand = async (output, context) => {
5118
5201
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5119
5202
  return de_CommandError(output, context);
@@ -5282,6 +5365,7 @@ export const de_GetPackageVersionCommand = async (output, context) => {
5282
5365
  });
5283
5366
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5284
5367
  const doc = take(data, {
5368
+ artifact: _json,
5285
5369
  attributes: _json,
5286
5370
  creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5287
5371
  description: __expectString,
@@ -5289,6 +5373,9 @@ export const de_GetPackageVersionCommand = async (output, context) => {
5289
5373
  lastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5290
5374
  packageName: __expectString,
5291
5375
  packageVersionArn: __expectString,
5376
+ recipe: __expectString,
5377
+ sbom: _json,
5378
+ sbomValidationStatus: __expectString,
5292
5379
  status: __expectString,
5293
5380
  versionName: __expectString,
5294
5381
  });
@@ -6022,6 +6109,21 @@ export const de_ListRoleAliasesCommand = async (output, context) => {
6022
6109
  Object.assign(contents, doc);
6023
6110
  return contents;
6024
6111
  };
6112
+ export const de_ListSbomValidationResultsCommand = async (output, context) => {
6113
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6114
+ return de_CommandError(output, context);
6115
+ }
6116
+ const contents = map({
6117
+ $metadata: deserializeMetadata(output),
6118
+ });
6119
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6120
+ const doc = take(data, {
6121
+ nextToken: __expectString,
6122
+ validationResultSummaries: _json,
6123
+ });
6124
+ Object.assign(contents, doc);
6125
+ return contents;
6126
+ };
6025
6127
  export const de_ListScheduledAuditsCommand = async (output, context) => {
6026
6128
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6027
6129
  return de_CommandError(output, context);
@@ -7039,6 +7141,18 @@ const de_CommandError = async (output, context) => {
7039
7141
  case "UnauthorizedException":
7040
7142
  case "com.amazonaws.iot#UnauthorizedException":
7041
7143
  throw await de_UnauthorizedExceptionRes(parsedOutput, context);
7144
+ case "ConflictException":
7145
+ case "com.amazonaws.iot#ConflictException":
7146
+ throw await de_ConflictExceptionRes(parsedOutput, context);
7147
+ case "InternalServerException":
7148
+ case "com.amazonaws.iot#InternalServerException":
7149
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
7150
+ case "ServiceQuotaExceededException":
7151
+ case "com.amazonaws.iot#ServiceQuotaExceededException":
7152
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
7153
+ case "ValidationException":
7154
+ case "com.amazonaws.iot#ValidationException":
7155
+ throw await de_ValidationExceptionRes(parsedOutput, context);
7042
7156
  case "LimitExceededException":
7043
7157
  case "com.amazonaws.iot#LimitExceededException":
7044
7158
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
@@ -7069,18 +7183,6 @@ const de_CommandError = async (output, context) => {
7069
7183
  case "InvalidAggregationException":
7070
7184
  case "com.amazonaws.iot#InvalidAggregationException":
7071
7185
  throw await de_InvalidAggregationExceptionRes(parsedOutput, context);
7072
- case "ConflictException":
7073
- case "com.amazonaws.iot#ConflictException":
7074
- throw await de_ConflictExceptionRes(parsedOutput, context);
7075
- case "InternalServerException":
7076
- case "com.amazonaws.iot#InternalServerException":
7077
- throw await de_InternalServerExceptionRes(parsedOutput, context);
7078
- case "ServiceQuotaExceededException":
7079
- case "com.amazonaws.iot#ServiceQuotaExceededException":
7080
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
7081
- case "ValidationException":
7082
- case "com.amazonaws.iot#ValidationException":
7083
- throw await de_ValidationExceptionRes(parsedOutput, context);
7084
7186
  case "MalformedPolicyException":
7085
7187
  case "com.amazonaws.iot#MalformedPolicyException":
7086
7188
  throw await de_MalformedPolicyExceptionRes(parsedOutput, context);
@@ -8588,6 +8690,7 @@ const _aT = "actionType";
8588
8690
  const _aTI = "auditTaskId";
8589
8691
  const _aV = "attributeValue";
8590
8692
  const _bCT = "behaviorCriteriaType";
8693
+ const _bS = "beforeSubstitution";
8591
8694
  const _cI = "clientId";
8592
8695
  const _cT = "clientToken";
8593
8696
  const _dN = "dimensionName";
@@ -8646,6 +8749,7 @@ const _tV = "templateVersion";
8646
8749
  const _to = "topic";
8647
8750
  const _uPAV = "usePrefixAttributeValue";
8648
8751
  const _vI = "violationId";
8752
+ const _vR = "validationResult";
8649
8753
  const _vS = "verificationState";
8650
8754
  const _xaip = "x-amzn-iot-principal";
8651
8755
  const _xaip_ = "x-amzn-iot-policy";
@@ -2,6 +2,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { AcceptCertificateTransferCommandInput, AcceptCertificateTransferCommandOutput } from "./commands/AcceptCertificateTransferCommand";
3
3
  import { AddThingToBillingGroupCommandInput, AddThingToBillingGroupCommandOutput } from "./commands/AddThingToBillingGroupCommand";
4
4
  import { AddThingToThingGroupCommandInput, AddThingToThingGroupCommandOutput } from "./commands/AddThingToThingGroupCommand";
5
+ import { AssociateSbomWithPackageVersionCommandInput, AssociateSbomWithPackageVersionCommandOutput } from "./commands/AssociateSbomWithPackageVersionCommand";
5
6
  import { AssociateTargetsWithJobCommandInput, AssociateTargetsWithJobCommandOutput } from "./commands/AssociateTargetsWithJobCommand";
6
7
  import { AttachPolicyCommandInput, AttachPolicyCommandOutput } from "./commands/AttachPolicyCommand";
7
8
  import { AttachPrincipalPolicyCommandInput, AttachPrincipalPolicyCommandOutput } from "./commands/AttachPrincipalPolicyCommand";
@@ -120,6 +121,7 @@ import { DetachPrincipalPolicyCommandInput, DetachPrincipalPolicyCommandOutput }
120
121
  import { DetachSecurityProfileCommandInput, DetachSecurityProfileCommandOutput } from "./commands/DetachSecurityProfileCommand";
121
122
  import { DetachThingPrincipalCommandInput, DetachThingPrincipalCommandOutput } from "./commands/DetachThingPrincipalCommand";
122
123
  import { DisableTopicRuleCommandInput, DisableTopicRuleCommandOutput } from "./commands/DisableTopicRuleCommand";
124
+ import { DisassociateSbomFromPackageVersionCommandInput, DisassociateSbomFromPackageVersionCommandOutput } from "./commands/DisassociateSbomFromPackageVersionCommand";
123
125
  import { EnableTopicRuleCommandInput, EnableTopicRuleCommandOutput } from "./commands/EnableTopicRuleCommand";
124
126
  import { GetBehaviorModelTrainingSummariesCommandInput, GetBehaviorModelTrainingSummariesCommandOutput } from "./commands/GetBehaviorModelTrainingSummariesCommand";
125
127
  import { GetBucketsAggregationCommandInput, GetBucketsAggregationCommandOutput } from "./commands/GetBucketsAggregationCommand";
@@ -180,6 +182,7 @@ import { ListProvisioningTemplatesCommandInput, ListProvisioningTemplatesCommand
180
182
  import { ListProvisioningTemplateVersionsCommandInput, ListProvisioningTemplateVersionsCommandOutput } from "./commands/ListProvisioningTemplateVersionsCommand";
181
183
  import { ListRelatedResourcesForAuditFindingCommandInput, ListRelatedResourcesForAuditFindingCommandOutput } from "./commands/ListRelatedResourcesForAuditFindingCommand";
182
184
  import { ListRoleAliasesCommandInput, ListRoleAliasesCommandOutput } from "./commands/ListRoleAliasesCommand";
185
+ import { ListSbomValidationResultsCommandInput, ListSbomValidationResultsCommandOutput } from "./commands/ListSbomValidationResultsCommand";
183
186
  import { ListScheduledAuditsCommandInput, ListScheduledAuditsCommandOutput } from "./commands/ListScheduledAuditsCommand";
184
187
  import { ListSecurityProfilesCommandInput, ListSecurityProfilesCommandOutput } from "./commands/ListSecurityProfilesCommand";
185
188
  import { ListSecurityProfilesForTargetCommandInput, ListSecurityProfilesForTargetCommandOutput } from "./commands/ListSecurityProfilesForTargetCommand";
@@ -276,6 +279,12 @@ export interface IoT {
276
279
  addThingToThingGroup(args: AddThingToThingGroupCommandInput, options?: __HttpHandlerOptions): Promise<AddThingToThingGroupCommandOutput>;
277
280
  addThingToThingGroup(args: AddThingToThingGroupCommandInput, cb: (err: any, data?: AddThingToThingGroupCommandOutput) => void): void;
278
281
  addThingToThingGroup(args: AddThingToThingGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddThingToThingGroupCommandOutput) => void): void;
282
+ /**
283
+ * @see {@link AssociateSbomWithPackageVersionCommand}
284
+ */
285
+ associateSbomWithPackageVersion(args: AssociateSbomWithPackageVersionCommandInput, options?: __HttpHandlerOptions): Promise<AssociateSbomWithPackageVersionCommandOutput>;
286
+ associateSbomWithPackageVersion(args: AssociateSbomWithPackageVersionCommandInput, cb: (err: any, data?: AssociateSbomWithPackageVersionCommandOutput) => void): void;
287
+ associateSbomWithPackageVersion(args: AssociateSbomWithPackageVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateSbomWithPackageVersionCommandOutput) => void): void;
279
288
  /**
280
289
  * @see {@link AssociateTargetsWithJobCommand}
281
290
  */
@@ -992,6 +1001,12 @@ export interface IoT {
992
1001
  disableTopicRule(args: DisableTopicRuleCommandInput, options?: __HttpHandlerOptions): Promise<DisableTopicRuleCommandOutput>;
993
1002
  disableTopicRule(args: DisableTopicRuleCommandInput, cb: (err: any, data?: DisableTopicRuleCommandOutput) => void): void;
994
1003
  disableTopicRule(args: DisableTopicRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableTopicRuleCommandOutput) => void): void;
1004
+ /**
1005
+ * @see {@link DisassociateSbomFromPackageVersionCommand}
1006
+ */
1007
+ disassociateSbomFromPackageVersion(args: DisassociateSbomFromPackageVersionCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateSbomFromPackageVersionCommandOutput>;
1008
+ disassociateSbomFromPackageVersion(args: DisassociateSbomFromPackageVersionCommandInput, cb: (err: any, data?: DisassociateSbomFromPackageVersionCommandOutput) => void): void;
1009
+ disassociateSbomFromPackageVersion(args: DisassociateSbomFromPackageVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateSbomFromPackageVersionCommandOutput) => void): void;
995
1010
  /**
996
1011
  * @see {@link EnableTopicRuleCommand}
997
1012
  */
@@ -1383,6 +1398,12 @@ export interface IoT {
1383
1398
  listRoleAliases(args: ListRoleAliasesCommandInput, options?: __HttpHandlerOptions): Promise<ListRoleAliasesCommandOutput>;
1384
1399
  listRoleAliases(args: ListRoleAliasesCommandInput, cb: (err: any, data?: ListRoleAliasesCommandOutput) => void): void;
1385
1400
  listRoleAliases(args: ListRoleAliasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRoleAliasesCommandOutput) => void): void;
1401
+ /**
1402
+ * @see {@link ListSbomValidationResultsCommand}
1403
+ */
1404
+ listSbomValidationResults(args: ListSbomValidationResultsCommandInput, options?: __HttpHandlerOptions): Promise<ListSbomValidationResultsCommandOutput>;
1405
+ listSbomValidationResults(args: ListSbomValidationResultsCommandInput, cb: (err: any, data?: ListSbomValidationResultsCommandOutput) => void): void;
1406
+ listSbomValidationResults(args: ListSbomValidationResultsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSbomValidationResultsCommandOutput) => void): void;
1386
1407
  /**
1387
1408
  * @see {@link ListScheduledAuditsCommand}
1388
1409
  */