@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
@@ -1,7 +1,418 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { IoTServiceException as __BaseException } from "./IoTServiceException";
3
- import { AbortConfig, AggregationType, AlertTarget, AttributePayload, AuditCheckConfiguration, AuditFrequency, AuditMitigationActionsTaskTarget, AuditNotificationTarget, AuthInfo, AuthorizerConfig, AuthorizerStatus, AuthResult, AutoRegistrationStatus, Behavior, BillingGroupProperties, CustomMetricType, DayOfWeek, DimensionType, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MetricToRetain, MetricValue, MitigationActionParams, PresignedUrlConfig, ProvisioningHook, ResourceIdentifier, StreamFile, Tag, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TlsConfig, TopicRuleDestinationStatus, TopicRulePayload, VerificationState, ViolationEventAdditionalInfo } from "./models_0";
4
- import { BehaviorCriteriaType, CACertificateStatus, CertificateMode, CertificateStatus, Configuration, DetectMitigationActionsTaskTarget, DomainConfigurationStatus, GroupNameAndArn, LogTargetType, RegistrationConfig, SecurityProfileTarget, SecurityProfileTargetMapping, Status, ThingGroupIndexingConfiguration, ThingIndexingConfiguration, ThingTypeMetadata, ViolationEventOccurrenceRange } from "./models_1";
3
+ import { AbortConfig, AggregationType, AlertTarget, AttributePayload, AuditCheckConfiguration, AuditFrequency, AuditMitigationActionsTaskTarget, AuditNotificationTarget, AuthInfo, AuthorizerConfig, AuthorizerStatus, AuthResult, AutoRegistrationStatus, Behavior, BillingGroupProperties, CustomMetricType, DayOfWeek, DimensionType, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MetricToRetain, MetricValue, MitigationActionParams, Policy, PresignedUrlConfig, ProvisioningHook, RelatedResource, ResourceIdentifier, StreamFile, Tag, TemplateType, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TlsConfig, TopicRuleDestinationStatus, TopicRulePayload, VerificationState, ViolationEventAdditionalInfo } from "./models_0";
4
+ import { BehaviorCriteriaType, CACertificateStatus, CertificateMode, CertificateStatus, Configuration, DetectMitigationActionsTaskTarget, DomainConfigurationStatus, GroupNameAndArn, LogTargetType, PolicyVersion, RegistrationConfig, Status, ThingGroupIndexingConfiguration, ThingIndexingConfiguration, ThingTypeMetadata, VersionUpdateByJobsConfig, ViolationEventOccurrenceRange } from "./models_1";
5
+ /**
6
+ * @public
7
+ * <p>The output from the ListPolicyVersions operation.</p>
8
+ */
9
+ export interface ListPolicyVersionsResponse {
10
+ /**
11
+ * <p>The policy versions.</p>
12
+ */
13
+ policyVersions?: PolicyVersion[];
14
+ }
15
+ /**
16
+ * @public
17
+ * <p>The input for the ListPrincipalPolicies operation.</p>
18
+ */
19
+ export interface ListPrincipalPoliciesRequest {
20
+ /**
21
+ * <p>The principal. Valid principals are CertificateArn (arn:aws:iot:<i>region</i>:<i>accountId</i>:cert/<i>certificateId</i>), thingGroupArn (arn:aws:iot:<i>region</i>:<i>accountId</i>:thinggroup/<i>groupName</i>) and CognitoId (<i>region</i>:<i>id</i>).</p>
22
+ */
23
+ principal: string | undefined;
24
+ /**
25
+ * <p>The marker for the next set of results.</p>
26
+ */
27
+ marker?: string;
28
+ /**
29
+ * <p>The result page size.</p>
30
+ */
31
+ pageSize?: number;
32
+ /**
33
+ * <p>Specifies the order for results. If true, results are returned in ascending creation
34
+ * order.</p>
35
+ */
36
+ ascendingOrder?: boolean;
37
+ }
38
+ /**
39
+ * @public
40
+ * <p>The output from the ListPrincipalPolicies operation.</p>
41
+ */
42
+ export interface ListPrincipalPoliciesResponse {
43
+ /**
44
+ * <p>The policies.</p>
45
+ */
46
+ policies?: Policy[];
47
+ /**
48
+ * <p>The marker for the next set of results, or null if there are no additional
49
+ * results.</p>
50
+ */
51
+ nextMarker?: string;
52
+ }
53
+ /**
54
+ * @public
55
+ * <p>The input for the ListPrincipalThings operation.</p>
56
+ */
57
+ export interface ListPrincipalThingsRequest {
58
+ /**
59
+ * <p>To retrieve the next set of results, the <code>nextToken</code>
60
+ * value from a previous response; otherwise <b>null</b> to receive
61
+ * the first set of results.</p>
62
+ */
63
+ nextToken?: string;
64
+ /**
65
+ * <p>The maximum number of results to return in this operation.</p>
66
+ */
67
+ maxResults?: number;
68
+ /**
69
+ * <p>The principal.</p>
70
+ */
71
+ principal: string | undefined;
72
+ }
73
+ /**
74
+ * @public
75
+ * <p>The output from the ListPrincipalThings operation.</p>
76
+ */
77
+ export interface ListPrincipalThingsResponse {
78
+ /**
79
+ * <p>The things.</p>
80
+ */
81
+ things?: string[];
82
+ /**
83
+ * <p>The token to use to get the next set of results, or <b>null</b> if there are no additional results.</p>
84
+ */
85
+ nextToken?: string;
86
+ }
87
+ /**
88
+ * @public
89
+ */
90
+ export interface ListProvisioningTemplatesRequest {
91
+ /**
92
+ * <p>The maximum number of results to return at one time.</p>
93
+ */
94
+ maxResults?: number;
95
+ /**
96
+ * <p>A token to retrieve the next set of results.</p>
97
+ */
98
+ nextToken?: string;
99
+ }
100
+ /**
101
+ * @public
102
+ * <p>A summary of information about a provisioning template.</p>
103
+ */
104
+ export interface ProvisioningTemplateSummary {
105
+ /**
106
+ * <p>The ARN of the provisioning template.</p>
107
+ */
108
+ templateArn?: string;
109
+ /**
110
+ * <p>The name of the provisioning template.</p>
111
+ */
112
+ templateName?: string;
113
+ /**
114
+ * <p>The description of the provisioning template.</p>
115
+ */
116
+ description?: string;
117
+ /**
118
+ * <p>The date when the provisioning template summary was created.</p>
119
+ */
120
+ creationDate?: Date;
121
+ /**
122
+ * <p>The date when the provisioning template summary was last modified.</p>
123
+ */
124
+ lastModifiedDate?: Date;
125
+ /**
126
+ * <p>True if the fleet provision template is enabled, otherwise false.</p>
127
+ */
128
+ enabled?: boolean;
129
+ /**
130
+ * <p>The type you define in a provisioning template. You can create a template with only one type.
131
+ * You can't change the template type after its creation. The default value is <code>FLEET_PROVISIONING</code>.
132
+ * For more information about provisioning template, see: <a href="https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html">Provisioning template</a>.
133
+ * </p>
134
+ */
135
+ type?: TemplateType | string;
136
+ }
137
+ /**
138
+ * @public
139
+ */
140
+ export interface ListProvisioningTemplatesResponse {
141
+ /**
142
+ * <p>A list of provisioning templates</p>
143
+ */
144
+ templates?: ProvisioningTemplateSummary[];
145
+ /**
146
+ * <p>A token to retrieve the next set of results.</p>
147
+ */
148
+ nextToken?: string;
149
+ }
150
+ /**
151
+ * @public
152
+ */
153
+ export interface ListProvisioningTemplateVersionsRequest {
154
+ /**
155
+ * <p>The name of the provisioning template.</p>
156
+ */
157
+ templateName: string | undefined;
158
+ /**
159
+ * <p>The maximum number of results to return at one time.</p>
160
+ */
161
+ maxResults?: number;
162
+ /**
163
+ * <p>A token to retrieve the next set of results.</p>
164
+ */
165
+ nextToken?: string;
166
+ }
167
+ /**
168
+ * @public
169
+ * <p>A summary of information about a fleet provision template version.</p>
170
+ */
171
+ export interface ProvisioningTemplateVersionSummary {
172
+ /**
173
+ * <p>The ID of the fleet provisioning template version.</p>
174
+ */
175
+ versionId?: number;
176
+ /**
177
+ * <p>The date when the provisioning template version was created</p>
178
+ */
179
+ creationDate?: Date;
180
+ /**
181
+ * <p>True if the provisioning template version is the default version, otherwise
182
+ * false.</p>
183
+ */
184
+ isDefaultVersion?: boolean;
185
+ }
186
+ /**
187
+ * @public
188
+ */
189
+ export interface ListProvisioningTemplateVersionsResponse {
190
+ /**
191
+ * <p>The list of provisioning template versions.</p>
192
+ */
193
+ versions?: ProvisioningTemplateVersionSummary[];
194
+ /**
195
+ * <p>A token to retrieve the next set of results.</p>
196
+ */
197
+ nextToken?: string;
198
+ }
199
+ /**
200
+ * @public
201
+ */
202
+ export interface ListRelatedResourcesForAuditFindingRequest {
203
+ /**
204
+ * <p>The finding Id.</p>
205
+ */
206
+ findingId: string | undefined;
207
+ /**
208
+ * <p>A token that can be used to retrieve the next set of results,
209
+ * or <code>null</code> if there are no additional results.</p>
210
+ */
211
+ nextToken?: string;
212
+ /**
213
+ * <p>The maximum number of results to return at one time.</p>
214
+ */
215
+ maxResults?: number;
216
+ }
217
+ /**
218
+ * @public
219
+ */
220
+ export interface ListRelatedResourcesForAuditFindingResponse {
221
+ /**
222
+ * <p>The related resources.</p>
223
+ */
224
+ relatedResources?: RelatedResource[];
225
+ /**
226
+ * <p>A token that can be used to retrieve the next set of results,
227
+ * or <code>null</code> for the first API call.</p>
228
+ */
229
+ nextToken?: string;
230
+ }
231
+ /**
232
+ * @public
233
+ */
234
+ export interface ListRoleAliasesRequest {
235
+ /**
236
+ * <p>The maximum number of results to return at one time.</p>
237
+ */
238
+ pageSize?: number;
239
+ /**
240
+ * <p>A marker used to get the next set of results.</p>
241
+ */
242
+ marker?: string;
243
+ /**
244
+ * <p>Return the list of role aliases in ascending alphabetical order.</p>
245
+ */
246
+ ascendingOrder?: boolean;
247
+ }
248
+ /**
249
+ * @public
250
+ */
251
+ export interface ListRoleAliasesResponse {
252
+ /**
253
+ * <p>The role aliases.</p>
254
+ */
255
+ roleAliases?: string[];
256
+ /**
257
+ * <p>A marker used to get the next set of results.</p>
258
+ */
259
+ nextMarker?: string;
260
+ }
261
+ /**
262
+ * @public
263
+ */
264
+ export interface ListScheduledAuditsRequest {
265
+ /**
266
+ * <p>The token for the next set of results.</p>
267
+ */
268
+ nextToken?: string;
269
+ /**
270
+ * <p>The maximum number of results to return at one time. The default is 25.</p>
271
+ */
272
+ maxResults?: number;
273
+ }
274
+ /**
275
+ * @public
276
+ * <p>Information about the scheduled audit.</p>
277
+ */
278
+ export interface ScheduledAuditMetadata {
279
+ /**
280
+ * <p>The name of the scheduled audit.</p>
281
+ */
282
+ scheduledAuditName?: string;
283
+ /**
284
+ * <p>The ARN of the scheduled audit.</p>
285
+ */
286
+ scheduledAuditArn?: string;
287
+ /**
288
+ * <p>How often the scheduled audit occurs.</p>
289
+ */
290
+ frequency?: AuditFrequency | string;
291
+ /**
292
+ * <p>The day of the month on which the scheduled audit is run (if the
293
+ * <code>frequency</code> is "MONTHLY").
294
+ * If days 29-31 are specified, and the month does not have that many
295
+ * days, the audit takes place on the "LAST" day of the month.</p>
296
+ */
297
+ dayOfMonth?: string;
298
+ /**
299
+ * <p>The day of the week on which the scheduled audit is run (if the
300
+ * <code>frequency</code> is "WEEKLY" or "BIWEEKLY").</p>
301
+ */
302
+ dayOfWeek?: DayOfWeek | string;
303
+ }
304
+ /**
305
+ * @public
306
+ */
307
+ export interface ListScheduledAuditsResponse {
308
+ /**
309
+ * <p>The list of scheduled audits.</p>
310
+ */
311
+ scheduledAudits?: ScheduledAuditMetadata[];
312
+ /**
313
+ * <p>A token that can be used to retrieve the next set of results,
314
+ * or <code>null</code> if there are no additional results.</p>
315
+ */
316
+ nextToken?: string;
317
+ }
318
+ /**
319
+ * @public
320
+ */
321
+ export interface ListSecurityProfilesRequest {
322
+ /**
323
+ * <p>The token for the next set of results.</p>
324
+ */
325
+ nextToken?: string;
326
+ /**
327
+ * <p>The maximum number of results to return at one time.</p>
328
+ */
329
+ maxResults?: number;
330
+ /**
331
+ * <p>A filter to limit results to the security profiles that use the defined dimension.
332
+ * Cannot be used with <code>metricName</code>
333
+ * </p>
334
+ */
335
+ dimensionName?: string;
336
+ /**
337
+ * <p> The name of the custom metric.
338
+ * Cannot be used with <code>dimensionName</code>. </p>
339
+ */
340
+ metricName?: string;
341
+ }
342
+ /**
343
+ * @public
344
+ * <p>Identifying information for a Device Defender security profile.</p>
345
+ */
346
+ export interface SecurityProfileIdentifier {
347
+ /**
348
+ * <p>The name you've given to the security profile.</p>
349
+ */
350
+ name: string | undefined;
351
+ /**
352
+ * <p>The ARN of the security profile.</p>
353
+ */
354
+ arn: string | undefined;
355
+ }
356
+ /**
357
+ * @public
358
+ */
359
+ export interface ListSecurityProfilesResponse {
360
+ /**
361
+ * <p>A list of security profile identifiers (names and ARNs).</p>
362
+ */
363
+ securityProfileIdentifiers?: SecurityProfileIdentifier[];
364
+ /**
365
+ * <p>A token that can be used to retrieve the next set of results, or <code>null</code> if there are no
366
+ * additional results.</p>
367
+ */
368
+ nextToken?: string;
369
+ }
370
+ /**
371
+ * @public
372
+ */
373
+ export interface ListSecurityProfilesForTargetRequest {
374
+ /**
375
+ * <p>The token for the next set of results.</p>
376
+ */
377
+ nextToken?: string;
378
+ /**
379
+ * <p>The maximum number of results to return at one time.</p>
380
+ */
381
+ maxResults?: number;
382
+ /**
383
+ * <p>If true, return child groups too.</p>
384
+ */
385
+ recursive?: boolean;
386
+ /**
387
+ * <p>The ARN of the target (thing group) whose attached security profiles you want to get.</p>
388
+ */
389
+ securityProfileTargetArn: string | undefined;
390
+ }
391
+ /**
392
+ * @public
393
+ * <p>A target to which an alert is sent when a security profile behavior is
394
+ * violated.</p>
395
+ */
396
+ export interface SecurityProfileTarget {
397
+ /**
398
+ * <p>The ARN of the security profile.</p>
399
+ */
400
+ arn: string | undefined;
401
+ }
402
+ /**
403
+ * @public
404
+ * <p>Information about a security profile and the target associated with it.</p>
405
+ */
406
+ export interface SecurityProfileTargetMapping {
407
+ /**
408
+ * <p>Information that identifies the security profile.</p>
409
+ */
410
+ securityProfileIdentifier?: SecurityProfileIdentifier;
411
+ /**
412
+ * <p>Information about the target (thing group) associated with the security profile.</p>
413
+ */
414
+ target?: SecurityProfileTarget;
415
+ }
5
416
  /**
6
417
  * @public
7
418
  */
@@ -2401,6 +2812,114 @@ export interface UpdateMitigationActionResponse {
2401
2812
  */
2402
2813
  actionId?: string;
2403
2814
  }
2815
+ /**
2816
+ * @public
2817
+ */
2818
+ export interface UpdatePackageRequest {
2819
+ /**
2820
+ * <p>The name of the target package.</p>
2821
+ */
2822
+ packageName: string | undefined;
2823
+ /**
2824
+ * <p>The package description.</p>
2825
+ */
2826
+ description?: string;
2827
+ /**
2828
+ * <p>The name of the default package version.</p>
2829
+ * <p>
2830
+ * <b>Note:</b> You cannot name a <code>defaultVersion</code>
2831
+ * and set <code>unsetDefaultVersion</code> equal to <code>true</code> at the same time.</p>
2832
+ */
2833
+ defaultVersionName?: string;
2834
+ /**
2835
+ * <p>Indicates whether you want to remove the named default package version from the software package.
2836
+ * Set as <code>true</code> to remove the default package version. </p>
2837
+ * <p>
2838
+ * <b>Note:</b> You cannot name a <code>defaultVersion</code>
2839
+ * and set <code>unsetDefaultVersion</code> equal to <code>true</code> at the same time.</p>
2840
+ */
2841
+ unsetDefaultVersion?: boolean;
2842
+ /**
2843
+ * <p>A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
2844
+ * Don't reuse this client token if a new idempotent request is required.</p>
2845
+ */
2846
+ clientToken?: string;
2847
+ }
2848
+ /**
2849
+ * @public
2850
+ */
2851
+ export interface UpdatePackageResponse {
2852
+ }
2853
+ /**
2854
+ * @public
2855
+ */
2856
+ export interface UpdatePackageConfigurationRequest {
2857
+ /**
2858
+ * <p>Configuration to manage job's package version reporting. This updates the thing's reserved named shadow that the job targets.</p>
2859
+ */
2860
+ versionUpdateByJobsConfig?: VersionUpdateByJobsConfig;
2861
+ /**
2862
+ * <p>A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
2863
+ * Don't reuse this client token if a new idempotent request is required.</p>
2864
+ */
2865
+ clientToken?: string;
2866
+ }
2867
+ /**
2868
+ * @public
2869
+ */
2870
+ export interface UpdatePackageConfigurationResponse {
2871
+ }
2872
+ /**
2873
+ * @public
2874
+ * @enum
2875
+ */
2876
+ export declare const PackageVersionAction: {
2877
+ readonly DEPRECATE: "DEPRECATE";
2878
+ readonly PUBLISH: "PUBLISH";
2879
+ };
2880
+ /**
2881
+ * @public
2882
+ */
2883
+ export type PackageVersionAction = (typeof PackageVersionAction)[keyof typeof PackageVersionAction];
2884
+ /**
2885
+ * @public
2886
+ */
2887
+ export interface UpdatePackageVersionRequest {
2888
+ /**
2889
+ * <p>The name of the associated software package.</p>
2890
+ */
2891
+ packageName: string | undefined;
2892
+ /**
2893
+ * <p>The name of the target package version.</p>
2894
+ */
2895
+ versionName: string | undefined;
2896
+ /**
2897
+ * <p>The package version description.</p>
2898
+ */
2899
+ description?: string;
2900
+ /**
2901
+ * <p>Metadata that can be used to define a package version’s configuration. For example, the S3 file location, configuration options that are being sent to the device or fleet. </p>
2902
+ * <p>
2903
+ * <b>Note:</b> Attributes can be updated only when the package version
2904
+ * is in a draft state.</p>
2905
+ * <p>The combined size of all the attributes on a package version is limited to 3KB.</p>
2906
+ */
2907
+ attributes?: Record<string, string>;
2908
+ /**
2909
+ * <p>The status that the package version should be assigned. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle">Package version lifecycle</a>.</p>
2910
+ */
2911
+ action?: PackageVersionAction | string;
2912
+ /**
2913
+ * <p>A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
2914
+ * Don't reuse this client token if a new idempotent request is required.</p>
2915
+ */
2916
+ clientToken?: string;
2917
+ }
2918
+ /**
2919
+ * @public
2920
+ */
2921
+ export interface UpdatePackageVersionResponse {
2922
+ }
2404
2923
  /**
2405
2924
  * @public
2406
2925
  */
@@ -2864,3 +3383,11 @@ export interface ValidateSecurityProfileBehaviorsResponse {
2864
3383
  */
2865
3384
  validationErrors?: ValidationError[];
2866
3385
  }
3386
+ /**
3387
+ * @internal
3388
+ */
3389
+ export declare const UpdatePackageRequestFilterSensitiveLog: (obj: UpdatePackageRequest) => any;
3390
+ /**
3391
+ * @internal
3392
+ */
3393
+ export declare const UpdatePackageVersionRequestFilterSensitiveLog: (obj: UpdatePackageVersionRequest) => any;
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ListPackageVersionsCommandInput, ListPackageVersionsCommandOutput } from "../commands/ListPackageVersionsCommand";
3
+ import { IoTPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateListPackageVersions(config: IoTPaginationConfiguration, input: ListPackageVersionsCommandInput, ...additionalArguments: any): Paginator<ListPackageVersionsCommandOutput>;
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ListPackagesCommandInput, ListPackagesCommandOutput } from "../commands/ListPackagesCommand";
3
+ import { IoTPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateListPackages(config: IoTPaginationConfiguration, input: ListPackagesCommandInput, ...additionalArguments: any): 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";