@aws-sdk/client-iot 3.216.0 → 3.222.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 (41) hide show
  1. package/dist-cjs/commands/DeleteProvisioningTemplateCommand.js +3 -3
  2. package/dist-cjs/commands/DeleteProvisioningTemplateVersionCommand.js +3 -3
  3. package/dist-cjs/commands/ListStreamsCommand.js +2 -1
  4. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  5. package/dist-cjs/commands/ListTargetsForPolicyCommand.js +1 -2
  6. package/dist-cjs/endpoint/ruleset.js +1 -1
  7. package/dist-cjs/models/models_0.js +25 -23
  8. package/dist-cjs/models/models_1.js +23 -22
  9. package/dist-cjs/models/models_2.js +19 -3
  10. package/dist-cjs/protocols/Aws_restJson1.js +115 -24
  11. package/dist-es/commands/DeleteProvisioningTemplateCommand.js +1 -1
  12. package/dist-es/commands/DeleteProvisioningTemplateVersionCommand.js +1 -1
  13. package/dist-es/commands/ListStreamsCommand.js +2 -1
  14. package/dist-es/commands/ListTagsForResourceCommand.js +1 -1
  15. package/dist-es/commands/ListTargetsForPolicyCommand.js +1 -2
  16. package/dist-es/endpoint/ruleset.js +1 -1
  17. package/dist-es/models/models_0.js +15 -12
  18. package/dist-es/models/models_1.js +13 -12
  19. package/dist-es/models/models_2.js +12 -0
  20. package/dist-es/protocols/Aws_restJson1.js +115 -24
  21. package/dist-types/IoT.d.ts +1 -2
  22. package/dist-types/commands/AttachThingPrincipalCommand.d.ts +1 -2
  23. package/dist-types/commands/DeleteProvisioningTemplateCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteProvisioningTemplateVersionCommand.d.ts +1 -1
  25. package/dist-types/commands/ListStreamsCommand.d.ts +2 -1
  26. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  27. package/dist-types/commands/ListTargetsForPolicyCommand.d.ts +1 -2
  28. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  29. package/dist-types/models/models_0.d.ts +130 -36
  30. package/dist-types/models/models_1.d.ts +45 -65
  31. package/dist-types/models/models_2.d.ts +63 -1
  32. package/dist-types/ts3.4/commands/DeleteProvisioningTemplateCommand.d.ts +1 -1
  33. package/dist-types/ts3.4/commands/DeleteProvisioningTemplateVersionCommand.d.ts +1 -1
  34. package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +2 -1
  35. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  36. package/dist-types/ts3.4/commands/ListTargetsForPolicyCommand.d.ts +4 -2
  37. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  38. package/dist-types/ts3.4/models/models_0.d.ts +29 -21
  39. package/dist-types/ts3.4/models/models_1.d.ts +24 -30
  40. package/dist-types/ts3.4/models/models_2.d.ts +30 -0
  41. package/package.json +29 -28
@@ -145,7 +145,7 @@ export const serializeAws_restJson1AttachSecurityProfileCommand = async (input,
145
145
  "/security-profiles/{securityProfileName}/targets";
146
146
  resolvedPath = __resolvedPath(resolvedPath, input, "securityProfileName", () => input.securityProfileName, "{securityProfileName}", false);
147
147
  const query = map({
148
- securityProfileTargetArn: [, input.securityProfileTargetArn],
148
+ securityProfileTargetArn: [, __expectNonNull(input.securityProfileTargetArn, `securityProfileTargetArn`)],
149
149
  });
150
150
  let body;
151
151
  return new __HttpRequest({
@@ -603,6 +603,9 @@ export const serializeAws_restJson1CreateJobCommand = async (input, context) =>
603
603
  ...(input.presignedUrlConfig != null && {
604
604
  presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
605
605
  }),
606
+ ...(input.schedulingConfig != null && {
607
+ schedulingConfig: serializeAws_restJson1SchedulingConfig(input.schedulingConfig, context),
608
+ }),
606
609
  ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
607
610
  ...(input.targetSelection != null && { targetSelection: input.targetSelection }),
608
611
  ...(input.targets != null && { targets: serializeAws_restJson1JobTargets(input.targets, context) }),
@@ -1644,8 +1647,8 @@ export const serializeAws_restJson1DeleteV2LoggingLevelCommand = async (input, c
1644
1647
  const headers = {};
1645
1648
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingLevel";
1646
1649
  const query = map({
1647
- targetType: [, input.targetType],
1648
- targetName: [, input.targetName],
1650
+ targetType: [, __expectNonNull(input.targetType, `targetType`)],
1651
+ targetName: [, __expectNonNull(input.targetName, `targetName`)],
1649
1652
  });
1650
1653
  let body;
1651
1654
  return new __HttpRequest({
@@ -2283,7 +2286,7 @@ export const serializeAws_restJson1DetachSecurityProfileCommand = async (input,
2283
2286
  "/security-profiles/{securityProfileName}/targets";
2284
2287
  resolvedPath = __resolvedPath(resolvedPath, input, "securityProfileName", () => input.securityProfileName, "{securityProfileName}", false);
2285
2288
  const query = map({
2286
- securityProfileTargetArn: [, input.securityProfileTargetArn],
2289
+ securityProfileTargetArn: [, __expectNonNull(input.securityProfileTargetArn, `securityProfileTargetArn`)],
2287
2290
  });
2288
2291
  let body;
2289
2292
  return new __HttpRequest({
@@ -2740,9 +2743,9 @@ export const serializeAws_restJson1ListAuditMitigationActionsExecutionsCommand =
2740
2743
  const headers = {};
2741
2744
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/mitigationactions/executions";
2742
2745
  const query = map({
2743
- taskId: [, input.taskId],
2746
+ taskId: [, __expectNonNull(input.taskId, `taskId`)],
2744
2747
  actionStatus: [, input.actionStatus],
2745
- findingId: [, input.findingId],
2748
+ findingId: [, __expectNonNull(input.findingId, `findingId`)],
2746
2749
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
2747
2750
  nextToken: [, input.nextToken],
2748
2751
  });
@@ -2769,10 +2772,13 @@ export const serializeAws_restJson1ListAuditMitigationActionsTasksCommand = asyn
2769
2772
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
2770
2773
  nextToken: [, input.nextToken],
2771
2774
  startTime: [
2772
- () => input.startTime !== void 0,
2775
+ __expectNonNull(input.startTime, `startTime`) != null,
2773
2776
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
2774
2777
  ],
2775
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
2778
+ endTime: [
2779
+ __expectNonNull(input.endTime, `endTime`) != null,
2780
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
2781
+ ],
2776
2782
  });
2777
2783
  let body;
2778
2784
  return new __HttpRequest({
@@ -2818,10 +2824,13 @@ export const serializeAws_restJson1ListAuditTasksCommand = async (input, context
2818
2824
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks";
2819
2825
  const query = map({
2820
2826
  startTime: [
2821
- () => input.startTime !== void 0,
2827
+ __expectNonNull(input.startTime, `startTime`) != null,
2822
2828
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
2823
2829
  ],
2824
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
2830
+ endTime: [
2831
+ __expectNonNull(input.endTime, `endTime`) != null,
2832
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
2833
+ ],
2825
2834
  taskType: [, input.taskType],
2826
2835
  taskStatus: [, input.taskStatus],
2827
2836
  nextToken: [, input.nextToken],
@@ -3003,10 +3012,13 @@ export const serializeAws_restJson1ListDetectMitigationActionsTasksCommand = asy
3003
3012
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
3004
3013
  nextToken: [, input.nextToken],
3005
3014
  startTime: [
3006
- () => input.startTime !== void 0,
3015
+ __expectNonNull(input.startTime, `startTime`) != null,
3007
3016
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
3008
3017
  ],
3009
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
3018
+ endTime: [
3019
+ __expectNonNull(input.endTime, `endTime`) != null,
3020
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
3021
+ ],
3010
3022
  });
3011
3023
  let body;
3012
3024
  return new __HttpRequest({
@@ -3218,15 +3230,18 @@ export const serializeAws_restJson1ListMetricValuesCommand = async (input, conte
3218
3230
  const headers = {};
3219
3231
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metric-values";
3220
3232
  const query = map({
3221
- thingName: [, input.thingName],
3222
- metricName: [, input.metricName],
3233
+ thingName: [, __expectNonNull(input.thingName, `thingName`)],
3234
+ metricName: [, __expectNonNull(input.metricName, `metricName`)],
3223
3235
  dimensionName: [, input.dimensionName],
3224
3236
  dimensionValueOperator: [, input.dimensionValueOperator],
3225
3237
  startTime: [
3226
- () => input.startTime !== void 0,
3238
+ __expectNonNull(input.startTime, `startTime`) != null,
3227
3239
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
3228
3240
  ],
3229
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
3241
+ endTime: [
3242
+ __expectNonNull(input.endTime, `endTime`) != null,
3243
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
3244
+ ],
3230
3245
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
3231
3246
  nextToken: [, input.nextToken],
3232
3247
  });
@@ -3457,7 +3472,7 @@ export const serializeAws_restJson1ListRelatedResourcesForAuditFindingCommand =
3457
3472
  const headers = {};
3458
3473
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/relatedResources";
3459
3474
  const query = map({
3460
- findingId: [, input.findingId],
3475
+ findingId: [, __expectNonNull(input.findingId, `findingId`)],
3461
3476
  nextToken: [, input.nextToken],
3462
3477
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
3463
3478
  });
@@ -3544,7 +3559,7 @@ export const serializeAws_restJson1ListSecurityProfilesForTargetCommand = async
3544
3559
  nextToken: [, input.nextToken],
3545
3560
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
3546
3561
  recursive: [() => input.recursive !== void 0, () => input.recursive.toString()],
3547
- securityProfileTargetArn: [, input.securityProfileTargetArn],
3562
+ securityProfileTargetArn: [, __expectNonNull(input.securityProfileTargetArn, `securityProfileTargetArn`)],
3548
3563
  });
3549
3564
  let body;
3550
3565
  return new __HttpRequest({
@@ -3584,7 +3599,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
3584
3599
  const headers = {};
3585
3600
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
3586
3601
  const query = map({
3587
- resourceArn: [, input.resourceArn],
3602
+ resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
3588
3603
  nextToken: [, input.nextToken],
3589
3604
  });
3590
3605
  let body;
@@ -3714,7 +3729,7 @@ export const serializeAws_restJson1ListThingRegistrationTaskReportsCommand = asy
3714
3729
  "/thing-registration-tasks/{taskId}/reports";
3715
3730
  resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
3716
3731
  const query = map({
3717
- reportType: [, input.reportType],
3732
+ reportType: [, __expectNonNull(input.reportType, `reportType`)],
3718
3733
  nextToken: [, input.nextToken],
3719
3734
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
3720
3735
  });
@@ -3911,10 +3926,13 @@ export const serializeAws_restJson1ListViolationEventsCommand = async (input, co
3911
3926
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/violation-events";
3912
3927
  const query = map({
3913
3928
  startTime: [
3914
- () => input.startTime !== void 0,
3929
+ __expectNonNull(input.startTime, `startTime`) != null,
3915
3930
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
3916
3931
  ],
3917
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
3932
+ endTime: [
3933
+ __expectNonNull(input.endTime, `endTime`) != null,
3934
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
3935
+ ],
3918
3936
  thingName: [, input.thingName],
3919
3937
  securityProfileName: [, input.securityProfileName],
3920
3938
  behaviorCriteriaType: [, input.behaviorCriteriaType],
@@ -4493,7 +4511,7 @@ export const serializeAws_restJson1TransferCertificateCommand = async (input, co
4493
4511
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transfer-certificate/{certificateId}";
4494
4512
  resolvedPath = __resolvedPath(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
4495
4513
  const query = map({
4496
- targetAwsAccount: [, input.targetAwsAccount],
4514
+ targetAwsAccount: [, __expectNonNull(input.targetAwsAccount, `targetAwsAccount`)],
4497
4515
  });
4498
4516
  let body;
4499
4517
  body = JSON.stringify({
@@ -4669,7 +4687,7 @@ export const serializeAws_restJson1UpdateCertificateCommand = async (input, cont
4669
4687
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates/{certificateId}";
4670
4688
  resolvedPath = __resolvedPath(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
4671
4689
  const query = map({
4672
- newStatus: [, input.newStatus],
4690
+ newStatus: [, __expectNonNull(input.newStatus, `newStatus`)],
4673
4691
  });
4674
4692
  let body;
4675
4693
  return new __HttpRequest({
@@ -17859,6 +17877,18 @@ const serializeAws_restJson1MqttContext = (input, context) => {
17859
17877
  ...(input.username != null && { username: input.username }),
17860
17878
  };
17861
17879
  };
17880
+ const serializeAws_restJson1MqttHeaders = (input, context) => {
17881
+ return {
17882
+ ...(input.contentType != null && { contentType: input.contentType }),
17883
+ ...(input.correlationData != null && { correlationData: input.correlationData }),
17884
+ ...(input.messageExpiry != null && { messageExpiry: input.messageExpiry }),
17885
+ ...(input.payloadFormatIndicator != null && { payloadFormatIndicator: input.payloadFormatIndicator }),
17886
+ ...(input.responseTopic != null && { responseTopic: input.responseTopic }),
17887
+ ...(input.userProperties != null && {
17888
+ userProperties: serializeAws_restJson1UserProperties(input.userProperties, context),
17889
+ }),
17890
+ };
17891
+ };
17862
17892
  const serializeAws_restJson1NamedShadowNamesFilter = (input, context) => {
17863
17893
  return input
17864
17894
  .filter((e) => e != null)
@@ -18029,6 +18059,7 @@ const serializeAws_restJson1ReplaceDefaultPolicyVersionParams = (input, context)
18029
18059
  };
18030
18060
  const serializeAws_restJson1RepublishAction = (input, context) => {
18031
18061
  return {
18062
+ ...(input.headers != null && { headers: serializeAws_restJson1MqttHeaders(input.headers, context) }),
18032
18063
  ...(input.qos != null && { qos: input.qos }),
18033
18064
  ...(input.roleArn != null && { roleArn: input.roleArn }),
18034
18065
  ...(input.topic != null && { topic: input.topic }),
@@ -18099,6 +18130,13 @@ const serializeAws_restJson1SalesforceAction = (input, context) => {
18099
18130
  ...(input.url != null && { url: input.url }),
18100
18131
  };
18101
18132
  };
18133
+ const serializeAws_restJson1SchedulingConfig = (input, context) => {
18134
+ return {
18135
+ ...(input.endBehavior != null && { endBehavior: input.endBehavior }),
18136
+ ...(input.endTime != null && { endTime: input.endTime }),
18137
+ ...(input.startTime != null && { startTime: input.startTime }),
18138
+ };
18139
+ };
18102
18140
  const serializeAws_restJson1SearchableAttributes = (input, context) => {
18103
18141
  return input
18104
18142
  .filter((e) => e != null)
@@ -18368,6 +18406,19 @@ const serializeAws_restJson1UpdateDeviceCertificateParams = (input, context) =>
18368
18406
  ...(input.action != null && { action: input.action }),
18369
18407
  };
18370
18408
  };
18409
+ const serializeAws_restJson1UserProperties = (input, context) => {
18410
+ return input
18411
+ .filter((e) => e != null)
18412
+ .map((entry) => {
18413
+ return serializeAws_restJson1UserProperty(entry, context);
18414
+ });
18415
+ };
18416
+ const serializeAws_restJson1UserProperty = (input, context) => {
18417
+ return {
18418
+ ...(input.key != null && { key: input.key }),
18419
+ ...(input.value != null && { value: input.value }),
18420
+ };
18421
+ };
18371
18422
  const serializeAws_restJson1ViolationEventOccurrenceRange = (input, context) => {
18372
18423
  return {
18373
18424
  ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
@@ -19656,6 +19707,9 @@ const deserializeAws_restJson1Job = (output, context) => {
19656
19707
  ? deserializeAws_restJson1PresignedUrlConfig(output.presignedUrlConfig, context)
19657
19708
  : undefined,
19658
19709
  reasonCode: __expectString(output.reasonCode),
19710
+ schedulingConfig: output.schedulingConfig != null
19711
+ ? deserializeAws_restJson1SchedulingConfig(output.schedulingConfig, context)
19712
+ : undefined,
19659
19713
  status: __expectString(output.status),
19660
19714
  targetSelection: __expectString(output.targetSelection),
19661
19715
  targets: output.targets != null ? deserializeAws_restJson1JobTargets(output.targets, context) : undefined,
@@ -20052,6 +20106,18 @@ const deserializeAws_restJson1MitigationActionParams = (output, context) => {
20052
20106
  : undefined,
20053
20107
  };
20054
20108
  };
20109
+ const deserializeAws_restJson1MqttHeaders = (output, context) => {
20110
+ return {
20111
+ contentType: __expectString(output.contentType),
20112
+ correlationData: __expectString(output.correlationData),
20113
+ messageExpiry: __expectString(output.messageExpiry),
20114
+ payloadFormatIndicator: __expectString(output.payloadFormatIndicator),
20115
+ responseTopic: __expectString(output.responseTopic),
20116
+ userProperties: output.userProperties != null
20117
+ ? deserializeAws_restJson1UserProperties(output.userProperties, context)
20118
+ : undefined,
20119
+ };
20120
+ };
20055
20121
  const deserializeAws_restJson1NamedShadowNamesFilter = (output, context) => {
20056
20122
  const retVal = (output || [])
20057
20123
  .filter((e) => e != null)
@@ -20473,6 +20539,7 @@ const deserializeAws_restJson1ReplaceDefaultPolicyVersionParams = (output, conte
20473
20539
  };
20474
20540
  const deserializeAws_restJson1RepublishAction = (output, context) => {
20475
20541
  return {
20542
+ headers: output.headers != null ? deserializeAws_restJson1MqttHeaders(output.headers, context) : undefined,
20476
20543
  qos: __expectInt32(output.qos),
20477
20544
  roleArn: __expectString(output.roleArn),
20478
20545
  topic: __expectString(output.topic),
@@ -20617,6 +20684,13 @@ const deserializeAws_restJson1ScheduledAuditMetadataList = (output, context) =>
20617
20684
  });
20618
20685
  return retVal;
20619
20686
  };
20687
+ const deserializeAws_restJson1SchedulingConfig = (output, context) => {
20688
+ return {
20689
+ endBehavior: __expectString(output.endBehavior),
20690
+ endTime: __expectString(output.endTime),
20691
+ startTime: __expectString(output.startTime),
20692
+ };
20693
+ };
20620
20694
  const deserializeAws_restJson1SearchableAttributes = (output, context) => {
20621
20695
  const retVal = (output || [])
20622
20696
  .filter((e) => e != null)
@@ -21272,6 +21346,23 @@ const deserializeAws_restJson1UpdateDeviceCertificateParams = (output, context)
21272
21346
  action: __expectString(output.action),
21273
21347
  };
21274
21348
  };
21349
+ const deserializeAws_restJson1UserProperties = (output, context) => {
21350
+ const retVal = (output || [])
21351
+ .filter((e) => e != null)
21352
+ .map((entry) => {
21353
+ if (entry === null) {
21354
+ return null;
21355
+ }
21356
+ return deserializeAws_restJson1UserProperty(entry, context);
21357
+ });
21358
+ return retVal;
21359
+ };
21360
+ const deserializeAws_restJson1UserProperty = (output, context) => {
21361
+ return {
21362
+ key: __expectString(output.key),
21363
+ value: __expectString(output.value),
21364
+ };
21365
+ };
21275
21366
  const deserializeAws_restJson1ValidationError = (output, context) => {
21276
21367
  return {
21277
21368
  errorMessage: __expectString(output.errorMessage),
@@ -331,8 +331,7 @@ export declare class IoT extends IoTClient {
331
331
  attachSecurityProfile(args: AttachSecurityProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AttachSecurityProfileCommandOutput) => void): void;
332
332
  /**
333
333
  * <p>Attaches the specified principal to the specified thing. A principal can be X.509
334
- * certificates, IAM users, groups, and roles, Amazon Cognito identities or federated
335
- * identities.</p>
334
+ * certificates, Amazon Cognito identities or federated identities.</p>
336
335
  * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">AttachThingPrincipal</a> action.</p>
337
336
  */
338
337
  attachThingPrincipal(args: AttachThingPrincipalCommandInput, options?: __HttpHandlerOptions): Promise<AttachThingPrincipalCommandOutput>;
@@ -9,8 +9,7 @@ export interface AttachThingPrincipalCommandOutput extends AttachThingPrincipalR
9
9
  }
10
10
  /**
11
11
  * <p>Attaches the specified principal to the specified thing. A principal can be X.509
12
- * certificates, IAM users, groups, and roles, Amazon Cognito identities or federated
13
- * identities.</p>
12
+ * certificates, Amazon Cognito identities or federated identities.</p>
14
13
  * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">AttachThingPrincipal</a> action.</p>
15
14
  * @example
16
15
  * Use a bare-bones client and the command you need to make an API call.
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { DeleteProvisioningTemplateRequest, DeleteProvisioningTemplateResponse } from "../models/models_0";
5
+ import { DeleteProvisioningTemplateRequest, DeleteProvisioningTemplateResponse } from "../models/models_1";
6
6
  export interface DeleteProvisioningTemplateCommandInput extends DeleteProvisioningTemplateRequest {
7
7
  }
8
8
  export interface DeleteProvisioningTemplateCommandOutput extends DeleteProvisioningTemplateResponse, __MetadataBearer {
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { DeleteProvisioningTemplateVersionRequest, DeleteProvisioningTemplateVersionResponse } from "../models/models_0";
5
+ import { DeleteProvisioningTemplateVersionRequest, DeleteProvisioningTemplateVersionResponse } from "../models/models_1";
6
6
  export interface DeleteProvisioningTemplateVersionCommandInput extends DeleteProvisioningTemplateVersionRequest {
7
7
  }
8
8
  export interface DeleteProvisioningTemplateVersionCommandOutput extends DeleteProvisioningTemplateVersionResponse, __MetadataBearer {
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListStreamsRequest, ListStreamsResponse } from "../models/models_1";
5
+ import { ListStreamsRequest } from "../models/models_1";
6
+ import { ListStreamsResponse } from "../models/models_2";
6
7
  export interface ListStreamsCommandInput extends ListStreamsRequest {
7
8
  }
8
9
  export interface ListStreamsCommandOutput extends ListStreamsResponse, __MetadataBearer {
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_1";
5
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_2";
6
6
  export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
7
7
  }
8
8
  export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListTargetsForPolicyRequest } from "../models/models_1";
6
- import { ListTargetsForPolicyResponse } from "../models/models_2";
5
+ import { ListTargetsForPolicyRequest, ListTargetsForPolicyResponse } from "../models/models_2";
7
6
  export interface ListTargetsForPolicyCommandInput extends ListTargetsForPolicyRequest {
8
7
  }
9
8
  export interface ListTargetsForPolicyCommandOutput extends ListTargetsForPolicyResponse, __MetadataBearer {
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -764,6 +764,83 @@ export interface OpenSearchAction {
764
764
  */
765
765
  id: string | undefined;
766
766
  }
767
+ /**
768
+ * <p>A key-value pair that you define in the header. Both the key and the value are either
769
+ * literal strings or valid <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html">substitution
770
+ * templates</a>.</p>
771
+ */
772
+ export interface UserProperty {
773
+ /**
774
+ * <p>A key to be specified in <code>UserProperty</code>.</p>
775
+ */
776
+ key: string | undefined;
777
+ /**
778
+ * <p>A value to be specified in <code>UserProperty</code>.</p>
779
+ */
780
+ value: string | undefined;
781
+ }
782
+ /**
783
+ * <p>Specifies MQTT Version 5.0 headers information. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html"> MQTT</a> from
784
+ * Amazon Web Services IoT Core Developer Guide.</p>
785
+ */
786
+ export interface MqttHeaders {
787
+ /**
788
+ * <p>An <code>Enum</code> string value that indicates whether the payload is formatted as
789
+ * UTF-8.</p>
790
+ * <p>Valid values are <code>UNSPECIFIED_BYTES</code> and <code>UTF8_DATA</code>.</p>
791
+ * <p>For more information, see <a href="https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901111">
792
+ * Payload Format Indicator</a> from the MQTT Version 5.0 specification.</p>
793
+ * <p>Supports <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html">substitution
794
+ * templates</a>.</p>
795
+ */
796
+ payloadFormatIndicator?: string;
797
+ /**
798
+ * <p>A UTF-8 encoded string that describes the content of the publishing message.</p>
799
+ * <p>For more information, see <a href="https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901118">
800
+ * Content Type</a> from the MQTT Version 5.0 specification.</p>
801
+ * <p>Supports <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html">substitution
802
+ * templates</a>.</p>
803
+ */
804
+ contentType?: string;
805
+ /**
806
+ * <p>A UTF-8 encoded string that's used as the topic name for a response message. The response topic is used to describe
807
+ * the topic which the receiver should publish to as part of the request-response flow. The topic must not contain wildcard
808
+ * characters.</p>
809
+ * <p>For more information, see <a href="https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901114">
810
+ * Response Topic</a> from the MQTT Version 5.0 specification.</p>
811
+ * <p>Supports <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html">substitution
812
+ * templates</a>.</p>
813
+ */
814
+ responseTopic?: string;
815
+ /**
816
+ * <p>The base64-encoded binary data used by the sender of the request message to identify which request the response message is
817
+ * for when it's received.</p>
818
+ * <p>For more information, see <a href="https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901115">
819
+ * Correlation Data</a> from the MQTT Version 5.0 specification.</p>
820
+ * <note>
821
+ * <p>
822
+ * This binary data must be based64-encoded.
823
+ * </p>
824
+ * </note>
825
+ * <p>Supports <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html">substitution
826
+ * templates</a>.</p>
827
+ */
828
+ correlationData?: string;
829
+ /**
830
+ * <p>A user-defined integer value that will persist a message at the message broker for a
831
+ * specified amount of time to ensure that the message will expire if it's no longer relevant to
832
+ * the subscriber. The value of <code>messageExpiry</code> represents the number of seconds
833
+ * before it expires. For more information about the limits of <code>messageExpiry</code>, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html">Amazon Web Services IoT Core message broker and protocol
834
+ * limits and quotas </a> from the Amazon Web Services Reference Guide.</p>
835
+ * <p>Supports <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html">substitution
836
+ * templates</a>.</p>
837
+ */
838
+ messageExpiry?: string;
839
+ /**
840
+ * <p>An array of key-value pairs that you define in the MQTT5 header.</p>
841
+ */
842
+ userProperties?: UserProperty[];
843
+ }
767
844
  /**
768
845
  * <p>Describes an action to republish to another topic.</p>
769
846
  */
@@ -781,6 +858,11 @@ export interface RepublishAction {
781
858
  * is 0.</p>
782
859
  */
783
860
  qos?: number;
861
+ /**
862
+ * <p>MQTT Version 5.0 headers information. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html">
863
+ * MQTT</a> from the Amazon Web Services IoT Core Developer Guide.</p>
864
+ */
865
+ headers?: MqttHeaders;
784
866
  }
785
867
  export declare enum CannedAccessControlList {
786
868
  AuthenticatedRead = "authenticated-read",
@@ -3021,6 +3103,37 @@ export interface PresignedUrlConfig {
3021
3103
  */
3022
3104
  expiresInSec?: number;
3023
3105
  }
3106
+ export declare enum JobEndBehavior {
3107
+ CANCEL = "CANCEL",
3108
+ FORCE_CANCEL = "FORCE_CANCEL",
3109
+ STOP_ROLLOUT = "STOP_ROLLOUT"
3110
+ }
3111
+ /**
3112
+ * <p>Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group. Additionally, you can specify the end behavior for each job execution when it reaches the scheduled end time.</p>
3113
+ */
3114
+ export interface SchedulingConfig {
3115
+ /**
3116
+ * <p>The time a job will begin rollout of the job document to all devices in the target
3117
+ * group for a job. The <code>startTime</code> can be scheduled up to a year in advance and
3118
+ * must be scheduled a minimum of thirty minutes from the current time.</p>
3119
+ */
3120
+ startTime?: string;
3121
+ /**
3122
+ * <p>The time a job will stop rollout of the job document to all devices in the target
3123
+ * group for a job. The <code>endTime</code> must take place no later than two years from
3124
+ * the current time and be scheduled a minimum of thirty minutes from the current time. The
3125
+ * minimum duration between <code>startTime</code> and <code>endTime</code> is thirty
3126
+ * minutes. The maximum duration between <code>startTime</code> and <code>endTime</code> is
3127
+ * two years. </p>
3128
+ */
3129
+ endTime?: string;
3130
+ /**
3131
+ * <p>Specifies the end behavior for all job executions after a job reaches the selected
3132
+ * <code>endTime</code>. If <code>endTime</code> is not selected when creating the job,
3133
+ * then <code>endBehavior</code> does not apply.</p>
3134
+ */
3135
+ endBehavior?: JobEndBehavior | string;
3136
+ }
3024
3137
  export declare enum TargetSelection {
3025
3138
  CONTINUOUS = "CONTINUOUS",
3026
3139
  SNAPSHOT = "SNAPSHOT"
@@ -3136,6 +3249,11 @@ export interface CreateJobRequest {
3136
3249
  * </note>
3137
3250
  */
3138
3251
  documentParameters?: Record<string, string>;
3252
+ /**
3253
+ * <p>The configuration that allows you to schedule a job for a future date and time in
3254
+ * addition to specifying the end behavior for each job execution.</p>
3255
+ */
3256
+ schedulingConfig?: SchedulingConfig;
3139
3257
  }
3140
3258
  export interface CreateJobResponse {
3141
3259
  /**
@@ -4870,26 +4988,6 @@ export interface DeletePolicyVersionRequest {
4870
4988
  */
4871
4989
  policyVersionId: string | undefined;
4872
4990
  }
4873
- export interface DeleteProvisioningTemplateRequest {
4874
- /**
4875
- * <p>The name of the fleet provision template to delete.</p>
4876
- */
4877
- templateName: string | undefined;
4878
- }
4879
- export interface DeleteProvisioningTemplateResponse {
4880
- }
4881
- export interface DeleteProvisioningTemplateVersionRequest {
4882
- /**
4883
- * <p>The name of the provisioning template version to delete.</p>
4884
- */
4885
- templateName: string | undefined;
4886
- /**
4887
- * <p>The provisioning template version ID to delete.</p>
4888
- */
4889
- versionId: number | undefined;
4890
- }
4891
- export interface DeleteProvisioningTemplateVersionResponse {
4892
- }
4893
4991
  /**
4894
4992
  * @internal
4895
4993
  */
@@ -5002,6 +5100,14 @@ export declare const LocationActionFilterSensitiveLog: (obj: LocationAction) =>
5002
5100
  * @internal
5003
5101
  */
5004
5102
  export declare const OpenSearchActionFilterSensitiveLog: (obj: OpenSearchAction) => any;
5103
+ /**
5104
+ * @internal
5105
+ */
5106
+ export declare const UserPropertyFilterSensitiveLog: (obj: UserProperty) => any;
5107
+ /**
5108
+ * @internal
5109
+ */
5110
+ export declare const MqttHeadersFilterSensitiveLog: (obj: MqttHeaders) => any;
5005
5111
  /**
5006
5112
  * @internal
5007
5113
  */
@@ -5406,6 +5512,10 @@ export declare const JobExecutionsRolloutConfigFilterSensitiveLog: (obj: JobExec
5406
5512
  * @internal
5407
5513
  */
5408
5514
  export declare const PresignedUrlConfigFilterSensitiveLog: (obj: PresignedUrlConfig) => any;
5515
+ /**
5516
+ * @internal
5517
+ */
5518
+ export declare const SchedulingConfigFilterSensitiveLog: (obj: SchedulingConfig) => any;
5409
5519
  /**
5410
5520
  * @internal
5411
5521
  */
@@ -5818,19 +5928,3 @@ export declare const DeletePolicyRequestFilterSensitiveLog: (obj: DeletePolicyRe
5818
5928
  * @internal
5819
5929
  */
5820
5930
  export declare const DeletePolicyVersionRequestFilterSensitiveLog: (obj: DeletePolicyVersionRequest) => any;
5821
- /**
5822
- * @internal
5823
- */
5824
- export declare const DeleteProvisioningTemplateRequestFilterSensitiveLog: (obj: DeleteProvisioningTemplateRequest) => any;
5825
- /**
5826
- * @internal
5827
- */
5828
- export declare const DeleteProvisioningTemplateResponseFilterSensitiveLog: (obj: DeleteProvisioningTemplateResponse) => any;
5829
- /**
5830
- * @internal
5831
- */
5832
- export declare const DeleteProvisioningTemplateVersionRequestFilterSensitiveLog: (obj: DeleteProvisioningTemplateVersionRequest) => any;
5833
- /**
5834
- * @internal
5835
- */
5836
- export declare const DeleteProvisioningTemplateVersionResponseFilterSensitiveLog: (obj: DeleteProvisioningTemplateVersionResponse) => any;