Skip to content

Commit

Permalink
feat(client-iot-wireless): Add list support for event configurations,…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
awstools committed Apr 27, 2022
1 parent a13c9a0 commit 12fb21d
Show file tree
Hide file tree
Showing 18 changed files with 3,655 additions and 172 deletions.
232 changes: 228 additions & 4 deletions clients/client-iot-wireless/src/IoTWireless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ import {
CreateMulticastGroupCommandInput,
CreateMulticastGroupCommandOutput,
} from "./commands/CreateMulticastGroupCommand";
import {
CreateNetworkAnalyzerConfigurationCommand,
CreateNetworkAnalyzerConfigurationCommandInput,
CreateNetworkAnalyzerConfigurationCommandOutput,
} from "./commands/CreateNetworkAnalyzerConfigurationCommand";
import {
CreateServiceProfileCommand,
CreateServiceProfileCommandInput,
Expand Down Expand Up @@ -105,6 +110,11 @@ import {
DeleteMulticastGroupCommandInput,
DeleteMulticastGroupCommandOutput,
} from "./commands/DeleteMulticastGroupCommand";
import {
DeleteNetworkAnalyzerConfigurationCommand,
DeleteNetworkAnalyzerConfigurationCommandInput,
DeleteNetworkAnalyzerConfigurationCommandOutput,
} from "./commands/DeleteNetworkAnalyzerConfigurationCommand";
import {
DeleteQueuedMessagesCommand,
DeleteQueuedMessagesCommandInput,
Expand Down Expand Up @@ -180,6 +190,11 @@ import {
GetDeviceProfileCommandInput,
GetDeviceProfileCommandOutput,
} from "./commands/GetDeviceProfileCommand";
import {
GetEventConfigurationByResourceTypesCommand,
GetEventConfigurationByResourceTypesCommandInput,
GetEventConfigurationByResourceTypesCommandOutput,
} from "./commands/GetEventConfigurationByResourceTypesCommand";
import {
GetFuotaTaskCommand,
GetFuotaTaskCommandInput,
Expand Down Expand Up @@ -280,6 +295,11 @@ import {
ListDeviceProfilesCommandInput,
ListDeviceProfilesCommandOutput,
} from "./commands/ListDeviceProfilesCommand";
import {
ListEventConfigurationsCommand,
ListEventConfigurationsCommandInput,
ListEventConfigurationsCommandOutput,
} from "./commands/ListEventConfigurationsCommand";
import {
ListFuotaTasksCommand,
ListFuotaTasksCommandInput,
Expand All @@ -295,6 +315,11 @@ import {
ListMulticastGroupsCommandInput,
ListMulticastGroupsCommandOutput,
} from "./commands/ListMulticastGroupsCommand";
import {
ListNetworkAnalyzerConfigurationsCommand,
ListNetworkAnalyzerConfigurationsCommandInput,
ListNetworkAnalyzerConfigurationsCommandOutput,
} from "./commands/ListNetworkAnalyzerConfigurationsCommand";
import {
ListPartnerAccountsCommand,
ListPartnerAccountsCommandInput,
Expand Down Expand Up @@ -391,6 +416,11 @@ import {
UpdateDestinationCommandInput,
UpdateDestinationCommandOutput,
} from "./commands/UpdateDestinationCommand";
import {
UpdateEventConfigurationByResourceTypesCommand,
UpdateEventConfigurationByResourceTypesCommandInput,
UpdateEventConfigurationByResourceTypesCommandOutput,
} from "./commands/UpdateEventConfigurationByResourceTypesCommand";
import {
UpdateFuotaTaskCommand,
UpdateFuotaTaskCommandInput,
Expand Down Expand Up @@ -837,6 +867,38 @@ export class IoTWireless extends IoTWirelessClient {
}
}

/**
* <p>Creates a new network analyzer configuration.</p>
*/
public createNetworkAnalyzerConfiguration(
args: CreateNetworkAnalyzerConfigurationCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateNetworkAnalyzerConfigurationCommandOutput>;
public createNetworkAnalyzerConfiguration(
args: CreateNetworkAnalyzerConfigurationCommandInput,
cb: (err: any, data?: CreateNetworkAnalyzerConfigurationCommandOutput) => void
): void;
public createNetworkAnalyzerConfiguration(
args: CreateNetworkAnalyzerConfigurationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateNetworkAnalyzerConfigurationCommandOutput) => void
): void;
public createNetworkAnalyzerConfiguration(
args: CreateNetworkAnalyzerConfigurationCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateNetworkAnalyzerConfigurationCommandOutput) => void),
cb?: (err: any, data?: CreateNetworkAnalyzerConfigurationCommandOutput) => void
): Promise<CreateNetworkAnalyzerConfigurationCommandOutput> | void {
const command = new CreateNetworkAnalyzerConfigurationCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Creates a new service profile.</p>
*/
Expand Down Expand Up @@ -1126,7 +1188,39 @@ export class IoTWireless extends IoTWirelessClient {
}

/**
* <p> The operation to delete queued messages. </p>
* <p>Deletes a network analyzer configuration.</p>
*/
public deleteNetworkAnalyzerConfiguration(
args: DeleteNetworkAnalyzerConfigurationCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteNetworkAnalyzerConfigurationCommandOutput>;
public deleteNetworkAnalyzerConfiguration(
args: DeleteNetworkAnalyzerConfigurationCommandInput,
cb: (err: any, data?: DeleteNetworkAnalyzerConfigurationCommandOutput) => void
): void;
public deleteNetworkAnalyzerConfiguration(
args: DeleteNetworkAnalyzerConfigurationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteNetworkAnalyzerConfigurationCommandOutput) => void
): void;
public deleteNetworkAnalyzerConfiguration(
args: DeleteNetworkAnalyzerConfigurationCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteNetworkAnalyzerConfigurationCommandOutput) => void),
cb?: (err: any, data?: DeleteNetworkAnalyzerConfigurationCommandOutput) => void
): Promise<DeleteNetworkAnalyzerConfigurationCommandOutput> | void {
const command = new DeleteNetworkAnalyzerConfigurationCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Remove queued messages from the downlink queue.</p>
*/
public deleteQueuedMessages(
args: DeleteQueuedMessagesCommandInput,
Expand Down Expand Up @@ -1615,6 +1709,38 @@ export class IoTWireless extends IoTWirelessClient {
}
}

/**
* <p>Get the event configuration by resource types.</p>
*/
public getEventConfigurationByResourceTypes(
args: GetEventConfigurationByResourceTypesCommandInput,
options?: __HttpHandlerOptions
): Promise<GetEventConfigurationByResourceTypesCommandOutput>;
public getEventConfigurationByResourceTypes(
args: GetEventConfigurationByResourceTypesCommandInput,
cb: (err: any, data?: GetEventConfigurationByResourceTypesCommandOutput) => void
): void;
public getEventConfigurationByResourceTypes(
args: GetEventConfigurationByResourceTypesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetEventConfigurationByResourceTypesCommandOutput) => void
): void;
public getEventConfigurationByResourceTypes(
args: GetEventConfigurationByResourceTypesCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetEventConfigurationByResourceTypesCommandOutput) => void),
cb?: (err: any, data?: GetEventConfigurationByResourceTypesCommandOutput) => void
): Promise<GetEventConfigurationByResourceTypesCommandOutput> | void {
const command = new GetEventConfigurationByResourceTypesCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Gets information about a FUOTA task.</p>
*/
Expand Down Expand Up @@ -1742,7 +1868,7 @@ export class IoTWireless extends IoTWirelessClient {
}

/**
* <p>Get NetworkAnalyzer configuration.</p>
* <p>Get network analyzer configuration.</p>
*/
public getNetworkAnalyzerConfiguration(
args: GetNetworkAnalyzerConfigurationCommandInput,
Expand Down Expand Up @@ -2256,6 +2382,38 @@ export class IoTWireless extends IoTWirelessClient {
}
}

/**
* <p>List event configurations where at least one event topic has been enabled.</p>
*/
public listEventConfigurations(
args: ListEventConfigurationsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListEventConfigurationsCommandOutput>;
public listEventConfigurations(
args: ListEventConfigurationsCommandInput,
cb: (err: any, data?: ListEventConfigurationsCommandOutput) => void
): void;
public listEventConfigurations(
args: ListEventConfigurationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListEventConfigurationsCommandOutput) => void
): void;
public listEventConfigurations(
args: ListEventConfigurationsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEventConfigurationsCommandOutput) => void),
cb?: (err: any, data?: ListEventConfigurationsCommandOutput) => void
): Promise<ListEventConfigurationsCommandOutput> | void {
const command = new ListEventConfigurationsCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Lists the FUOTA tasks registered to your AWS account.</p>
*/
Expand Down Expand Up @@ -2352,6 +2510,38 @@ export class IoTWireless extends IoTWirelessClient {
}
}

/**
* <p>Lists the network analyzer configurations.</p>
*/
public listNetworkAnalyzerConfigurations(
args: ListNetworkAnalyzerConfigurationsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListNetworkAnalyzerConfigurationsCommandOutput>;
public listNetworkAnalyzerConfigurations(
args: ListNetworkAnalyzerConfigurationsCommandInput,
cb: (err: any, data?: ListNetworkAnalyzerConfigurationsCommandOutput) => void
): void;
public listNetworkAnalyzerConfigurations(
args: ListNetworkAnalyzerConfigurationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListNetworkAnalyzerConfigurationsCommandOutput) => void
): void;
public listNetworkAnalyzerConfigurations(
args: ListNetworkAnalyzerConfigurationsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListNetworkAnalyzerConfigurationsCommandOutput) => void),
cb?: (err: any, data?: ListNetworkAnalyzerConfigurationsCommandOutput) => void
): Promise<ListNetworkAnalyzerConfigurationsCommandOutput> | void {
const command = new ListNetworkAnalyzerConfigurationsCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Lists the partner accounts associated with your AWS account.</p>
*/
Expand Down Expand Up @@ -2385,7 +2575,7 @@ export class IoTWireless extends IoTWirelessClient {
}

/**
* <p>The operation to list queued messages. </p>
* <p>List queued messages in the downlink queue.</p>
*/
public listQueuedMessages(
args: ListQueuedMessagesCommandInput,
Expand Down Expand Up @@ -2992,6 +3182,40 @@ export class IoTWireless extends IoTWirelessClient {
}
}

/**
* <p>Update the event configuration by resource types.</p>
*/
public updateEventConfigurationByResourceTypes(
args: UpdateEventConfigurationByResourceTypesCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateEventConfigurationByResourceTypesCommandOutput>;
public updateEventConfigurationByResourceTypes(
args: UpdateEventConfigurationByResourceTypesCommandInput,
cb: (err: any, data?: UpdateEventConfigurationByResourceTypesCommandOutput) => void
): void;
public updateEventConfigurationByResourceTypes(
args: UpdateEventConfigurationByResourceTypesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateEventConfigurationByResourceTypesCommandOutput) => void
): void;
public updateEventConfigurationByResourceTypes(
args: UpdateEventConfigurationByResourceTypesCommandInput,
optionsOrCb?:
| __HttpHandlerOptions
| ((err: any, data?: UpdateEventConfigurationByResourceTypesCommandOutput) => void),
cb?: (err: any, data?: UpdateEventConfigurationByResourceTypesCommandOutput) => void
): Promise<UpdateEventConfigurationByResourceTypesCommandOutput> | void {
const command = new UpdateEventConfigurationByResourceTypesCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Updates properties of a FUOTA task.</p>
*/
Expand Down Expand Up @@ -3090,7 +3314,7 @@ export class IoTWireless extends IoTWirelessClient {
}

/**
* <p>Update NetworkAnalyzer configuration.</p>
* <p>Update network analyzer configuration.</p>
*/
public updateNetworkAnalyzerConfiguration(
args: UpdateNetworkAnalyzerConfigurationCommandInput,
Expand Down
Loading

0 comments on commit 12fb21d

Please sign in to comment.