Skip to content

Commit

Permalink
feat(client-iot): This release allows AWS IoT Core users to enrich MQ…
Browse files Browse the repository at this point in the history
…TT 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.
  • Loading branch information
awstools committed Nov 15, 2024
1 parent b25f0b0 commit 005626c
Show file tree
Hide file tree
Showing 25 changed files with 1,610 additions and 128 deletions.
24 changes: 24 additions & 0 deletions clients/client-iot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,14 @@ ListPrincipalThings

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

</details>
<details>
<summary>
ListPrincipalThingsV2
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -1770,6 +1778,14 @@ ListThingPrincipals

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

</details>
<details>
<summary>
ListThingPrincipalsV2
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -2266,6 +2282,14 @@ UpdateThingGroupsForThing

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

</details>
<details>
<summary>
UpdateThingType
</summary>

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

</details>
<details>
<summary>
Expand Down
66 changes: 66 additions & 0 deletions clients/client-iot/src/IoT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,11 @@ import {
ListPrincipalThingsCommandInput,
ListPrincipalThingsCommandOutput,
} from "./commands/ListPrincipalThingsCommand";
import {
ListPrincipalThingsV2Command,
ListPrincipalThingsV2CommandInput,
ListPrincipalThingsV2CommandOutput,
} from "./commands/ListPrincipalThingsV2Command";
import {
ListProvisioningTemplatesCommand,
ListProvisioningTemplatesCommandInput,
Expand Down Expand Up @@ -928,6 +933,11 @@ import {
ListThingPrincipalsCommandInput,
ListThingPrincipalsCommandOutput,
} from "./commands/ListThingPrincipalsCommand";
import {
ListThingPrincipalsV2Command,
ListThingPrincipalsV2CommandInput,
ListThingPrincipalsV2CommandOutput,
} from "./commands/ListThingPrincipalsV2Command";
import {
ListThingRegistrationTaskReportsCommand,
ListThingRegistrationTaskReportsCommandInput,
Expand Down Expand Up @@ -1218,6 +1228,11 @@ import {
UpdateThingGroupsForThingCommandInput,
UpdateThingGroupsForThingCommandOutput,
} from "./commands/UpdateThingGroupsForThingCommand";
import {
UpdateThingTypeCommand,
UpdateThingTypeCommandInput,
UpdateThingTypeCommandOutput,
} from "./commands/UpdateThingTypeCommand";
import {
UpdateTopicRuleDestinationCommand,
UpdateTopicRuleDestinationCommandInput,
Expand Down Expand Up @@ -1410,6 +1425,7 @@ const commands = {
ListPolicyVersionsCommand,
ListPrincipalPoliciesCommand,
ListPrincipalThingsCommand,
ListPrincipalThingsV2Command,
ListProvisioningTemplatesCommand,
ListProvisioningTemplateVersionsCommand,
ListRelatedResourcesForAuditFindingCommand,
Expand All @@ -1425,6 +1441,7 @@ const commands = {
ListThingGroupsCommand,
ListThingGroupsForThingCommand,
ListThingPrincipalsCommand,
ListThingPrincipalsV2Command,
ListThingRegistrationTaskReportsCommand,
ListThingRegistrationTasksCommand,
ListThingsCommand,
Expand Down Expand Up @@ -1487,6 +1504,7 @@ const commands = {
UpdateThingCommand,
UpdateThingGroupCommand,
UpdateThingGroupsForThingCommand,
UpdateThingTypeCommand,
UpdateTopicRuleDestinationCommand,
ValidateSecurityProfileBehaviorsCommand,
};
Expand Down Expand Up @@ -4364,6 +4382,23 @@ export interface IoT {
cb: (err: any, data?: ListPrincipalThingsCommandOutput) => void
): void;

/**
* @see {@link ListPrincipalThingsV2Command}
*/
listPrincipalThingsV2(
args: ListPrincipalThingsV2CommandInput,
options?: __HttpHandlerOptions
): Promise<ListPrincipalThingsV2CommandOutput>;
listPrincipalThingsV2(
args: ListPrincipalThingsV2CommandInput,
cb: (err: any, data?: ListPrincipalThingsV2CommandOutput) => void
): void;
listPrincipalThingsV2(
args: ListPrincipalThingsV2CommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListPrincipalThingsV2CommandOutput) => void
): void;

/**
* @see {@link ListProvisioningTemplatesCommand}
*/
Expand Down Expand Up @@ -4613,6 +4648,23 @@ export interface IoT {
cb: (err: any, data?: ListThingPrincipalsCommandOutput) => void
): void;

/**
* @see {@link ListThingPrincipalsV2Command}
*/
listThingPrincipalsV2(
args: ListThingPrincipalsV2CommandInput,
options?: __HttpHandlerOptions
): Promise<ListThingPrincipalsV2CommandOutput>;
listThingPrincipalsV2(
args: ListThingPrincipalsV2CommandInput,
cb: (err: any, data?: ListThingPrincipalsV2CommandOutput) => void
): void;
listThingPrincipalsV2(
args: ListThingPrincipalsV2CommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListThingPrincipalsV2CommandOutput) => void
): void;

/**
* @see {@link ListThingRegistrationTaskReportsCommand}
*/
Expand Down Expand Up @@ -5615,6 +5667,20 @@ export interface IoT {
cb: (err: any, data?: UpdateThingGroupsForThingCommandOutput) => void
): void;

/**
* @see {@link UpdateThingTypeCommand}
*/
updateThingType(
args: UpdateThingTypeCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateThingTypeCommandOutput>;
updateThingType(args: UpdateThingTypeCommandInput, cb: (err: any, data?: UpdateThingTypeCommandOutput) => void): void;
updateThingType(
args: UpdateThingTypeCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateThingTypeCommandOutput) => void
): void;

/**
* @see {@link UpdateTopicRuleDestinationCommand}
*/
Expand Down
15 changes: 15 additions & 0 deletions clients/client-iot/src/IoTClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,10 @@ import {
ListPrincipalThingsCommandInput,
ListPrincipalThingsCommandOutput,
} from "./commands/ListPrincipalThingsCommand";
import {
ListPrincipalThingsV2CommandInput,
ListPrincipalThingsV2CommandOutput,
} from "./commands/ListPrincipalThingsV2Command";
import {
ListProvisioningTemplatesCommandInput,
ListProvisioningTemplatesCommandOutput,
Expand Down Expand Up @@ -583,6 +587,10 @@ import {
ListThingPrincipalsCommandInput,
ListThingPrincipalsCommandOutput,
} from "./commands/ListThingPrincipalsCommand";
import {
ListThingPrincipalsV2CommandInput,
ListThingPrincipalsV2CommandOutput,
} from "./commands/ListThingPrincipalsV2Command";
import {
ListThingRegistrationTaskReportsCommandInput,
ListThingRegistrationTaskReportsCommandOutput,
Expand Down Expand Up @@ -762,6 +770,7 @@ import {
UpdateThingGroupsForThingCommandInput,
UpdateThingGroupsForThingCommandOutput,
} from "./commands/UpdateThingGroupsForThingCommand";
import { UpdateThingTypeCommandInput, UpdateThingTypeCommandOutput } from "./commands/UpdateThingTypeCommand";
import {
UpdateTopicRuleDestinationCommandInput,
UpdateTopicRuleDestinationCommandOutput,
Expand Down Expand Up @@ -964,6 +973,7 @@ export type ServiceInputTypes =
| ListPolicyVersionsCommandInput
| ListPrincipalPoliciesCommandInput
| ListPrincipalThingsCommandInput
| ListPrincipalThingsV2CommandInput
| ListProvisioningTemplateVersionsCommandInput
| ListProvisioningTemplatesCommandInput
| ListRelatedResourcesForAuditFindingCommandInput
Expand All @@ -979,6 +989,7 @@ export type ServiceInputTypes =
| ListThingGroupsCommandInput
| ListThingGroupsForThingCommandInput
| ListThingPrincipalsCommandInput
| ListThingPrincipalsV2CommandInput
| ListThingRegistrationTaskReportsCommandInput
| ListThingRegistrationTasksCommandInput
| ListThingTypesCommandInput
Expand Down Expand Up @@ -1041,6 +1052,7 @@ export type ServiceInputTypes =
| UpdateThingCommandInput
| UpdateThingGroupCommandInput
| UpdateThingGroupsForThingCommandInput
| UpdateThingTypeCommandInput
| UpdateTopicRuleDestinationCommandInput
| ValidateSecurityProfileBehaviorsCommandInput;

Expand Down Expand Up @@ -1227,6 +1239,7 @@ export type ServiceOutputTypes =
| ListPolicyVersionsCommandOutput
| ListPrincipalPoliciesCommandOutput
| ListPrincipalThingsCommandOutput
| ListPrincipalThingsV2CommandOutput
| ListProvisioningTemplateVersionsCommandOutput
| ListProvisioningTemplatesCommandOutput
| ListRelatedResourcesForAuditFindingCommandOutput
Expand All @@ -1242,6 +1255,7 @@ export type ServiceOutputTypes =
| ListThingGroupsCommandOutput
| ListThingGroupsForThingCommandOutput
| ListThingPrincipalsCommandOutput
| ListThingPrincipalsV2CommandOutput
| ListThingRegistrationTaskReportsCommandOutput
| ListThingRegistrationTasksCommandOutput
| ListThingTypesCommandOutput
Expand Down Expand Up @@ -1304,6 +1318,7 @@ export type ServiceOutputTypes =
| UpdateThingCommandOutput
| UpdateThingGroupCommandOutput
| UpdateThingGroupsForThingCommandOutput
| UpdateThingTypeCommandOutput
| UpdateTopicRuleDestinationCommandOutput
| ValidateSecurityProfileBehaviorsCommandOutput;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface AttachThingPrincipalCommandOutput extends AttachThingPrincipalR
* const input = { // AttachThingPrincipalRequest
* thingName: "STRING_VALUE", // required
* principal: "STRING_VALUE", // required
* thingPrincipalType: "EXCLUSIVE_THING" || "NON_EXCLUSIVE_THING",
* };
* const command = new AttachThingPrincipalCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export interface CreateDomainConfigurationCommandOutput extends CreateDomainConf
* },
* serverCertificateConfig: { // ServerCertificateConfig
* enableOCSPCheck: true || false,
* ocspLambdaArn: "STRING_VALUE",
* ocspAuthorizedResponderArn: "STRING_VALUE",
* },
* authenticationType: "CUSTOM_AUTH_X509" || "CUSTOM_AUTH" || "AWS_X509" || "AWS_SIGV4" || "DEFAULT",
* applicationProtocol: "SECURE_MQTT" || "MQTT_WSS" || "HTTPS" || "DEFAULT",
Expand Down
9 changes: 9 additions & 0 deletions clients/client-iot/src/commands/CreateThingTypeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ export interface CreateThingTypeCommandOutput extends CreateThingTypeResponse, _
* searchableAttributes: [ // SearchableAttributes
* "STRING_VALUE",
* ],
* mqtt5Configuration: { // Mqtt5Configuration
* propagatingAttributes: [ // PropagatingAttributeList
* { // PropagatingAttribute
* userPropertyKey: "STRING_VALUE",
* thingAttribute: "STRING_VALUE",
* connectionAttribute: "STRING_VALUE",
* },
* ],
* },
* },
* tags: [ // TagList
* { // Tag
Expand Down
2 changes: 1 addition & 1 deletion clients/client-iot/src/commands/DeleteAuthorizerCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
import { DeleteAuthorizerRequest, DeleteAuthorizerResponse } from "../models/models_0";
import { DeleteAuthorizerRequest, DeleteAuthorizerResponse } from "../models/models_1";
import { de_DeleteAuthorizerCommand, se_DeleteAuthorizerCommand } from "../protocols/Aws_restJson1";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export interface DescribeDomainConfigurationCommandOutput
* // },
* // serverCertificateConfig: { // ServerCertificateConfig
* // enableOCSPCheck: true || false,
* // ocspLambdaArn: "STRING_VALUE",
* // ocspAuthorizedResponderArn: "STRING_VALUE",
* // },
* // authenticationType: "CUSTOM_AUTH_X509" || "CUSTOM_AUTH" || "AWS_X509" || "AWS_SIGV4" || "DEFAULT",
* // applicationProtocol: "SECURE_MQTT" || "MQTT_WSS" || "HTTPS" || "DEFAULT",
Expand Down
9 changes: 9 additions & 0 deletions clients/client-iot/src/commands/DescribeThingTypeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ export interface DescribeThingTypeCommandOutput extends DescribeThingTypeRespons
* // searchableAttributes: [ // SearchableAttributes
* // "STRING_VALUE",
* // ],
* // mqtt5Configuration: { // Mqtt5Configuration
* // propagatingAttributes: [ // PropagatingAttributeList
* // { // PropagatingAttribute
* // userPropertyKey: "STRING_VALUE",
* // thingAttribute: "STRING_VALUE",
* // connectionAttribute: "STRING_VALUE",
* // },
* // ],
* // },
* // },
* // thingTypeMetadata: { // ThingTypeMetadata
* // deprecated: true || false,
Expand Down
3 changes: 2 additions & 1 deletion clients/client-iot/src/commands/ListJobTemplatesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
import { ListJobTemplatesRequest, ListJobTemplatesResponse } from "../models/models_1";
import { ListJobTemplatesRequest } from "../models/models_1";
import { ListJobTemplatesResponse } from "../models/models_2";
import { de_ListJobTemplatesCommand, se_ListJobTemplatesCommand } from "../protocols/Aws_restJson1";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
import { ListManagedJobTemplatesRequest } from "../models/models_1";
import { ListManagedJobTemplatesResponse } from "../models/models_2";
import { ListManagedJobTemplatesRequest, ListManagedJobTemplatesResponse } from "../models/models_2";
import { de_ListManagedJobTemplatesCommand, se_ListManagedJobTemplatesCommand } from "../protocols/Aws_restJson1";

/**
Expand Down
Loading

0 comments on commit 005626c

Please sign in to comment.