@@ -4,6 +4,16 @@ import {
44 EmptyInputAndEmptyOutputCommandInput ,
55 EmptyInputAndEmptyOutputCommandOutput ,
66} from "./commands/EmptyInputAndEmptyOutputCommand" ;
7+ import {
8+ EndpointOperationCommand ,
9+ EndpointOperationCommandInput ,
10+ EndpointOperationCommandOutput ,
11+ } from "./commands/EndpointOperationCommand" ;
12+ import {
13+ EndpointWithHostLabelOperationCommand ,
14+ EndpointWithHostLabelOperationCommandInput ,
15+ EndpointWithHostLabelOperationCommandOutput ,
16+ } from "./commands/EndpointWithHostLabelOperationCommand" ;
717import {
818 GreetingWithErrorsCommand ,
919 GreetingWithErrorsCommandInput ,
@@ -114,6 +124,64 @@ export class EC2Protocol extends EC2ProtocolClient {
114124 }
115125 }
116126
127+ public endpointOperation (
128+ args : EndpointOperationCommandInput ,
129+ options ?: __HttpHandlerOptions
130+ ) : Promise < EndpointOperationCommandOutput > ;
131+ public endpointOperation (
132+ args : EndpointOperationCommandInput ,
133+ cb : ( err : any , data ?: EndpointOperationCommandOutput ) => void
134+ ) : void ;
135+ public endpointOperation (
136+ args : EndpointOperationCommandInput ,
137+ options : __HttpHandlerOptions ,
138+ cb : ( err : any , data ?: EndpointOperationCommandOutput ) => void
139+ ) : void ;
140+ public endpointOperation (
141+ args : EndpointOperationCommandInput ,
142+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: EndpointOperationCommandOutput ) => void ) ,
143+ cb ?: ( err : any , data ?: EndpointOperationCommandOutput ) => void
144+ ) : Promise < EndpointOperationCommandOutput > | void {
145+ const command = new EndpointOperationCommand ( args ) ;
146+ if ( typeof optionsOrCb === "function" ) {
147+ this . send ( command , optionsOrCb ) ;
148+ } else if ( typeof cb === "function" ) {
149+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
150+ this . send ( command , optionsOrCb || { } , cb ) ;
151+ } else {
152+ return this . send ( command , optionsOrCb ) ;
153+ }
154+ }
155+
156+ public endpointWithHostLabelOperation (
157+ args : EndpointWithHostLabelOperationCommandInput ,
158+ options ?: __HttpHandlerOptions
159+ ) : Promise < EndpointWithHostLabelOperationCommandOutput > ;
160+ public endpointWithHostLabelOperation (
161+ args : EndpointWithHostLabelOperationCommandInput ,
162+ cb : ( err : any , data ?: EndpointWithHostLabelOperationCommandOutput ) => void
163+ ) : void ;
164+ public endpointWithHostLabelOperation (
165+ args : EndpointWithHostLabelOperationCommandInput ,
166+ options : __HttpHandlerOptions ,
167+ cb : ( err : any , data ?: EndpointWithHostLabelOperationCommandOutput ) => void
168+ ) : void ;
169+ public endpointWithHostLabelOperation (
170+ args : EndpointWithHostLabelOperationCommandInput ,
171+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: EndpointWithHostLabelOperationCommandOutput ) => void ) ,
172+ cb ?: ( err : any , data ?: EndpointWithHostLabelOperationCommandOutput ) => void
173+ ) : Promise < EndpointWithHostLabelOperationCommandOutput > | void {
174+ const command = new EndpointWithHostLabelOperationCommand ( args ) ;
175+ if ( typeof optionsOrCb === "function" ) {
176+ this . send ( command , optionsOrCb ) ;
177+ } else if ( typeof cb === "function" ) {
178+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
179+ this . send ( command , optionsOrCb || { } , cb ) ;
180+ } else {
181+ return this . send ( command , optionsOrCb ) ;
182+ }
183+ }
184+
117185 /**
118186 * This operation has three possible return values:
119187 *
0 commit comments