@aws-sdk/client-iot 3.345.0 → 3.347.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 (125) hide show
  1. package/README.md +96 -0
  2. package/dist-cjs/IoT.js +24 -0
  3. package/dist-cjs/commands/CreatePackageCommand.js +47 -0
  4. package/dist-cjs/commands/CreatePackageVersionCommand.js +47 -0
  5. package/dist-cjs/commands/DeletePackageCommand.js +46 -0
  6. package/dist-cjs/commands/DeletePackageVersionCommand.js +46 -0
  7. package/dist-cjs/commands/GetPackageCommand.js +47 -0
  8. package/dist-cjs/commands/GetPackageConfigurationCommand.js +46 -0
  9. package/dist-cjs/commands/GetPackageVersionCommand.js +47 -0
  10. package/dist-cjs/commands/ListPackageVersionsCommand.js +46 -0
  11. package/dist-cjs/commands/ListPackagesCommand.js +46 -0
  12. package/dist-cjs/commands/UpdatePackageCommand.js +47 -0
  13. package/dist-cjs/commands/UpdatePackageConfigurationCommand.js +46 -0
  14. package/dist-cjs/commands/UpdatePackageVersionCommand.js +47 -0
  15. package/dist-cjs/commands/index.js +12 -0
  16. package/dist-cjs/models/models_0.js +68 -1
  17. package/dist-cjs/models/models_1.js +13 -14
  18. package/dist-cjs/models/models_2.js +17 -1
  19. package/dist-cjs/pagination/ListPackageVersionsPaginator.js +29 -0
  20. package/dist-cjs/pagination/ListPackagesPaginator.js +29 -0
  21. package/dist-cjs/pagination/index.js +2 -0
  22. package/dist-cjs/protocols/Aws_restJson1.js +897 -46
  23. package/dist-es/IoT.js +24 -0
  24. package/dist-es/commands/CreatePackageCommand.js +43 -0
  25. package/dist-es/commands/CreatePackageVersionCommand.js +43 -0
  26. package/dist-es/commands/DeletePackageCommand.js +42 -0
  27. package/dist-es/commands/DeletePackageVersionCommand.js +42 -0
  28. package/dist-es/commands/GetPackageCommand.js +43 -0
  29. package/dist-es/commands/GetPackageConfigurationCommand.js +42 -0
  30. package/dist-es/commands/GetPackageVersionCommand.js +43 -0
  31. package/dist-es/commands/ListPackageVersionsCommand.js +42 -0
  32. package/dist-es/commands/ListPackagesCommand.js +42 -0
  33. package/dist-es/commands/UpdatePackageCommand.js +43 -0
  34. package/dist-es/commands/UpdatePackageConfigurationCommand.js +42 -0
  35. package/dist-es/commands/UpdatePackageVersionCommand.js +43 -0
  36. package/dist-es/commands/index.js +12 -0
  37. package/dist-es/models/models_0.js +60 -0
  38. package/dist-es/models/models_1.js +10 -12
  39. package/dist-es/models/models_2.js +14 -0
  40. package/dist-es/pagination/ListPackageVersionsPaginator.js +25 -0
  41. package/dist-es/pagination/ListPackagesPaginator.js +25 -0
  42. package/dist-es/pagination/index.js +2 -0
  43. package/dist-es/protocols/Aws_restJson1.js +862 -35
  44. package/dist-types/IoT.d.ts +84 -0
  45. package/dist-types/IoTClient.d.ts +14 -2
  46. package/dist-types/commands/CreateCertificateFromCsrCommand.d.ts +1 -1
  47. package/dist-types/commands/CreateJobCommand.d.ts +3 -0
  48. package/dist-types/commands/CreateJobTemplateCommand.d.ts +3 -0
  49. package/dist-types/commands/CreatePackageCommand.d.ts +97 -0
  50. package/dist-types/commands/CreatePackageVersionCommand.d.ts +107 -0
  51. package/dist-types/commands/DeleteFleetMetricCommand.d.ts +1 -1
  52. package/dist-types/commands/DeleteJobCommand.d.ts +1 -1
  53. package/dist-types/commands/DeleteJobExecutionCommand.d.ts +1 -1
  54. package/dist-types/commands/DeleteJobTemplateCommand.d.ts +1 -1
  55. package/dist-types/commands/DeleteMitigationActionCommand.d.ts +1 -1
  56. package/dist-types/commands/DeleteOTAUpdateCommand.d.ts +1 -1
  57. package/dist-types/commands/DeletePackageCommand.d.ts +85 -0
  58. package/dist-types/commands/DeletePackageVersionCommand.d.ts +85 -0
  59. package/dist-types/commands/DescribeJobCommand.d.ts +3 -0
  60. package/dist-types/commands/DescribeJobTemplateCommand.d.ts +3 -0
  61. package/dist-types/commands/GetPackageCommand.d.ts +92 -0
  62. package/dist-types/commands/GetPackageConfigurationCommand.d.ts +82 -0
  63. package/dist-types/commands/GetPackageVersionCommand.d.ts +98 -0
  64. package/dist-types/commands/ListPackageVersionsCommand.d.ts +96 -0
  65. package/dist-types/commands/ListPackagesCommand.d.ts +93 -0
  66. package/dist-types/commands/ListPolicyVersionsCommand.d.ts +2 -1
  67. package/dist-types/commands/ListPrincipalPoliciesCommand.d.ts +1 -1
  68. package/dist-types/commands/ListPrincipalThingsCommand.d.ts +1 -1
  69. package/dist-types/commands/ListProvisioningTemplateVersionsCommand.d.ts +1 -1
  70. package/dist-types/commands/ListProvisioningTemplatesCommand.d.ts +1 -1
  71. package/dist-types/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +1 -1
  72. package/dist-types/commands/ListRoleAliasesCommand.d.ts +1 -1
  73. package/dist-types/commands/ListScheduledAuditsCommand.d.ts +1 -1
  74. package/dist-types/commands/ListSecurityProfilesCommand.d.ts +1 -1
  75. package/dist-types/commands/ListSecurityProfilesForTargetCommand.d.ts +1 -2
  76. package/dist-types/commands/UpdatePackageCommand.d.ts +89 -0
  77. package/dist-types/commands/UpdatePackageConfigurationCommand.d.ts +86 -0
  78. package/dist-types/commands/UpdatePackageVersionCommand.d.ts +92 -0
  79. package/dist-types/commands/index.d.ts +12 -0
  80. package/dist-types/models/models_0.d.ts +184 -134
  81. package/dist-types/models/models_1.d.ts +416 -405
  82. package/dist-types/models/models_2.d.ts +529 -2
  83. package/dist-types/pagination/ListPackageVersionsPaginator.d.ts +7 -0
  84. package/dist-types/pagination/ListPackagesPaginator.d.ts +7 -0
  85. package/dist-types/pagination/index.d.ts +2 -0
  86. package/dist-types/protocols/Aws_restJson1.d.ts +108 -0
  87. package/dist-types/ts3.4/IoT.d.ts +204 -0
  88. package/dist-types/ts3.4/IoTClient.d.ts +72 -0
  89. package/dist-types/ts3.4/commands/CreatePackageCommand.d.ts +38 -0
  90. package/dist-types/ts3.4/commands/CreatePackageVersionCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/DeleteFleetMetricCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/DeleteJobCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/DeleteJobExecutionCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/DeleteJobTemplateCommand.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/DeleteMitigationActionCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/DeleteOTAUpdateCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/DeletePackageCommand.d.ts +38 -0
  98. package/dist-types/ts3.4/commands/DeletePackageVersionCommand.d.ts +42 -0
  99. package/dist-types/ts3.4/commands/GetPackageCommand.d.ts +35 -0
  100. package/dist-types/ts3.4/commands/GetPackageConfigurationCommand.d.ts +42 -0
  101. package/dist-types/ts3.4/commands/GetPackageVersionCommand.d.ts +39 -0
  102. package/dist-types/ts3.4/commands/ListPackageVersionsCommand.d.ts +39 -0
  103. package/dist-types/ts3.4/commands/ListPackagesCommand.d.ts +35 -0
  104. package/dist-types/ts3.4/commands/ListPolicyVersionsCommand.d.ts +2 -4
  105. package/dist-types/ts3.4/commands/ListPrincipalPoliciesCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/ListPrincipalThingsCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/ListProvisioningTemplateVersionsCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/ListProvisioningTemplatesCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/ListRoleAliasesCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/ListScheduledAuditsCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/ListSecurityProfilesCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/ListSecurityProfilesForTargetCommand.d.ts +4 -2
  114. package/dist-types/ts3.4/commands/UpdatePackageCommand.d.ts +38 -0
  115. package/dist-types/ts3.4/commands/UpdatePackageConfigurationCommand.d.ts +42 -0
  116. package/dist-types/ts3.4/commands/UpdatePackageVersionCommand.d.ts +42 -0
  117. package/dist-types/ts3.4/commands/index.d.ts +12 -0
  118. package/dist-types/ts3.4/models/models_0.d.ts +71 -29
  119. package/dist-types/ts3.4/models/models_1.d.ts +114 -121
  120. package/dist-types/ts3.4/models/models_2.d.ts +152 -2
  121. package/dist-types/ts3.4/pagination/ListPackageVersionsPaginator.d.ts +11 -0
  122. package/dist-types/ts3.4/pagination/ListPackagesPaginator.d.ts +11 -0
  123. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  124. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +144 -0
  125. package/package.json +28 -28
@@ -28,6 +28,8 @@ export * from "./CreateJobTemplateCommand";
28
28
  export * from "./CreateKeysAndCertificateCommand";
29
29
  export * from "./CreateMitigationActionCommand";
30
30
  export * from "./CreateOTAUpdateCommand";
31
+ export * from "./CreatePackageCommand";
32
+ export * from "./CreatePackageVersionCommand";
31
33
  export * from "./CreatePolicyCommand";
32
34
  export * from "./CreatePolicyVersionCommand";
33
35
  export * from "./CreateProvisioningClaimCommand";
@@ -58,6 +60,8 @@ export * from "./DeleteJobExecutionCommand";
58
60
  export * from "./DeleteJobTemplateCommand";
59
61
  export * from "./DeleteMitigationActionCommand";
60
62
  export * from "./DeleteOTAUpdateCommand";
63
+ export * from "./DeletePackageCommand";
64
+ export * from "./DeletePackageVersionCommand";
61
65
  export * from "./DeletePolicyCommand";
62
66
  export * from "./DeletePolicyVersionCommand";
63
67
  export * from "./DeleteProvisioningTemplateCommand";
@@ -121,6 +125,9 @@ export * from "./GetIndexingConfigurationCommand";
121
125
  export * from "./GetJobDocumentCommand";
122
126
  export * from "./GetLoggingOptionsCommand";
123
127
  export * from "./GetOTAUpdateCommand";
128
+ export * from "./GetPackageCommand";
129
+ export * from "./GetPackageConfigurationCommand";
130
+ export * from "./GetPackageVersionCommand";
124
131
  export * from "./GetPercentilesCommand";
125
132
  export * from "./GetPolicyCommand";
126
133
  export * from "./GetPolicyVersionCommand";
@@ -157,6 +164,8 @@ export * from "./ListMetricValuesCommand";
157
164
  export * from "./ListMitigationActionsCommand";
158
165
  export * from "./ListOTAUpdatesCommand";
159
166
  export * from "./ListOutgoingCertificatesCommand";
167
+ export * from "./ListPackageVersionsCommand";
168
+ export * from "./ListPackagesCommand";
160
169
  export * from "./ListPoliciesCommand";
161
170
  export * from "./ListPolicyPrincipalsCommand";
162
171
  export * from "./ListPolicyVersionsCommand";
@@ -226,6 +235,9 @@ export * from "./UpdateFleetMetricCommand";
226
235
  export * from "./UpdateIndexingConfigurationCommand";
227
236
  export * from "./UpdateJobCommand";
228
237
  export * from "./UpdateMitigationActionCommand";
238
+ export * from "./UpdatePackageCommand";
239
+ export * from "./UpdatePackageConfigurationCommand";
240
+ export * from "./UpdatePackageVersionCommand";
229
241
  export * from "./UpdateProvisioningTemplateCommand";
230
242
  export * from "./UpdateRoleAliasCommand";
231
243
  export * from "./UpdateScheduledAuditCommand";
@@ -1138,6 +1138,7 @@ export interface CreateJobRequest {
1138
1138
  jobExecutionsRetryConfig?: JobExecutionsRetryConfig;
1139
1139
  documentParameters?: Record<string, string>;
1140
1140
  schedulingConfig?: SchedulingConfig;
1141
+ destinationPackageVersions?: string[];
1141
1142
  }
1142
1143
  export interface CreateJobResponse {
1143
1144
  jobArn?: string;
@@ -1147,6 +1148,7 @@ export interface CreateJobResponse {
1147
1148
  export declare class ConflictException extends __BaseException {
1148
1149
  readonly name: "ConflictException";
1149
1150
  readonly $fault: "client";
1151
+ resourceId?: string;
1150
1152
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
1151
1153
  }
1152
1154
  export interface CreateJobTemplateRequest {
@@ -1162,6 +1164,7 @@ export interface CreateJobTemplateRequest {
1162
1164
  tags?: Tag[];
1163
1165
  jobExecutionsRetryConfig?: JobExecutionsRetryConfig;
1164
1166
  maintenanceWindows?: MaintenanceWindow[];
1167
+ destinationPackageVersions?: string[];
1165
1168
  }
1166
1169
  export interface CreateJobTemplateResponse {
1167
1170
  jobTemplateArn?: string;
@@ -1371,6 +1374,62 @@ export interface CreateOTAUpdateResponse {
1371
1374
  awsIotJobArn?: string;
1372
1375
  otaUpdateStatus?: OTAUpdateStatus | string;
1373
1376
  }
1377
+ export interface CreatePackageRequest {
1378
+ packageName: string | undefined;
1379
+ description?: string;
1380
+ tags?: Record<string, string>;
1381
+ clientToken?: string;
1382
+ }
1383
+ export interface CreatePackageResponse {
1384
+ packageName?: string;
1385
+ packageArn?: string;
1386
+ description?: string;
1387
+ }
1388
+ export declare class InternalServerException extends __BaseException {
1389
+ readonly name: "InternalServerException";
1390
+ readonly $fault: "server";
1391
+ constructor(
1392
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
1393
+ );
1394
+ }
1395
+ export declare class ServiceQuotaExceededException extends __BaseException {
1396
+ readonly name: "ServiceQuotaExceededException";
1397
+ readonly $fault: "client";
1398
+ constructor(
1399
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
1400
+ );
1401
+ }
1402
+ export declare class ValidationException extends __BaseException {
1403
+ readonly name: "ValidationException";
1404
+ readonly $fault: "client";
1405
+ constructor(
1406
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
1407
+ );
1408
+ }
1409
+ export interface CreatePackageVersionRequest {
1410
+ packageName: string | undefined;
1411
+ versionName: string | undefined;
1412
+ description?: string;
1413
+ attributes?: Record<string, string>;
1414
+ tags?: Record<string, string>;
1415
+ clientToken?: string;
1416
+ }
1417
+ export declare const PackageVersionStatus: {
1418
+ readonly DEPRECATED: "DEPRECATED";
1419
+ readonly DRAFT: "DRAFT";
1420
+ readonly PUBLISHED: "PUBLISHED";
1421
+ };
1422
+ export type PackageVersionStatus =
1423
+ (typeof PackageVersionStatus)[keyof typeof PackageVersionStatus];
1424
+ export interface CreatePackageVersionResponse {
1425
+ packageVersionArn?: string;
1426
+ packageName?: string;
1427
+ versionName?: string;
1428
+ description?: string;
1429
+ attributes?: Record<string, string>;
1430
+ status?: PackageVersionStatus | string;
1431
+ errorReason?: string;
1432
+ }
1374
1433
  export interface CreatePolicyRequest {
1375
1434
  policyName: string | undefined;
1376
1435
  policyDocument: string | undefined;
@@ -1669,39 +1728,22 @@ export interface DeleteDynamicThingGroupRequest {
1669
1728
  expectedVersion?: number;
1670
1729
  }
1671
1730
  export interface DeleteDynamicThingGroupResponse {}
1672
- export interface DeleteFleetMetricRequest {
1673
- metricName: string | undefined;
1674
- expectedVersion?: number;
1675
- }
1676
- export interface DeleteJobRequest {
1677
- jobId: string | undefined;
1678
- force?: boolean;
1679
- namespaceId?: string;
1680
- }
1681
- export interface DeleteJobExecutionRequest {
1682
- jobId: string | undefined;
1683
- thingName: string | undefined;
1684
- executionNumber: number | undefined;
1685
- force?: boolean;
1686
- namespaceId?: string;
1687
- }
1688
- export interface DeleteJobTemplateRequest {
1689
- jobTemplateId: string | undefined;
1690
- }
1691
- export interface DeleteMitigationActionRequest {
1692
- actionName: string | undefined;
1693
- }
1694
- export interface DeleteMitigationActionResponse {}
1695
- export interface DeleteOTAUpdateRequest {
1696
- otaUpdateId: string | undefined;
1697
- deleteStream?: boolean;
1698
- forceDeleteAWSJob?: boolean;
1699
- }
1700
- export interface DeleteOTAUpdateResponse {}
1701
1731
  export declare const KeyPairFilterSensitiveLog: (obj: KeyPair) => any;
1702
1732
  export declare const CreateKeysAndCertificateResponseFilterSensitiveLog: (
1703
1733
  obj: CreateKeysAndCertificateResponse
1704
1734
  ) => any;
1735
+ export declare const CreatePackageRequestFilterSensitiveLog: (
1736
+ obj: CreatePackageRequest
1737
+ ) => any;
1738
+ export declare const CreatePackageResponseFilterSensitiveLog: (
1739
+ obj: CreatePackageResponse
1740
+ ) => any;
1741
+ export declare const CreatePackageVersionRequestFilterSensitiveLog: (
1742
+ obj: CreatePackageVersionRequest
1743
+ ) => any;
1744
+ export declare const CreatePackageVersionResponseFilterSensitiveLog: (
1745
+ obj: CreatePackageVersionResponse
1746
+ ) => any;
1705
1747
  export declare const CreateProvisioningClaimResponseFilterSensitiveLog: (
1706
1748
  obj: CreateProvisioningClaimResponse
1707
1749
  ) => any;
@@ -43,11 +43,11 @@ import {
43
43
  MitigationActionParams,
44
44
  OTAUpdateFile,
45
45
  OTAUpdateStatus,
46
+ PackageVersionStatus,
46
47
  Policy,
47
48
  PresignedUrlConfig,
48
49
  Protocol,
49
50
  ProvisioningHook,
50
- RelatedResource,
51
51
  ResourceIdentifier,
52
52
  SchedulingConfig,
53
53
  ServiceType,
@@ -62,6 +62,46 @@ import {
62
62
  TopicRuleDestination,
63
63
  VerificationState,
64
64
  } from "./models_0";
65
+ export interface DeleteFleetMetricRequest {
66
+ metricName: string | undefined;
67
+ expectedVersion?: number;
68
+ }
69
+ export interface DeleteJobRequest {
70
+ jobId: string | undefined;
71
+ force?: boolean;
72
+ namespaceId?: string;
73
+ }
74
+ export interface DeleteJobExecutionRequest {
75
+ jobId: string | undefined;
76
+ thingName: string | undefined;
77
+ executionNumber: number | undefined;
78
+ force?: boolean;
79
+ namespaceId?: string;
80
+ }
81
+ export interface DeleteJobTemplateRequest {
82
+ jobTemplateId: string | undefined;
83
+ }
84
+ export interface DeleteMitigationActionRequest {
85
+ actionName: string | undefined;
86
+ }
87
+ export interface DeleteMitigationActionResponse {}
88
+ export interface DeleteOTAUpdateRequest {
89
+ otaUpdateId: string | undefined;
90
+ deleteStream?: boolean;
91
+ forceDeleteAWSJob?: boolean;
92
+ }
93
+ export interface DeleteOTAUpdateResponse {}
94
+ export interface DeletePackageRequest {
95
+ packageName: string | undefined;
96
+ clientToken?: string;
97
+ }
98
+ export interface DeletePackageResponse {}
99
+ export interface DeletePackageVersionRequest {
100
+ packageName: string | undefined;
101
+ versionName: string | undefined;
102
+ clientToken?: string;
103
+ }
104
+ export interface DeletePackageVersionResponse {}
65
105
  export interface DeletePolicyRequest {
66
106
  policyName: string | undefined;
67
107
  }
@@ -515,6 +555,7 @@ export interface Job {
515
555
  isConcurrent?: boolean;
516
556
  schedulingConfig?: SchedulingConfig;
517
557
  scheduledJobRollouts?: ScheduledJobRollout[];
558
+ destinationPackageVersions?: string[];
518
559
  }
519
560
  export interface DescribeJobResponse {
520
561
  documentSource?: string;
@@ -572,6 +613,7 @@ export interface DescribeJobTemplateResponse {
572
613
  timeoutConfig?: TimeoutConfig;
573
614
  jobExecutionsRetryConfig?: JobExecutionsRetryConfig;
574
615
  maintenanceWindows?: MaintenanceWindow[];
616
+ destinationPackageVersions?: string[];
575
617
  }
576
618
  export interface DescribeManagedJobTemplateRequest {
577
619
  templateName: string | undefined;
@@ -593,13 +635,6 @@ export interface DescribeManagedJobTemplateResponse {
593
635
  documentParameters?: DocumentParameter[];
594
636
  document?: string;
595
637
  }
596
- export declare class InternalServerException extends __BaseException {
597
- readonly name: "InternalServerException";
598
- readonly $fault: "server";
599
- constructor(
600
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
601
- );
602
- }
603
638
  export interface DescribeMitigationActionRequest {
604
639
  actionName: string | undefined;
605
640
  }
@@ -982,6 +1017,40 @@ export interface OTAUpdateInfo {
982
1017
  export interface GetOTAUpdateResponse {
983
1018
  otaUpdateInfo?: OTAUpdateInfo;
984
1019
  }
1020
+ export interface GetPackageRequest {
1021
+ packageName: string | undefined;
1022
+ }
1023
+ export interface GetPackageResponse {
1024
+ packageName?: string;
1025
+ packageArn?: string;
1026
+ description?: string;
1027
+ defaultVersionName?: string;
1028
+ creationDate?: Date;
1029
+ lastModifiedDate?: Date;
1030
+ }
1031
+ export interface GetPackageConfigurationRequest {}
1032
+ export interface VersionUpdateByJobsConfig {
1033
+ enabled?: boolean;
1034
+ roleArn?: string;
1035
+ }
1036
+ export interface GetPackageConfigurationResponse {
1037
+ versionUpdateByJobsConfig?: VersionUpdateByJobsConfig;
1038
+ }
1039
+ export interface GetPackageVersionRequest {
1040
+ packageName: string | undefined;
1041
+ versionName: string | undefined;
1042
+ }
1043
+ export interface GetPackageVersionResponse {
1044
+ packageVersionArn?: string;
1045
+ packageName?: string;
1046
+ versionName?: string;
1047
+ description?: string;
1048
+ attributes?: Record<string, string>;
1049
+ status?: PackageVersionStatus | string;
1050
+ errorReason?: string;
1051
+ creationDate?: Date;
1052
+ lastModifiedDate?: Date;
1053
+ }
985
1054
  export interface GetPercentilesRequest {
986
1055
  indexName?: string;
987
1056
  queryString: string | undefined;
@@ -1480,6 +1549,37 @@ export interface ListOutgoingCertificatesResponse {
1480
1549
  outgoingCertificates?: OutgoingCertificate[];
1481
1550
  nextMarker?: string;
1482
1551
  }
1552
+ export interface ListPackagesRequest {
1553
+ maxResults?: number;
1554
+ nextToken?: string;
1555
+ }
1556
+ export interface PackageSummary {
1557
+ packageName?: string;
1558
+ defaultVersionName?: string;
1559
+ creationDate?: Date;
1560
+ lastModifiedDate?: Date;
1561
+ }
1562
+ export interface ListPackagesResponse {
1563
+ packageSummaries?: PackageSummary[];
1564
+ nextToken?: string;
1565
+ }
1566
+ export interface ListPackageVersionsRequest {
1567
+ packageName: string | undefined;
1568
+ status?: PackageVersionStatus | string;
1569
+ maxResults?: number;
1570
+ nextToken?: string;
1571
+ }
1572
+ export interface PackageVersionSummary {
1573
+ packageName?: string;
1574
+ versionName?: string;
1575
+ status?: PackageVersionStatus | string;
1576
+ creationDate?: Date;
1577
+ lastModifiedDate?: Date;
1578
+ }
1579
+ export interface ListPackageVersionsResponse {
1580
+ packageVersionSummaries?: PackageVersionSummary[];
1581
+ nextToken?: string;
1582
+ }
1483
1583
  export interface ListPoliciesRequest {
1484
1584
  marker?: string;
1485
1585
  pageSize?: number;
@@ -1507,116 +1607,9 @@ export interface PolicyVersion {
1507
1607
  isDefaultVersion?: boolean;
1508
1608
  createDate?: Date;
1509
1609
  }
1510
- export interface ListPolicyVersionsResponse {
1511
- policyVersions?: PolicyVersion[];
1512
- }
1513
- export interface ListPrincipalPoliciesRequest {
1514
- principal: string | undefined;
1515
- marker?: string;
1516
- pageSize?: number;
1517
- ascendingOrder?: boolean;
1518
- }
1519
- export interface ListPrincipalPoliciesResponse {
1520
- policies?: Policy[];
1521
- nextMarker?: string;
1522
- }
1523
- export interface ListPrincipalThingsRequest {
1524
- nextToken?: string;
1525
- maxResults?: number;
1526
- principal: string | undefined;
1527
- }
1528
- export interface ListPrincipalThingsResponse {
1529
- things?: string[];
1530
- nextToken?: string;
1531
- }
1532
- export interface ListProvisioningTemplatesRequest {
1533
- maxResults?: number;
1534
- nextToken?: string;
1535
- }
1536
- export interface ProvisioningTemplateSummary {
1537
- templateArn?: string;
1538
- templateName?: string;
1539
- description?: string;
1540
- creationDate?: Date;
1541
- lastModifiedDate?: Date;
1542
- enabled?: boolean;
1543
- type?: TemplateType | string;
1544
- }
1545
- export interface ListProvisioningTemplatesResponse {
1546
- templates?: ProvisioningTemplateSummary[];
1547
- nextToken?: string;
1548
- }
1549
- export interface ListProvisioningTemplateVersionsRequest {
1550
- templateName: string | undefined;
1551
- maxResults?: number;
1552
- nextToken?: string;
1553
- }
1554
- export interface ProvisioningTemplateVersionSummary {
1555
- versionId?: number;
1556
- creationDate?: Date;
1557
- isDefaultVersion?: boolean;
1558
- }
1559
- export interface ListProvisioningTemplateVersionsResponse {
1560
- versions?: ProvisioningTemplateVersionSummary[];
1561
- nextToken?: string;
1562
- }
1563
- export interface ListRelatedResourcesForAuditFindingRequest {
1564
- findingId: string | undefined;
1565
- nextToken?: string;
1566
- maxResults?: number;
1567
- }
1568
- export interface ListRelatedResourcesForAuditFindingResponse {
1569
- relatedResources?: RelatedResource[];
1570
- nextToken?: string;
1571
- }
1572
- export interface ListRoleAliasesRequest {
1573
- pageSize?: number;
1574
- marker?: string;
1575
- ascendingOrder?: boolean;
1576
- }
1577
- export interface ListRoleAliasesResponse {
1578
- roleAliases?: string[];
1579
- nextMarker?: string;
1580
- }
1581
- export interface ListScheduledAuditsRequest {
1582
- nextToken?: string;
1583
- maxResults?: number;
1584
- }
1585
- export interface ScheduledAuditMetadata {
1586
- scheduledAuditName?: string;
1587
- scheduledAuditArn?: string;
1588
- frequency?: AuditFrequency | string;
1589
- dayOfMonth?: string;
1590
- dayOfWeek?: DayOfWeek | string;
1591
- }
1592
- export interface ListScheduledAuditsResponse {
1593
- scheduledAudits?: ScheduledAuditMetadata[];
1594
- nextToken?: string;
1595
- }
1596
- export interface ListSecurityProfilesRequest {
1597
- nextToken?: string;
1598
- maxResults?: number;
1599
- dimensionName?: string;
1600
- metricName?: string;
1601
- }
1602
- export interface SecurityProfileIdentifier {
1603
- name: string | undefined;
1604
- arn: string | undefined;
1605
- }
1606
- export interface ListSecurityProfilesResponse {
1607
- securityProfileIdentifiers?: SecurityProfileIdentifier[];
1608
- nextToken?: string;
1609
- }
1610
- export interface ListSecurityProfilesForTargetRequest {
1611
- nextToken?: string;
1612
- maxResults?: number;
1613
- recursive?: boolean;
1614
- securityProfileTargetArn: string | undefined;
1615
- }
1616
- export interface SecurityProfileTarget {
1617
- arn: string | undefined;
1618
- }
1619
- export interface SecurityProfileTargetMapping {
1620
- securityProfileIdentifier?: SecurityProfileIdentifier;
1621
- target?: SecurityProfileTarget;
1622
- }
1610
+ export declare const GetPackageResponseFilterSensitiveLog: (
1611
+ obj: GetPackageResponse
1612
+ ) => any;
1613
+ export declare const GetPackageVersionResponseFilterSensitiveLog: (
1614
+ obj: GetPackageVersionResponse
1615
+ ) => any;
@@ -26,11 +26,14 @@ import {
26
26
  MetricToRetain,
27
27
  MetricValue,
28
28
  MitigationActionParams,
29
+ Policy,
29
30
  PresignedUrlConfig,
30
31
  ProvisioningHook,
32
+ RelatedResource,
31
33
  ResourceIdentifier,
32
34
  StreamFile,
33
35
  Tag,
36
+ TemplateType,
34
37
  ThingGroupProperties,
35
38
  ThingTypeProperties,
36
39
  TimeoutConfig,
@@ -50,15 +53,128 @@ import {
50
53
  DomainConfigurationStatus,
51
54
  GroupNameAndArn,
52
55
  LogTargetType,
56
+ PolicyVersion,
53
57
  RegistrationConfig,
54
- SecurityProfileTarget,
55
- SecurityProfileTargetMapping,
56
58
  Status,
57
59
  ThingGroupIndexingConfiguration,
58
60
  ThingIndexingConfiguration,
59
61
  ThingTypeMetadata,
62
+ VersionUpdateByJobsConfig,
60
63
  ViolationEventOccurrenceRange,
61
64
  } from "./models_1";
65
+ export interface ListPolicyVersionsResponse {
66
+ policyVersions?: PolicyVersion[];
67
+ }
68
+ export interface ListPrincipalPoliciesRequest {
69
+ principal: string | undefined;
70
+ marker?: string;
71
+ pageSize?: number;
72
+ ascendingOrder?: boolean;
73
+ }
74
+ export interface ListPrincipalPoliciesResponse {
75
+ policies?: Policy[];
76
+ nextMarker?: string;
77
+ }
78
+ export interface ListPrincipalThingsRequest {
79
+ nextToken?: string;
80
+ maxResults?: number;
81
+ principal: string | undefined;
82
+ }
83
+ export interface ListPrincipalThingsResponse {
84
+ things?: string[];
85
+ nextToken?: string;
86
+ }
87
+ export interface ListProvisioningTemplatesRequest {
88
+ maxResults?: number;
89
+ nextToken?: string;
90
+ }
91
+ export interface ProvisioningTemplateSummary {
92
+ templateArn?: string;
93
+ templateName?: string;
94
+ description?: string;
95
+ creationDate?: Date;
96
+ lastModifiedDate?: Date;
97
+ enabled?: boolean;
98
+ type?: TemplateType | string;
99
+ }
100
+ export interface ListProvisioningTemplatesResponse {
101
+ templates?: ProvisioningTemplateSummary[];
102
+ nextToken?: string;
103
+ }
104
+ export interface ListProvisioningTemplateVersionsRequest {
105
+ templateName: string | undefined;
106
+ maxResults?: number;
107
+ nextToken?: string;
108
+ }
109
+ export interface ProvisioningTemplateVersionSummary {
110
+ versionId?: number;
111
+ creationDate?: Date;
112
+ isDefaultVersion?: boolean;
113
+ }
114
+ export interface ListProvisioningTemplateVersionsResponse {
115
+ versions?: ProvisioningTemplateVersionSummary[];
116
+ nextToken?: string;
117
+ }
118
+ export interface ListRelatedResourcesForAuditFindingRequest {
119
+ findingId: string | undefined;
120
+ nextToken?: string;
121
+ maxResults?: number;
122
+ }
123
+ export interface ListRelatedResourcesForAuditFindingResponse {
124
+ relatedResources?: RelatedResource[];
125
+ nextToken?: string;
126
+ }
127
+ export interface ListRoleAliasesRequest {
128
+ pageSize?: number;
129
+ marker?: string;
130
+ ascendingOrder?: boolean;
131
+ }
132
+ export interface ListRoleAliasesResponse {
133
+ roleAliases?: string[];
134
+ nextMarker?: string;
135
+ }
136
+ export interface ListScheduledAuditsRequest {
137
+ nextToken?: string;
138
+ maxResults?: number;
139
+ }
140
+ export interface ScheduledAuditMetadata {
141
+ scheduledAuditName?: string;
142
+ scheduledAuditArn?: string;
143
+ frequency?: AuditFrequency | string;
144
+ dayOfMonth?: string;
145
+ dayOfWeek?: DayOfWeek | string;
146
+ }
147
+ export interface ListScheduledAuditsResponse {
148
+ scheduledAudits?: ScheduledAuditMetadata[];
149
+ nextToken?: string;
150
+ }
151
+ export interface ListSecurityProfilesRequest {
152
+ nextToken?: string;
153
+ maxResults?: number;
154
+ dimensionName?: string;
155
+ metricName?: string;
156
+ }
157
+ export interface SecurityProfileIdentifier {
158
+ name: string | undefined;
159
+ arn: string | undefined;
160
+ }
161
+ export interface ListSecurityProfilesResponse {
162
+ securityProfileIdentifiers?: SecurityProfileIdentifier[];
163
+ nextToken?: string;
164
+ }
165
+ export interface ListSecurityProfilesForTargetRequest {
166
+ nextToken?: string;
167
+ maxResults?: number;
168
+ recursive?: boolean;
169
+ securityProfileTargetArn: string | undefined;
170
+ }
171
+ export interface SecurityProfileTarget {
172
+ arn: string | undefined;
173
+ }
174
+ export interface SecurityProfileTargetMapping {
175
+ securityProfileIdentifier?: SecurityProfileIdentifier;
176
+ target?: SecurityProfileTarget;
177
+ }
62
178
  export interface ListSecurityProfilesForTargetResponse {
63
179
  securityProfileTargetMappings?: SecurityProfileTargetMapping[];
64
180
  nextToken?: string;
@@ -711,6 +827,34 @@ export interface UpdateMitigationActionResponse {
711
827
  actionArn?: string;
712
828
  actionId?: string;
713
829
  }
830
+ export interface UpdatePackageRequest {
831
+ packageName: string | undefined;
832
+ description?: string;
833
+ defaultVersionName?: string;
834
+ unsetDefaultVersion?: boolean;
835
+ clientToken?: string;
836
+ }
837
+ export interface UpdatePackageResponse {}
838
+ export interface UpdatePackageConfigurationRequest {
839
+ versionUpdateByJobsConfig?: VersionUpdateByJobsConfig;
840
+ clientToken?: string;
841
+ }
842
+ export interface UpdatePackageConfigurationResponse {}
843
+ export declare const PackageVersionAction: {
844
+ readonly DEPRECATE: "DEPRECATE";
845
+ readonly PUBLISH: "PUBLISH";
846
+ };
847
+ export type PackageVersionAction =
848
+ (typeof PackageVersionAction)[keyof typeof PackageVersionAction];
849
+ export interface UpdatePackageVersionRequest {
850
+ packageName: string | undefined;
851
+ versionName: string | undefined;
852
+ description?: string;
853
+ attributes?: Record<string, string>;
854
+ action?: PackageVersionAction | string;
855
+ clientToken?: string;
856
+ }
857
+ export interface UpdatePackageVersionResponse {}
714
858
  export interface UpdateProvisioningTemplateRequest {
715
859
  templateName: string | undefined;
716
860
  description?: string;
@@ -814,3 +958,9 @@ export interface ValidateSecurityProfileBehaviorsResponse {
814
958
  valid?: boolean;
815
959
  validationErrors?: ValidationError[];
816
960
  }
961
+ export declare const UpdatePackageRequestFilterSensitiveLog: (
962
+ obj: UpdatePackageRequest
963
+ ) => any;
964
+ export declare const UpdatePackageVersionRequestFilterSensitiveLog: (
965
+ obj: UpdatePackageVersionRequest
966
+ ) => any;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListPackageVersionsCommandInput,
4
+ ListPackageVersionsCommandOutput,
5
+ } from "../commands/ListPackageVersionsCommand";
6
+ import { IoTPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListPackageVersions(
8
+ config: IoTPaginationConfiguration,
9
+ input: ListPackageVersionsCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListPackageVersionsCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListPackagesCommandInput,
4
+ ListPackagesCommandOutput,
5
+ } from "../commands/ListPackagesCommand";
6
+ import { IoTPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListPackages(
8
+ config: IoTPaginationConfiguration,
9
+ input: ListPackagesCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListPackagesCommandOutput>;
@@ -28,6 +28,8 @@ export * from "./ListMetricValuesPaginator";
28
28
  export * from "./ListMitigationActionsPaginator";
29
29
  export * from "./ListOTAUpdatesPaginator";
30
30
  export * from "./ListOutgoingCertificatesPaginator";
31
+ export * from "./ListPackageVersionsPaginator";
32
+ export * from "./ListPackagesPaginator";
31
33
  export * from "./ListPoliciesPaginator";
32
34
  export * from "./ListPolicyPrincipalsPaginator";
33
35
  export * from "./ListPrincipalPoliciesPaginator";