@aws-sdk/client-iot 3.693.0 → 3.696.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.
- package/README.md +24 -0
- package/dist-cjs/index.js +177 -19
- package/dist-es/IoT.js +6 -0
- package/dist-es/commands/ListPrincipalThingsV2Command.js +22 -0
- package/dist-es/commands/ListThingPrincipalsV2Command.js +22 -0
- package/dist-es/commands/UpdateThingTypeCommand.js +22 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +4 -12
- package/dist-es/models/models_1.js +12 -0
- package/dist-es/pagination/ListPrincipalThingsV2Paginator.js +4 -0
- package/dist-es/pagination/ListThingPrincipalsV2Paginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +90 -3
- package/dist-types/IoT.d.ts +21 -0
- package/dist-types/IoTClient.d.ts +5 -2
- package/dist-types/commands/AttachThingPrincipalCommand.d.ts +1 -0
- package/dist-types/commands/CreateDomainConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/CreateThingTypeCommand.d.ts +9 -0
- package/dist-types/commands/DeleteAuthorizerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDomainConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/DescribeThingTypeCommand.d.ts +9 -0
- package/dist-types/commands/ListJobTemplatesCommand.d.ts +2 -1
- package/dist-types/commands/ListManagedJobTemplatesCommand.d.ts +1 -2
- package/dist-types/commands/ListPrincipalThingsV2Command.d.ts +100 -0
- package/dist-types/commands/ListThingPrincipalsV2Command.d.ts +100 -0
- package/dist-types/commands/ListThingTypesCommand.d.ts +9 -0
- package/dist-types/commands/UpdateDomainConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/UpdateThingTypeCommand.d.ts +102 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +91 -30
- package/dist-types/models/models_1.d.ts +29 -69
- package/dist-types/models/models_2.d.ts +272 -2
- package/dist-types/pagination/ListPrincipalThingsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/ListThingPrincipalsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/IoT.d.ts +51 -0
- package/dist-types/ts3.4/IoTClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteAuthorizerCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListJobTemplatesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListManagedJobTemplatesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListPrincipalThingsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListThingPrincipalsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateThingTypeCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +18 -11
- package/dist-types/ts3.4/models/models_1.d.ts +11 -16
- package/dist-types/ts3.4/models/models_2.d.ts +51 -1
- package/dist-types/ts3.4/pagination/ListPrincipalThingsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListThingPrincipalsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +35 -35
package/README.md
CHANGED
|
@@ -1650,6 +1650,14 @@ ListPrincipalThings
|
|
|
1650
1650
|
|
|
1651
1651
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/ListPrincipalThingsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListPrincipalThingsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListPrincipalThingsCommandOutput/)
|
|
1652
1652
|
|
|
1653
|
+
</details>
|
|
1654
|
+
<details>
|
|
1655
|
+
<summary>
|
|
1656
|
+
ListPrincipalThingsV2
|
|
1657
|
+
</summary>
|
|
1658
|
+
|
|
1659
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/ListPrincipalThingsV2Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListPrincipalThingsV2CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListPrincipalThingsV2CommandOutput/)
|
|
1660
|
+
|
|
1653
1661
|
</details>
|
|
1654
1662
|
<details>
|
|
1655
1663
|
<summary>
|
|
@@ -1770,6 +1778,14 @@ ListThingPrincipals
|
|
|
1770
1778
|
|
|
1771
1779
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/ListThingPrincipalsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListThingPrincipalsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListThingPrincipalsCommandOutput/)
|
|
1772
1780
|
|
|
1781
|
+
</details>
|
|
1782
|
+
<details>
|
|
1783
|
+
<summary>
|
|
1784
|
+
ListThingPrincipalsV2
|
|
1785
|
+
</summary>
|
|
1786
|
+
|
|
1787
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/ListThingPrincipalsV2Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListThingPrincipalsV2CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListThingPrincipalsV2CommandOutput/)
|
|
1788
|
+
|
|
1773
1789
|
</details>
|
|
1774
1790
|
<details>
|
|
1775
1791
|
<summary>
|
|
@@ -2266,6 +2282,14 @@ UpdateThingGroupsForThing
|
|
|
2266
2282
|
|
|
2267
2283
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/UpdateThingGroupsForThingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/UpdateThingGroupsForThingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/UpdateThingGroupsForThingCommandOutput/)
|
|
2268
2284
|
|
|
2285
|
+
</details>
|
|
2286
|
+
<details>
|
|
2287
|
+
<summary>
|
|
2288
|
+
UpdateThingType
|
|
2289
|
+
</summary>
|
|
2290
|
+
|
|
2291
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/UpdateThingTypeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/UpdateThingTypeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/UpdateThingTypeCommandOutput/)
|
|
2292
|
+
|
|
2269
2293
|
</details>
|
|
2270
2294
|
<details>
|
|
2271
2295
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -277,6 +277,7 @@ __export(src_exports, {
|
|
|
277
277
|
ListPolicyVersionsCommand: () => ListPolicyVersionsCommand,
|
|
278
278
|
ListPrincipalPoliciesCommand: () => ListPrincipalPoliciesCommand,
|
|
279
279
|
ListPrincipalThingsCommand: () => ListPrincipalThingsCommand,
|
|
280
|
+
ListPrincipalThingsV2Command: () => ListPrincipalThingsV2Command,
|
|
280
281
|
ListProvisioningTemplateVersionsCommand: () => ListProvisioningTemplateVersionsCommand,
|
|
281
282
|
ListProvisioningTemplatesCommand: () => ListProvisioningTemplatesCommand,
|
|
282
283
|
ListRelatedResourcesForAuditFindingCommand: () => ListRelatedResourcesForAuditFindingCommand,
|
|
@@ -292,6 +293,7 @@ __export(src_exports, {
|
|
|
292
293
|
ListThingGroupsCommand: () => ListThingGroupsCommand,
|
|
293
294
|
ListThingGroupsForThingCommand: () => ListThingGroupsForThingCommand,
|
|
294
295
|
ListThingPrincipalsCommand: () => ListThingPrincipalsCommand,
|
|
296
|
+
ListThingPrincipalsV2Command: () => ListThingPrincipalsV2Command,
|
|
295
297
|
ListThingRegistrationTaskReportsCommand: () => ListThingRegistrationTaskReportsCommand,
|
|
296
298
|
ListThingRegistrationTasksCommand: () => ListThingRegistrationTasksCommand,
|
|
297
299
|
ListThingTypesCommand: () => ListThingTypesCommand,
|
|
@@ -361,6 +363,7 @@ __export(src_exports, {
|
|
|
361
363
|
ThingConnectivityIndexingMode: () => ThingConnectivityIndexingMode,
|
|
362
364
|
ThingGroupIndexingMode: () => ThingGroupIndexingMode,
|
|
363
365
|
ThingIndexingMode: () => ThingIndexingMode,
|
|
366
|
+
ThingPrincipalType: () => ThingPrincipalType,
|
|
364
367
|
ThrottlingException: () => ThrottlingException,
|
|
365
368
|
TopicRuleDestinationStatus: () => TopicRuleDestinationStatus,
|
|
366
369
|
TransferAlreadyCompletedException: () => TransferAlreadyCompletedException,
|
|
@@ -397,6 +400,7 @@ __export(src_exports, {
|
|
|
397
400
|
UpdateThingCommand: () => UpdateThingCommand,
|
|
398
401
|
UpdateThingGroupCommand: () => UpdateThingGroupCommand,
|
|
399
402
|
UpdateThingGroupsForThingCommand: () => UpdateThingGroupsForThingCommand,
|
|
403
|
+
UpdateThingTypeCommand: () => UpdateThingTypeCommand,
|
|
400
404
|
UpdateTopicRuleDestinationCommand: () => UpdateTopicRuleDestinationCommand,
|
|
401
405
|
ValidateSecurityProfileBehaviorsCommand: () => ValidateSecurityProfileBehaviorsCommand,
|
|
402
406
|
ValidationException: () => ValidationException,
|
|
@@ -440,6 +444,7 @@ __export(src_exports, {
|
|
|
440
444
|
paginateListPolicyPrincipals: () => paginateListPolicyPrincipals,
|
|
441
445
|
paginateListPrincipalPolicies: () => paginateListPrincipalPolicies,
|
|
442
446
|
paginateListPrincipalThings: () => paginateListPrincipalThings,
|
|
447
|
+
paginateListPrincipalThingsV2: () => paginateListPrincipalThingsV2,
|
|
443
448
|
paginateListProvisioningTemplateVersions: () => paginateListProvisioningTemplateVersions,
|
|
444
449
|
paginateListProvisioningTemplates: () => paginateListProvisioningTemplates,
|
|
445
450
|
paginateListRelatedResourcesForAuditFinding: () => paginateListRelatedResourcesForAuditFinding,
|
|
@@ -455,6 +460,7 @@ __export(src_exports, {
|
|
|
455
460
|
paginateListThingGroups: () => paginateListThingGroups,
|
|
456
461
|
paginateListThingGroupsForThing: () => paginateListThingGroupsForThing,
|
|
457
462
|
paginateListThingPrincipals: () => paginateListThingPrincipals,
|
|
463
|
+
paginateListThingPrincipalsV2: () => paginateListThingPrincipalsV2,
|
|
458
464
|
paginateListThingRegistrationTaskReports: () => paginateListThingRegistrationTaskReports,
|
|
459
465
|
paginateListThingRegistrationTasks: () => paginateListThingRegistrationTasks,
|
|
460
466
|
paginateListThingTypes: () => paginateListThingTypes,
|
|
@@ -951,6 +957,10 @@ var _VersionConflictException = class _VersionConflictException extends IoTServi
|
|
|
951
957
|
};
|
|
952
958
|
__name(_VersionConflictException, "VersionConflictException");
|
|
953
959
|
var VersionConflictException = _VersionConflictException;
|
|
960
|
+
var ThingPrincipalType = {
|
|
961
|
+
EXCLUSIVE_THING: "EXCLUSIVE_THING",
|
|
962
|
+
NON_EXCLUSIVE_THING: "NON_EXCLUSIVE_THING"
|
|
963
|
+
};
|
|
954
964
|
var AuditCheckRunStatus = {
|
|
955
965
|
CANCELED: "CANCELED",
|
|
956
966
|
COMPLETED_COMPLIANT: "COMPLETED_COMPLIANT",
|
|
@@ -1340,23 +1350,6 @@ var TopicRuleDestinationStatus = {
|
|
|
1340
1350
|
ERROR: "ERROR",
|
|
1341
1351
|
IN_PROGRESS: "IN_PROGRESS"
|
|
1342
1352
|
};
|
|
1343
|
-
var _DeleteConflictException = class _DeleteConflictException extends IoTServiceException {
|
|
1344
|
-
/**
|
|
1345
|
-
* @internal
|
|
1346
|
-
*/
|
|
1347
|
-
constructor(opts) {
|
|
1348
|
-
super({
|
|
1349
|
-
name: "DeleteConflictException",
|
|
1350
|
-
$fault: "client",
|
|
1351
|
-
...opts
|
|
1352
|
-
});
|
|
1353
|
-
this.name = "DeleteConflictException";
|
|
1354
|
-
this.$fault = "client";
|
|
1355
|
-
Object.setPrototypeOf(this, _DeleteConflictException.prototype);
|
|
1356
|
-
}
|
|
1357
|
-
};
|
|
1358
|
-
__name(_DeleteConflictException, "DeleteConflictException");
|
|
1359
|
-
var DeleteConflictException = _DeleteConflictException;
|
|
1360
1353
|
var KeyPairFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1361
1354
|
...obj,
|
|
1362
1355
|
...obj.PrivateKey && { PrivateKey: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1391,6 +1384,23 @@ var CreateProvisioningClaimResponseFilterSensitiveLog = /* @__PURE__ */ __name((
|
|
|
1391
1384
|
|
|
1392
1385
|
// src/models/models_1.ts
|
|
1393
1386
|
|
|
1387
|
+
var _DeleteConflictException = class _DeleteConflictException extends IoTServiceException {
|
|
1388
|
+
/**
|
|
1389
|
+
* @internal
|
|
1390
|
+
*/
|
|
1391
|
+
constructor(opts) {
|
|
1392
|
+
super({
|
|
1393
|
+
name: "DeleteConflictException",
|
|
1394
|
+
$fault: "client",
|
|
1395
|
+
...opts
|
|
1396
|
+
});
|
|
1397
|
+
this.name = "DeleteConflictException";
|
|
1398
|
+
this.$fault = "client";
|
|
1399
|
+
Object.setPrototypeOf(this, _DeleteConflictException.prototype);
|
|
1400
|
+
}
|
|
1401
|
+
};
|
|
1402
|
+
__name(_DeleteConflictException, "DeleteConflictException");
|
|
1403
|
+
var DeleteConflictException = _DeleteConflictException;
|
|
1394
1404
|
var _CertificateStateException = class _CertificateStateException extends IoTServiceException {
|
|
1395
1405
|
/**
|
|
1396
1406
|
* @internal
|
|
@@ -1851,8 +1861,11 @@ var se_AttachThingPrincipalCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
1851
1861
|
});
|
|
1852
1862
|
b.bp("/things/{thingName}/principals");
|
|
1853
1863
|
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
1864
|
+
const query = (0, import_smithy_client.map)({
|
|
1865
|
+
[_tPT]: [, input[_tPT]]
|
|
1866
|
+
});
|
|
1854
1867
|
let body;
|
|
1855
|
-
b.m("PUT").h(headers).b(body);
|
|
1868
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
1856
1869
|
return b.build();
|
|
1857
1870
|
}, "se_AttachThingPrincipalCommand");
|
|
1858
1871
|
var se_CancelAuditMitigationActionsTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -4080,6 +4093,21 @@ var se_ListPrincipalThingsCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
4080
4093
|
b.m("GET").h(headers).q(query).b(body);
|
|
4081
4094
|
return b.build();
|
|
4082
4095
|
}, "se_ListPrincipalThingsCommand");
|
|
4096
|
+
var se_ListPrincipalThingsV2Command = /* @__PURE__ */ __name(async (input, context) => {
|
|
4097
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
4098
|
+
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
4099
|
+
[_xap]: input[_p]
|
|
4100
|
+
});
|
|
4101
|
+
b.bp("/principals/things-v2");
|
|
4102
|
+
const query = (0, import_smithy_client.map)({
|
|
4103
|
+
[_nT]: [, input[_nT]],
|
|
4104
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
4105
|
+
[_tPT]: [, input[_tPT]]
|
|
4106
|
+
});
|
|
4107
|
+
let body;
|
|
4108
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
4109
|
+
return b.build();
|
|
4110
|
+
}, "se_ListPrincipalThingsV2Command");
|
|
4083
4111
|
var se_ListProvisioningTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
4084
4112
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
4085
4113
|
const headers = {};
|
|
@@ -4278,6 +4306,20 @@ var se_ListThingPrincipalsCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
4278
4306
|
b.m("GET").h(headers).q(query).b(body);
|
|
4279
4307
|
return b.build();
|
|
4280
4308
|
}, "se_ListThingPrincipalsCommand");
|
|
4309
|
+
var se_ListThingPrincipalsV2Command = /* @__PURE__ */ __name(async (input, context) => {
|
|
4310
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
4311
|
+
const headers = {};
|
|
4312
|
+
b.bp("/things/{thingName}/principals-v2");
|
|
4313
|
+
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
4314
|
+
const query = (0, import_smithy_client.map)({
|
|
4315
|
+
[_nT]: [, input[_nT]],
|
|
4316
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
4317
|
+
[_tPT]: [, input[_tPT]]
|
|
4318
|
+
});
|
|
4319
|
+
let body;
|
|
4320
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
4321
|
+
return b.build();
|
|
4322
|
+
}, "se_ListThingPrincipalsV2Command");
|
|
4281
4323
|
var se_ListThingRegistrationTaskReportsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
4282
4324
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
4283
4325
|
const headers = {};
|
|
@@ -5363,6 +5405,22 @@ var se_UpdateThingGroupsForThingCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
5363
5405
|
b.m("PUT").h(headers).b(body);
|
|
5364
5406
|
return b.build();
|
|
5365
5407
|
}, "se_UpdateThingGroupsForThingCommand");
|
|
5408
|
+
var se_UpdateThingTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
5409
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
5410
|
+
const headers = {
|
|
5411
|
+
"content-type": "application/json"
|
|
5412
|
+
};
|
|
5413
|
+
b.bp("/thing-types/{thingTypeName}");
|
|
5414
|
+
b.p("thingTypeName", () => input.thingTypeName, "{thingTypeName}", false);
|
|
5415
|
+
let body;
|
|
5416
|
+
body = JSON.stringify(
|
|
5417
|
+
(0, import_smithy_client.take)(input, {
|
|
5418
|
+
thingTypeProperties: (_) => (0, import_smithy_client._json)(_)
|
|
5419
|
+
})
|
|
5420
|
+
);
|
|
5421
|
+
b.m("PATCH").h(headers).b(body);
|
|
5422
|
+
return b.build();
|
|
5423
|
+
}, "se_UpdateThingTypeCommand");
|
|
5366
5424
|
var se_UpdateTopicRuleDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
5367
5425
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
5368
5426
|
const headers = {
|
|
@@ -7958,6 +8016,21 @@ var de_ListPrincipalThingsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
7958
8016
|
Object.assign(contents, doc);
|
|
7959
8017
|
return contents;
|
|
7960
8018
|
}, "de_ListPrincipalThingsCommand");
|
|
8019
|
+
var de_ListPrincipalThingsV2Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
8020
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8021
|
+
return de_CommandError(output, context);
|
|
8022
|
+
}
|
|
8023
|
+
const contents = (0, import_smithy_client.map)({
|
|
8024
|
+
$metadata: deserializeMetadata(output)
|
|
8025
|
+
});
|
|
8026
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
8027
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
8028
|
+
nextToken: import_smithy_client.expectString,
|
|
8029
|
+
principalThingObjects: import_smithy_client._json
|
|
8030
|
+
});
|
|
8031
|
+
Object.assign(contents, doc);
|
|
8032
|
+
return contents;
|
|
8033
|
+
}, "de_ListPrincipalThingsV2Command");
|
|
7961
8034
|
var de_ListProvisioningTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
7962
8035
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7963
8036
|
return de_CommandError(output, context);
|
|
@@ -8183,6 +8256,21 @@ var de_ListThingPrincipalsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
8183
8256
|
Object.assign(contents, doc);
|
|
8184
8257
|
return contents;
|
|
8185
8258
|
}, "de_ListThingPrincipalsCommand");
|
|
8259
|
+
var de_ListThingPrincipalsV2Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
8260
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8261
|
+
return de_CommandError(output, context);
|
|
8262
|
+
}
|
|
8263
|
+
const contents = (0, import_smithy_client.map)({
|
|
8264
|
+
$metadata: deserializeMetadata(output)
|
|
8265
|
+
});
|
|
8266
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
8267
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
8268
|
+
nextToken: import_smithy_client.expectString,
|
|
8269
|
+
thingPrincipalObjects: import_smithy_client._json
|
|
8270
|
+
});
|
|
8271
|
+
Object.assign(contents, doc);
|
|
8272
|
+
return contents;
|
|
8273
|
+
}, "de_ListThingPrincipalsV2Command");
|
|
8186
8274
|
var de_ListThingRegistrationTaskReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
8187
8275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8188
8276
|
return de_CommandError(output, context);
|
|
@@ -8997,6 +9085,16 @@ var de_UpdateThingGroupsForThingCommand = /* @__PURE__ */ __name(async (output,
|
|
|
8997
9085
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
8998
9086
|
return contents;
|
|
8999
9087
|
}, "de_UpdateThingGroupsForThingCommand");
|
|
9088
|
+
var de_UpdateThingTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
9089
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9090
|
+
return de_CommandError(output, context);
|
|
9091
|
+
}
|
|
9092
|
+
const contents = (0, import_smithy_client.map)({
|
|
9093
|
+
$metadata: deserializeMetadata(output)
|
|
9094
|
+
});
|
|
9095
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
9096
|
+
return contents;
|
|
9097
|
+
}, "de_UpdateThingTypeCommand");
|
|
9000
9098
|
var de_UpdateTopicRuleDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
9001
9099
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9002
9100
|
return de_CommandError(output, context);
|
|
@@ -10567,6 +10665,7 @@ var _tI = "taskId";
|
|
|
10567
10665
|
var _tN = "targetName";
|
|
10568
10666
|
var _tNe = "templateName";
|
|
10569
10667
|
var _tNh = "thingName";
|
|
10668
|
+
var _tPT = "thingPrincipalType";
|
|
10570
10669
|
var _tS = "taskStatus";
|
|
10571
10670
|
var _tSa = "targetSelection";
|
|
10572
10671
|
var _tT = "targetType";
|
|
@@ -13086,6 +13185,20 @@ var _ListPrincipalThingsCommand = class _ListPrincipalThingsCommand extends impo
|
|
|
13086
13185
|
__name(_ListPrincipalThingsCommand, "ListPrincipalThingsCommand");
|
|
13087
13186
|
var ListPrincipalThingsCommand = _ListPrincipalThingsCommand;
|
|
13088
13187
|
|
|
13188
|
+
// src/commands/ListPrincipalThingsV2Command.ts
|
|
13189
|
+
|
|
13190
|
+
|
|
13191
|
+
|
|
13192
|
+
var _ListPrincipalThingsV2Command = class _ListPrincipalThingsV2Command extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
13193
|
+
return [
|
|
13194
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
13195
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
13196
|
+
];
|
|
13197
|
+
}).s("AWSIotService", "ListPrincipalThingsV2", {}).n("IoTClient", "ListPrincipalThingsV2Command").f(void 0, void 0).ser(se_ListPrincipalThingsV2Command).de(de_ListPrincipalThingsV2Command).build() {
|
|
13198
|
+
};
|
|
13199
|
+
__name(_ListPrincipalThingsV2Command, "ListPrincipalThingsV2Command");
|
|
13200
|
+
var ListPrincipalThingsV2Command = _ListPrincipalThingsV2Command;
|
|
13201
|
+
|
|
13089
13202
|
// src/commands/ListProvisioningTemplatesCommand.ts
|
|
13090
13203
|
|
|
13091
13204
|
|
|
@@ -13296,6 +13409,20 @@ var _ListThingPrincipalsCommand = class _ListThingPrincipalsCommand extends impo
|
|
|
13296
13409
|
__name(_ListThingPrincipalsCommand, "ListThingPrincipalsCommand");
|
|
13297
13410
|
var ListThingPrincipalsCommand = _ListThingPrincipalsCommand;
|
|
13298
13411
|
|
|
13412
|
+
// src/commands/ListThingPrincipalsV2Command.ts
|
|
13413
|
+
|
|
13414
|
+
|
|
13415
|
+
|
|
13416
|
+
var _ListThingPrincipalsV2Command = class _ListThingPrincipalsV2Command extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
13417
|
+
return [
|
|
13418
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
13419
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
13420
|
+
];
|
|
13421
|
+
}).s("AWSIotService", "ListThingPrincipalsV2", {}).n("IoTClient", "ListThingPrincipalsV2Command").f(void 0, void 0).ser(se_ListThingPrincipalsV2Command).de(de_ListThingPrincipalsV2Command).build() {
|
|
13422
|
+
};
|
|
13423
|
+
__name(_ListThingPrincipalsV2Command, "ListThingPrincipalsV2Command");
|
|
13424
|
+
var ListThingPrincipalsV2Command = _ListThingPrincipalsV2Command;
|
|
13425
|
+
|
|
13299
13426
|
// src/commands/ListThingRegistrationTaskReportsCommand.ts
|
|
13300
13427
|
|
|
13301
13428
|
|
|
@@ -14164,6 +14291,20 @@ var _UpdateThingGroupsForThingCommand = class _UpdateThingGroupsForThingCommand
|
|
|
14164
14291
|
__name(_UpdateThingGroupsForThingCommand, "UpdateThingGroupsForThingCommand");
|
|
14165
14292
|
var UpdateThingGroupsForThingCommand = _UpdateThingGroupsForThingCommand;
|
|
14166
14293
|
|
|
14294
|
+
// src/commands/UpdateThingTypeCommand.ts
|
|
14295
|
+
|
|
14296
|
+
|
|
14297
|
+
|
|
14298
|
+
var _UpdateThingTypeCommand = class _UpdateThingTypeCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
14299
|
+
return [
|
|
14300
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
14301
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
14302
|
+
];
|
|
14303
|
+
}).s("AWSIotService", "UpdateThingType", {}).n("IoTClient", "UpdateThingTypeCommand").f(void 0, void 0).ser(se_UpdateThingTypeCommand).de(de_UpdateThingTypeCommand).build() {
|
|
14304
|
+
};
|
|
14305
|
+
__name(_UpdateThingTypeCommand, "UpdateThingTypeCommand");
|
|
14306
|
+
var UpdateThingTypeCommand = _UpdateThingTypeCommand;
|
|
14307
|
+
|
|
14167
14308
|
// src/commands/UpdateTopicRuleDestinationCommand.ts
|
|
14168
14309
|
|
|
14169
14310
|
|
|
@@ -14373,6 +14514,7 @@ var commands = {
|
|
|
14373
14514
|
ListPolicyVersionsCommand,
|
|
14374
14515
|
ListPrincipalPoliciesCommand,
|
|
14375
14516
|
ListPrincipalThingsCommand,
|
|
14517
|
+
ListPrincipalThingsV2Command,
|
|
14376
14518
|
ListProvisioningTemplatesCommand,
|
|
14377
14519
|
ListProvisioningTemplateVersionsCommand,
|
|
14378
14520
|
ListRelatedResourcesForAuditFindingCommand,
|
|
@@ -14388,6 +14530,7 @@ var commands = {
|
|
|
14388
14530
|
ListThingGroupsCommand,
|
|
14389
14531
|
ListThingGroupsForThingCommand,
|
|
14390
14532
|
ListThingPrincipalsCommand,
|
|
14533
|
+
ListThingPrincipalsV2Command,
|
|
14391
14534
|
ListThingRegistrationTaskReportsCommand,
|
|
14392
14535
|
ListThingRegistrationTasksCommand,
|
|
14393
14536
|
ListThingsCommand,
|
|
@@ -14450,6 +14593,7 @@ var commands = {
|
|
|
14450
14593
|
UpdateThingCommand,
|
|
14451
14594
|
UpdateThingGroupCommand,
|
|
14452
14595
|
UpdateThingGroupsForThingCommand,
|
|
14596
|
+
UpdateThingTypeCommand,
|
|
14453
14597
|
UpdateTopicRuleDestinationCommand,
|
|
14454
14598
|
ValidateSecurityProfileBehaviorsCommand
|
|
14455
14599
|
};
|
|
@@ -14599,6 +14743,10 @@ var paginateListPrincipalPolicies = (0, import_core.createPaginator)(IoTClient,
|
|
|
14599
14743
|
|
|
14600
14744
|
var paginateListPrincipalThings = (0, import_core.createPaginator)(IoTClient, ListPrincipalThingsCommand, "nextToken", "nextToken", "maxResults");
|
|
14601
14745
|
|
|
14746
|
+
// src/pagination/ListPrincipalThingsV2Paginator.ts
|
|
14747
|
+
|
|
14748
|
+
var paginateListPrincipalThingsV2 = (0, import_core.createPaginator)(IoTClient, ListPrincipalThingsV2Command, "nextToken", "nextToken", "maxResults");
|
|
14749
|
+
|
|
14602
14750
|
// src/pagination/ListProvisioningTemplateVersionsPaginator.ts
|
|
14603
14751
|
|
|
14604
14752
|
var paginateListProvisioningTemplateVersions = (0, import_core.createPaginator)(IoTClient, ListProvisioningTemplateVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -14659,6 +14807,10 @@ var paginateListThingGroups = (0, import_core.createPaginator)(IoTClient, ListTh
|
|
|
14659
14807
|
|
|
14660
14808
|
var paginateListThingPrincipals = (0, import_core.createPaginator)(IoTClient, ListThingPrincipalsCommand, "nextToken", "nextToken", "maxResults");
|
|
14661
14809
|
|
|
14810
|
+
// src/pagination/ListThingPrincipalsV2Paginator.ts
|
|
14811
|
+
|
|
14812
|
+
var paginateListThingPrincipalsV2 = (0, import_core.createPaginator)(IoTClient, ListThingPrincipalsV2Command, "nextToken", "nextToken", "maxResults");
|
|
14813
|
+
|
|
14662
14814
|
// src/pagination/ListThingRegistrationTaskReportsPaginator.ts
|
|
14663
14815
|
|
|
14664
14816
|
var paginateListThingRegistrationTaskReports = (0, import_core.createPaginator)(IoTClient, ListThingRegistrationTaskReportsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -14885,6 +15037,7 @@ var paginateListViolationEvents = (0, import_core.createPaginator)(IoTClient, Li
|
|
|
14885
15037
|
ListPolicyVersionsCommand,
|
|
14886
15038
|
ListPrincipalPoliciesCommand,
|
|
14887
15039
|
ListPrincipalThingsCommand,
|
|
15040
|
+
ListPrincipalThingsV2Command,
|
|
14888
15041
|
ListProvisioningTemplateVersionsCommand,
|
|
14889
15042
|
ListProvisioningTemplatesCommand,
|
|
14890
15043
|
ListRelatedResourcesForAuditFindingCommand,
|
|
@@ -14900,6 +15053,7 @@ var paginateListViolationEvents = (0, import_core.createPaginator)(IoTClient, Li
|
|
|
14900
15053
|
ListThingGroupsCommand,
|
|
14901
15054
|
ListThingGroupsForThingCommand,
|
|
14902
15055
|
ListThingPrincipalsCommand,
|
|
15056
|
+
ListThingPrincipalsV2Command,
|
|
14903
15057
|
ListThingRegistrationTaskReportsCommand,
|
|
14904
15058
|
ListThingRegistrationTasksCommand,
|
|
14905
15059
|
ListThingTypesCommand,
|
|
@@ -14962,6 +15116,7 @@ var paginateListViolationEvents = (0, import_core.createPaginator)(IoTClient, Li
|
|
|
14962
15116
|
UpdateThingCommand,
|
|
14963
15117
|
UpdateThingGroupCommand,
|
|
14964
15118
|
UpdateThingGroupsForThingCommand,
|
|
15119
|
+
UpdateThingTypeCommand,
|
|
14965
15120
|
UpdateTopicRuleDestinationCommand,
|
|
14966
15121
|
ValidateSecurityProfileBehaviorsCommand,
|
|
14967
15122
|
paginateGetBehaviorModelTrainingSummaries,
|
|
@@ -14999,6 +15154,7 @@ var paginateListViolationEvents = (0, import_core.createPaginator)(IoTClient, Li
|
|
|
14999
15154
|
paginateListPolicyPrincipals,
|
|
15000
15155
|
paginateListPrincipalPolicies,
|
|
15001
15156
|
paginateListPrincipalThings,
|
|
15157
|
+
paginateListPrincipalThingsV2,
|
|
15002
15158
|
paginateListProvisioningTemplateVersions,
|
|
15003
15159
|
paginateListProvisioningTemplates,
|
|
15004
15160
|
paginateListRelatedResourcesForAuditFinding,
|
|
@@ -15014,6 +15170,7 @@ var paginateListViolationEvents = (0, import_core.createPaginator)(IoTClient, Li
|
|
|
15014
15170
|
paginateListThingGroupsForThing,
|
|
15015
15171
|
paginateListThingGroups,
|
|
15016
15172
|
paginateListThingPrincipals,
|
|
15173
|
+
paginateListThingPrincipalsV2,
|
|
15017
15174
|
paginateListThingRegistrationTaskReports,
|
|
15018
15175
|
paginateListThingRegistrationTasks,
|
|
15019
15176
|
paginateListThingTypes,
|
|
@@ -15052,6 +15209,7 @@ var paginateListViolationEvents = (0, import_core.createPaginator)(IoTClient, Li
|
|
|
15052
15209
|
ValidationException,
|
|
15053
15210
|
LimitExceededException,
|
|
15054
15211
|
VersionConflictException,
|
|
15212
|
+
ThingPrincipalType,
|
|
15055
15213
|
AuditCheckRunStatus,
|
|
15056
15214
|
ResourceType,
|
|
15057
15215
|
AuditFindingSeverity,
|
|
@@ -15096,7 +15254,6 @@ var paginateListViolationEvents = (0, import_core.createPaginator)(IoTClient, Li
|
|
|
15096
15254
|
DayOfWeek,
|
|
15097
15255
|
SqlParseException,
|
|
15098
15256
|
TopicRuleDestinationStatus,
|
|
15099
|
-
DeleteConflictException,
|
|
15100
15257
|
KeyPairFilterSensitiveLog,
|
|
15101
15258
|
CreateKeysAndCertificateResponseFilterSensitiveLog,
|
|
15102
15259
|
CreatePackageRequestFilterSensitiveLog,
|
|
@@ -15104,6 +15261,7 @@ var paginateListViolationEvents = (0, import_core.createPaginator)(IoTClient, Li
|
|
|
15104
15261
|
CreatePackageVersionRequestFilterSensitiveLog,
|
|
15105
15262
|
CreatePackageVersionResponseFilterSensitiveLog,
|
|
15106
15263
|
CreateProvisioningClaimResponseFilterSensitiveLog,
|
|
15264
|
+
DeleteConflictException,
|
|
15107
15265
|
CertificateStateException,
|
|
15108
15266
|
LogTargetType,
|
|
15109
15267
|
CertificateMode,
|
package/dist-es/IoT.js
CHANGED
|
@@ -178,6 +178,7 @@ import { ListPolicyPrincipalsCommand, } from "./commands/ListPolicyPrincipalsCom
|
|
|
178
178
|
import { ListPolicyVersionsCommand, } from "./commands/ListPolicyVersionsCommand";
|
|
179
179
|
import { ListPrincipalPoliciesCommand, } from "./commands/ListPrincipalPoliciesCommand";
|
|
180
180
|
import { ListPrincipalThingsCommand, } from "./commands/ListPrincipalThingsCommand";
|
|
181
|
+
import { ListPrincipalThingsV2Command, } from "./commands/ListPrincipalThingsV2Command";
|
|
181
182
|
import { ListProvisioningTemplatesCommand, } from "./commands/ListProvisioningTemplatesCommand";
|
|
182
183
|
import { ListProvisioningTemplateVersionsCommand, } from "./commands/ListProvisioningTemplateVersionsCommand";
|
|
183
184
|
import { ListRelatedResourcesForAuditFindingCommand, } from "./commands/ListRelatedResourcesForAuditFindingCommand";
|
|
@@ -193,6 +194,7 @@ import { ListTargetsForSecurityProfileCommand, } from "./commands/ListTargetsFor
|
|
|
193
194
|
import { ListThingGroupsCommand, } from "./commands/ListThingGroupsCommand";
|
|
194
195
|
import { ListThingGroupsForThingCommand, } from "./commands/ListThingGroupsForThingCommand";
|
|
195
196
|
import { ListThingPrincipalsCommand, } from "./commands/ListThingPrincipalsCommand";
|
|
197
|
+
import { ListThingPrincipalsV2Command, } from "./commands/ListThingPrincipalsV2Command";
|
|
196
198
|
import { ListThingRegistrationTaskReportsCommand, } from "./commands/ListThingRegistrationTaskReportsCommand";
|
|
197
199
|
import { ListThingRegistrationTasksCommand, } from "./commands/ListThingRegistrationTasksCommand";
|
|
198
200
|
import { ListThingsCommand } from "./commands/ListThingsCommand";
|
|
@@ -255,6 +257,7 @@ import { UpdateStreamCommand, } from "./commands/UpdateStreamCommand";
|
|
|
255
257
|
import { UpdateThingCommand } from "./commands/UpdateThingCommand";
|
|
256
258
|
import { UpdateThingGroupCommand, } from "./commands/UpdateThingGroupCommand";
|
|
257
259
|
import { UpdateThingGroupsForThingCommand, } from "./commands/UpdateThingGroupsForThingCommand";
|
|
260
|
+
import { UpdateThingTypeCommand, } from "./commands/UpdateThingTypeCommand";
|
|
258
261
|
import { UpdateTopicRuleDestinationCommand, } from "./commands/UpdateTopicRuleDestinationCommand";
|
|
259
262
|
import { ValidateSecurityProfileBehaviorsCommand, } from "./commands/ValidateSecurityProfileBehaviorsCommand";
|
|
260
263
|
import { IoTClient } from "./IoTClient";
|
|
@@ -438,6 +441,7 @@ const commands = {
|
|
|
438
441
|
ListPolicyVersionsCommand,
|
|
439
442
|
ListPrincipalPoliciesCommand,
|
|
440
443
|
ListPrincipalThingsCommand,
|
|
444
|
+
ListPrincipalThingsV2Command,
|
|
441
445
|
ListProvisioningTemplatesCommand,
|
|
442
446
|
ListProvisioningTemplateVersionsCommand,
|
|
443
447
|
ListRelatedResourcesForAuditFindingCommand,
|
|
@@ -453,6 +457,7 @@ const commands = {
|
|
|
453
457
|
ListThingGroupsCommand,
|
|
454
458
|
ListThingGroupsForThingCommand,
|
|
455
459
|
ListThingPrincipalsCommand,
|
|
460
|
+
ListThingPrincipalsV2Command,
|
|
456
461
|
ListThingRegistrationTaskReportsCommand,
|
|
457
462
|
ListThingRegistrationTasksCommand,
|
|
458
463
|
ListThingsCommand,
|
|
@@ -515,6 +520,7 @@ const commands = {
|
|
|
515
520
|
UpdateThingCommand,
|
|
516
521
|
UpdateThingGroupCommand,
|
|
517
522
|
UpdateThingGroupsForThingCommand,
|
|
523
|
+
UpdateThingTypeCommand,
|
|
518
524
|
UpdateTopicRuleDestinationCommand,
|
|
519
525
|
ValidateSecurityProfileBehaviorsCommand,
|
|
520
526
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListPrincipalThingsV2Command, se_ListPrincipalThingsV2Command } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListPrincipalThingsV2Command extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSIotService", "ListPrincipalThingsV2", {})
|
|
17
|
+
.n("IoTClient", "ListPrincipalThingsV2Command")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListPrincipalThingsV2Command)
|
|
20
|
+
.de(de_ListPrincipalThingsV2Command)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListThingPrincipalsV2Command, se_ListThingPrincipalsV2Command } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListThingPrincipalsV2Command extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSIotService", "ListThingPrincipalsV2", {})
|
|
17
|
+
.n("IoTClient", "ListThingPrincipalsV2Command")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListThingPrincipalsV2Command)
|
|
20
|
+
.de(de_ListThingPrincipalsV2Command)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UpdateThingTypeCommand, se_UpdateThingTypeCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateThingTypeCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSIotService", "UpdateThingType", {})
|
|
17
|
+
.n("IoTClient", "UpdateThingTypeCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UpdateThingTypeCommand)
|
|
20
|
+
.de(de_UpdateThingTypeCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -177,6 +177,7 @@ export * from "./ListPolicyPrincipalsCommand";
|
|
|
177
177
|
export * from "./ListPolicyVersionsCommand";
|
|
178
178
|
export * from "./ListPrincipalPoliciesCommand";
|
|
179
179
|
export * from "./ListPrincipalThingsCommand";
|
|
180
|
+
export * from "./ListPrincipalThingsV2Command";
|
|
180
181
|
export * from "./ListProvisioningTemplateVersionsCommand";
|
|
181
182
|
export * from "./ListProvisioningTemplatesCommand";
|
|
182
183
|
export * from "./ListRelatedResourcesForAuditFindingCommand";
|
|
@@ -192,6 +193,7 @@ export * from "./ListTargetsForSecurityProfileCommand";
|
|
|
192
193
|
export * from "./ListThingGroupsCommand";
|
|
193
194
|
export * from "./ListThingGroupsForThingCommand";
|
|
194
195
|
export * from "./ListThingPrincipalsCommand";
|
|
196
|
+
export * from "./ListThingPrincipalsV2Command";
|
|
195
197
|
export * from "./ListThingRegistrationTaskReportsCommand";
|
|
196
198
|
export * from "./ListThingRegistrationTasksCommand";
|
|
197
199
|
export * from "./ListThingTypesCommand";
|
|
@@ -254,5 +256,6 @@ export * from "./UpdateStreamCommand";
|
|
|
254
256
|
export * from "./UpdateThingCommand";
|
|
255
257
|
export * from "./UpdateThingGroupCommand";
|
|
256
258
|
export * from "./UpdateThingGroupsForThingCommand";
|
|
259
|
+
export * from "./UpdateThingTypeCommand";
|
|
257
260
|
export * from "./UpdateTopicRuleDestinationCommand";
|
|
258
261
|
export * from "./ValidateSecurityProfileBehaviorsCommand";
|
|
@@ -250,6 +250,10 @@ export class VersionConflictException extends __BaseException {
|
|
|
250
250
|
Object.setPrototypeOf(this, VersionConflictException.prototype);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
+
export const ThingPrincipalType = {
|
|
254
|
+
EXCLUSIVE_THING: "EXCLUSIVE_THING",
|
|
255
|
+
NON_EXCLUSIVE_THING: "NON_EXCLUSIVE_THING",
|
|
256
|
+
};
|
|
253
257
|
export const AuditCheckRunStatus = {
|
|
254
258
|
CANCELED: "CANCELED",
|
|
255
259
|
COMPLETED_COMPLIANT: "COMPLETED_COMPLIANT",
|
|
@@ -584,18 +588,6 @@ export const TopicRuleDestinationStatus = {
|
|
|
584
588
|
ERROR: "ERROR",
|
|
585
589
|
IN_PROGRESS: "IN_PROGRESS",
|
|
586
590
|
};
|
|
587
|
-
export class DeleteConflictException extends __BaseException {
|
|
588
|
-
constructor(opts) {
|
|
589
|
-
super({
|
|
590
|
-
name: "DeleteConflictException",
|
|
591
|
-
$fault: "client",
|
|
592
|
-
...opts,
|
|
593
|
-
});
|
|
594
|
-
this.name = "DeleteConflictException";
|
|
595
|
-
this.$fault = "client";
|
|
596
|
-
Object.setPrototypeOf(this, DeleteConflictException.prototype);
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
591
|
export const KeyPairFilterSensitiveLog = (obj) => ({
|
|
600
592
|
...obj,
|
|
601
593
|
...(obj.PrivateKey && { PrivateKey: SENSITIVE_STRING }),
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { IoTServiceException as __BaseException } from "./IoTServiceException";
|
|
3
|
+
export class DeleteConflictException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "DeleteConflictException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "DeleteConflictException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, DeleteConflictException.prototype);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
3
15
|
export class CertificateStateException extends __BaseException {
|
|
4
16
|
constructor(opts) {
|
|
5
17
|
super({
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListPrincipalThingsV2Command, } from "../commands/ListPrincipalThingsV2Command";
|
|
3
|
+
import { IoTClient } from "../IoTClient";
|
|
4
|
+
export const paginateListPrincipalThingsV2 = createPaginator(IoTClient, ListPrincipalThingsV2Command, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListThingPrincipalsV2Command, } from "../commands/ListThingPrincipalsV2Command";
|
|
3
|
+
import { IoTClient } from "../IoTClient";
|
|
4
|
+
export const paginateListThingPrincipalsV2 = createPaginator(IoTClient, ListThingPrincipalsV2Command, "nextToken", "nextToken", "maxResults");
|