@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
@@ -163,7 +163,7 @@ const serializeAws_restJson1AttachSecurityProfileCommand = async (input, context
163
163
  "/security-profiles/{securityProfileName}/targets";
164
164
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "securityProfileName", () => input.securityProfileName, "{securityProfileName}", false);
165
165
  const query = map({
166
- securityProfileTargetArn: [, input.securityProfileTargetArn],
166
+ securityProfileTargetArn: [, (0, smithy_client_1.expectNonNull)(input.securityProfileTargetArn, `securityProfileTargetArn`)],
167
167
  });
168
168
  let body;
169
169
  return new protocol_http_1.HttpRequest({
@@ -640,6 +640,9 @@ const serializeAws_restJson1CreateJobCommand = async (input, context) => {
640
640
  ...(input.presignedUrlConfig != null && {
641
641
  presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
642
642
  }),
643
+ ...(input.schedulingConfig != null && {
644
+ schedulingConfig: serializeAws_restJson1SchedulingConfig(input.schedulingConfig, context),
645
+ }),
643
646
  ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
644
647
  ...(input.targetSelection != null && { targetSelection: input.targetSelection }),
645
648
  ...(input.targets != null && { targets: serializeAws_restJson1JobTargets(input.targets, context) }),
@@ -1730,8 +1733,8 @@ const serializeAws_restJson1DeleteV2LoggingLevelCommand = async (input, context)
1730
1733
  const headers = {};
1731
1734
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingLevel";
1732
1735
  const query = map({
1733
- targetType: [, input.targetType],
1734
- targetName: [, input.targetName],
1736
+ targetType: [, (0, smithy_client_1.expectNonNull)(input.targetType, `targetType`)],
1737
+ targetName: [, (0, smithy_client_1.expectNonNull)(input.targetName, `targetName`)],
1735
1738
  });
1736
1739
  let body;
1737
1740
  return new protocol_http_1.HttpRequest({
@@ -2406,7 +2409,7 @@ const serializeAws_restJson1DetachSecurityProfileCommand = async (input, context
2406
2409
  "/security-profiles/{securityProfileName}/targets";
2407
2410
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "securityProfileName", () => input.securityProfileName, "{securityProfileName}", false);
2408
2411
  const query = map({
2409
- securityProfileTargetArn: [, input.securityProfileTargetArn],
2412
+ securityProfileTargetArn: [, (0, smithy_client_1.expectNonNull)(input.securityProfileTargetArn, `securityProfileTargetArn`)],
2410
2413
  });
2411
2414
  let body;
2412
2415
  return new protocol_http_1.HttpRequest({
@@ -2886,9 +2889,9 @@ const serializeAws_restJson1ListAuditMitigationActionsExecutionsCommand = async
2886
2889
  const headers = {};
2887
2890
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/mitigationactions/executions";
2888
2891
  const query = map({
2889
- taskId: [, input.taskId],
2892
+ taskId: [, (0, smithy_client_1.expectNonNull)(input.taskId, `taskId`)],
2890
2893
  actionStatus: [, input.actionStatus],
2891
- findingId: [, input.findingId],
2894
+ findingId: [, (0, smithy_client_1.expectNonNull)(input.findingId, `findingId`)],
2892
2895
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
2893
2896
  nextToken: [, input.nextToken],
2894
2897
  });
@@ -2916,10 +2919,13 @@ const serializeAws_restJson1ListAuditMitigationActionsTasksCommand = async (inpu
2916
2919
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
2917
2920
  nextToken: [, input.nextToken],
2918
2921
  startTime: [
2919
- () => input.startTime !== void 0,
2922
+ (0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
2920
2923
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
2921
2924
  ],
2922
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
2925
+ endTime: [
2926
+ (0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
2927
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
2928
+ ],
2923
2929
  });
2924
2930
  let body;
2925
2931
  return new protocol_http_1.HttpRequest({
@@ -2967,10 +2973,13 @@ const serializeAws_restJson1ListAuditTasksCommand = async (input, context) => {
2967
2973
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks";
2968
2974
  const query = map({
2969
2975
  startTime: [
2970
- () => input.startTime !== void 0,
2976
+ (0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
2971
2977
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
2972
2978
  ],
2973
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
2979
+ endTime: [
2980
+ (0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
2981
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
2982
+ ],
2974
2983
  taskType: [, input.taskType],
2975
2984
  taskStatus: [, input.taskStatus],
2976
2985
  nextToken: [, input.nextToken],
@@ -3160,10 +3169,13 @@ const serializeAws_restJson1ListDetectMitigationActionsTasksCommand = async (inp
3160
3169
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
3161
3170
  nextToken: [, input.nextToken],
3162
3171
  startTime: [
3163
- () => input.startTime !== void 0,
3172
+ (0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
3164
3173
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
3165
3174
  ],
3166
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
3175
+ endTime: [
3176
+ (0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
3177
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
3178
+ ],
3167
3179
  });
3168
3180
  let body;
3169
3181
  return new protocol_http_1.HttpRequest({
@@ -3385,15 +3397,18 @@ const serializeAws_restJson1ListMetricValuesCommand = async (input, context) =>
3385
3397
  const headers = {};
3386
3398
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metric-values";
3387
3399
  const query = map({
3388
- thingName: [, input.thingName],
3389
- metricName: [, input.metricName],
3400
+ thingName: [, (0, smithy_client_1.expectNonNull)(input.thingName, `thingName`)],
3401
+ metricName: [, (0, smithy_client_1.expectNonNull)(input.metricName, `metricName`)],
3390
3402
  dimensionName: [, input.dimensionName],
3391
3403
  dimensionValueOperator: [, input.dimensionValueOperator],
3392
3404
  startTime: [
3393
- () => input.startTime !== void 0,
3405
+ (0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
3394
3406
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
3395
3407
  ],
3396
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
3408
+ endTime: [
3409
+ (0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
3410
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
3411
+ ],
3397
3412
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
3398
3413
  nextToken: [, input.nextToken],
3399
3414
  });
@@ -3635,7 +3650,7 @@ const serializeAws_restJson1ListRelatedResourcesForAuditFindingCommand = async (
3635
3650
  const headers = {};
3636
3651
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/relatedResources";
3637
3652
  const query = map({
3638
- findingId: [, input.findingId],
3653
+ findingId: [, (0, smithy_client_1.expectNonNull)(input.findingId, `findingId`)],
3639
3654
  nextToken: [, input.nextToken],
3640
3655
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
3641
3656
  });
@@ -3726,7 +3741,7 @@ const serializeAws_restJson1ListSecurityProfilesForTargetCommand = async (input,
3726
3741
  nextToken: [, input.nextToken],
3727
3742
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
3728
3743
  recursive: [() => input.recursive !== void 0, () => input.recursive.toString()],
3729
- securityProfileTargetArn: [, input.securityProfileTargetArn],
3744
+ securityProfileTargetArn: [, (0, smithy_client_1.expectNonNull)(input.securityProfileTargetArn, `securityProfileTargetArn`)],
3730
3745
  });
3731
3746
  let body;
3732
3747
  return new protocol_http_1.HttpRequest({
@@ -3768,7 +3783,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
3768
3783
  const headers = {};
3769
3784
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
3770
3785
  const query = map({
3771
- resourceArn: [, input.resourceArn],
3786
+ resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
3772
3787
  nextToken: [, input.nextToken],
3773
3788
  });
3774
3789
  let body;
@@ -3904,7 +3919,7 @@ const serializeAws_restJson1ListThingRegistrationTaskReportsCommand = async (inp
3904
3919
  "/thing-registration-tasks/{taskId}/reports";
3905
3920
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
3906
3921
  const query = map({
3907
- reportType: [, input.reportType],
3922
+ reportType: [, (0, smithy_client_1.expectNonNull)(input.reportType, `reportType`)],
3908
3923
  nextToken: [, input.nextToken],
3909
3924
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
3910
3925
  });
@@ -4110,10 +4125,13 @@ const serializeAws_restJson1ListViolationEventsCommand = async (input, context)
4110
4125
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/violation-events";
4111
4126
  const query = map({
4112
4127
  startTime: [
4113
- () => input.startTime !== void 0,
4128
+ (0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
4114
4129
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
4115
4130
  ],
4116
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
4131
+ endTime: [
4132
+ (0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
4133
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
4134
+ ],
4117
4135
  thingName: [, input.thingName],
4118
4136
  securityProfileName: [, input.securityProfileName],
4119
4137
  behaviorCriteriaType: [, input.behaviorCriteriaType],
@@ -4716,7 +4734,7 @@ const serializeAws_restJson1TransferCertificateCommand = async (input, context)
4716
4734
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transfer-certificate/{certificateId}";
4717
4735
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
4718
4736
  const query = map({
4719
- targetAwsAccount: [, input.targetAwsAccount],
4737
+ targetAwsAccount: [, (0, smithy_client_1.expectNonNull)(input.targetAwsAccount, `targetAwsAccount`)],
4720
4738
  });
4721
4739
  let body;
4722
4740
  body = JSON.stringify({
@@ -4899,7 +4917,7 @@ const serializeAws_restJson1UpdateCertificateCommand = async (input, context) =>
4899
4917
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates/{certificateId}";
4900
4918
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
4901
4919
  const query = map({
4902
- newStatus: [, input.newStatus],
4920
+ newStatus: [, (0, smithy_client_1.expectNonNull)(input.newStatus, `newStatus`)],
4903
4921
  });
4904
4922
  let body;
4905
4923
  return new protocol_http_1.HttpRequest({
@@ -18347,6 +18365,18 @@ const serializeAws_restJson1MqttContext = (input, context) => {
18347
18365
  ...(input.username != null && { username: input.username }),
18348
18366
  };
18349
18367
  };
18368
+ const serializeAws_restJson1MqttHeaders = (input, context) => {
18369
+ return {
18370
+ ...(input.contentType != null && { contentType: input.contentType }),
18371
+ ...(input.correlationData != null && { correlationData: input.correlationData }),
18372
+ ...(input.messageExpiry != null && { messageExpiry: input.messageExpiry }),
18373
+ ...(input.payloadFormatIndicator != null && { payloadFormatIndicator: input.payloadFormatIndicator }),
18374
+ ...(input.responseTopic != null && { responseTopic: input.responseTopic }),
18375
+ ...(input.userProperties != null && {
18376
+ userProperties: serializeAws_restJson1UserProperties(input.userProperties, context),
18377
+ }),
18378
+ };
18379
+ };
18350
18380
  const serializeAws_restJson1NamedShadowNamesFilter = (input, context) => {
18351
18381
  return input
18352
18382
  .filter((e) => e != null)
@@ -18517,6 +18547,7 @@ const serializeAws_restJson1ReplaceDefaultPolicyVersionParams = (input, context)
18517
18547
  };
18518
18548
  const serializeAws_restJson1RepublishAction = (input, context) => {
18519
18549
  return {
18550
+ ...(input.headers != null && { headers: serializeAws_restJson1MqttHeaders(input.headers, context) }),
18520
18551
  ...(input.qos != null && { qos: input.qos }),
18521
18552
  ...(input.roleArn != null && { roleArn: input.roleArn }),
18522
18553
  ...(input.topic != null && { topic: input.topic }),
@@ -18587,6 +18618,13 @@ const serializeAws_restJson1SalesforceAction = (input, context) => {
18587
18618
  ...(input.url != null && { url: input.url }),
18588
18619
  };
18589
18620
  };
18621
+ const serializeAws_restJson1SchedulingConfig = (input, context) => {
18622
+ return {
18623
+ ...(input.endBehavior != null && { endBehavior: input.endBehavior }),
18624
+ ...(input.endTime != null && { endTime: input.endTime }),
18625
+ ...(input.startTime != null && { startTime: input.startTime }),
18626
+ };
18627
+ };
18590
18628
  const serializeAws_restJson1SearchableAttributes = (input, context) => {
18591
18629
  return input
18592
18630
  .filter((e) => e != null)
@@ -18856,6 +18894,19 @@ const serializeAws_restJson1UpdateDeviceCertificateParams = (input, context) =>
18856
18894
  ...(input.action != null && { action: input.action }),
18857
18895
  };
18858
18896
  };
18897
+ const serializeAws_restJson1UserProperties = (input, context) => {
18898
+ return input
18899
+ .filter((e) => e != null)
18900
+ .map((entry) => {
18901
+ return serializeAws_restJson1UserProperty(entry, context);
18902
+ });
18903
+ };
18904
+ const serializeAws_restJson1UserProperty = (input, context) => {
18905
+ return {
18906
+ ...(input.key != null && { key: input.key }),
18907
+ ...(input.value != null && { value: input.value }),
18908
+ };
18909
+ };
18859
18910
  const serializeAws_restJson1ViolationEventOccurrenceRange = (input, context) => {
18860
18911
  return {
18861
18912
  ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
@@ -20144,6 +20195,9 @@ const deserializeAws_restJson1Job = (output, context) => {
20144
20195
  ? deserializeAws_restJson1PresignedUrlConfig(output.presignedUrlConfig, context)
20145
20196
  : undefined,
20146
20197
  reasonCode: (0, smithy_client_1.expectString)(output.reasonCode),
20198
+ schedulingConfig: output.schedulingConfig != null
20199
+ ? deserializeAws_restJson1SchedulingConfig(output.schedulingConfig, context)
20200
+ : undefined,
20147
20201
  status: (0, smithy_client_1.expectString)(output.status),
20148
20202
  targetSelection: (0, smithy_client_1.expectString)(output.targetSelection),
20149
20203
  targets: output.targets != null ? deserializeAws_restJson1JobTargets(output.targets, context) : undefined,
@@ -20540,6 +20594,18 @@ const deserializeAws_restJson1MitigationActionParams = (output, context) => {
20540
20594
  : undefined,
20541
20595
  };
20542
20596
  };
20597
+ const deserializeAws_restJson1MqttHeaders = (output, context) => {
20598
+ return {
20599
+ contentType: (0, smithy_client_1.expectString)(output.contentType),
20600
+ correlationData: (0, smithy_client_1.expectString)(output.correlationData),
20601
+ messageExpiry: (0, smithy_client_1.expectString)(output.messageExpiry),
20602
+ payloadFormatIndicator: (0, smithy_client_1.expectString)(output.payloadFormatIndicator),
20603
+ responseTopic: (0, smithy_client_1.expectString)(output.responseTopic),
20604
+ userProperties: output.userProperties != null
20605
+ ? deserializeAws_restJson1UserProperties(output.userProperties, context)
20606
+ : undefined,
20607
+ };
20608
+ };
20543
20609
  const deserializeAws_restJson1NamedShadowNamesFilter = (output, context) => {
20544
20610
  const retVal = (output || [])
20545
20611
  .filter((e) => e != null)
@@ -20961,6 +21027,7 @@ const deserializeAws_restJson1ReplaceDefaultPolicyVersionParams = (output, conte
20961
21027
  };
20962
21028
  const deserializeAws_restJson1RepublishAction = (output, context) => {
20963
21029
  return {
21030
+ headers: output.headers != null ? deserializeAws_restJson1MqttHeaders(output.headers, context) : undefined,
20964
21031
  qos: (0, smithy_client_1.expectInt32)(output.qos),
20965
21032
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
20966
21033
  topic: (0, smithy_client_1.expectString)(output.topic),
@@ -21105,6 +21172,13 @@ const deserializeAws_restJson1ScheduledAuditMetadataList = (output, context) =>
21105
21172
  });
21106
21173
  return retVal;
21107
21174
  };
21175
+ const deserializeAws_restJson1SchedulingConfig = (output, context) => {
21176
+ return {
21177
+ endBehavior: (0, smithy_client_1.expectString)(output.endBehavior),
21178
+ endTime: (0, smithy_client_1.expectString)(output.endTime),
21179
+ startTime: (0, smithy_client_1.expectString)(output.startTime),
21180
+ };
21181
+ };
21108
21182
  const deserializeAws_restJson1SearchableAttributes = (output, context) => {
21109
21183
  const retVal = (output || [])
21110
21184
  .filter((e) => e != null)
@@ -21760,6 +21834,23 @@ const deserializeAws_restJson1UpdateDeviceCertificateParams = (output, context)
21760
21834
  action: (0, smithy_client_1.expectString)(output.action),
21761
21835
  };
21762
21836
  };
21837
+ const deserializeAws_restJson1UserProperties = (output, context) => {
21838
+ const retVal = (output || [])
21839
+ .filter((e) => e != null)
21840
+ .map((entry) => {
21841
+ if (entry === null) {
21842
+ return null;
21843
+ }
21844
+ return deserializeAws_restJson1UserProperty(entry, context);
21845
+ });
21846
+ return retVal;
21847
+ };
21848
+ const deserializeAws_restJson1UserProperty = (output, context) => {
21849
+ return {
21850
+ key: (0, smithy_client_1.expectString)(output.key),
21851
+ value: (0, smithy_client_1.expectString)(output.value),
21852
+ };
21853
+ };
21763
21854
  const deserializeAws_restJson1ValidationError = (output, context) => {
21764
21855
  return {
21765
21856
  errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteProvisioningTemplateRequestFilterSensitiveLog, DeleteProvisioningTemplateResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { DeleteProvisioningTemplateRequestFilterSensitiveLog, DeleteProvisioningTemplateResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1DeleteProvisioningTemplateCommand, serializeAws_restJson1DeleteProvisioningTemplateCommand, } from "../protocols/Aws_restJson1";
6
6
  export class DeleteProvisioningTemplateCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteProvisioningTemplateVersionRequestFilterSensitiveLog, DeleteProvisioningTemplateVersionResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { DeleteProvisioningTemplateVersionRequestFilterSensitiveLog, DeleteProvisioningTemplateVersionResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1DeleteProvisioningTemplateVersionCommand, serializeAws_restJson1DeleteProvisioningTemplateVersionCommand, } from "../protocols/Aws_restJson1";
6
6
  export class DeleteProvisioningTemplateVersionCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,8 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListStreamsRequestFilterSensitiveLog, ListStreamsResponseFilterSensitiveLog, } from "../models/models_1";
4
+ import { ListStreamsRequestFilterSensitiveLog } from "../models/models_1";
5
+ import { ListStreamsResponseFilterSensitiveLog } from "../models/models_2";
5
6
  import { deserializeAws_restJson1ListStreamsCommand, serializeAws_restJson1ListStreamsCommand, } from "../protocols/Aws_restJson1";
6
7
  export class ListStreamsCommand extends $Command {
7
8
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_1";
4
+ import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_2";
5
5
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListTagsForResourceCommand extends $Command {
7
7
  constructor(input) {
@@ -1,8 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListTargetsForPolicyRequestFilterSensitiveLog } from "../models/models_1";
5
- import { ListTargetsForPolicyResponseFilterSensitiveLog } from "../models/models_2";
4
+ import { ListTargetsForPolicyRequestFilterSensitiveLog, ListTargetsForPolicyResponseFilterSensitiveLog, } from "../models/models_2";
6
5
  import { deserializeAws_restJson1ListTargetsForPolicyCommand, serializeAws_restJson1ListTargetsForPolicyCommand, } from "../protocols/Aws_restJson1";
7
6
  export class ListTargetsForPolicyCommand extends $Command {
8
7
  constructor(input) {
@@ -3,7 +3,7 @@ export const ruleSet = {
3
3
  parameters: {
4
4
  Region: {
5
5
  builtIn: "AWS::Region",
6
- required: false,
6
+ required: true,
7
7
  documentation: "The AWS region used to dispatch the request.",
8
8
  type: "String",
9
9
  },
@@ -436,6 +436,12 @@ export var RetryableFailureType;
436
436
  RetryableFailureType["FAILED"] = "FAILED";
437
437
  RetryableFailureType["TIMED_OUT"] = "TIMED_OUT";
438
438
  })(RetryableFailureType || (RetryableFailureType = {}));
439
+ export var JobEndBehavior;
440
+ (function (JobEndBehavior) {
441
+ JobEndBehavior["CANCEL"] = "CANCEL";
442
+ JobEndBehavior["FORCE_CANCEL"] = "FORCE_CANCEL";
443
+ JobEndBehavior["STOP_ROLLOUT"] = "STOP_ROLLOUT";
444
+ })(JobEndBehavior || (JobEndBehavior = {}));
439
445
  export var TargetSelection;
440
446
  (function (TargetSelection) {
441
447
  TargetSelection["CONTINUOUS"] = "CONTINUOUS";
@@ -676,6 +682,12 @@ export const LocationActionFilterSensitiveLog = (obj) => ({
676
682
  export const OpenSearchActionFilterSensitiveLog = (obj) => ({
677
683
  ...obj,
678
684
  });
685
+ export const UserPropertyFilterSensitiveLog = (obj) => ({
686
+ ...obj,
687
+ });
688
+ export const MqttHeadersFilterSensitiveLog = (obj) => ({
689
+ ...obj,
690
+ });
679
691
  export const RepublishActionFilterSensitiveLog = (obj) => ({
680
692
  ...obj,
681
693
  });
@@ -979,6 +991,9 @@ export const JobExecutionsRolloutConfigFilterSensitiveLog = (obj) => ({
979
991
  export const PresignedUrlConfigFilterSensitiveLog = (obj) => ({
980
992
  ...obj,
981
993
  });
994
+ export const SchedulingConfigFilterSensitiveLog = (obj) => ({
995
+ ...obj,
996
+ });
982
997
  export const TimeoutConfigFilterSensitiveLog = (obj) => ({
983
998
  ...obj,
984
999
  });
@@ -1291,15 +1306,3 @@ export const DeletePolicyRequestFilterSensitiveLog = (obj) => ({
1291
1306
  export const DeletePolicyVersionRequestFilterSensitiveLog = (obj) => ({
1292
1307
  ...obj,
1293
1308
  });
1294
- export const DeleteProvisioningTemplateRequestFilterSensitiveLog = (obj) => ({
1295
- ...obj,
1296
- });
1297
- export const DeleteProvisioningTemplateResponseFilterSensitiveLog = (obj) => ({
1298
- ...obj,
1299
- });
1300
- export const DeleteProvisioningTemplateVersionRequestFilterSensitiveLog = (obj) => ({
1301
- ...obj,
1302
- });
1303
- export const DeleteProvisioningTemplateVersionResponseFilterSensitiveLog = (obj) => ({
1304
- ...obj,
1305
- });
@@ -75,6 +75,7 @@ export var JobStatus;
75
75
  JobStatus["COMPLETED"] = "COMPLETED";
76
76
  JobStatus["DELETION_IN_PROGRESS"] = "DELETION_IN_PROGRESS";
77
77
  JobStatus["IN_PROGRESS"] = "IN_PROGRESS";
78
+ JobStatus["SCHEDULED"] = "SCHEDULED";
78
79
  })(JobStatus || (JobStatus = {}));
79
80
  export var JobExecutionStatus;
80
81
  (function (JobExecutionStatus) {
@@ -185,6 +186,18 @@ export var DetectMitigationActionExecutionStatus;
185
186
  DetectMitigationActionExecutionStatus["SKIPPED"] = "SKIPPED";
186
187
  DetectMitigationActionExecutionStatus["SUCCESSFUL"] = "SUCCESSFUL";
187
188
  })(DetectMitigationActionExecutionStatus || (DetectMitigationActionExecutionStatus = {}));
189
+ export const DeleteProvisioningTemplateRequestFilterSensitiveLog = (obj) => ({
190
+ ...obj,
191
+ });
192
+ export const DeleteProvisioningTemplateResponseFilterSensitiveLog = (obj) => ({
193
+ ...obj,
194
+ });
195
+ export const DeleteProvisioningTemplateVersionRequestFilterSensitiveLog = (obj) => ({
196
+ ...obj,
197
+ });
198
+ export const DeleteProvisioningTemplateVersionResponseFilterSensitiveLog = (obj) => ({
199
+ ...obj,
200
+ });
188
201
  export const DeleteRegistrationCodeRequestFilterSensitiveLog = (obj) => ({
189
202
  ...obj,
190
203
  });
@@ -995,15 +1008,3 @@ export const ListStreamsRequestFilterSensitiveLog = (obj) => ({
995
1008
  export const StreamSummaryFilterSensitiveLog = (obj) => ({
996
1009
  ...obj,
997
1010
  });
998
- export const ListStreamsResponseFilterSensitiveLog = (obj) => ({
999
- ...obj,
1000
- });
1001
- export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
1002
- ...obj,
1003
- });
1004
- export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
1005
- ...obj,
1006
- });
1007
- export const ListTargetsForPolicyRequestFilterSensitiveLog = (obj) => ({
1008
- ...obj,
1009
- });
@@ -82,6 +82,18 @@ export class TransferConflictException extends __BaseException {
82
82
  Object.setPrototypeOf(this, TransferConflictException.prototype);
83
83
  }
84
84
  }
85
+ export const ListStreamsResponseFilterSensitiveLog = (obj) => ({
86
+ ...obj,
87
+ });
88
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
89
+ ...obj,
90
+ });
91
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
92
+ ...obj,
93
+ });
94
+ export const ListTargetsForPolicyRequestFilterSensitiveLog = (obj) => ({
95
+ ...obj,
96
+ });
85
97
  export const ListTargetsForPolicyResponseFilterSensitiveLog = (obj) => ({
86
98
  ...obj,
87
99
  });