Skip to content

Commit 12fb21d

Browse files
author
awstools
committed
feat(client-iot-wireless): Add list support for event configurations, allow to get and update event configurations by resource type, support LoRaWAN events; Make NetworkAnalyzerConfiguration as a resource, add List, Create, Delete API support; Add FCntStart attribute support for ABP WirelessDevice.
1 parent a13c9a0 commit 12fb21d

18 files changed

+3655
-172
lines changed

clients/client-iot-wireless/src/IoTWireless.ts

+228-4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ import {
6060
CreateMulticastGroupCommandInput,
6161
CreateMulticastGroupCommandOutput,
6262
} from "./commands/CreateMulticastGroupCommand";
63+
import {
64+
CreateNetworkAnalyzerConfigurationCommand,
65+
CreateNetworkAnalyzerConfigurationCommandInput,
66+
CreateNetworkAnalyzerConfigurationCommandOutput,
67+
} from "./commands/CreateNetworkAnalyzerConfigurationCommand";
6368
import {
6469
CreateServiceProfileCommand,
6570
CreateServiceProfileCommandInput,
@@ -105,6 +110,11 @@ import {
105110
DeleteMulticastGroupCommandInput,
106111
DeleteMulticastGroupCommandOutput,
107112
} from "./commands/DeleteMulticastGroupCommand";
113+
import {
114+
DeleteNetworkAnalyzerConfigurationCommand,
115+
DeleteNetworkAnalyzerConfigurationCommandInput,
116+
DeleteNetworkAnalyzerConfigurationCommandOutput,
117+
} from "./commands/DeleteNetworkAnalyzerConfigurationCommand";
108118
import {
109119
DeleteQueuedMessagesCommand,
110120
DeleteQueuedMessagesCommandInput,
@@ -180,6 +190,11 @@ import {
180190
GetDeviceProfileCommandInput,
181191
GetDeviceProfileCommandOutput,
182192
} from "./commands/GetDeviceProfileCommand";
193+
import {
194+
GetEventConfigurationByResourceTypesCommand,
195+
GetEventConfigurationByResourceTypesCommandInput,
196+
GetEventConfigurationByResourceTypesCommandOutput,
197+
} from "./commands/GetEventConfigurationByResourceTypesCommand";
183198
import {
184199
GetFuotaTaskCommand,
185200
GetFuotaTaskCommandInput,
@@ -280,6 +295,11 @@ import {
280295
ListDeviceProfilesCommandInput,
281296
ListDeviceProfilesCommandOutput,
282297
} from "./commands/ListDeviceProfilesCommand";
298+
import {
299+
ListEventConfigurationsCommand,
300+
ListEventConfigurationsCommandInput,
301+
ListEventConfigurationsCommandOutput,
302+
} from "./commands/ListEventConfigurationsCommand";
283303
import {
284304
ListFuotaTasksCommand,
285305
ListFuotaTasksCommandInput,
@@ -295,6 +315,11 @@ import {
295315
ListMulticastGroupsCommandInput,
296316
ListMulticastGroupsCommandOutput,
297317
} from "./commands/ListMulticastGroupsCommand";
318+
import {
319+
ListNetworkAnalyzerConfigurationsCommand,
320+
ListNetworkAnalyzerConfigurationsCommandInput,
321+
ListNetworkAnalyzerConfigurationsCommandOutput,
322+
} from "./commands/ListNetworkAnalyzerConfigurationsCommand";
298323
import {
299324
ListPartnerAccountsCommand,
300325
ListPartnerAccountsCommandInput,
@@ -391,6 +416,11 @@ import {
391416
UpdateDestinationCommandInput,
392417
UpdateDestinationCommandOutput,
393418
} from "./commands/UpdateDestinationCommand";
419+
import {
420+
UpdateEventConfigurationByResourceTypesCommand,
421+
UpdateEventConfigurationByResourceTypesCommandInput,
422+
UpdateEventConfigurationByResourceTypesCommandOutput,
423+
} from "./commands/UpdateEventConfigurationByResourceTypesCommand";
394424
import {
395425
UpdateFuotaTaskCommand,
396426
UpdateFuotaTaskCommandInput,
@@ -837,6 +867,38 @@ export class IoTWireless extends IoTWirelessClient {
837867
}
838868
}
839869

870+
/**
871+
* <p>Creates a new network analyzer configuration.</p>
872+
*/
873+
public createNetworkAnalyzerConfiguration(
874+
args: CreateNetworkAnalyzerConfigurationCommandInput,
875+
options?: __HttpHandlerOptions
876+
): Promise<CreateNetworkAnalyzerConfigurationCommandOutput>;
877+
public createNetworkAnalyzerConfiguration(
878+
args: CreateNetworkAnalyzerConfigurationCommandInput,
879+
cb: (err: any, data?: CreateNetworkAnalyzerConfigurationCommandOutput) => void
880+
): void;
881+
public createNetworkAnalyzerConfiguration(
882+
args: CreateNetworkAnalyzerConfigurationCommandInput,
883+
options: __HttpHandlerOptions,
884+
cb: (err: any, data?: CreateNetworkAnalyzerConfigurationCommandOutput) => void
885+
): void;
886+
public createNetworkAnalyzerConfiguration(
887+
args: CreateNetworkAnalyzerConfigurationCommandInput,
888+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateNetworkAnalyzerConfigurationCommandOutput) => void),
889+
cb?: (err: any, data?: CreateNetworkAnalyzerConfigurationCommandOutput) => void
890+
): Promise<CreateNetworkAnalyzerConfigurationCommandOutput> | void {
891+
const command = new CreateNetworkAnalyzerConfigurationCommand(args);
892+
if (typeof optionsOrCb === "function") {
893+
this.send(command, optionsOrCb);
894+
} else if (typeof cb === "function") {
895+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
896+
this.send(command, optionsOrCb || {}, cb);
897+
} else {
898+
return this.send(command, optionsOrCb);
899+
}
900+
}
901+
840902
/**
841903
* <p>Creates a new service profile.</p>
842904
*/
@@ -1126,7 +1188,39 @@ export class IoTWireless extends IoTWirelessClient {
11261188
}
11271189

11281190
/**
1129-
* <p> The operation to delete queued messages. </p>
1191+
* <p>Deletes a network analyzer configuration.</p>
1192+
*/
1193+
public deleteNetworkAnalyzerConfiguration(
1194+
args: DeleteNetworkAnalyzerConfigurationCommandInput,
1195+
options?: __HttpHandlerOptions
1196+
): Promise<DeleteNetworkAnalyzerConfigurationCommandOutput>;
1197+
public deleteNetworkAnalyzerConfiguration(
1198+
args: DeleteNetworkAnalyzerConfigurationCommandInput,
1199+
cb: (err: any, data?: DeleteNetworkAnalyzerConfigurationCommandOutput) => void
1200+
): void;
1201+
public deleteNetworkAnalyzerConfiguration(
1202+
args: DeleteNetworkAnalyzerConfigurationCommandInput,
1203+
options: __HttpHandlerOptions,
1204+
cb: (err: any, data?: DeleteNetworkAnalyzerConfigurationCommandOutput) => void
1205+
): void;
1206+
public deleteNetworkAnalyzerConfiguration(
1207+
args: DeleteNetworkAnalyzerConfigurationCommandInput,
1208+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteNetworkAnalyzerConfigurationCommandOutput) => void),
1209+
cb?: (err: any, data?: DeleteNetworkAnalyzerConfigurationCommandOutput) => void
1210+
): Promise<DeleteNetworkAnalyzerConfigurationCommandOutput> | void {
1211+
const command = new DeleteNetworkAnalyzerConfigurationCommand(args);
1212+
if (typeof optionsOrCb === "function") {
1213+
this.send(command, optionsOrCb);
1214+
} else if (typeof cb === "function") {
1215+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1216+
this.send(command, optionsOrCb || {}, cb);
1217+
} else {
1218+
return this.send(command, optionsOrCb);
1219+
}
1220+
}
1221+
1222+
/**
1223+
* <p>Remove queued messages from the downlink queue.</p>
11301224
*/
11311225
public deleteQueuedMessages(
11321226
args: DeleteQueuedMessagesCommandInput,
@@ -1615,6 +1709,38 @@ export class IoTWireless extends IoTWirelessClient {
16151709
}
16161710
}
16171711

1712+
/**
1713+
* <p>Get the event configuration by resource types.</p>
1714+
*/
1715+
public getEventConfigurationByResourceTypes(
1716+
args: GetEventConfigurationByResourceTypesCommandInput,
1717+
options?: __HttpHandlerOptions
1718+
): Promise<GetEventConfigurationByResourceTypesCommandOutput>;
1719+
public getEventConfigurationByResourceTypes(
1720+
args: GetEventConfigurationByResourceTypesCommandInput,
1721+
cb: (err: any, data?: GetEventConfigurationByResourceTypesCommandOutput) => void
1722+
): void;
1723+
public getEventConfigurationByResourceTypes(
1724+
args: GetEventConfigurationByResourceTypesCommandInput,
1725+
options: __HttpHandlerOptions,
1726+
cb: (err: any, data?: GetEventConfigurationByResourceTypesCommandOutput) => void
1727+
): void;
1728+
public getEventConfigurationByResourceTypes(
1729+
args: GetEventConfigurationByResourceTypesCommandInput,
1730+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetEventConfigurationByResourceTypesCommandOutput) => void),
1731+
cb?: (err: any, data?: GetEventConfigurationByResourceTypesCommandOutput) => void
1732+
): Promise<GetEventConfigurationByResourceTypesCommandOutput> | void {
1733+
const command = new GetEventConfigurationByResourceTypesCommand(args);
1734+
if (typeof optionsOrCb === "function") {
1735+
this.send(command, optionsOrCb);
1736+
} else if (typeof cb === "function") {
1737+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1738+
this.send(command, optionsOrCb || {}, cb);
1739+
} else {
1740+
return this.send(command, optionsOrCb);
1741+
}
1742+
}
1743+
16181744
/**
16191745
* <p>Gets information about a FUOTA task.</p>
16201746
*/
@@ -1742,7 +1868,7 @@ export class IoTWireless extends IoTWirelessClient {
17421868
}
17431869

17441870
/**
1745-
* <p>Get NetworkAnalyzer configuration.</p>
1871+
* <p>Get network analyzer configuration.</p>
17461872
*/
17471873
public getNetworkAnalyzerConfiguration(
17481874
args: GetNetworkAnalyzerConfigurationCommandInput,
@@ -2256,6 +2382,38 @@ export class IoTWireless extends IoTWirelessClient {
22562382
}
22572383
}
22582384

2385+
/**
2386+
* <p>List event configurations where at least one event topic has been enabled.</p>
2387+
*/
2388+
public listEventConfigurations(
2389+
args: ListEventConfigurationsCommandInput,
2390+
options?: __HttpHandlerOptions
2391+
): Promise<ListEventConfigurationsCommandOutput>;
2392+
public listEventConfigurations(
2393+
args: ListEventConfigurationsCommandInput,
2394+
cb: (err: any, data?: ListEventConfigurationsCommandOutput) => void
2395+
): void;
2396+
public listEventConfigurations(
2397+
args: ListEventConfigurationsCommandInput,
2398+
options: __HttpHandlerOptions,
2399+
cb: (err: any, data?: ListEventConfigurationsCommandOutput) => void
2400+
): void;
2401+
public listEventConfigurations(
2402+
args: ListEventConfigurationsCommandInput,
2403+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEventConfigurationsCommandOutput) => void),
2404+
cb?: (err: any, data?: ListEventConfigurationsCommandOutput) => void
2405+
): Promise<ListEventConfigurationsCommandOutput> | void {
2406+
const command = new ListEventConfigurationsCommand(args);
2407+
if (typeof optionsOrCb === "function") {
2408+
this.send(command, optionsOrCb);
2409+
} else if (typeof cb === "function") {
2410+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2411+
this.send(command, optionsOrCb || {}, cb);
2412+
} else {
2413+
return this.send(command, optionsOrCb);
2414+
}
2415+
}
2416+
22592417
/**
22602418
* <p>Lists the FUOTA tasks registered to your AWS account.</p>
22612419
*/
@@ -2352,6 +2510,38 @@ export class IoTWireless extends IoTWirelessClient {
23522510
}
23532511
}
23542512

2513+
/**
2514+
* <p>Lists the network analyzer configurations.</p>
2515+
*/
2516+
public listNetworkAnalyzerConfigurations(
2517+
args: ListNetworkAnalyzerConfigurationsCommandInput,
2518+
options?: __HttpHandlerOptions
2519+
): Promise<ListNetworkAnalyzerConfigurationsCommandOutput>;
2520+
public listNetworkAnalyzerConfigurations(
2521+
args: ListNetworkAnalyzerConfigurationsCommandInput,
2522+
cb: (err: any, data?: ListNetworkAnalyzerConfigurationsCommandOutput) => void
2523+
): void;
2524+
public listNetworkAnalyzerConfigurations(
2525+
args: ListNetworkAnalyzerConfigurationsCommandInput,
2526+
options: __HttpHandlerOptions,
2527+
cb: (err: any, data?: ListNetworkAnalyzerConfigurationsCommandOutput) => void
2528+
): void;
2529+
public listNetworkAnalyzerConfigurations(
2530+
args: ListNetworkAnalyzerConfigurationsCommandInput,
2531+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListNetworkAnalyzerConfigurationsCommandOutput) => void),
2532+
cb?: (err: any, data?: ListNetworkAnalyzerConfigurationsCommandOutput) => void
2533+
): Promise<ListNetworkAnalyzerConfigurationsCommandOutput> | void {
2534+
const command = new ListNetworkAnalyzerConfigurationsCommand(args);
2535+
if (typeof optionsOrCb === "function") {
2536+
this.send(command, optionsOrCb);
2537+
} else if (typeof cb === "function") {
2538+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2539+
this.send(command, optionsOrCb || {}, cb);
2540+
} else {
2541+
return this.send(command, optionsOrCb);
2542+
}
2543+
}
2544+
23552545
/**
23562546
* <p>Lists the partner accounts associated with your AWS account.</p>
23572547
*/
@@ -2385,7 +2575,7 @@ export class IoTWireless extends IoTWirelessClient {
23852575
}
23862576

23872577
/**
2388-
* <p>The operation to list queued messages. </p>
2578+
* <p>List queued messages in the downlink queue.</p>
23892579
*/
23902580
public listQueuedMessages(
23912581
args: ListQueuedMessagesCommandInput,
@@ -2992,6 +3182,40 @@ export class IoTWireless extends IoTWirelessClient {
29923182
}
29933183
}
29943184

3185+
/**
3186+
* <p>Update the event configuration by resource types.</p>
3187+
*/
3188+
public updateEventConfigurationByResourceTypes(
3189+
args: UpdateEventConfigurationByResourceTypesCommandInput,
3190+
options?: __HttpHandlerOptions
3191+
): Promise<UpdateEventConfigurationByResourceTypesCommandOutput>;
3192+
public updateEventConfigurationByResourceTypes(
3193+
args: UpdateEventConfigurationByResourceTypesCommandInput,
3194+
cb: (err: any, data?: UpdateEventConfigurationByResourceTypesCommandOutput) => void
3195+
): void;
3196+
public updateEventConfigurationByResourceTypes(
3197+
args: UpdateEventConfigurationByResourceTypesCommandInput,
3198+
options: __HttpHandlerOptions,
3199+
cb: (err: any, data?: UpdateEventConfigurationByResourceTypesCommandOutput) => void
3200+
): void;
3201+
public updateEventConfigurationByResourceTypes(
3202+
args: UpdateEventConfigurationByResourceTypesCommandInput,
3203+
optionsOrCb?:
3204+
| __HttpHandlerOptions
3205+
| ((err: any, data?: UpdateEventConfigurationByResourceTypesCommandOutput) => void),
3206+
cb?: (err: any, data?: UpdateEventConfigurationByResourceTypesCommandOutput) => void
3207+
): Promise<UpdateEventConfigurationByResourceTypesCommandOutput> | void {
3208+
const command = new UpdateEventConfigurationByResourceTypesCommand(args);
3209+
if (typeof optionsOrCb === "function") {
3210+
this.send(command, optionsOrCb);
3211+
} else if (typeof cb === "function") {
3212+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3213+
this.send(command, optionsOrCb || {}, cb);
3214+
} else {
3215+
return this.send(command, optionsOrCb);
3216+
}
3217+
}
3218+
29953219
/**
29963220
* <p>Updates properties of a FUOTA task.</p>
29973221
*/
@@ -3090,7 +3314,7 @@ export class IoTWireless extends IoTWirelessClient {
30903314
}
30913315

30923316
/**
3093-
* <p>Update NetworkAnalyzer configuration.</p>
3317+
* <p>Update network analyzer configuration.</p>
30943318
*/
30953319
public updateNetworkAnalyzerConfiguration(
30963320
args: UpdateNetworkAnalyzerConfigurationCommandInput,

0 commit comments

Comments
 (0)