import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { CreateAlarmModelCommand , CreateAlarmModelCommandInput , CreateAlarmModelCommandOutput , } from "./commands/CreateAlarmModelCommand" ; import { CreateDetectorModelCommand , CreateDetectorModelCommandInput , CreateDetectorModelCommandOutput , } from "./commands/CreateDetectorModelCommand" ; import { CreateInputCommand , CreateInputCommandInput , CreateInputCommandOutput } from "./commands/CreateInputCommand" ; import { DeleteAlarmModelCommand , DeleteAlarmModelCommandInput , DeleteAlarmModelCommandOutput , } from "./commands/DeleteAlarmModelCommand" ; import { DeleteDetectorModelCommand , DeleteDetectorModelCommandInput , DeleteDetectorModelCommandOutput , } from "./commands/DeleteDetectorModelCommand" ; import { DeleteInputCommand , DeleteInputCommandInput , DeleteInputCommandOutput } from "./commands/DeleteInputCommand" ; import { DescribeAlarmModelCommand , DescribeAlarmModelCommandInput , DescribeAlarmModelCommandOutput , } from "./commands/DescribeAlarmModelCommand" ; import { DescribeDetectorModelAnalysisCommand , DescribeDetectorModelAnalysisCommandInput , DescribeDetectorModelAnalysisCommandOutput , } from "./commands/DescribeDetectorModelAnalysisCommand" ; import { DescribeDetectorModelCommand , DescribeDetectorModelCommandInput , DescribeDetectorModelCommandOutput , } from "./commands/DescribeDetectorModelCommand" ; import { DescribeInputCommand , DescribeInputCommandInput , DescribeInputCommandOutput , } from "./commands/DescribeInputCommand" ; import { DescribeLoggingOptionsCommand , DescribeLoggingOptionsCommandInput , DescribeLoggingOptionsCommandOutput , } from "./commands/DescribeLoggingOptionsCommand" ; import { GetDetectorModelAnalysisResultsCommand , GetDetectorModelAnalysisResultsCommandInput , GetDetectorModelAnalysisResultsCommandOutput , } from "./commands/GetDetectorModelAnalysisResultsCommand" ; import { ListAlarmModelsCommand , ListAlarmModelsCommandInput , ListAlarmModelsCommandOutput , } from "./commands/ListAlarmModelsCommand" ; import { ListAlarmModelVersionsCommand , ListAlarmModelVersionsCommandInput , ListAlarmModelVersionsCommandOutput , } from "./commands/ListAlarmModelVersionsCommand" ; import { ListDetectorModelsCommand , ListDetectorModelsCommandInput , ListDetectorModelsCommandOutput , } from "./commands/ListDetectorModelsCommand" ; import { ListDetectorModelVersionsCommand , ListDetectorModelVersionsCommandInput , ListDetectorModelVersionsCommandOutput , } from "./commands/ListDetectorModelVersionsCommand" ; import { ListInputRoutingsCommand , ListInputRoutingsCommandInput , ListInputRoutingsCommandOutput , } from "./commands/ListInputRoutingsCommand" ; import { ListInputsCommand , ListInputsCommandInput , ListInputsCommandOutput } from "./commands/ListInputsCommand" ; import { ListTagsForResourceCommand , ListTagsForResourceCommandInput , ListTagsForResourceCommandOutput , } from "./commands/ListTagsForResourceCommand" ; import { PutLoggingOptionsCommand , PutLoggingOptionsCommandInput , PutLoggingOptionsCommandOutput , } from "./commands/PutLoggingOptionsCommand" ; import { StartDetectorModelAnalysisCommand , StartDetectorModelAnalysisCommandInput , StartDetectorModelAnalysisCommandOutput , } from "./commands/StartDetectorModelAnalysisCommand" ; import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ; import { UntagResourceCommand , UntagResourceCommandInput , UntagResourceCommandOutput , } from "./commands/UntagResourceCommand" ; import { UpdateAlarmModelCommand , UpdateAlarmModelCommandInput , UpdateAlarmModelCommandOutput , } from "./commands/UpdateAlarmModelCommand" ; import { UpdateDetectorModelCommand , UpdateDetectorModelCommandInput , UpdateDetectorModelCommandOutput , } from "./commands/UpdateDetectorModelCommand" ; import { UpdateInputCommand , UpdateInputCommandInput , UpdateInputCommandOutput } from "./commands/UpdateInputCommand" ; import { IoTEventsClient } from "./IoTEventsClient" ; /**
 * <p>AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and
 *       triggers actions when such events occur. You can use AWS IoT Events API operations to create, read,
 *       update, and delete inputs and detector models, and to list their versions.</p>
 */ export class IoTEvents extends IoTEventsClient { /**
     * <p>Creates an alarm model to monitor an AWS IoT Events input attribute. You can use the alarm to get
     *       notified when the value is outside a specified range. For more information, see <a href="https://docs.aws.amazon.com/iotevents/latest/developerguide/create-alarms.html">Create an
     *         alarm model</a> in the <i>AWS IoT Events Developer Guide</i>.</p>
     */ public createAlarmModel ( args , options ? ) ; public createAlarmModel ( args , cb ) ; public createAlarmModel ( args , options , cb ) ; public createAlarmModel ( args , optionsOrCb ? , cb ? ) { const command = new CreateAlarmModelCommand ( 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 detector model.</p>
     */ public createDetectorModel ( args , options ? ) ; public createDetectorModel ( args , cb ) ; public createDetectorModel ( args , options , cb ) ; public createDetectorModel ( args , optionsOrCb ? , cb ? ) { const command = new CreateDetectorModelCommand ( 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 an input.</p>
     */ public createInput ( args , options ? ) ; public createInput ( args , cb ) ; public createInput ( args , options , cb ) ; public createInput ( args , optionsOrCb ? , cb ? ) { const command = new CreateInputCommand ( 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>Deletes an alarm model. Any alarm instances that were created based on this alarm model
     *       are also deleted. This action can't be undone.</p>
     */ public deleteAlarmModel ( args , options ? ) ; public deleteAlarmModel ( args , cb ) ; public deleteAlarmModel ( args , options , cb ) ; public deleteAlarmModel ( args , optionsOrCb ? , cb ? ) { const command = new DeleteAlarmModelCommand ( 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>Deletes a detector model. Any active instances of the detector model are also
     *       deleted.</p>
     */ public deleteDetectorModel ( args , options ? ) ; public deleteDetectorModel ( args , cb ) ; public deleteDetectorModel ( args , options , cb ) ; public deleteDetectorModel ( args , optionsOrCb ? , cb ? ) { const command = new DeleteDetectorModelCommand ( 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>Deletes an input.</p>
     */ public deleteInput ( args , options ? ) ; public deleteInput ( args , cb ) ; public deleteInput ( args , options , cb ) ; public deleteInput ( args , optionsOrCb ? , cb ? ) { const command = new DeleteInputCommand ( 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>Retrieves information about an alarm model. If you don't specify a value for the
     *         <code>alarmModelVersion</code> parameter, the latest version is returned.</p>
     */ public describeAlarmModel ( args , options ? ) ; public describeAlarmModel ( args , cb ) ; public describeAlarmModel ( args , options , cb ) ; public describeAlarmModel ( args , optionsOrCb ? , cb ? ) { const command = new DescribeAlarmModelCommand ( 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>Describes a detector model. If the <code>version</code> parameter is not specified,
     *       information about the latest version is returned.</p>
     */ public describeDetectorModel ( args , options ? ) ; public describeDetectorModel ( args , cb ) ; public describeDetectorModel ( args , options , cb ) ; public describeDetectorModel ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDetectorModelCommand ( 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>Retrieves runtime information about a detector model analysis.</p>
     *          <note>
     *             <p>After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.</p>
     *          </note>
     */ public describeDetectorModelAnalysis ( args , options ? ) ; public describeDetectorModelAnalysis ( args , cb ) ; public describeDetectorModelAnalysis ( args , options , cb ) ; public describeDetectorModelAnalysis ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDetectorModelAnalysisCommand ( 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>Describes an input.</p>
     */ public describeInput ( args , options ? ) ; public describeInput ( args , cb ) ; public describeInput ( args , options , cb ) ; public describeInput ( args , optionsOrCb ? , cb ? ) { const command = new DescribeInputCommand ( 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>Retrieves the current settings of the AWS IoT Events logging options.</p>
     */ public describeLoggingOptions ( args , options ? ) ; public describeLoggingOptions ( args , cb ) ; public describeLoggingOptions ( args , options , cb ) ; public describeLoggingOptions ( args , optionsOrCb ? , cb ? ) { const command = new DescribeLoggingOptionsCommand ( 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>Retrieves one or more analysis results of the detector model.</p>
     *          <note>
     *             <p>After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.</p>
     *          </note>
     */ public getDetectorModelAnalysisResults ( args , options ? ) ; public getDetectorModelAnalysisResults ( args , cb ) ; public getDetectorModelAnalysisResults ( args , options , cb ) ; public getDetectorModelAnalysisResults ( args , optionsOrCb ? , cb ? ) { const command = new GetDetectorModelAnalysisResultsCommand ( 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 alarm models that you created. The operation returns only the metadata
     *       associated with each alarm model.</p>
     */ public listAlarmModels ( args , options ? ) ; public listAlarmModels ( args , cb ) ; public listAlarmModels ( args , options , cb ) ; public listAlarmModels ( args , optionsOrCb ? , cb ? ) { const command = new ListAlarmModelsCommand ( 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 all the versions of an alarm model. The operation returns only the metadata
     *       associated with each alarm model version.</p>
     */ public listAlarmModelVersions ( args , options ? ) ; public listAlarmModelVersions ( args , cb ) ; public listAlarmModelVersions ( args , options , cb ) ; public listAlarmModelVersions ( args , optionsOrCb ? , cb ? ) { const command = new ListAlarmModelVersionsCommand ( 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 detector models you have created. Only the metadata associated with each
     *       detector model is returned.</p>
     */ public listDetectorModels ( args , options ? ) ; public listDetectorModels ( args , cb ) ; public listDetectorModels ( args , options , cb ) ; public listDetectorModels ( args , optionsOrCb ? , cb ? ) { const command = new ListDetectorModelsCommand ( 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 all the versions of a detector model. Only the metadata associated with each
     *       detector model version is returned.</p>
     */ public listDetectorModelVersions ( args , options ? ) ; public listDetectorModelVersions ( args , cb ) ; public listDetectorModelVersions ( args , options , cb ) ; public listDetectorModelVersions ( args , optionsOrCb ? , cb ? ) { const command = new ListDetectorModelVersionsCommand ( 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 one or more input routings.
     *     </p>
     */ public listInputRoutings ( args , options ? ) ; public listInputRoutings ( args , cb ) ; public listInputRoutings ( args , options , cb ) ; public listInputRoutings ( args , optionsOrCb ? , cb ? ) { const command = new ListInputRoutingsCommand ( 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 inputs you have created.</p>
     */ public listInputs ( args , options ? ) ; public listInputs ( args , cb ) ; public listInputs ( args , options , cb ) ; public listInputs ( args , optionsOrCb ? , cb ? ) { const command = new ListInputsCommand ( 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 tags (metadata) you have assigned to the resource.</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>Sets or updates the AWS IoT Events logging options.</p>
     *          <p>If you update the value of any <code>loggingOptions</code> field, it takes up to one
     *       minute for the change to take effect. If you change the policy attached to the role you
     *       specified in the <code>roleArn</code> field (for example, to correct an invalid policy), it
     *       takes up to five minutes for that change to take effect.</p>
     */ public putLoggingOptions ( args , options ? ) ; public putLoggingOptions ( args , cb ) ; public putLoggingOptions ( args , options , cb ) ; public putLoggingOptions ( args , optionsOrCb ? , cb ? ) { const command = new PutLoggingOptionsCommand ( 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>Performs an analysis of your detector model. For more information,
     *       see <a href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-analyze-api.html">Troubleshooting a detector model</a>
     *       in the <i>AWS IoT Events Developer Guide</i>.</p>
     */ public startDetectorModelAnalysis ( args , options ? ) ; public startDetectorModelAnalysis ( args , cb ) ; public startDetectorModelAnalysis ( args , options , cb ) ; public startDetectorModelAnalysis ( args , optionsOrCb ? , cb ? ) { const command = new StartDetectorModelAnalysisCommand ( 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 to or modifies the tags of the given resource. Tags are metadata that can be used to
     *       manage a resource.</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 the given tags (metadata) from the resource.</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 ) ; } } /**
     * <p>Updates an alarm model. Any alarms that were created based on the previous version are
     *       deleted and then created again as new data arrives.</p>
     */ public updateAlarmModel ( args , options ? ) ; public updateAlarmModel ( args , cb ) ; public updateAlarmModel ( args , options , cb ) ; public updateAlarmModel ( args , optionsOrCb ? , cb ? ) { const command = new UpdateAlarmModelCommand ( 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 a detector model. Detectors (instances) spawned by the previous version are
     *       deleted and then re-created as new inputs arrive.</p>
     */ public updateDetectorModel ( args , options ? ) ; public updateDetectorModel ( args , cb ) ; public updateDetectorModel ( args , options , cb ) ; public updateDetectorModel ( args , optionsOrCb ? , cb ? ) { const command = new UpdateDetectorModelCommand ( 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 an input.</p>
     */ public updateInput ( args , options ? ) ; public updateInput ( args , cb ) ; public updateInput ( args , options , cb ) ; public updateInput ( args , optionsOrCb ? , cb ? ) { const command = new UpdateInputCommand ( 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 ) ; } } }