Skip to content

Commit 005626c

Browse files
author
awstools
committed
feat(client-iot): This release allows AWS IoT Core users to enrich MQTT messages with propagating attributes, to associate a thing to a connection, and to enable Online Certificate Status Protocol (OCSP) stapling for TLS X.509 server certificates through private endpoints.
1 parent b25f0b0 commit 005626c

25 files changed

+1610
-128
lines changed

clients/client-iot/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -1650,6 +1650,14 @@ ListPrincipalThings
16501650

16511651
[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/)
16521652

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+
16531661
</details>
16541662
<details>
16551663
<summary>
@@ -1770,6 +1778,14 @@ ListThingPrincipals
17701778

17711779
[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/)
17721780

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+
17731789
</details>
17741790
<details>
17751791
<summary>
@@ -2266,6 +2282,14 @@ UpdateThingGroupsForThing
22662282

22672283
[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/)
22682284

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+
22692293
</details>
22702294
<details>
22712295
<summary>

clients/client-iot/src/IoT.ts

+66
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,11 @@ import {
857857
ListPrincipalThingsCommandInput,
858858
ListPrincipalThingsCommandOutput,
859859
} from "./commands/ListPrincipalThingsCommand";
860+
import {
861+
ListPrincipalThingsV2Command,
862+
ListPrincipalThingsV2CommandInput,
863+
ListPrincipalThingsV2CommandOutput,
864+
} from "./commands/ListPrincipalThingsV2Command";
860865
import {
861866
ListProvisioningTemplatesCommand,
862867
ListProvisioningTemplatesCommandInput,
@@ -928,6 +933,11 @@ import {
928933
ListThingPrincipalsCommandInput,
929934
ListThingPrincipalsCommandOutput,
930935
} from "./commands/ListThingPrincipalsCommand";
936+
import {
937+
ListThingPrincipalsV2Command,
938+
ListThingPrincipalsV2CommandInput,
939+
ListThingPrincipalsV2CommandOutput,
940+
} from "./commands/ListThingPrincipalsV2Command";
931941
import {
932942
ListThingRegistrationTaskReportsCommand,
933943
ListThingRegistrationTaskReportsCommandInput,
@@ -1218,6 +1228,11 @@ import {
12181228
UpdateThingGroupsForThingCommandInput,
12191229
UpdateThingGroupsForThingCommandOutput,
12201230
} from "./commands/UpdateThingGroupsForThingCommand";
1231+
import {
1232+
UpdateThingTypeCommand,
1233+
UpdateThingTypeCommandInput,
1234+
UpdateThingTypeCommandOutput,
1235+
} from "./commands/UpdateThingTypeCommand";
12211236
import {
12221237
UpdateTopicRuleDestinationCommand,
12231238
UpdateTopicRuleDestinationCommandInput,
@@ -1410,6 +1425,7 @@ const commands = {
14101425
ListPolicyVersionsCommand,
14111426
ListPrincipalPoliciesCommand,
14121427
ListPrincipalThingsCommand,
1428+
ListPrincipalThingsV2Command,
14131429
ListProvisioningTemplatesCommand,
14141430
ListProvisioningTemplateVersionsCommand,
14151431
ListRelatedResourcesForAuditFindingCommand,
@@ -1425,6 +1441,7 @@ const commands = {
14251441
ListThingGroupsCommand,
14261442
ListThingGroupsForThingCommand,
14271443
ListThingPrincipalsCommand,
1444+
ListThingPrincipalsV2Command,
14281445
ListThingRegistrationTaskReportsCommand,
14291446
ListThingRegistrationTasksCommand,
14301447
ListThingsCommand,
@@ -1487,6 +1504,7 @@ const commands = {
14871504
UpdateThingCommand,
14881505
UpdateThingGroupCommand,
14891506
UpdateThingGroupsForThingCommand,
1507+
UpdateThingTypeCommand,
14901508
UpdateTopicRuleDestinationCommand,
14911509
ValidateSecurityProfileBehaviorsCommand,
14921510
};
@@ -4364,6 +4382,23 @@ export interface IoT {
43644382
cb: (err: any, data?: ListPrincipalThingsCommandOutput) => void
43654383
): void;
43664384

4385+
/**
4386+
* @see {@link ListPrincipalThingsV2Command}
4387+
*/
4388+
listPrincipalThingsV2(
4389+
args: ListPrincipalThingsV2CommandInput,
4390+
options?: __HttpHandlerOptions
4391+
): Promise<ListPrincipalThingsV2CommandOutput>;
4392+
listPrincipalThingsV2(
4393+
args: ListPrincipalThingsV2CommandInput,
4394+
cb: (err: any, data?: ListPrincipalThingsV2CommandOutput) => void
4395+
): void;
4396+
listPrincipalThingsV2(
4397+
args: ListPrincipalThingsV2CommandInput,
4398+
options: __HttpHandlerOptions,
4399+
cb: (err: any, data?: ListPrincipalThingsV2CommandOutput) => void
4400+
): void;
4401+
43674402
/**
43684403
* @see {@link ListProvisioningTemplatesCommand}
43694404
*/
@@ -4613,6 +4648,23 @@ export interface IoT {
46134648
cb: (err: any, data?: ListThingPrincipalsCommandOutput) => void
46144649
): void;
46154650

4651+
/**
4652+
* @see {@link ListThingPrincipalsV2Command}
4653+
*/
4654+
listThingPrincipalsV2(
4655+
args: ListThingPrincipalsV2CommandInput,
4656+
options?: __HttpHandlerOptions
4657+
): Promise<ListThingPrincipalsV2CommandOutput>;
4658+
listThingPrincipalsV2(
4659+
args: ListThingPrincipalsV2CommandInput,
4660+
cb: (err: any, data?: ListThingPrincipalsV2CommandOutput) => void
4661+
): void;
4662+
listThingPrincipalsV2(
4663+
args: ListThingPrincipalsV2CommandInput,
4664+
options: __HttpHandlerOptions,
4665+
cb: (err: any, data?: ListThingPrincipalsV2CommandOutput) => void
4666+
): void;
4667+
46164668
/**
46174669
* @see {@link ListThingRegistrationTaskReportsCommand}
46184670
*/
@@ -5615,6 +5667,20 @@ export interface IoT {
56155667
cb: (err: any, data?: UpdateThingGroupsForThingCommandOutput) => void
56165668
): void;
56175669

5670+
/**
5671+
* @see {@link UpdateThingTypeCommand}
5672+
*/
5673+
updateThingType(
5674+
args: UpdateThingTypeCommandInput,
5675+
options?: __HttpHandlerOptions
5676+
): Promise<UpdateThingTypeCommandOutput>;
5677+
updateThingType(args: UpdateThingTypeCommandInput, cb: (err: any, data?: UpdateThingTypeCommandOutput) => void): void;
5678+
updateThingType(
5679+
args: UpdateThingTypeCommandInput,
5680+
options: __HttpHandlerOptions,
5681+
cb: (err: any, data?: UpdateThingTypeCommandOutput) => void
5682+
): void;
5683+
56185684
/**
56195685
* @see {@link UpdateTopicRuleDestinationCommand}
56205686
*/

clients/client-iot/src/IoTClient.ts

+15
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,10 @@ import {
532532
ListPrincipalThingsCommandInput,
533533
ListPrincipalThingsCommandOutput,
534534
} from "./commands/ListPrincipalThingsCommand";
535+
import {
536+
ListPrincipalThingsV2CommandInput,
537+
ListPrincipalThingsV2CommandOutput,
538+
} from "./commands/ListPrincipalThingsV2Command";
535539
import {
536540
ListProvisioningTemplatesCommandInput,
537541
ListProvisioningTemplatesCommandOutput,
@@ -583,6 +587,10 @@ import {
583587
ListThingPrincipalsCommandInput,
584588
ListThingPrincipalsCommandOutput,
585589
} from "./commands/ListThingPrincipalsCommand";
590+
import {
591+
ListThingPrincipalsV2CommandInput,
592+
ListThingPrincipalsV2CommandOutput,
593+
} from "./commands/ListThingPrincipalsV2Command";
586594
import {
587595
ListThingRegistrationTaskReportsCommandInput,
588596
ListThingRegistrationTaskReportsCommandOutput,
@@ -762,6 +770,7 @@ import {
762770
UpdateThingGroupsForThingCommandInput,
763771
UpdateThingGroupsForThingCommandOutput,
764772
} from "./commands/UpdateThingGroupsForThingCommand";
773+
import { UpdateThingTypeCommandInput, UpdateThingTypeCommandOutput } from "./commands/UpdateThingTypeCommand";
765774
import {
766775
UpdateTopicRuleDestinationCommandInput,
767776
UpdateTopicRuleDestinationCommandOutput,
@@ -964,6 +973,7 @@ export type ServiceInputTypes =
964973
| ListPolicyVersionsCommandInput
965974
| ListPrincipalPoliciesCommandInput
966975
| ListPrincipalThingsCommandInput
976+
| ListPrincipalThingsV2CommandInput
967977
| ListProvisioningTemplateVersionsCommandInput
968978
| ListProvisioningTemplatesCommandInput
969979
| ListRelatedResourcesForAuditFindingCommandInput
@@ -979,6 +989,7 @@ export type ServiceInputTypes =
979989
| ListThingGroupsCommandInput
980990
| ListThingGroupsForThingCommandInput
981991
| ListThingPrincipalsCommandInput
992+
| ListThingPrincipalsV2CommandInput
982993
| ListThingRegistrationTaskReportsCommandInput
983994
| ListThingRegistrationTasksCommandInput
984995
| ListThingTypesCommandInput
@@ -1041,6 +1052,7 @@ export type ServiceInputTypes =
10411052
| UpdateThingCommandInput
10421053
| UpdateThingGroupCommandInput
10431054
| UpdateThingGroupsForThingCommandInput
1055+
| UpdateThingTypeCommandInput
10441056
| UpdateTopicRuleDestinationCommandInput
10451057
| ValidateSecurityProfileBehaviorsCommandInput;
10461058

@@ -1227,6 +1239,7 @@ export type ServiceOutputTypes =
12271239
| ListPolicyVersionsCommandOutput
12281240
| ListPrincipalPoliciesCommandOutput
12291241
| ListPrincipalThingsCommandOutput
1242+
| ListPrincipalThingsV2CommandOutput
12301243
| ListProvisioningTemplateVersionsCommandOutput
12311244
| ListProvisioningTemplatesCommandOutput
12321245
| ListRelatedResourcesForAuditFindingCommandOutput
@@ -1242,6 +1255,7 @@ export type ServiceOutputTypes =
12421255
| ListThingGroupsCommandOutput
12431256
| ListThingGroupsForThingCommandOutput
12441257
| ListThingPrincipalsCommandOutput
1258+
| ListThingPrincipalsV2CommandOutput
12451259
| ListThingRegistrationTaskReportsCommandOutput
12461260
| ListThingRegistrationTasksCommandOutput
12471261
| ListThingTypesCommandOutput
@@ -1304,6 +1318,7 @@ export type ServiceOutputTypes =
13041318
| UpdateThingCommandOutput
13051319
| UpdateThingGroupCommandOutput
13061320
| UpdateThingGroupsForThingCommandOutput
1321+
| UpdateThingTypeCommandOutput
13071322
| UpdateTopicRuleDestinationCommandOutput
13081323
| ValidateSecurityProfileBehaviorsCommandOutput;
13091324

clients/client-iot/src/commands/AttachThingPrincipalCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export interface AttachThingPrincipalCommandOutput extends AttachThingPrincipalR
4040
* const input = { // AttachThingPrincipalRequest
4141
* thingName: "STRING_VALUE", // required
4242
* principal: "STRING_VALUE", // required
43+
* thingPrincipalType: "EXCLUSIVE_THING" || "NON_EXCLUSIVE_THING",
4344
* };
4445
* const command = new AttachThingPrincipalCommand(input);
4546
* const response = await client.send(command);

clients/client-iot/src/commands/CreateDomainConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export interface CreateDomainConfigurationCommandOutput extends CreateDomainConf
5959
* },
6060
* serverCertificateConfig: { // ServerCertificateConfig
6161
* enableOCSPCheck: true || false,
62+
* ocspLambdaArn: "STRING_VALUE",
63+
* ocspAuthorizedResponderArn: "STRING_VALUE",
6264
* },
6365
* authenticationType: "CUSTOM_AUTH_X509" || "CUSTOM_AUTH" || "AWS_X509" || "AWS_SIGV4" || "DEFAULT",
6466
* applicationProtocol: "SECURE_MQTT" || "MQTT_WSS" || "HTTPS" || "DEFAULT",

clients/client-iot/src/commands/CreateThingTypeCommand.ts

+9
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ export interface CreateThingTypeCommandOutput extends CreateThingTypeResponse, _
4646
* searchableAttributes: [ // SearchableAttributes
4747
* "STRING_VALUE",
4848
* ],
49+
* mqtt5Configuration: { // Mqtt5Configuration
50+
* propagatingAttributes: [ // PropagatingAttributeList
51+
* { // PropagatingAttribute
52+
* userPropertyKey: "STRING_VALUE",
53+
* thingAttribute: "STRING_VALUE",
54+
* connectionAttribute: "STRING_VALUE",
55+
* },
56+
* ],
57+
* },
4958
* },
5059
* tags: [ // TagList
5160
* { // Tag

clients/client-iot/src/commands/DeleteAuthorizerCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
9-
import { DeleteAuthorizerRequest, DeleteAuthorizerResponse } from "../models/models_0";
9+
import { DeleteAuthorizerRequest, DeleteAuthorizerResponse } from "../models/models_1";
1010
import { de_DeleteAuthorizerCommand, se_DeleteAuthorizerCommand } from "../protocols/Aws_restJson1";
1111

1212
/**

clients/client-iot/src/commands/DescribeDomainConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export interface DescribeDomainConfigurationCommandOutput
7070
* // },
7171
* // serverCertificateConfig: { // ServerCertificateConfig
7272
* // enableOCSPCheck: true || false,
73+
* // ocspLambdaArn: "STRING_VALUE",
74+
* // ocspAuthorizedResponderArn: "STRING_VALUE",
7375
* // },
7476
* // authenticationType: "CUSTOM_AUTH_X509" || "CUSTOM_AUTH" || "AWS_X509" || "AWS_SIGV4" || "DEFAULT",
7577
* // applicationProtocol: "SECURE_MQTT" || "MQTT_WSS" || "HTTPS" || "DEFAULT",

clients/client-iot/src/commands/DescribeThingTypeCommand.ts

+9
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ export interface DescribeThingTypeCommandOutput extends DescribeThingTypeRespons
5050
* // searchableAttributes: [ // SearchableAttributes
5151
* // "STRING_VALUE",
5252
* // ],
53+
* // mqtt5Configuration: { // Mqtt5Configuration
54+
* // propagatingAttributes: [ // PropagatingAttributeList
55+
* // { // PropagatingAttribute
56+
* // userPropertyKey: "STRING_VALUE",
57+
* // thingAttribute: "STRING_VALUE",
58+
* // connectionAttribute: "STRING_VALUE",
59+
* // },
60+
* // ],
61+
* // },
5362
* // },
5463
* // thingTypeMetadata: { // ThingTypeMetadata
5564
* // deprecated: true || false,

clients/client-iot/src/commands/ListJobTemplatesCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
9-
import { ListJobTemplatesRequest, ListJobTemplatesResponse } from "../models/models_1";
9+
import { ListJobTemplatesRequest } from "../models/models_1";
10+
import { ListJobTemplatesResponse } from "../models/models_2";
1011
import { de_ListJobTemplatesCommand, se_ListJobTemplatesCommand } from "../protocols/Aws_restJson1";
1112

1213
/**

clients/client-iot/src/commands/ListManagedJobTemplatesCommand.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
9-
import { ListManagedJobTemplatesRequest } from "../models/models_1";
10-
import { ListManagedJobTemplatesResponse } from "../models/models_2";
9+
import { ListManagedJobTemplatesRequest, ListManagedJobTemplatesResponse } from "../models/models_2";
1110
import { de_ListManagedJobTemplatesCommand, se_ListManagedJobTemplatesCommand } from "../protocols/Aws_restJson1";
1211

1312
/**

0 commit comments

Comments
 (0)