import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { CancelTaskCommand , CancelTaskCommandInput , CancelTaskCommandOutput } from "./commands/CancelTaskCommand" ; import { CreateTaskCommand , CreateTaskCommandInput , CreateTaskCommandOutput } from "./commands/CreateTaskCommand" ; import { DescribeDeviceCommand , DescribeDeviceCommandInput , DescribeDeviceCommandOutput , } from "./commands/DescribeDeviceCommand" ; import { DescribeDeviceEc2InstancesCommand , DescribeDeviceEc2InstancesCommandInput , DescribeDeviceEc2InstancesCommandOutput , } from "./commands/DescribeDeviceEc2InstancesCommand" ; import { DescribeExecutionCommand , DescribeExecutionCommandInput , DescribeExecutionCommandOutput , } from "./commands/DescribeExecutionCommand" ; import { DescribeTaskCommand , DescribeTaskCommandInput , DescribeTaskCommandOutput , } from "./commands/DescribeTaskCommand" ; import { ListDeviceResourcesCommand , ListDeviceResourcesCommandInput , ListDeviceResourcesCommandOutput , } from "./commands/ListDeviceResourcesCommand" ; import { ListDevicesCommand , ListDevicesCommandInput , ListDevicesCommandOutput } from "./commands/ListDevicesCommand" ; import { ListExecutionsCommand , ListExecutionsCommandInput , ListExecutionsCommandOutput , } from "./commands/ListExecutionsCommand" ; import { ListTagsForResourceCommand , ListTagsForResourceCommandInput , ListTagsForResourceCommandOutput , } from "./commands/ListTagsForResourceCommand" ; import { ListTasksCommand , ListTasksCommandInput , ListTasksCommandOutput } from "./commands/ListTasksCommand" ; import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ; import { UntagResourceCommand , UntagResourceCommandInput , UntagResourceCommandOutput , } from "./commands/UntagResourceCommand" ; import { SnowDeviceManagementClient } from "./SnowDeviceManagementClient" ; /**
 * <p>Amazon Web Services Snow Device Management documentation.</p>
 */ export class SnowDeviceManagement extends SnowDeviceManagementClient { /**
     * <p>Sends a cancel request for a specified task. You can cancel a task only if it's still in a
     *         <code>QUEUED</code> state. Tasks that are already running can't be cancelled.</p>
     *          <note>
     *             <p>A task might still run if it's processed from the queue before the
     *           <code>CancelTask</code> operation changes the task's state.</p>
     *          </note>
     */ public cancelTask ( args , options ? ) ; public cancelTask ( args , cb ) ; public cancelTask ( args , options , cb ) ; public cancelTask ( args , optionsOrCb ? , cb ? ) { const command = new CancelTaskCommand ( 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>Instructs one or more devices to start a task, such as unlocking or rebooting.</p>
     */ public createTask ( args , options ? ) ; public createTask ( args , cb ) ; public createTask ( args , options , cb ) ; public createTask ( args , optionsOrCb ? , cb ? ) { const command = new CreateTaskCommand ( 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>Checks device-specific information, such as the device type, software version, IP
     *       addresses, and lock status.</p>
     */ public describeDevice ( args , options ? ) ; public describeDevice ( args , cb ) ; public describeDevice ( args , options , cb ) ; public describeDevice ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDeviceCommand ( 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>Checks the current state of the Amazon EC2 instances. The output is similar to
     *         <code>describeDevice</code>, but the results are sourced from the device cache in the
     *       Amazon Web Services Cloud and include a subset of the available fields. </p>
     */ public describeDeviceEc2Instances ( args , options ? ) ; public describeDeviceEc2Instances ( args , cb ) ; public describeDeviceEc2Instances ( args , options , cb ) ; public describeDeviceEc2Instances ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDeviceEc2InstancesCommand ( 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>Checks the status of a remote task running on one or more target devices.</p>
     */ public describeExecution ( args , options ? ) ; public describeExecution ( args , cb ) ; public describeExecution ( args , options , cb ) ; public describeExecution ( args , optionsOrCb ? , cb ? ) { const command = new DescribeExecutionCommand ( 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>Checks the metadata for a given task on a device. </p>
     */ public describeTask ( args , options ? ) ; public describeTask ( args , cb ) ; public describeTask ( args , options , cb ) ; public describeTask ( args , optionsOrCb ? , cb ? ) { const command = new DescribeTaskCommand ( 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>Returns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type.</p>
     */ public listDeviceResources ( args , options ? ) ; public listDeviceResources ( args , cb ) ; public listDeviceResources ( args , options , cb ) ; public listDeviceResources ( args , optionsOrCb ? , cb ? ) { const command = new ListDeviceResourcesCommand ( 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>Returns a list of all devices on your Amazon Web Services account that have Amazon Web Services Snow Device Management
     *       enabled in the Amazon Web Services Region where the command is run.</p>
     */ public listDevices ( args , options ? ) ; public listDevices ( args , cb ) ; public listDevices ( args , options , cb ) ; public listDevices ( args , optionsOrCb ? , cb ? ) { const command = new ListDevicesCommand ( 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>Returns the status of tasks for one or more target devices.</p>
     */ public listExecutions ( args , options ? ) ; public listExecutions ( args , cb ) ; public listExecutions ( args , options , cb ) ; public listExecutions ( args , optionsOrCb ? , cb ? ) { const command = new ListExecutionsCommand ( 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>Returns a list of tags for a managed device or task.</p>
     */ public listTagsForResource ( args , options ? ) ; public listTagsForResource ( args , cb ) ; public listTagsForResource ( args , options , cb ) ; public listTagsForResource ( args , optionsOrCb ? , cb ? ) { const command = new ListTagsForResourceCommand ( 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>Returns a list of tasks that can be filtered by state.</p>
     */ public listTasks ( args , options ? ) ; public listTasks ( args , cb ) ; public listTasks ( args , options , cb ) ; public listTasks ( args , optionsOrCb ? , cb ? ) { const command = new ListTasksCommand ( 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>Adds or replaces tags on a device or task.</p>
     */ public tagResource ( args , options ? ) ; public tagResource ( args , cb ) ; public tagResource ( args , options , cb ) ; public tagResource ( args , optionsOrCb ? , cb ? ) { const command = new TagResourceCommand ( 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>Removes a tag from a device or task.</p>
     */ public untagResource ( args , options ? ) ; public untagResource ( args , cb ) ; public untagResource ( args , options , cb ) ; public untagResource ( args , optionsOrCb ? , cb ? ) { const command = new UntagResourceCommand ( 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 ) ; } } }