@aws-sdk/client-iot 3.261.0 → 3.264.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 (79) hide show
  1. package/dist-cjs/endpoint/ruleset.js +3 -3
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -0
  3. package/dist-es/endpoint/ruleset.js +3 -3
  4. package/dist-es/protocols/Aws_restJson1.js +2 -0
  5. package/dist-types/IoT.d.ts +88 -94
  6. package/dist-types/IoTClient.d.ts +5 -5
  7. package/dist-types/commands/AddThingToBillingGroupCommand.d.ts +1 -1
  8. package/dist-types/commands/AddThingToThingGroupCommand.d.ts +1 -1
  9. package/dist-types/commands/AssociateTargetsWithJobCommand.d.ts +5 -5
  10. package/dist-types/commands/AttachThingPrincipalCommand.d.ts +1 -1
  11. package/dist-types/commands/CancelJobCommand.d.ts +1 -1
  12. package/dist-types/commands/CreateBillingGroupCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateCertificateFromCsrCommand.d.ts +0 -3
  14. package/dist-types/commands/CreateDynamicThingGroupCommand.d.ts +1 -1
  15. package/dist-types/commands/CreateJobCommand.d.ts +1 -1
  16. package/dist-types/commands/CreateJobTemplateCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateOTAUpdateCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateStreamCommand.d.ts +1 -1
  19. package/dist-types/commands/CreateThingCommand.d.ts +4 -4
  20. package/dist-types/commands/CreateThingGroupCommand.d.ts +4 -4
  21. package/dist-types/commands/CreateThingTypeCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteBillingGroupCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteDynamicThingGroupCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteOTAUpdateCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteStreamCommand.d.ts +1 -1
  26. package/dist-types/commands/DeleteThingCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteThingGroupCommand.d.ts +1 -1
  28. package/dist-types/commands/DeleteThingTypeCommand.d.ts +1 -1
  29. package/dist-types/commands/DeprecateThingTypeCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeBillingGroupCommand.d.ts +1 -1
  31. package/dist-types/commands/DescribeEventConfigurationsCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeJobCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeJobExecutionCommand.d.ts +1 -1
  34. package/dist-types/commands/DescribeStreamCommand.d.ts +1 -1
  35. package/dist-types/commands/DescribeThingCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeThingGroupCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeThingRegistrationTaskCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeThingTypeCommand.d.ts +1 -1
  39. package/dist-types/commands/DetachThingPrincipalCommand.d.ts +4 -4
  40. package/dist-types/commands/GetJobDocumentCommand.d.ts +1 -1
  41. package/dist-types/commands/GetOTAUpdateCommand.d.ts +1 -1
  42. package/dist-types/commands/ListBillingGroupsCommand.d.ts +1 -1
  43. package/dist-types/commands/ListJobExecutionsForJobCommand.d.ts +1 -1
  44. package/dist-types/commands/ListJobExecutionsForThingCommand.d.ts +1 -1
  45. package/dist-types/commands/ListJobTemplatesCommand.d.ts +1 -1
  46. package/dist-types/commands/ListJobsCommand.d.ts +1 -1
  47. package/dist-types/commands/ListOTAUpdatesCommand.d.ts +1 -1
  48. package/dist-types/commands/ListPrincipalThingsCommand.d.ts +1 -1
  49. package/dist-types/commands/ListStreamsCommand.d.ts +1 -1
  50. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  51. package/dist-types/commands/ListThingGroupsCommand.d.ts +1 -1
  52. package/dist-types/commands/ListThingGroupsForThingCommand.d.ts +1 -1
  53. package/dist-types/commands/ListThingPrincipalsCommand.d.ts +1 -1
  54. package/dist-types/commands/ListThingRegistrationTasksCommand.d.ts +1 -1
  55. package/dist-types/commands/ListThingTypesCommand.d.ts +1 -1
  56. package/dist-types/commands/ListThingsCommand.d.ts +4 -5
  57. package/dist-types/commands/ListThingsInBillingGroupCommand.d.ts +1 -1
  58. package/dist-types/commands/ListThingsInThingGroupCommand.d.ts +1 -1
  59. package/dist-types/commands/RemoveThingFromBillingGroupCommand.d.ts +2 -2
  60. package/dist-types/commands/RemoveThingFromThingGroupCommand.d.ts +2 -2
  61. package/dist-types/commands/StartThingRegistrationTaskCommand.d.ts +1 -1
  62. package/dist-types/commands/StopThingRegistrationTaskCommand.d.ts +1 -1
  63. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  64. package/dist-types/commands/TransferCertificateCommand.d.ts +0 -1
  65. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  66. package/dist-types/commands/UpdateBillingGroupCommand.d.ts +1 -1
  67. package/dist-types/commands/UpdateCertificateCommand.d.ts +0 -1
  68. package/dist-types/commands/UpdateDynamicThingGroupCommand.d.ts +1 -1
  69. package/dist-types/commands/UpdateEventConfigurationsCommand.d.ts +1 -1
  70. package/dist-types/commands/UpdateJobCommand.d.ts +1 -1
  71. package/dist-types/commands/UpdateStreamCommand.d.ts +1 -1
  72. package/dist-types/commands/UpdateThingCommand.d.ts +1 -1
  73. package/dist-types/commands/UpdateThingGroupCommand.d.ts +1 -1
  74. package/dist-types/commands/UpdateThingGroupsForThingCommand.d.ts +1 -1
  75. package/dist-types/models/models_0.d.ts +51 -46
  76. package/dist-types/models/models_1.d.ts +27 -27
  77. package/dist-types/models/models_2.d.ts +18 -18
  78. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  79. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const r = "fn", s = "argv", t = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://iot-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://iot.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
+ const q = "fn", r = "argv", s = "ref";
5
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://iot-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://iot.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
7
7
  exports.ruleSet = _data;
@@ -17964,6 +17964,7 @@ const serializeAws_restJson1CloudwatchAlarmAction = (input, context) => {
17964
17964
  };
17965
17965
  const serializeAws_restJson1CloudwatchLogsAction = (input, context) => {
17966
17966
  return {
17967
+ ...(input.batchMode != null && { batchMode: input.batchMode }),
17967
17968
  ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
17968
17969
  ...(input.roleArn != null && { roleArn: input.roleArn }),
17969
17970
  };
@@ -19697,6 +19698,7 @@ const deserializeAws_restJson1CloudwatchAlarmAction = (output, context) => {
19697
19698
  };
19698
19699
  const deserializeAws_restJson1CloudwatchLogsAction = (output, context) => {
19699
19700
  return {
19701
+ batchMode: (0, smithy_client_1.expectBoolean)(output.batchMode),
19700
19702
  logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
19701
19703
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
19702
19704
  };
@@ -1,4 +1,4 @@
1
- const r = "fn", s = "argv", t = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://iot-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://iot.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "fn", r = "argv", s = "ref";
2
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://iot-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://iot.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
4
  export const ruleSet = _data;
@@ -17476,6 +17476,7 @@ const serializeAws_restJson1CloudwatchAlarmAction = (input, context) => {
17476
17476
  };
17477
17477
  const serializeAws_restJson1CloudwatchLogsAction = (input, context) => {
17478
17478
  return {
17479
+ ...(input.batchMode != null && { batchMode: input.batchMode }),
17479
17480
  ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
17480
17481
  ...(input.roleArn != null && { roleArn: input.roleArn }),
17481
17482
  };
@@ -19209,6 +19210,7 @@ const deserializeAws_restJson1CloudwatchAlarmAction = (output, context) => {
19209
19210
  };
19210
19211
  const deserializeAws_restJson1CloudwatchLogsAction = (output, context) => {
19211
19212
  return {
19213
+ batchMode: __expectBoolean(output.batchMode),
19212
19214
  logGroupName: __expectString(output.logGroupName),
19213
19215
  roleArn: __expectString(output.roleArn),
19214
19216
  };