Skip to content

Commit e47c526

Browse files
author
awstools
committed
feat(client-iot): General Availability (GA) release of AWS IoT Device Management - Commands, to trigger light-weight remote actions on targeted devices
1 parent 5d2c0b1 commit e47c526

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+5531
-1204
lines changed

Diff for: clients/client-iot/README.md

+64
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,14 @@ CreateCertificateProvider
394394

395395
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/CreateCertificateProviderCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/CreateCertificateProviderCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/CreateCertificateProviderCommandOutput/)
396396

397+
</details>
398+
<details>
399+
<summary>
400+
CreateCommand
401+
</summary>
402+
403+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/CreateCommandCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/CreateCommandCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/CreateCommandCommandOutput/)
404+
397405
</details>
398406
<details>
399407
<summary>
@@ -658,6 +666,22 @@ DeleteCertificateProvider
658666

659667
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/DeleteCertificateProviderCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/DeleteCertificateProviderCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/DeleteCertificateProviderCommandOutput/)
660668

669+
</details>
670+
<details>
671+
<summary>
672+
DeleteCommand
673+
</summary>
674+
675+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/DeleteCommandCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/DeleteCommandCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/DeleteCommandCommandOutput/)
676+
677+
</details>
678+
<details>
679+
<summary>
680+
DeleteCommandExecution
681+
</summary>
682+
683+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/DeleteCommandExecutionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/DeleteCommandExecutionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/DeleteCommandExecutionCommandOutput/)
684+
661685
</details>
662686
<details>
663687
<summary>
@@ -1234,6 +1258,22 @@ GetCardinality
12341258

12351259
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/GetCardinalityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/GetCardinalityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/GetCardinalityCommandOutput/)
12361260

1261+
</details>
1262+
<details>
1263+
<summary>
1264+
GetCommand
1265+
</summary>
1266+
1267+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/GetCommandCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/GetCommandCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/GetCommandCommandOutput/)
1268+
1269+
</details>
1270+
<details>
1271+
<summary>
1272+
GetCommandExecution
1273+
</summary>
1274+
1275+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/GetCommandExecutionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/GetCommandExecutionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/GetCommandExecutionCommandOutput/)
1276+
12371277
</details>
12381278
<details>
12391279
<summary>
@@ -1466,6 +1506,22 @@ ListCertificatesByCA
14661506

14671507
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/ListCertificatesByCACommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListCertificatesByCACommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListCertificatesByCACommandOutput/)
14681508

1509+
</details>
1510+
<details>
1511+
<summary>
1512+
ListCommandExecutions
1513+
</summary>
1514+
1515+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/ListCommandExecutionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListCommandExecutionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListCommandExecutionsCommandOutput/)
1516+
1517+
</details>
1518+
<details>
1519+
<summary>
1520+
ListCommands
1521+
</summary>
1522+
1523+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/ListCommandsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListCommandsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/ListCommandsCommandOutput/)
1524+
14691525
</details>
14701526
<details>
14711527
<summary>
@@ -2122,6 +2178,14 @@ UpdateCertificateProvider
21222178

21232179
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/UpdateCertificateProviderCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/UpdateCertificateProviderCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/UpdateCertificateProviderCommandOutput/)
21242180

2181+
</details>
2182+
<details>
2183+
<summary>
2184+
UpdateCommand
2185+
</summary>
2186+
2187+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot/command/UpdateCommandCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/UpdateCommandCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot/Interface/UpdateCommandCommandOutput/)
2188+
21252189
</details>
21262190
<details>
21272191
<summary>

Diff for: clients/client-iot/src/IoT.ts

+152
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ import {
108108
CreateCertificateProviderCommandInput,
109109
CreateCertificateProviderCommandOutput,
110110
} from "./commands/CreateCertificateProviderCommand";
111+
import {
112+
CreateCommandCommand,
113+
CreateCommandCommandInput,
114+
CreateCommandCommandOutput,
115+
} from "./commands/CreateCommandCommand";
111116
import {
112117
CreateCustomMetricCommand,
113118
CreateCustomMetricCommandInput,
@@ -265,6 +270,16 @@ import {
265270
DeleteCertificateProviderCommandInput,
266271
DeleteCertificateProviderCommandOutput,
267272
} from "./commands/DeleteCertificateProviderCommand";
273+
import {
274+
DeleteCommandCommand,
275+
DeleteCommandCommandInput,
276+
DeleteCommandCommandOutput,
277+
} from "./commands/DeleteCommandCommand";
278+
import {
279+
DeleteCommandExecutionCommand,
280+
DeleteCommandExecutionCommandInput,
281+
DeleteCommandExecutionCommandOutput,
282+
} from "./commands/DeleteCommandExecutionCommand";
268283
import {
269284
DeleteCustomMetricCommand,
270285
DeleteCustomMetricCommandInput,
@@ -613,6 +628,12 @@ import {
613628
GetCardinalityCommandInput,
614629
GetCardinalityCommandOutput,
615630
} from "./commands/GetCardinalityCommand";
631+
import { GetCommandCommand, GetCommandCommandInput, GetCommandCommandOutput } from "./commands/GetCommandCommand";
632+
import {
633+
GetCommandExecutionCommand,
634+
GetCommandExecutionCommandInput,
635+
GetCommandExecutionCommandOutput,
636+
} from "./commands/GetCommandExecutionCommand";
616637
import {
617638
GetEffectivePoliciesCommand,
618639
GetEffectivePoliciesCommandInput,
@@ -750,6 +771,16 @@ import {
750771
ListCertificatesCommandInput,
751772
ListCertificatesCommandOutput,
752773
} from "./commands/ListCertificatesCommand";
774+
import {
775+
ListCommandExecutionsCommand,
776+
ListCommandExecutionsCommandInput,
777+
ListCommandExecutionsCommandOutput,
778+
} from "./commands/ListCommandExecutionsCommand";
779+
import {
780+
ListCommandsCommand,
781+
ListCommandsCommandInput,
782+
ListCommandsCommandOutput,
783+
} from "./commands/ListCommandsCommand";
753784
import {
754785
ListCustomMetricsCommand,
755786
ListCustomMetricsCommandInput,
@@ -1136,6 +1167,11 @@ import {
11361167
UpdateCertificateProviderCommandInput,
11371168
UpdateCertificateProviderCommandOutput,
11381169
} from "./commands/UpdateCertificateProviderCommand";
1170+
import {
1171+
UpdateCommandCommand,
1172+
UpdateCommandCommandInput,
1173+
UpdateCommandCommandOutput,
1174+
} from "./commands/UpdateCommandCommand";
11391175
import {
11401176
UpdateCustomMetricCommand,
11411177
UpdateCustomMetricCommandInput,
@@ -1268,6 +1304,7 @@ const commands = {
12681304
CreateBillingGroupCommand,
12691305
CreateCertificateFromCsrCommand,
12701306
CreateCertificateProviderCommand,
1307+
CreateCommandCommand,
12711308
CreateCustomMetricCommand,
12721309
CreateDimensionCommand,
12731310
CreateDomainConfigurationCommand,
@@ -1301,6 +1338,8 @@ const commands = {
13011338
DeleteCACertificateCommand,
13021339
DeleteCertificateCommand,
13031340
DeleteCertificateProviderCommand,
1341+
DeleteCommandCommand,
1342+
DeleteCommandExecutionCommand,
13041343
DeleteCustomMetricCommand,
13051344
DeleteDimensionCommand,
13061345
DeleteDomainConfigurationCommand,
@@ -1373,6 +1412,8 @@ const commands = {
13731412
GetBehaviorModelTrainingSummariesCommand,
13741413
GetBucketsAggregationCommand,
13751414
GetCardinalityCommand,
1415+
GetCommandCommand,
1416+
GetCommandExecutionCommand,
13761417
GetEffectivePoliciesCommand,
13771418
GetIndexingConfigurationCommand,
13781419
GetJobDocumentCommand,
@@ -1402,6 +1443,8 @@ const commands = {
14021443
ListCertificateProvidersCommand,
14031444
ListCertificatesCommand,
14041445
ListCertificatesByCACommand,
1446+
ListCommandExecutionsCommand,
1447+
ListCommandsCommand,
14051448
ListCustomMetricsCommand,
14061449
ListDetectMitigationActionsExecutionsCommand,
14071450
ListDetectMitigationActionsTasksCommand,
@@ -1484,6 +1527,7 @@ const commands = {
14841527
UpdateCACertificateCommand,
14851528
UpdateCertificateCommand,
14861529
UpdateCertificateProviderCommand,
1530+
UpdateCommandCommand,
14871531
UpdateCustomMetricCommand,
14881532
UpdateDimensionCommand,
14891533
UpdateDomainConfigurationCommand,
@@ -1872,6 +1916,17 @@ export interface IoT {
18721916
cb: (err: any, data?: CreateCertificateProviderCommandOutput) => void
18731917
): void;
18741918

1919+
/**
1920+
* @see {@link CreateCommandCommand}
1921+
*/
1922+
createCommand(args: CreateCommandCommandInput, options?: __HttpHandlerOptions): Promise<CreateCommandCommandOutput>;
1923+
createCommand(args: CreateCommandCommandInput, cb: (err: any, data?: CreateCommandCommandOutput) => void): void;
1924+
createCommand(
1925+
args: CreateCommandCommandInput,
1926+
options: __HttpHandlerOptions,
1927+
cb: (err: any, data?: CreateCommandCommandOutput) => void
1928+
): void;
1929+
18751930
/**
18761931
* @see {@link CreateCustomMetricCommand}
18771932
*/
@@ -2390,6 +2445,34 @@ export interface IoT {
23902445
cb: (err: any, data?: DeleteCertificateProviderCommandOutput) => void
23912446
): void;
23922447

2448+
/**
2449+
* @see {@link DeleteCommandCommand}
2450+
*/
2451+
deleteCommand(args: DeleteCommandCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCommandCommandOutput>;
2452+
deleteCommand(args: DeleteCommandCommandInput, cb: (err: any, data?: DeleteCommandCommandOutput) => void): void;
2453+
deleteCommand(
2454+
args: DeleteCommandCommandInput,
2455+
options: __HttpHandlerOptions,
2456+
cb: (err: any, data?: DeleteCommandCommandOutput) => void
2457+
): void;
2458+
2459+
/**
2460+
* @see {@link DeleteCommandExecutionCommand}
2461+
*/
2462+
deleteCommandExecution(
2463+
args: DeleteCommandExecutionCommandInput,
2464+
options?: __HttpHandlerOptions
2465+
): Promise<DeleteCommandExecutionCommandOutput>;
2466+
deleteCommandExecution(
2467+
args: DeleteCommandExecutionCommandInput,
2468+
cb: (err: any, data?: DeleteCommandExecutionCommandOutput) => void
2469+
): void;
2470+
deleteCommandExecution(
2471+
args: DeleteCommandExecutionCommandInput,
2472+
options: __HttpHandlerOptions,
2473+
cb: (err: any, data?: DeleteCommandExecutionCommandOutput) => void
2474+
): void;
2475+
23932476
/**
23942477
* @see {@link DeleteCustomMetricCommand}
23952478
*/
@@ -3542,6 +3625,34 @@ export interface IoT {
35423625
cb: (err: any, data?: GetCardinalityCommandOutput) => void
35433626
): void;
35443627

3628+
/**
3629+
* @see {@link GetCommandCommand}
3630+
*/
3631+
getCommand(args: GetCommandCommandInput, options?: __HttpHandlerOptions): Promise<GetCommandCommandOutput>;
3632+
getCommand(args: GetCommandCommandInput, cb: (err: any, data?: GetCommandCommandOutput) => void): void;
3633+
getCommand(
3634+
args: GetCommandCommandInput,
3635+
options: __HttpHandlerOptions,
3636+
cb: (err: any, data?: GetCommandCommandOutput) => void
3637+
): void;
3638+
3639+
/**
3640+
* @see {@link GetCommandExecutionCommand}
3641+
*/
3642+
getCommandExecution(
3643+
args: GetCommandExecutionCommandInput,
3644+
options?: __HttpHandlerOptions
3645+
): Promise<GetCommandExecutionCommandOutput>;
3646+
getCommandExecution(
3647+
args: GetCommandExecutionCommandInput,
3648+
cb: (err: any, data?: GetCommandExecutionCommandOutput) => void
3649+
): void;
3650+
getCommandExecution(
3651+
args: GetCommandExecutionCommandInput,
3652+
options: __HttpHandlerOptions,
3653+
cb: (err: any, data?: GetCommandExecutionCommandOutput) => void
3654+
): void;
3655+
35453656
/**
35463657
* @see {@link GetEffectivePoliciesCommand}
35473658
*/
@@ -4007,6 +4118,36 @@ export interface IoT {
40074118
cb: (err: any, data?: ListCertificatesByCACommandOutput) => void
40084119
): void;
40094120

4121+
/**
4122+
* @see {@link ListCommandExecutionsCommand}
4123+
*/
4124+
listCommandExecutions(): Promise<ListCommandExecutionsCommandOutput>;
4125+
listCommandExecutions(
4126+
args: ListCommandExecutionsCommandInput,
4127+
options?: __HttpHandlerOptions
4128+
): Promise<ListCommandExecutionsCommandOutput>;
4129+
listCommandExecutions(
4130+
args: ListCommandExecutionsCommandInput,
4131+
cb: (err: any, data?: ListCommandExecutionsCommandOutput) => void
4132+
): void;
4133+
listCommandExecutions(
4134+
args: ListCommandExecutionsCommandInput,
4135+
options: __HttpHandlerOptions,
4136+
cb: (err: any, data?: ListCommandExecutionsCommandOutput) => void
4137+
): void;
4138+
4139+
/**
4140+
* @see {@link ListCommandsCommand}
4141+
*/
4142+
listCommands(): Promise<ListCommandsCommandOutput>;
4143+
listCommands(args: ListCommandsCommandInput, options?: __HttpHandlerOptions): Promise<ListCommandsCommandOutput>;
4144+
listCommands(args: ListCommandsCommandInput, cb: (err: any, data?: ListCommandsCommandOutput) => void): void;
4145+
listCommands(
4146+
args: ListCommandsCommandInput,
4147+
options: __HttpHandlerOptions,
4148+
cb: (err: any, data?: ListCommandsCommandOutput) => void
4149+
): void;
4150+
40104151
/**
40114152
* @see {@link ListCustomMetricsCommand}
40124153
*/
@@ -5353,6 +5494,17 @@ export interface IoT {
53535494
cb: (err: any, data?: UpdateCertificateProviderCommandOutput) => void
53545495
): void;
53555496

5497+
/**
5498+
* @see {@link UpdateCommandCommand}
5499+
*/
5500+
updateCommand(args: UpdateCommandCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCommandCommandOutput>;
5501+
updateCommand(args: UpdateCommandCommandInput, cb: (err: any, data?: UpdateCommandCommandOutput) => void): void;
5502+
updateCommand(
5503+
args: UpdateCommandCommandInput,
5504+
options: __HttpHandlerOptions,
5505+
cb: (err: any, data?: UpdateCommandCommandOutput) => void
5506+
): void;
5507+
53565508
/**
53575509
* @see {@link UpdateCustomMetricCommand}
53585510
*/

0 commit comments

Comments
 (0)