@aws-sdk/client-lightsail 3.315.0 → 3.319.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Lightsail = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AllocateStaticIpCommand_1 = require("./commands/AllocateStaticIpCommand");
5
6
  const AttachCertificateToDistributionCommand_1 = require("./commands/AttachCertificateToDistributionCommand");
6
7
  const AttachDiskCommand_1 = require("./commands/AttachDiskCommand");
@@ -161,2232 +162,168 @@ const UpdateLoadBalancerAttributeCommand_1 = require("./commands/UpdateLoadBalan
161
162
  const UpdateRelationalDatabaseCommand_1 = require("./commands/UpdateRelationalDatabaseCommand");
162
163
  const UpdateRelationalDatabaseParametersCommand_1 = require("./commands/UpdateRelationalDatabaseParametersCommand");
163
164
  const LightsailClient_1 = require("./LightsailClient");
165
+ const commands = {
166
+ AllocateStaticIpCommand: AllocateStaticIpCommand_1.AllocateStaticIpCommand,
167
+ AttachCertificateToDistributionCommand: AttachCertificateToDistributionCommand_1.AttachCertificateToDistributionCommand,
168
+ AttachDiskCommand: AttachDiskCommand_1.AttachDiskCommand,
169
+ AttachInstancesToLoadBalancerCommand: AttachInstancesToLoadBalancerCommand_1.AttachInstancesToLoadBalancerCommand,
170
+ AttachLoadBalancerTlsCertificateCommand: AttachLoadBalancerTlsCertificateCommand_1.AttachLoadBalancerTlsCertificateCommand,
171
+ AttachStaticIpCommand: AttachStaticIpCommand_1.AttachStaticIpCommand,
172
+ CloseInstancePublicPortsCommand: CloseInstancePublicPortsCommand_1.CloseInstancePublicPortsCommand,
173
+ CopySnapshotCommand: CopySnapshotCommand_1.CopySnapshotCommand,
174
+ CreateBucketCommand: CreateBucketCommand_1.CreateBucketCommand,
175
+ CreateBucketAccessKeyCommand: CreateBucketAccessKeyCommand_1.CreateBucketAccessKeyCommand,
176
+ CreateCertificateCommand: CreateCertificateCommand_1.CreateCertificateCommand,
177
+ CreateCloudFormationStackCommand: CreateCloudFormationStackCommand_1.CreateCloudFormationStackCommand,
178
+ CreateContactMethodCommand: CreateContactMethodCommand_1.CreateContactMethodCommand,
179
+ CreateContainerServiceCommand: CreateContainerServiceCommand_1.CreateContainerServiceCommand,
180
+ CreateContainerServiceDeploymentCommand: CreateContainerServiceDeploymentCommand_1.CreateContainerServiceDeploymentCommand,
181
+ CreateContainerServiceRegistryLoginCommand: CreateContainerServiceRegistryLoginCommand_1.CreateContainerServiceRegistryLoginCommand,
182
+ CreateDiskCommand: CreateDiskCommand_1.CreateDiskCommand,
183
+ CreateDiskFromSnapshotCommand: CreateDiskFromSnapshotCommand_1.CreateDiskFromSnapshotCommand,
184
+ CreateDiskSnapshotCommand: CreateDiskSnapshotCommand_1.CreateDiskSnapshotCommand,
185
+ CreateDistributionCommand: CreateDistributionCommand_1.CreateDistributionCommand,
186
+ CreateDomainCommand: CreateDomainCommand_1.CreateDomainCommand,
187
+ CreateDomainEntryCommand: CreateDomainEntryCommand_1.CreateDomainEntryCommand,
188
+ CreateGUISessionAccessDetailsCommand: CreateGUISessionAccessDetailsCommand_1.CreateGUISessionAccessDetailsCommand,
189
+ CreateInstancesCommand: CreateInstancesCommand_1.CreateInstancesCommand,
190
+ CreateInstancesFromSnapshotCommand: CreateInstancesFromSnapshotCommand_1.CreateInstancesFromSnapshotCommand,
191
+ CreateInstanceSnapshotCommand: CreateInstanceSnapshotCommand_1.CreateInstanceSnapshotCommand,
192
+ CreateKeyPairCommand: CreateKeyPairCommand_1.CreateKeyPairCommand,
193
+ CreateLoadBalancerCommand: CreateLoadBalancerCommand_1.CreateLoadBalancerCommand,
194
+ CreateLoadBalancerTlsCertificateCommand: CreateLoadBalancerTlsCertificateCommand_1.CreateLoadBalancerTlsCertificateCommand,
195
+ CreateRelationalDatabaseCommand: CreateRelationalDatabaseCommand_1.CreateRelationalDatabaseCommand,
196
+ CreateRelationalDatabaseFromSnapshotCommand: CreateRelationalDatabaseFromSnapshotCommand_1.CreateRelationalDatabaseFromSnapshotCommand,
197
+ CreateRelationalDatabaseSnapshotCommand: CreateRelationalDatabaseSnapshotCommand_1.CreateRelationalDatabaseSnapshotCommand,
198
+ DeleteAlarmCommand: DeleteAlarmCommand_1.DeleteAlarmCommand,
199
+ DeleteAutoSnapshotCommand: DeleteAutoSnapshotCommand_1.DeleteAutoSnapshotCommand,
200
+ DeleteBucketCommand: DeleteBucketCommand_1.DeleteBucketCommand,
201
+ DeleteBucketAccessKeyCommand: DeleteBucketAccessKeyCommand_1.DeleteBucketAccessKeyCommand,
202
+ DeleteCertificateCommand: DeleteCertificateCommand_1.DeleteCertificateCommand,
203
+ DeleteContactMethodCommand: DeleteContactMethodCommand_1.DeleteContactMethodCommand,
204
+ DeleteContainerImageCommand: DeleteContainerImageCommand_1.DeleteContainerImageCommand,
205
+ DeleteContainerServiceCommand: DeleteContainerServiceCommand_1.DeleteContainerServiceCommand,
206
+ DeleteDiskCommand: DeleteDiskCommand_1.DeleteDiskCommand,
207
+ DeleteDiskSnapshotCommand: DeleteDiskSnapshotCommand_1.DeleteDiskSnapshotCommand,
208
+ DeleteDistributionCommand: DeleteDistributionCommand_1.DeleteDistributionCommand,
209
+ DeleteDomainCommand: DeleteDomainCommand_1.DeleteDomainCommand,
210
+ DeleteDomainEntryCommand: DeleteDomainEntryCommand_1.DeleteDomainEntryCommand,
211
+ DeleteInstanceCommand: DeleteInstanceCommand_1.DeleteInstanceCommand,
212
+ DeleteInstanceSnapshotCommand: DeleteInstanceSnapshotCommand_1.DeleteInstanceSnapshotCommand,
213
+ DeleteKeyPairCommand: DeleteKeyPairCommand_1.DeleteKeyPairCommand,
214
+ DeleteKnownHostKeysCommand: DeleteKnownHostKeysCommand_1.DeleteKnownHostKeysCommand,
215
+ DeleteLoadBalancerCommand: DeleteLoadBalancerCommand_1.DeleteLoadBalancerCommand,
216
+ DeleteLoadBalancerTlsCertificateCommand: DeleteLoadBalancerTlsCertificateCommand_1.DeleteLoadBalancerTlsCertificateCommand,
217
+ DeleteRelationalDatabaseCommand: DeleteRelationalDatabaseCommand_1.DeleteRelationalDatabaseCommand,
218
+ DeleteRelationalDatabaseSnapshotCommand: DeleteRelationalDatabaseSnapshotCommand_1.DeleteRelationalDatabaseSnapshotCommand,
219
+ DetachCertificateFromDistributionCommand: DetachCertificateFromDistributionCommand_1.DetachCertificateFromDistributionCommand,
220
+ DetachDiskCommand: DetachDiskCommand_1.DetachDiskCommand,
221
+ DetachInstancesFromLoadBalancerCommand: DetachInstancesFromLoadBalancerCommand_1.DetachInstancesFromLoadBalancerCommand,
222
+ DetachStaticIpCommand: DetachStaticIpCommand_1.DetachStaticIpCommand,
223
+ DisableAddOnCommand: DisableAddOnCommand_1.DisableAddOnCommand,
224
+ DownloadDefaultKeyPairCommand: DownloadDefaultKeyPairCommand_1.DownloadDefaultKeyPairCommand,
225
+ EnableAddOnCommand: EnableAddOnCommand_1.EnableAddOnCommand,
226
+ ExportSnapshotCommand: ExportSnapshotCommand_1.ExportSnapshotCommand,
227
+ GetActiveNamesCommand: GetActiveNamesCommand_1.GetActiveNamesCommand,
228
+ GetAlarmsCommand: GetAlarmsCommand_1.GetAlarmsCommand,
229
+ GetAutoSnapshotsCommand: GetAutoSnapshotsCommand_1.GetAutoSnapshotsCommand,
230
+ GetBlueprintsCommand: GetBlueprintsCommand_1.GetBlueprintsCommand,
231
+ GetBucketAccessKeysCommand: GetBucketAccessKeysCommand_1.GetBucketAccessKeysCommand,
232
+ GetBucketBundlesCommand: GetBucketBundlesCommand_1.GetBucketBundlesCommand,
233
+ GetBucketMetricDataCommand: GetBucketMetricDataCommand_1.GetBucketMetricDataCommand,
234
+ GetBucketsCommand: GetBucketsCommand_1.GetBucketsCommand,
235
+ GetBundlesCommand: GetBundlesCommand_1.GetBundlesCommand,
236
+ GetCertificatesCommand: GetCertificatesCommand_1.GetCertificatesCommand,
237
+ GetCloudFormationStackRecordsCommand: GetCloudFormationStackRecordsCommand_1.GetCloudFormationStackRecordsCommand,
238
+ GetContactMethodsCommand: GetContactMethodsCommand_1.GetContactMethodsCommand,
239
+ GetContainerAPIMetadataCommand: GetContainerAPIMetadataCommand_1.GetContainerAPIMetadataCommand,
240
+ GetContainerImagesCommand: GetContainerImagesCommand_1.GetContainerImagesCommand,
241
+ GetContainerLogCommand: GetContainerLogCommand_1.GetContainerLogCommand,
242
+ GetContainerServiceDeploymentsCommand: GetContainerServiceDeploymentsCommand_1.GetContainerServiceDeploymentsCommand,
243
+ GetContainerServiceMetricDataCommand: GetContainerServiceMetricDataCommand_1.GetContainerServiceMetricDataCommand,
244
+ GetContainerServicePowersCommand: GetContainerServicePowersCommand_1.GetContainerServicePowersCommand,
245
+ GetContainerServicesCommand: GetContainerServicesCommand_1.GetContainerServicesCommand,
246
+ GetCostEstimateCommand: GetCostEstimateCommand_1.GetCostEstimateCommand,
247
+ GetDiskCommand: GetDiskCommand_1.GetDiskCommand,
248
+ GetDisksCommand: GetDisksCommand_1.GetDisksCommand,
249
+ GetDiskSnapshotCommand: GetDiskSnapshotCommand_1.GetDiskSnapshotCommand,
250
+ GetDiskSnapshotsCommand: GetDiskSnapshotsCommand_1.GetDiskSnapshotsCommand,
251
+ GetDistributionBundlesCommand: GetDistributionBundlesCommand_1.GetDistributionBundlesCommand,
252
+ GetDistributionLatestCacheResetCommand: GetDistributionLatestCacheResetCommand_1.GetDistributionLatestCacheResetCommand,
253
+ GetDistributionMetricDataCommand: GetDistributionMetricDataCommand_1.GetDistributionMetricDataCommand,
254
+ GetDistributionsCommand: GetDistributionsCommand_1.GetDistributionsCommand,
255
+ GetDomainCommand: GetDomainCommand_1.GetDomainCommand,
256
+ GetDomainsCommand: GetDomainsCommand_1.GetDomainsCommand,
257
+ GetExportSnapshotRecordsCommand: GetExportSnapshotRecordsCommand_1.GetExportSnapshotRecordsCommand,
258
+ GetInstanceCommand: GetInstanceCommand_1.GetInstanceCommand,
259
+ GetInstanceAccessDetailsCommand: GetInstanceAccessDetailsCommand_1.GetInstanceAccessDetailsCommand,
260
+ GetInstanceMetricDataCommand: GetInstanceMetricDataCommand_1.GetInstanceMetricDataCommand,
261
+ GetInstancePortStatesCommand: GetInstancePortStatesCommand_1.GetInstancePortStatesCommand,
262
+ GetInstancesCommand: GetInstancesCommand_1.GetInstancesCommand,
263
+ GetInstanceSnapshotCommand: GetInstanceSnapshotCommand_1.GetInstanceSnapshotCommand,
264
+ GetInstanceSnapshotsCommand: GetInstanceSnapshotsCommand_1.GetInstanceSnapshotsCommand,
265
+ GetInstanceStateCommand: GetInstanceStateCommand_1.GetInstanceStateCommand,
266
+ GetKeyPairCommand: GetKeyPairCommand_1.GetKeyPairCommand,
267
+ GetKeyPairsCommand: GetKeyPairsCommand_1.GetKeyPairsCommand,
268
+ GetLoadBalancerCommand: GetLoadBalancerCommand_1.GetLoadBalancerCommand,
269
+ GetLoadBalancerMetricDataCommand: GetLoadBalancerMetricDataCommand_1.GetLoadBalancerMetricDataCommand,
270
+ GetLoadBalancersCommand: GetLoadBalancersCommand_1.GetLoadBalancersCommand,
271
+ GetLoadBalancerTlsCertificatesCommand: GetLoadBalancerTlsCertificatesCommand_1.GetLoadBalancerTlsCertificatesCommand,
272
+ GetLoadBalancerTlsPoliciesCommand: GetLoadBalancerTlsPoliciesCommand_1.GetLoadBalancerTlsPoliciesCommand,
273
+ GetOperationCommand: GetOperationCommand_1.GetOperationCommand,
274
+ GetOperationsCommand: GetOperationsCommand_1.GetOperationsCommand,
275
+ GetOperationsForResourceCommand: GetOperationsForResourceCommand_1.GetOperationsForResourceCommand,
276
+ GetRegionsCommand: GetRegionsCommand_1.GetRegionsCommand,
277
+ GetRelationalDatabaseCommand: GetRelationalDatabaseCommand_1.GetRelationalDatabaseCommand,
278
+ GetRelationalDatabaseBlueprintsCommand: GetRelationalDatabaseBlueprintsCommand_1.GetRelationalDatabaseBlueprintsCommand,
279
+ GetRelationalDatabaseBundlesCommand: GetRelationalDatabaseBundlesCommand_1.GetRelationalDatabaseBundlesCommand,
280
+ GetRelationalDatabaseEventsCommand: GetRelationalDatabaseEventsCommand_1.GetRelationalDatabaseEventsCommand,
281
+ GetRelationalDatabaseLogEventsCommand: GetRelationalDatabaseLogEventsCommand_1.GetRelationalDatabaseLogEventsCommand,
282
+ GetRelationalDatabaseLogStreamsCommand: GetRelationalDatabaseLogStreamsCommand_1.GetRelationalDatabaseLogStreamsCommand,
283
+ GetRelationalDatabaseMasterUserPasswordCommand: GetRelationalDatabaseMasterUserPasswordCommand_1.GetRelationalDatabaseMasterUserPasswordCommand,
284
+ GetRelationalDatabaseMetricDataCommand: GetRelationalDatabaseMetricDataCommand_1.GetRelationalDatabaseMetricDataCommand,
285
+ GetRelationalDatabaseParametersCommand: GetRelationalDatabaseParametersCommand_1.GetRelationalDatabaseParametersCommand,
286
+ GetRelationalDatabasesCommand: GetRelationalDatabasesCommand_1.GetRelationalDatabasesCommand,
287
+ GetRelationalDatabaseSnapshotCommand: GetRelationalDatabaseSnapshotCommand_1.GetRelationalDatabaseSnapshotCommand,
288
+ GetRelationalDatabaseSnapshotsCommand: GetRelationalDatabaseSnapshotsCommand_1.GetRelationalDatabaseSnapshotsCommand,
289
+ GetStaticIpCommand: GetStaticIpCommand_1.GetStaticIpCommand,
290
+ GetStaticIpsCommand: GetStaticIpsCommand_1.GetStaticIpsCommand,
291
+ ImportKeyPairCommand: ImportKeyPairCommand_1.ImportKeyPairCommand,
292
+ IsVpcPeeredCommand: IsVpcPeeredCommand_1.IsVpcPeeredCommand,
293
+ OpenInstancePublicPortsCommand: OpenInstancePublicPortsCommand_1.OpenInstancePublicPortsCommand,
294
+ PeerVpcCommand: PeerVpcCommand_1.PeerVpcCommand,
295
+ PutAlarmCommand: PutAlarmCommand_1.PutAlarmCommand,
296
+ PutInstancePublicPortsCommand: PutInstancePublicPortsCommand_1.PutInstancePublicPortsCommand,
297
+ RebootInstanceCommand: RebootInstanceCommand_1.RebootInstanceCommand,
298
+ RebootRelationalDatabaseCommand: RebootRelationalDatabaseCommand_1.RebootRelationalDatabaseCommand,
299
+ RegisterContainerImageCommand: RegisterContainerImageCommand_1.RegisterContainerImageCommand,
300
+ ReleaseStaticIpCommand: ReleaseStaticIpCommand_1.ReleaseStaticIpCommand,
301
+ ResetDistributionCacheCommand: ResetDistributionCacheCommand_1.ResetDistributionCacheCommand,
302
+ SendContactMethodVerificationCommand: SendContactMethodVerificationCommand_1.SendContactMethodVerificationCommand,
303
+ SetIpAddressTypeCommand: SetIpAddressTypeCommand_1.SetIpAddressTypeCommand,
304
+ SetResourceAccessForBucketCommand: SetResourceAccessForBucketCommand_1.SetResourceAccessForBucketCommand,
305
+ StartGUISessionCommand: StartGUISessionCommand_1.StartGUISessionCommand,
306
+ StartInstanceCommand: StartInstanceCommand_1.StartInstanceCommand,
307
+ StartRelationalDatabaseCommand: StartRelationalDatabaseCommand_1.StartRelationalDatabaseCommand,
308
+ StopGUISessionCommand: StopGUISessionCommand_1.StopGUISessionCommand,
309
+ StopInstanceCommand: StopInstanceCommand_1.StopInstanceCommand,
310
+ StopRelationalDatabaseCommand: StopRelationalDatabaseCommand_1.StopRelationalDatabaseCommand,
311
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
312
+ TestAlarmCommand: TestAlarmCommand_1.TestAlarmCommand,
313
+ UnpeerVpcCommand: UnpeerVpcCommand_1.UnpeerVpcCommand,
314
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
315
+ UpdateBucketCommand: UpdateBucketCommand_1.UpdateBucketCommand,
316
+ UpdateBucketBundleCommand: UpdateBucketBundleCommand_1.UpdateBucketBundleCommand,
317
+ UpdateContainerServiceCommand: UpdateContainerServiceCommand_1.UpdateContainerServiceCommand,
318
+ UpdateDistributionCommand: UpdateDistributionCommand_1.UpdateDistributionCommand,
319
+ UpdateDistributionBundleCommand: UpdateDistributionBundleCommand_1.UpdateDistributionBundleCommand,
320
+ UpdateDomainEntryCommand: UpdateDomainEntryCommand_1.UpdateDomainEntryCommand,
321
+ UpdateInstanceMetadataOptionsCommand: UpdateInstanceMetadataOptionsCommand_1.UpdateInstanceMetadataOptionsCommand,
322
+ UpdateLoadBalancerAttributeCommand: UpdateLoadBalancerAttributeCommand_1.UpdateLoadBalancerAttributeCommand,
323
+ UpdateRelationalDatabaseCommand: UpdateRelationalDatabaseCommand_1.UpdateRelationalDatabaseCommand,
324
+ UpdateRelationalDatabaseParametersCommand: UpdateRelationalDatabaseParametersCommand_1.UpdateRelationalDatabaseParametersCommand,
325
+ };
164
326
  class Lightsail extends LightsailClient_1.LightsailClient {
165
- allocateStaticIp(args, optionsOrCb, cb) {
166
- const command = new AllocateStaticIpCommand_1.AllocateStaticIpCommand(args);
167
- if (typeof optionsOrCb === "function") {
168
- this.send(command, optionsOrCb);
169
- }
170
- else if (typeof cb === "function") {
171
- if (typeof optionsOrCb !== "object")
172
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
- this.send(command, optionsOrCb || {}, cb);
174
- }
175
- else {
176
- return this.send(command, optionsOrCb);
177
- }
178
- }
179
- attachCertificateToDistribution(args, optionsOrCb, cb) {
180
- const command = new AttachCertificateToDistributionCommand_1.AttachCertificateToDistributionCommand(args);
181
- if (typeof optionsOrCb === "function") {
182
- this.send(command, optionsOrCb);
183
- }
184
- else if (typeof cb === "function") {
185
- if (typeof optionsOrCb !== "object")
186
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
187
- this.send(command, optionsOrCb || {}, cb);
188
- }
189
- else {
190
- return this.send(command, optionsOrCb);
191
- }
192
- }
193
- attachDisk(args, optionsOrCb, cb) {
194
- const command = new AttachDiskCommand_1.AttachDiskCommand(args);
195
- if (typeof optionsOrCb === "function") {
196
- this.send(command, optionsOrCb);
197
- }
198
- else if (typeof cb === "function") {
199
- if (typeof optionsOrCb !== "object")
200
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
201
- this.send(command, optionsOrCb || {}, cb);
202
- }
203
- else {
204
- return this.send(command, optionsOrCb);
205
- }
206
- }
207
- attachInstancesToLoadBalancer(args, optionsOrCb, cb) {
208
- const command = new AttachInstancesToLoadBalancerCommand_1.AttachInstancesToLoadBalancerCommand(args);
209
- if (typeof optionsOrCb === "function") {
210
- this.send(command, optionsOrCb);
211
- }
212
- else if (typeof cb === "function") {
213
- if (typeof optionsOrCb !== "object")
214
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
215
- this.send(command, optionsOrCb || {}, cb);
216
- }
217
- else {
218
- return this.send(command, optionsOrCb);
219
- }
220
- }
221
- attachLoadBalancerTlsCertificate(args, optionsOrCb, cb) {
222
- const command = new AttachLoadBalancerTlsCertificateCommand_1.AttachLoadBalancerTlsCertificateCommand(args);
223
- if (typeof optionsOrCb === "function") {
224
- this.send(command, optionsOrCb);
225
- }
226
- else if (typeof cb === "function") {
227
- if (typeof optionsOrCb !== "object")
228
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
229
- this.send(command, optionsOrCb || {}, cb);
230
- }
231
- else {
232
- return this.send(command, optionsOrCb);
233
- }
234
- }
235
- attachStaticIp(args, optionsOrCb, cb) {
236
- const command = new AttachStaticIpCommand_1.AttachStaticIpCommand(args);
237
- if (typeof optionsOrCb === "function") {
238
- this.send(command, optionsOrCb);
239
- }
240
- else if (typeof cb === "function") {
241
- if (typeof optionsOrCb !== "object")
242
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
243
- this.send(command, optionsOrCb || {}, cb);
244
- }
245
- else {
246
- return this.send(command, optionsOrCb);
247
- }
248
- }
249
- closeInstancePublicPorts(args, optionsOrCb, cb) {
250
- const command = new CloseInstancePublicPortsCommand_1.CloseInstancePublicPortsCommand(args);
251
- if (typeof optionsOrCb === "function") {
252
- this.send(command, optionsOrCb);
253
- }
254
- else if (typeof cb === "function") {
255
- if (typeof optionsOrCb !== "object")
256
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
257
- this.send(command, optionsOrCb || {}, cb);
258
- }
259
- else {
260
- return this.send(command, optionsOrCb);
261
- }
262
- }
263
- copySnapshot(args, optionsOrCb, cb) {
264
- const command = new CopySnapshotCommand_1.CopySnapshotCommand(args);
265
- if (typeof optionsOrCb === "function") {
266
- this.send(command, optionsOrCb);
267
- }
268
- else if (typeof cb === "function") {
269
- if (typeof optionsOrCb !== "object")
270
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
271
- this.send(command, optionsOrCb || {}, cb);
272
- }
273
- else {
274
- return this.send(command, optionsOrCb);
275
- }
276
- }
277
- createBucket(args, optionsOrCb, cb) {
278
- const command = new CreateBucketCommand_1.CreateBucketCommand(args);
279
- if (typeof optionsOrCb === "function") {
280
- this.send(command, optionsOrCb);
281
- }
282
- else if (typeof cb === "function") {
283
- if (typeof optionsOrCb !== "object")
284
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
285
- this.send(command, optionsOrCb || {}, cb);
286
- }
287
- else {
288
- return this.send(command, optionsOrCb);
289
- }
290
- }
291
- createBucketAccessKey(args, optionsOrCb, cb) {
292
- const command = new CreateBucketAccessKeyCommand_1.CreateBucketAccessKeyCommand(args);
293
- if (typeof optionsOrCb === "function") {
294
- this.send(command, optionsOrCb);
295
- }
296
- else if (typeof cb === "function") {
297
- if (typeof optionsOrCb !== "object")
298
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
299
- this.send(command, optionsOrCb || {}, cb);
300
- }
301
- else {
302
- return this.send(command, optionsOrCb);
303
- }
304
- }
305
- createCertificate(args, optionsOrCb, cb) {
306
- const command = new CreateCertificateCommand_1.CreateCertificateCommand(args);
307
- if (typeof optionsOrCb === "function") {
308
- this.send(command, optionsOrCb);
309
- }
310
- else if (typeof cb === "function") {
311
- if (typeof optionsOrCb !== "object")
312
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
313
- this.send(command, optionsOrCb || {}, cb);
314
- }
315
- else {
316
- return this.send(command, optionsOrCb);
317
- }
318
- }
319
- createCloudFormationStack(args, optionsOrCb, cb) {
320
- const command = new CreateCloudFormationStackCommand_1.CreateCloudFormationStackCommand(args);
321
- if (typeof optionsOrCb === "function") {
322
- this.send(command, optionsOrCb);
323
- }
324
- else if (typeof cb === "function") {
325
- if (typeof optionsOrCb !== "object")
326
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
327
- this.send(command, optionsOrCb || {}, cb);
328
- }
329
- else {
330
- return this.send(command, optionsOrCb);
331
- }
332
- }
333
- createContactMethod(args, optionsOrCb, cb) {
334
- const command = new CreateContactMethodCommand_1.CreateContactMethodCommand(args);
335
- if (typeof optionsOrCb === "function") {
336
- this.send(command, optionsOrCb);
337
- }
338
- else if (typeof cb === "function") {
339
- if (typeof optionsOrCb !== "object")
340
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
341
- this.send(command, optionsOrCb || {}, cb);
342
- }
343
- else {
344
- return this.send(command, optionsOrCb);
345
- }
346
- }
347
- createContainerService(args, optionsOrCb, cb) {
348
- const command = new CreateContainerServiceCommand_1.CreateContainerServiceCommand(args);
349
- if (typeof optionsOrCb === "function") {
350
- this.send(command, optionsOrCb);
351
- }
352
- else if (typeof cb === "function") {
353
- if (typeof optionsOrCb !== "object")
354
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
355
- this.send(command, optionsOrCb || {}, cb);
356
- }
357
- else {
358
- return this.send(command, optionsOrCb);
359
- }
360
- }
361
- createContainerServiceDeployment(args, optionsOrCb, cb) {
362
- const command = new CreateContainerServiceDeploymentCommand_1.CreateContainerServiceDeploymentCommand(args);
363
- if (typeof optionsOrCb === "function") {
364
- this.send(command, optionsOrCb);
365
- }
366
- else if (typeof cb === "function") {
367
- if (typeof optionsOrCb !== "object")
368
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
369
- this.send(command, optionsOrCb || {}, cb);
370
- }
371
- else {
372
- return this.send(command, optionsOrCb);
373
- }
374
- }
375
- createContainerServiceRegistryLogin(args, optionsOrCb, cb) {
376
- const command = new CreateContainerServiceRegistryLoginCommand_1.CreateContainerServiceRegistryLoginCommand(args);
377
- if (typeof optionsOrCb === "function") {
378
- this.send(command, optionsOrCb);
379
- }
380
- else if (typeof cb === "function") {
381
- if (typeof optionsOrCb !== "object")
382
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
383
- this.send(command, optionsOrCb || {}, cb);
384
- }
385
- else {
386
- return this.send(command, optionsOrCb);
387
- }
388
- }
389
- createDisk(args, optionsOrCb, cb) {
390
- const command = new CreateDiskCommand_1.CreateDiskCommand(args);
391
- if (typeof optionsOrCb === "function") {
392
- this.send(command, optionsOrCb);
393
- }
394
- else if (typeof cb === "function") {
395
- if (typeof optionsOrCb !== "object")
396
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
397
- this.send(command, optionsOrCb || {}, cb);
398
- }
399
- else {
400
- return this.send(command, optionsOrCb);
401
- }
402
- }
403
- createDiskFromSnapshot(args, optionsOrCb, cb) {
404
- const command = new CreateDiskFromSnapshotCommand_1.CreateDiskFromSnapshotCommand(args);
405
- if (typeof optionsOrCb === "function") {
406
- this.send(command, optionsOrCb);
407
- }
408
- else if (typeof cb === "function") {
409
- if (typeof optionsOrCb !== "object")
410
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
411
- this.send(command, optionsOrCb || {}, cb);
412
- }
413
- else {
414
- return this.send(command, optionsOrCb);
415
- }
416
- }
417
- createDiskSnapshot(args, optionsOrCb, cb) {
418
- const command = new CreateDiskSnapshotCommand_1.CreateDiskSnapshotCommand(args);
419
- if (typeof optionsOrCb === "function") {
420
- this.send(command, optionsOrCb);
421
- }
422
- else if (typeof cb === "function") {
423
- if (typeof optionsOrCb !== "object")
424
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
425
- this.send(command, optionsOrCb || {}, cb);
426
- }
427
- else {
428
- return this.send(command, optionsOrCb);
429
- }
430
- }
431
- createDistribution(args, optionsOrCb, cb) {
432
- const command = new CreateDistributionCommand_1.CreateDistributionCommand(args);
433
- if (typeof optionsOrCb === "function") {
434
- this.send(command, optionsOrCb);
435
- }
436
- else if (typeof cb === "function") {
437
- if (typeof optionsOrCb !== "object")
438
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
439
- this.send(command, optionsOrCb || {}, cb);
440
- }
441
- else {
442
- return this.send(command, optionsOrCb);
443
- }
444
- }
445
- createDomain(args, optionsOrCb, cb) {
446
- const command = new CreateDomainCommand_1.CreateDomainCommand(args);
447
- if (typeof optionsOrCb === "function") {
448
- this.send(command, optionsOrCb);
449
- }
450
- else if (typeof cb === "function") {
451
- if (typeof optionsOrCb !== "object")
452
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
453
- this.send(command, optionsOrCb || {}, cb);
454
- }
455
- else {
456
- return this.send(command, optionsOrCb);
457
- }
458
- }
459
- createDomainEntry(args, optionsOrCb, cb) {
460
- const command = new CreateDomainEntryCommand_1.CreateDomainEntryCommand(args);
461
- if (typeof optionsOrCb === "function") {
462
- this.send(command, optionsOrCb);
463
- }
464
- else if (typeof cb === "function") {
465
- if (typeof optionsOrCb !== "object")
466
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
467
- this.send(command, optionsOrCb || {}, cb);
468
- }
469
- else {
470
- return this.send(command, optionsOrCb);
471
- }
472
- }
473
- createGUISessionAccessDetails(args, optionsOrCb, cb) {
474
- const command = new CreateGUISessionAccessDetailsCommand_1.CreateGUISessionAccessDetailsCommand(args);
475
- if (typeof optionsOrCb === "function") {
476
- this.send(command, optionsOrCb);
477
- }
478
- else if (typeof cb === "function") {
479
- if (typeof optionsOrCb !== "object")
480
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
481
- this.send(command, optionsOrCb || {}, cb);
482
- }
483
- else {
484
- return this.send(command, optionsOrCb);
485
- }
486
- }
487
- createInstances(args, optionsOrCb, cb) {
488
- const command = new CreateInstancesCommand_1.CreateInstancesCommand(args);
489
- if (typeof optionsOrCb === "function") {
490
- this.send(command, optionsOrCb);
491
- }
492
- else if (typeof cb === "function") {
493
- if (typeof optionsOrCb !== "object")
494
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
495
- this.send(command, optionsOrCb || {}, cb);
496
- }
497
- else {
498
- return this.send(command, optionsOrCb);
499
- }
500
- }
501
- createInstancesFromSnapshot(args, optionsOrCb, cb) {
502
- const command = new CreateInstancesFromSnapshotCommand_1.CreateInstancesFromSnapshotCommand(args);
503
- if (typeof optionsOrCb === "function") {
504
- this.send(command, optionsOrCb);
505
- }
506
- else if (typeof cb === "function") {
507
- if (typeof optionsOrCb !== "object")
508
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
509
- this.send(command, optionsOrCb || {}, cb);
510
- }
511
- else {
512
- return this.send(command, optionsOrCb);
513
- }
514
- }
515
- createInstanceSnapshot(args, optionsOrCb, cb) {
516
- const command = new CreateInstanceSnapshotCommand_1.CreateInstanceSnapshotCommand(args);
517
- if (typeof optionsOrCb === "function") {
518
- this.send(command, optionsOrCb);
519
- }
520
- else if (typeof cb === "function") {
521
- if (typeof optionsOrCb !== "object")
522
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
523
- this.send(command, optionsOrCb || {}, cb);
524
- }
525
- else {
526
- return this.send(command, optionsOrCb);
527
- }
528
- }
529
- createKeyPair(args, optionsOrCb, cb) {
530
- const command = new CreateKeyPairCommand_1.CreateKeyPairCommand(args);
531
- if (typeof optionsOrCb === "function") {
532
- this.send(command, optionsOrCb);
533
- }
534
- else if (typeof cb === "function") {
535
- if (typeof optionsOrCb !== "object")
536
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
537
- this.send(command, optionsOrCb || {}, cb);
538
- }
539
- else {
540
- return this.send(command, optionsOrCb);
541
- }
542
- }
543
- createLoadBalancer(args, optionsOrCb, cb) {
544
- const command = new CreateLoadBalancerCommand_1.CreateLoadBalancerCommand(args);
545
- if (typeof optionsOrCb === "function") {
546
- this.send(command, optionsOrCb);
547
- }
548
- else if (typeof cb === "function") {
549
- if (typeof optionsOrCb !== "object")
550
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
551
- this.send(command, optionsOrCb || {}, cb);
552
- }
553
- else {
554
- return this.send(command, optionsOrCb);
555
- }
556
- }
557
- createLoadBalancerTlsCertificate(args, optionsOrCb, cb) {
558
- const command = new CreateLoadBalancerTlsCertificateCommand_1.CreateLoadBalancerTlsCertificateCommand(args);
559
- if (typeof optionsOrCb === "function") {
560
- this.send(command, optionsOrCb);
561
- }
562
- else if (typeof cb === "function") {
563
- if (typeof optionsOrCb !== "object")
564
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
565
- this.send(command, optionsOrCb || {}, cb);
566
- }
567
- else {
568
- return this.send(command, optionsOrCb);
569
- }
570
- }
571
- createRelationalDatabase(args, optionsOrCb, cb) {
572
- const command = new CreateRelationalDatabaseCommand_1.CreateRelationalDatabaseCommand(args);
573
- if (typeof optionsOrCb === "function") {
574
- this.send(command, optionsOrCb);
575
- }
576
- else if (typeof cb === "function") {
577
- if (typeof optionsOrCb !== "object")
578
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
579
- this.send(command, optionsOrCb || {}, cb);
580
- }
581
- else {
582
- return this.send(command, optionsOrCb);
583
- }
584
- }
585
- createRelationalDatabaseFromSnapshot(args, optionsOrCb, cb) {
586
- const command = new CreateRelationalDatabaseFromSnapshotCommand_1.CreateRelationalDatabaseFromSnapshotCommand(args);
587
- if (typeof optionsOrCb === "function") {
588
- this.send(command, optionsOrCb);
589
- }
590
- else if (typeof cb === "function") {
591
- if (typeof optionsOrCb !== "object")
592
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
593
- this.send(command, optionsOrCb || {}, cb);
594
- }
595
- else {
596
- return this.send(command, optionsOrCb);
597
- }
598
- }
599
- createRelationalDatabaseSnapshot(args, optionsOrCb, cb) {
600
- const command = new CreateRelationalDatabaseSnapshotCommand_1.CreateRelationalDatabaseSnapshotCommand(args);
601
- if (typeof optionsOrCb === "function") {
602
- this.send(command, optionsOrCb);
603
- }
604
- else if (typeof cb === "function") {
605
- if (typeof optionsOrCb !== "object")
606
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
607
- this.send(command, optionsOrCb || {}, cb);
608
- }
609
- else {
610
- return this.send(command, optionsOrCb);
611
- }
612
- }
613
- deleteAlarm(args, optionsOrCb, cb) {
614
- const command = new DeleteAlarmCommand_1.DeleteAlarmCommand(args);
615
- if (typeof optionsOrCb === "function") {
616
- this.send(command, optionsOrCb);
617
- }
618
- else if (typeof cb === "function") {
619
- if (typeof optionsOrCb !== "object")
620
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
621
- this.send(command, optionsOrCb || {}, cb);
622
- }
623
- else {
624
- return this.send(command, optionsOrCb);
625
- }
626
- }
627
- deleteAutoSnapshot(args, optionsOrCb, cb) {
628
- const command = new DeleteAutoSnapshotCommand_1.DeleteAutoSnapshotCommand(args);
629
- if (typeof optionsOrCb === "function") {
630
- this.send(command, optionsOrCb);
631
- }
632
- else if (typeof cb === "function") {
633
- if (typeof optionsOrCb !== "object")
634
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
635
- this.send(command, optionsOrCb || {}, cb);
636
- }
637
- else {
638
- return this.send(command, optionsOrCb);
639
- }
640
- }
641
- deleteBucket(args, optionsOrCb, cb) {
642
- const command = new DeleteBucketCommand_1.DeleteBucketCommand(args);
643
- if (typeof optionsOrCb === "function") {
644
- this.send(command, optionsOrCb);
645
- }
646
- else if (typeof cb === "function") {
647
- if (typeof optionsOrCb !== "object")
648
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
649
- this.send(command, optionsOrCb || {}, cb);
650
- }
651
- else {
652
- return this.send(command, optionsOrCb);
653
- }
654
- }
655
- deleteBucketAccessKey(args, optionsOrCb, cb) {
656
- const command = new DeleteBucketAccessKeyCommand_1.DeleteBucketAccessKeyCommand(args);
657
- if (typeof optionsOrCb === "function") {
658
- this.send(command, optionsOrCb);
659
- }
660
- else if (typeof cb === "function") {
661
- if (typeof optionsOrCb !== "object")
662
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
663
- this.send(command, optionsOrCb || {}, cb);
664
- }
665
- else {
666
- return this.send(command, optionsOrCb);
667
- }
668
- }
669
- deleteCertificate(args, optionsOrCb, cb) {
670
- const command = new DeleteCertificateCommand_1.DeleteCertificateCommand(args);
671
- if (typeof optionsOrCb === "function") {
672
- this.send(command, optionsOrCb);
673
- }
674
- else if (typeof cb === "function") {
675
- if (typeof optionsOrCb !== "object")
676
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
677
- this.send(command, optionsOrCb || {}, cb);
678
- }
679
- else {
680
- return this.send(command, optionsOrCb);
681
- }
682
- }
683
- deleteContactMethod(args, optionsOrCb, cb) {
684
- const command = new DeleteContactMethodCommand_1.DeleteContactMethodCommand(args);
685
- if (typeof optionsOrCb === "function") {
686
- this.send(command, optionsOrCb);
687
- }
688
- else if (typeof cb === "function") {
689
- if (typeof optionsOrCb !== "object")
690
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
691
- this.send(command, optionsOrCb || {}, cb);
692
- }
693
- else {
694
- return this.send(command, optionsOrCb);
695
- }
696
- }
697
- deleteContainerImage(args, optionsOrCb, cb) {
698
- const command = new DeleteContainerImageCommand_1.DeleteContainerImageCommand(args);
699
- if (typeof optionsOrCb === "function") {
700
- this.send(command, optionsOrCb);
701
- }
702
- else if (typeof cb === "function") {
703
- if (typeof optionsOrCb !== "object")
704
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
705
- this.send(command, optionsOrCb || {}, cb);
706
- }
707
- else {
708
- return this.send(command, optionsOrCb);
709
- }
710
- }
711
- deleteContainerService(args, optionsOrCb, cb) {
712
- const command = new DeleteContainerServiceCommand_1.DeleteContainerServiceCommand(args);
713
- if (typeof optionsOrCb === "function") {
714
- this.send(command, optionsOrCb);
715
- }
716
- else if (typeof cb === "function") {
717
- if (typeof optionsOrCb !== "object")
718
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
719
- this.send(command, optionsOrCb || {}, cb);
720
- }
721
- else {
722
- return this.send(command, optionsOrCb);
723
- }
724
- }
725
- deleteDisk(args, optionsOrCb, cb) {
726
- const command = new DeleteDiskCommand_1.DeleteDiskCommand(args);
727
- if (typeof optionsOrCb === "function") {
728
- this.send(command, optionsOrCb);
729
- }
730
- else if (typeof cb === "function") {
731
- if (typeof optionsOrCb !== "object")
732
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
733
- this.send(command, optionsOrCb || {}, cb);
734
- }
735
- else {
736
- return this.send(command, optionsOrCb);
737
- }
738
- }
739
- deleteDiskSnapshot(args, optionsOrCb, cb) {
740
- const command = new DeleteDiskSnapshotCommand_1.DeleteDiskSnapshotCommand(args);
741
- if (typeof optionsOrCb === "function") {
742
- this.send(command, optionsOrCb);
743
- }
744
- else if (typeof cb === "function") {
745
- if (typeof optionsOrCb !== "object")
746
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
747
- this.send(command, optionsOrCb || {}, cb);
748
- }
749
- else {
750
- return this.send(command, optionsOrCb);
751
- }
752
- }
753
- deleteDistribution(args, optionsOrCb, cb) {
754
- const command = new DeleteDistributionCommand_1.DeleteDistributionCommand(args);
755
- if (typeof optionsOrCb === "function") {
756
- this.send(command, optionsOrCb);
757
- }
758
- else if (typeof cb === "function") {
759
- if (typeof optionsOrCb !== "object")
760
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
761
- this.send(command, optionsOrCb || {}, cb);
762
- }
763
- else {
764
- return this.send(command, optionsOrCb);
765
- }
766
- }
767
- deleteDomain(args, optionsOrCb, cb) {
768
- const command = new DeleteDomainCommand_1.DeleteDomainCommand(args);
769
- if (typeof optionsOrCb === "function") {
770
- this.send(command, optionsOrCb);
771
- }
772
- else if (typeof cb === "function") {
773
- if (typeof optionsOrCb !== "object")
774
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
775
- this.send(command, optionsOrCb || {}, cb);
776
- }
777
- else {
778
- return this.send(command, optionsOrCb);
779
- }
780
- }
781
- deleteDomainEntry(args, optionsOrCb, cb) {
782
- const command = new DeleteDomainEntryCommand_1.DeleteDomainEntryCommand(args);
783
- if (typeof optionsOrCb === "function") {
784
- this.send(command, optionsOrCb);
785
- }
786
- else if (typeof cb === "function") {
787
- if (typeof optionsOrCb !== "object")
788
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
789
- this.send(command, optionsOrCb || {}, cb);
790
- }
791
- else {
792
- return this.send(command, optionsOrCb);
793
- }
794
- }
795
- deleteInstance(args, optionsOrCb, cb) {
796
- const command = new DeleteInstanceCommand_1.DeleteInstanceCommand(args);
797
- if (typeof optionsOrCb === "function") {
798
- this.send(command, optionsOrCb);
799
- }
800
- else if (typeof cb === "function") {
801
- if (typeof optionsOrCb !== "object")
802
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
803
- this.send(command, optionsOrCb || {}, cb);
804
- }
805
- else {
806
- return this.send(command, optionsOrCb);
807
- }
808
- }
809
- deleteInstanceSnapshot(args, optionsOrCb, cb) {
810
- const command = new DeleteInstanceSnapshotCommand_1.DeleteInstanceSnapshotCommand(args);
811
- if (typeof optionsOrCb === "function") {
812
- this.send(command, optionsOrCb);
813
- }
814
- else if (typeof cb === "function") {
815
- if (typeof optionsOrCb !== "object")
816
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
817
- this.send(command, optionsOrCb || {}, cb);
818
- }
819
- else {
820
- return this.send(command, optionsOrCb);
821
- }
822
- }
823
- deleteKeyPair(args, optionsOrCb, cb) {
824
- const command = new DeleteKeyPairCommand_1.DeleteKeyPairCommand(args);
825
- if (typeof optionsOrCb === "function") {
826
- this.send(command, optionsOrCb);
827
- }
828
- else if (typeof cb === "function") {
829
- if (typeof optionsOrCb !== "object")
830
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
831
- this.send(command, optionsOrCb || {}, cb);
832
- }
833
- else {
834
- return this.send(command, optionsOrCb);
835
- }
836
- }
837
- deleteKnownHostKeys(args, optionsOrCb, cb) {
838
- const command = new DeleteKnownHostKeysCommand_1.DeleteKnownHostKeysCommand(args);
839
- if (typeof optionsOrCb === "function") {
840
- this.send(command, optionsOrCb);
841
- }
842
- else if (typeof cb === "function") {
843
- if (typeof optionsOrCb !== "object")
844
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
845
- this.send(command, optionsOrCb || {}, cb);
846
- }
847
- else {
848
- return this.send(command, optionsOrCb);
849
- }
850
- }
851
- deleteLoadBalancer(args, optionsOrCb, cb) {
852
- const command = new DeleteLoadBalancerCommand_1.DeleteLoadBalancerCommand(args);
853
- if (typeof optionsOrCb === "function") {
854
- this.send(command, optionsOrCb);
855
- }
856
- else if (typeof cb === "function") {
857
- if (typeof optionsOrCb !== "object")
858
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
859
- this.send(command, optionsOrCb || {}, cb);
860
- }
861
- else {
862
- return this.send(command, optionsOrCb);
863
- }
864
- }
865
- deleteLoadBalancerTlsCertificate(args, optionsOrCb, cb) {
866
- const command = new DeleteLoadBalancerTlsCertificateCommand_1.DeleteLoadBalancerTlsCertificateCommand(args);
867
- if (typeof optionsOrCb === "function") {
868
- this.send(command, optionsOrCb);
869
- }
870
- else if (typeof cb === "function") {
871
- if (typeof optionsOrCb !== "object")
872
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
873
- this.send(command, optionsOrCb || {}, cb);
874
- }
875
- else {
876
- return this.send(command, optionsOrCb);
877
- }
878
- }
879
- deleteRelationalDatabase(args, optionsOrCb, cb) {
880
- const command = new DeleteRelationalDatabaseCommand_1.DeleteRelationalDatabaseCommand(args);
881
- if (typeof optionsOrCb === "function") {
882
- this.send(command, optionsOrCb);
883
- }
884
- else if (typeof cb === "function") {
885
- if (typeof optionsOrCb !== "object")
886
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
887
- this.send(command, optionsOrCb || {}, cb);
888
- }
889
- else {
890
- return this.send(command, optionsOrCb);
891
- }
892
- }
893
- deleteRelationalDatabaseSnapshot(args, optionsOrCb, cb) {
894
- const command = new DeleteRelationalDatabaseSnapshotCommand_1.DeleteRelationalDatabaseSnapshotCommand(args);
895
- if (typeof optionsOrCb === "function") {
896
- this.send(command, optionsOrCb);
897
- }
898
- else if (typeof cb === "function") {
899
- if (typeof optionsOrCb !== "object")
900
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
901
- this.send(command, optionsOrCb || {}, cb);
902
- }
903
- else {
904
- return this.send(command, optionsOrCb);
905
- }
906
- }
907
- detachCertificateFromDistribution(args, optionsOrCb, cb) {
908
- const command = new DetachCertificateFromDistributionCommand_1.DetachCertificateFromDistributionCommand(args);
909
- if (typeof optionsOrCb === "function") {
910
- this.send(command, optionsOrCb);
911
- }
912
- else if (typeof cb === "function") {
913
- if (typeof optionsOrCb !== "object")
914
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
915
- this.send(command, optionsOrCb || {}, cb);
916
- }
917
- else {
918
- return this.send(command, optionsOrCb);
919
- }
920
- }
921
- detachDisk(args, optionsOrCb, cb) {
922
- const command = new DetachDiskCommand_1.DetachDiskCommand(args);
923
- if (typeof optionsOrCb === "function") {
924
- this.send(command, optionsOrCb);
925
- }
926
- else if (typeof cb === "function") {
927
- if (typeof optionsOrCb !== "object")
928
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
929
- this.send(command, optionsOrCb || {}, cb);
930
- }
931
- else {
932
- return this.send(command, optionsOrCb);
933
- }
934
- }
935
- detachInstancesFromLoadBalancer(args, optionsOrCb, cb) {
936
- const command = new DetachInstancesFromLoadBalancerCommand_1.DetachInstancesFromLoadBalancerCommand(args);
937
- if (typeof optionsOrCb === "function") {
938
- this.send(command, optionsOrCb);
939
- }
940
- else if (typeof cb === "function") {
941
- if (typeof optionsOrCb !== "object")
942
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
943
- this.send(command, optionsOrCb || {}, cb);
944
- }
945
- else {
946
- return this.send(command, optionsOrCb);
947
- }
948
- }
949
- detachStaticIp(args, optionsOrCb, cb) {
950
- const command = new DetachStaticIpCommand_1.DetachStaticIpCommand(args);
951
- if (typeof optionsOrCb === "function") {
952
- this.send(command, optionsOrCb);
953
- }
954
- else if (typeof cb === "function") {
955
- if (typeof optionsOrCb !== "object")
956
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
957
- this.send(command, optionsOrCb || {}, cb);
958
- }
959
- else {
960
- return this.send(command, optionsOrCb);
961
- }
962
- }
963
- disableAddOn(args, optionsOrCb, cb) {
964
- const command = new DisableAddOnCommand_1.DisableAddOnCommand(args);
965
- if (typeof optionsOrCb === "function") {
966
- this.send(command, optionsOrCb);
967
- }
968
- else if (typeof cb === "function") {
969
- if (typeof optionsOrCb !== "object")
970
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
971
- this.send(command, optionsOrCb || {}, cb);
972
- }
973
- else {
974
- return this.send(command, optionsOrCb);
975
- }
976
- }
977
- downloadDefaultKeyPair(args, optionsOrCb, cb) {
978
- const command = new DownloadDefaultKeyPairCommand_1.DownloadDefaultKeyPairCommand(args);
979
- if (typeof optionsOrCb === "function") {
980
- this.send(command, optionsOrCb);
981
- }
982
- else if (typeof cb === "function") {
983
- if (typeof optionsOrCb !== "object")
984
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
985
- this.send(command, optionsOrCb || {}, cb);
986
- }
987
- else {
988
- return this.send(command, optionsOrCb);
989
- }
990
- }
991
- enableAddOn(args, optionsOrCb, cb) {
992
- const command = new EnableAddOnCommand_1.EnableAddOnCommand(args);
993
- if (typeof optionsOrCb === "function") {
994
- this.send(command, optionsOrCb);
995
- }
996
- else if (typeof cb === "function") {
997
- if (typeof optionsOrCb !== "object")
998
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
999
- this.send(command, optionsOrCb || {}, cb);
1000
- }
1001
- else {
1002
- return this.send(command, optionsOrCb);
1003
- }
1004
- }
1005
- exportSnapshot(args, optionsOrCb, cb) {
1006
- const command = new ExportSnapshotCommand_1.ExportSnapshotCommand(args);
1007
- if (typeof optionsOrCb === "function") {
1008
- this.send(command, optionsOrCb);
1009
- }
1010
- else if (typeof cb === "function") {
1011
- if (typeof optionsOrCb !== "object")
1012
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1013
- this.send(command, optionsOrCb || {}, cb);
1014
- }
1015
- else {
1016
- return this.send(command, optionsOrCb);
1017
- }
1018
- }
1019
- getActiveNames(args, optionsOrCb, cb) {
1020
- const command = new GetActiveNamesCommand_1.GetActiveNamesCommand(args);
1021
- if (typeof optionsOrCb === "function") {
1022
- this.send(command, optionsOrCb);
1023
- }
1024
- else if (typeof cb === "function") {
1025
- if (typeof optionsOrCb !== "object")
1026
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1027
- this.send(command, optionsOrCb || {}, cb);
1028
- }
1029
- else {
1030
- return this.send(command, optionsOrCb);
1031
- }
1032
- }
1033
- getAlarms(args, optionsOrCb, cb) {
1034
- const command = new GetAlarmsCommand_1.GetAlarmsCommand(args);
1035
- if (typeof optionsOrCb === "function") {
1036
- this.send(command, optionsOrCb);
1037
- }
1038
- else if (typeof cb === "function") {
1039
- if (typeof optionsOrCb !== "object")
1040
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1041
- this.send(command, optionsOrCb || {}, cb);
1042
- }
1043
- else {
1044
- return this.send(command, optionsOrCb);
1045
- }
1046
- }
1047
- getAutoSnapshots(args, optionsOrCb, cb) {
1048
- const command = new GetAutoSnapshotsCommand_1.GetAutoSnapshotsCommand(args);
1049
- if (typeof optionsOrCb === "function") {
1050
- this.send(command, optionsOrCb);
1051
- }
1052
- else if (typeof cb === "function") {
1053
- if (typeof optionsOrCb !== "object")
1054
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1055
- this.send(command, optionsOrCb || {}, cb);
1056
- }
1057
- else {
1058
- return this.send(command, optionsOrCb);
1059
- }
1060
- }
1061
- getBlueprints(args, optionsOrCb, cb) {
1062
- const command = new GetBlueprintsCommand_1.GetBlueprintsCommand(args);
1063
- if (typeof optionsOrCb === "function") {
1064
- this.send(command, optionsOrCb);
1065
- }
1066
- else if (typeof cb === "function") {
1067
- if (typeof optionsOrCb !== "object")
1068
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1069
- this.send(command, optionsOrCb || {}, cb);
1070
- }
1071
- else {
1072
- return this.send(command, optionsOrCb);
1073
- }
1074
- }
1075
- getBucketAccessKeys(args, optionsOrCb, cb) {
1076
- const command = new GetBucketAccessKeysCommand_1.GetBucketAccessKeysCommand(args);
1077
- if (typeof optionsOrCb === "function") {
1078
- this.send(command, optionsOrCb);
1079
- }
1080
- else if (typeof cb === "function") {
1081
- if (typeof optionsOrCb !== "object")
1082
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1083
- this.send(command, optionsOrCb || {}, cb);
1084
- }
1085
- else {
1086
- return this.send(command, optionsOrCb);
1087
- }
1088
- }
1089
- getBucketBundles(args, optionsOrCb, cb) {
1090
- const command = new GetBucketBundlesCommand_1.GetBucketBundlesCommand(args);
1091
- if (typeof optionsOrCb === "function") {
1092
- this.send(command, optionsOrCb);
1093
- }
1094
- else if (typeof cb === "function") {
1095
- if (typeof optionsOrCb !== "object")
1096
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1097
- this.send(command, optionsOrCb || {}, cb);
1098
- }
1099
- else {
1100
- return this.send(command, optionsOrCb);
1101
- }
1102
- }
1103
- getBucketMetricData(args, optionsOrCb, cb) {
1104
- const command = new GetBucketMetricDataCommand_1.GetBucketMetricDataCommand(args);
1105
- if (typeof optionsOrCb === "function") {
1106
- this.send(command, optionsOrCb);
1107
- }
1108
- else if (typeof cb === "function") {
1109
- if (typeof optionsOrCb !== "object")
1110
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1111
- this.send(command, optionsOrCb || {}, cb);
1112
- }
1113
- else {
1114
- return this.send(command, optionsOrCb);
1115
- }
1116
- }
1117
- getBuckets(args, optionsOrCb, cb) {
1118
- const command = new GetBucketsCommand_1.GetBucketsCommand(args);
1119
- if (typeof optionsOrCb === "function") {
1120
- this.send(command, optionsOrCb);
1121
- }
1122
- else if (typeof cb === "function") {
1123
- if (typeof optionsOrCb !== "object")
1124
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1125
- this.send(command, optionsOrCb || {}, cb);
1126
- }
1127
- else {
1128
- return this.send(command, optionsOrCb);
1129
- }
1130
- }
1131
- getBundles(args, optionsOrCb, cb) {
1132
- const command = new GetBundlesCommand_1.GetBundlesCommand(args);
1133
- if (typeof optionsOrCb === "function") {
1134
- this.send(command, optionsOrCb);
1135
- }
1136
- else if (typeof cb === "function") {
1137
- if (typeof optionsOrCb !== "object")
1138
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1139
- this.send(command, optionsOrCb || {}, cb);
1140
- }
1141
- else {
1142
- return this.send(command, optionsOrCb);
1143
- }
1144
- }
1145
- getCertificates(args, optionsOrCb, cb) {
1146
- const command = new GetCertificatesCommand_1.GetCertificatesCommand(args);
1147
- if (typeof optionsOrCb === "function") {
1148
- this.send(command, optionsOrCb);
1149
- }
1150
- else if (typeof cb === "function") {
1151
- if (typeof optionsOrCb !== "object")
1152
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1153
- this.send(command, optionsOrCb || {}, cb);
1154
- }
1155
- else {
1156
- return this.send(command, optionsOrCb);
1157
- }
1158
- }
1159
- getCloudFormationStackRecords(args, optionsOrCb, cb) {
1160
- const command = new GetCloudFormationStackRecordsCommand_1.GetCloudFormationStackRecordsCommand(args);
1161
- if (typeof optionsOrCb === "function") {
1162
- this.send(command, optionsOrCb);
1163
- }
1164
- else if (typeof cb === "function") {
1165
- if (typeof optionsOrCb !== "object")
1166
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1167
- this.send(command, optionsOrCb || {}, cb);
1168
- }
1169
- else {
1170
- return this.send(command, optionsOrCb);
1171
- }
1172
- }
1173
- getContactMethods(args, optionsOrCb, cb) {
1174
- const command = new GetContactMethodsCommand_1.GetContactMethodsCommand(args);
1175
- if (typeof optionsOrCb === "function") {
1176
- this.send(command, optionsOrCb);
1177
- }
1178
- else if (typeof cb === "function") {
1179
- if (typeof optionsOrCb !== "object")
1180
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1181
- this.send(command, optionsOrCb || {}, cb);
1182
- }
1183
- else {
1184
- return this.send(command, optionsOrCb);
1185
- }
1186
- }
1187
- getContainerAPIMetadata(args, optionsOrCb, cb) {
1188
- const command = new GetContainerAPIMetadataCommand_1.GetContainerAPIMetadataCommand(args);
1189
- if (typeof optionsOrCb === "function") {
1190
- this.send(command, optionsOrCb);
1191
- }
1192
- else if (typeof cb === "function") {
1193
- if (typeof optionsOrCb !== "object")
1194
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1195
- this.send(command, optionsOrCb || {}, cb);
1196
- }
1197
- else {
1198
- return this.send(command, optionsOrCb);
1199
- }
1200
- }
1201
- getContainerImages(args, optionsOrCb, cb) {
1202
- const command = new GetContainerImagesCommand_1.GetContainerImagesCommand(args);
1203
- if (typeof optionsOrCb === "function") {
1204
- this.send(command, optionsOrCb);
1205
- }
1206
- else if (typeof cb === "function") {
1207
- if (typeof optionsOrCb !== "object")
1208
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1209
- this.send(command, optionsOrCb || {}, cb);
1210
- }
1211
- else {
1212
- return this.send(command, optionsOrCb);
1213
- }
1214
- }
1215
- getContainerLog(args, optionsOrCb, cb) {
1216
- const command = new GetContainerLogCommand_1.GetContainerLogCommand(args);
1217
- if (typeof optionsOrCb === "function") {
1218
- this.send(command, optionsOrCb);
1219
- }
1220
- else if (typeof cb === "function") {
1221
- if (typeof optionsOrCb !== "object")
1222
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1223
- this.send(command, optionsOrCb || {}, cb);
1224
- }
1225
- else {
1226
- return this.send(command, optionsOrCb);
1227
- }
1228
- }
1229
- getContainerServiceDeployments(args, optionsOrCb, cb) {
1230
- const command = new GetContainerServiceDeploymentsCommand_1.GetContainerServiceDeploymentsCommand(args);
1231
- if (typeof optionsOrCb === "function") {
1232
- this.send(command, optionsOrCb);
1233
- }
1234
- else if (typeof cb === "function") {
1235
- if (typeof optionsOrCb !== "object")
1236
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1237
- this.send(command, optionsOrCb || {}, cb);
1238
- }
1239
- else {
1240
- return this.send(command, optionsOrCb);
1241
- }
1242
- }
1243
- getContainerServiceMetricData(args, optionsOrCb, cb) {
1244
- const command = new GetContainerServiceMetricDataCommand_1.GetContainerServiceMetricDataCommand(args);
1245
- if (typeof optionsOrCb === "function") {
1246
- this.send(command, optionsOrCb);
1247
- }
1248
- else if (typeof cb === "function") {
1249
- if (typeof optionsOrCb !== "object")
1250
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1251
- this.send(command, optionsOrCb || {}, cb);
1252
- }
1253
- else {
1254
- return this.send(command, optionsOrCb);
1255
- }
1256
- }
1257
- getContainerServicePowers(args, optionsOrCb, cb) {
1258
- const command = new GetContainerServicePowersCommand_1.GetContainerServicePowersCommand(args);
1259
- if (typeof optionsOrCb === "function") {
1260
- this.send(command, optionsOrCb);
1261
- }
1262
- else if (typeof cb === "function") {
1263
- if (typeof optionsOrCb !== "object")
1264
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1265
- this.send(command, optionsOrCb || {}, cb);
1266
- }
1267
- else {
1268
- return this.send(command, optionsOrCb);
1269
- }
1270
- }
1271
- getContainerServices(args, optionsOrCb, cb) {
1272
- const command = new GetContainerServicesCommand_1.GetContainerServicesCommand(args);
1273
- if (typeof optionsOrCb === "function") {
1274
- this.send(command, optionsOrCb);
1275
- }
1276
- else if (typeof cb === "function") {
1277
- if (typeof optionsOrCb !== "object")
1278
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1279
- this.send(command, optionsOrCb || {}, cb);
1280
- }
1281
- else {
1282
- return this.send(command, optionsOrCb);
1283
- }
1284
- }
1285
- getCostEstimate(args, optionsOrCb, cb) {
1286
- const command = new GetCostEstimateCommand_1.GetCostEstimateCommand(args);
1287
- if (typeof optionsOrCb === "function") {
1288
- this.send(command, optionsOrCb);
1289
- }
1290
- else if (typeof cb === "function") {
1291
- if (typeof optionsOrCb !== "object")
1292
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1293
- this.send(command, optionsOrCb || {}, cb);
1294
- }
1295
- else {
1296
- return this.send(command, optionsOrCb);
1297
- }
1298
- }
1299
- getDisk(args, optionsOrCb, cb) {
1300
- const command = new GetDiskCommand_1.GetDiskCommand(args);
1301
- if (typeof optionsOrCb === "function") {
1302
- this.send(command, optionsOrCb);
1303
- }
1304
- else if (typeof cb === "function") {
1305
- if (typeof optionsOrCb !== "object")
1306
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1307
- this.send(command, optionsOrCb || {}, cb);
1308
- }
1309
- else {
1310
- return this.send(command, optionsOrCb);
1311
- }
1312
- }
1313
- getDisks(args, optionsOrCb, cb) {
1314
- const command = new GetDisksCommand_1.GetDisksCommand(args);
1315
- if (typeof optionsOrCb === "function") {
1316
- this.send(command, optionsOrCb);
1317
- }
1318
- else if (typeof cb === "function") {
1319
- if (typeof optionsOrCb !== "object")
1320
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1321
- this.send(command, optionsOrCb || {}, cb);
1322
- }
1323
- else {
1324
- return this.send(command, optionsOrCb);
1325
- }
1326
- }
1327
- getDiskSnapshot(args, optionsOrCb, cb) {
1328
- const command = new GetDiskSnapshotCommand_1.GetDiskSnapshotCommand(args);
1329
- if (typeof optionsOrCb === "function") {
1330
- this.send(command, optionsOrCb);
1331
- }
1332
- else if (typeof cb === "function") {
1333
- if (typeof optionsOrCb !== "object")
1334
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1335
- this.send(command, optionsOrCb || {}, cb);
1336
- }
1337
- else {
1338
- return this.send(command, optionsOrCb);
1339
- }
1340
- }
1341
- getDiskSnapshots(args, optionsOrCb, cb) {
1342
- const command = new GetDiskSnapshotsCommand_1.GetDiskSnapshotsCommand(args);
1343
- if (typeof optionsOrCb === "function") {
1344
- this.send(command, optionsOrCb);
1345
- }
1346
- else if (typeof cb === "function") {
1347
- if (typeof optionsOrCb !== "object")
1348
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1349
- this.send(command, optionsOrCb || {}, cb);
1350
- }
1351
- else {
1352
- return this.send(command, optionsOrCb);
1353
- }
1354
- }
1355
- getDistributionBundles(args, optionsOrCb, cb) {
1356
- const command = new GetDistributionBundlesCommand_1.GetDistributionBundlesCommand(args);
1357
- if (typeof optionsOrCb === "function") {
1358
- this.send(command, optionsOrCb);
1359
- }
1360
- else if (typeof cb === "function") {
1361
- if (typeof optionsOrCb !== "object")
1362
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1363
- this.send(command, optionsOrCb || {}, cb);
1364
- }
1365
- else {
1366
- return this.send(command, optionsOrCb);
1367
- }
1368
- }
1369
- getDistributionLatestCacheReset(args, optionsOrCb, cb) {
1370
- const command = new GetDistributionLatestCacheResetCommand_1.GetDistributionLatestCacheResetCommand(args);
1371
- if (typeof optionsOrCb === "function") {
1372
- this.send(command, optionsOrCb);
1373
- }
1374
- else if (typeof cb === "function") {
1375
- if (typeof optionsOrCb !== "object")
1376
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1377
- this.send(command, optionsOrCb || {}, cb);
1378
- }
1379
- else {
1380
- return this.send(command, optionsOrCb);
1381
- }
1382
- }
1383
- getDistributionMetricData(args, optionsOrCb, cb) {
1384
- const command = new GetDistributionMetricDataCommand_1.GetDistributionMetricDataCommand(args);
1385
- if (typeof optionsOrCb === "function") {
1386
- this.send(command, optionsOrCb);
1387
- }
1388
- else if (typeof cb === "function") {
1389
- if (typeof optionsOrCb !== "object")
1390
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1391
- this.send(command, optionsOrCb || {}, cb);
1392
- }
1393
- else {
1394
- return this.send(command, optionsOrCb);
1395
- }
1396
- }
1397
- getDistributions(args, optionsOrCb, cb) {
1398
- const command = new GetDistributionsCommand_1.GetDistributionsCommand(args);
1399
- if (typeof optionsOrCb === "function") {
1400
- this.send(command, optionsOrCb);
1401
- }
1402
- else if (typeof cb === "function") {
1403
- if (typeof optionsOrCb !== "object")
1404
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1405
- this.send(command, optionsOrCb || {}, cb);
1406
- }
1407
- else {
1408
- return this.send(command, optionsOrCb);
1409
- }
1410
- }
1411
- getDomain(args, optionsOrCb, cb) {
1412
- const command = new GetDomainCommand_1.GetDomainCommand(args);
1413
- if (typeof optionsOrCb === "function") {
1414
- this.send(command, optionsOrCb);
1415
- }
1416
- else if (typeof cb === "function") {
1417
- if (typeof optionsOrCb !== "object")
1418
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1419
- this.send(command, optionsOrCb || {}, cb);
1420
- }
1421
- else {
1422
- return this.send(command, optionsOrCb);
1423
- }
1424
- }
1425
- getDomains(args, optionsOrCb, cb) {
1426
- const command = new GetDomainsCommand_1.GetDomainsCommand(args);
1427
- if (typeof optionsOrCb === "function") {
1428
- this.send(command, optionsOrCb);
1429
- }
1430
- else if (typeof cb === "function") {
1431
- if (typeof optionsOrCb !== "object")
1432
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1433
- this.send(command, optionsOrCb || {}, cb);
1434
- }
1435
- else {
1436
- return this.send(command, optionsOrCb);
1437
- }
1438
- }
1439
- getExportSnapshotRecords(args, optionsOrCb, cb) {
1440
- const command = new GetExportSnapshotRecordsCommand_1.GetExportSnapshotRecordsCommand(args);
1441
- if (typeof optionsOrCb === "function") {
1442
- this.send(command, optionsOrCb);
1443
- }
1444
- else if (typeof cb === "function") {
1445
- if (typeof optionsOrCb !== "object")
1446
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1447
- this.send(command, optionsOrCb || {}, cb);
1448
- }
1449
- else {
1450
- return this.send(command, optionsOrCb);
1451
- }
1452
- }
1453
- getInstance(args, optionsOrCb, cb) {
1454
- const command = new GetInstanceCommand_1.GetInstanceCommand(args);
1455
- if (typeof optionsOrCb === "function") {
1456
- this.send(command, optionsOrCb);
1457
- }
1458
- else if (typeof cb === "function") {
1459
- if (typeof optionsOrCb !== "object")
1460
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1461
- this.send(command, optionsOrCb || {}, cb);
1462
- }
1463
- else {
1464
- return this.send(command, optionsOrCb);
1465
- }
1466
- }
1467
- getInstanceAccessDetails(args, optionsOrCb, cb) {
1468
- const command = new GetInstanceAccessDetailsCommand_1.GetInstanceAccessDetailsCommand(args);
1469
- if (typeof optionsOrCb === "function") {
1470
- this.send(command, optionsOrCb);
1471
- }
1472
- else if (typeof cb === "function") {
1473
- if (typeof optionsOrCb !== "object")
1474
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1475
- this.send(command, optionsOrCb || {}, cb);
1476
- }
1477
- else {
1478
- return this.send(command, optionsOrCb);
1479
- }
1480
- }
1481
- getInstanceMetricData(args, optionsOrCb, cb) {
1482
- const command = new GetInstanceMetricDataCommand_1.GetInstanceMetricDataCommand(args);
1483
- if (typeof optionsOrCb === "function") {
1484
- this.send(command, optionsOrCb);
1485
- }
1486
- else if (typeof cb === "function") {
1487
- if (typeof optionsOrCb !== "object")
1488
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1489
- this.send(command, optionsOrCb || {}, cb);
1490
- }
1491
- else {
1492
- return this.send(command, optionsOrCb);
1493
- }
1494
- }
1495
- getInstancePortStates(args, optionsOrCb, cb) {
1496
- const command = new GetInstancePortStatesCommand_1.GetInstancePortStatesCommand(args);
1497
- if (typeof optionsOrCb === "function") {
1498
- this.send(command, optionsOrCb);
1499
- }
1500
- else if (typeof cb === "function") {
1501
- if (typeof optionsOrCb !== "object")
1502
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1503
- this.send(command, optionsOrCb || {}, cb);
1504
- }
1505
- else {
1506
- return this.send(command, optionsOrCb);
1507
- }
1508
- }
1509
- getInstances(args, optionsOrCb, cb) {
1510
- const command = new GetInstancesCommand_1.GetInstancesCommand(args);
1511
- if (typeof optionsOrCb === "function") {
1512
- this.send(command, optionsOrCb);
1513
- }
1514
- else if (typeof cb === "function") {
1515
- if (typeof optionsOrCb !== "object")
1516
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1517
- this.send(command, optionsOrCb || {}, cb);
1518
- }
1519
- else {
1520
- return this.send(command, optionsOrCb);
1521
- }
1522
- }
1523
- getInstanceSnapshot(args, optionsOrCb, cb) {
1524
- const command = new GetInstanceSnapshotCommand_1.GetInstanceSnapshotCommand(args);
1525
- if (typeof optionsOrCb === "function") {
1526
- this.send(command, optionsOrCb);
1527
- }
1528
- else if (typeof cb === "function") {
1529
- if (typeof optionsOrCb !== "object")
1530
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1531
- this.send(command, optionsOrCb || {}, cb);
1532
- }
1533
- else {
1534
- return this.send(command, optionsOrCb);
1535
- }
1536
- }
1537
- getInstanceSnapshots(args, optionsOrCb, cb) {
1538
- const command = new GetInstanceSnapshotsCommand_1.GetInstanceSnapshotsCommand(args);
1539
- if (typeof optionsOrCb === "function") {
1540
- this.send(command, optionsOrCb);
1541
- }
1542
- else if (typeof cb === "function") {
1543
- if (typeof optionsOrCb !== "object")
1544
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1545
- this.send(command, optionsOrCb || {}, cb);
1546
- }
1547
- else {
1548
- return this.send(command, optionsOrCb);
1549
- }
1550
- }
1551
- getInstanceState(args, optionsOrCb, cb) {
1552
- const command = new GetInstanceStateCommand_1.GetInstanceStateCommand(args);
1553
- if (typeof optionsOrCb === "function") {
1554
- this.send(command, optionsOrCb);
1555
- }
1556
- else if (typeof cb === "function") {
1557
- if (typeof optionsOrCb !== "object")
1558
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1559
- this.send(command, optionsOrCb || {}, cb);
1560
- }
1561
- else {
1562
- return this.send(command, optionsOrCb);
1563
- }
1564
- }
1565
- getKeyPair(args, optionsOrCb, cb) {
1566
- const command = new GetKeyPairCommand_1.GetKeyPairCommand(args);
1567
- if (typeof optionsOrCb === "function") {
1568
- this.send(command, optionsOrCb);
1569
- }
1570
- else if (typeof cb === "function") {
1571
- if (typeof optionsOrCb !== "object")
1572
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1573
- this.send(command, optionsOrCb || {}, cb);
1574
- }
1575
- else {
1576
- return this.send(command, optionsOrCb);
1577
- }
1578
- }
1579
- getKeyPairs(args, optionsOrCb, cb) {
1580
- const command = new GetKeyPairsCommand_1.GetKeyPairsCommand(args);
1581
- if (typeof optionsOrCb === "function") {
1582
- this.send(command, optionsOrCb);
1583
- }
1584
- else if (typeof cb === "function") {
1585
- if (typeof optionsOrCb !== "object")
1586
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1587
- this.send(command, optionsOrCb || {}, cb);
1588
- }
1589
- else {
1590
- return this.send(command, optionsOrCb);
1591
- }
1592
- }
1593
- getLoadBalancer(args, optionsOrCb, cb) {
1594
- const command = new GetLoadBalancerCommand_1.GetLoadBalancerCommand(args);
1595
- if (typeof optionsOrCb === "function") {
1596
- this.send(command, optionsOrCb);
1597
- }
1598
- else if (typeof cb === "function") {
1599
- if (typeof optionsOrCb !== "object")
1600
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1601
- this.send(command, optionsOrCb || {}, cb);
1602
- }
1603
- else {
1604
- return this.send(command, optionsOrCb);
1605
- }
1606
- }
1607
- getLoadBalancerMetricData(args, optionsOrCb, cb) {
1608
- const command = new GetLoadBalancerMetricDataCommand_1.GetLoadBalancerMetricDataCommand(args);
1609
- if (typeof optionsOrCb === "function") {
1610
- this.send(command, optionsOrCb);
1611
- }
1612
- else if (typeof cb === "function") {
1613
- if (typeof optionsOrCb !== "object")
1614
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1615
- this.send(command, optionsOrCb || {}, cb);
1616
- }
1617
- else {
1618
- return this.send(command, optionsOrCb);
1619
- }
1620
- }
1621
- getLoadBalancers(args, optionsOrCb, cb) {
1622
- const command = new GetLoadBalancersCommand_1.GetLoadBalancersCommand(args);
1623
- if (typeof optionsOrCb === "function") {
1624
- this.send(command, optionsOrCb);
1625
- }
1626
- else if (typeof cb === "function") {
1627
- if (typeof optionsOrCb !== "object")
1628
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1629
- this.send(command, optionsOrCb || {}, cb);
1630
- }
1631
- else {
1632
- return this.send(command, optionsOrCb);
1633
- }
1634
- }
1635
- getLoadBalancerTlsCertificates(args, optionsOrCb, cb) {
1636
- const command = new GetLoadBalancerTlsCertificatesCommand_1.GetLoadBalancerTlsCertificatesCommand(args);
1637
- if (typeof optionsOrCb === "function") {
1638
- this.send(command, optionsOrCb);
1639
- }
1640
- else if (typeof cb === "function") {
1641
- if (typeof optionsOrCb !== "object")
1642
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1643
- this.send(command, optionsOrCb || {}, cb);
1644
- }
1645
- else {
1646
- return this.send(command, optionsOrCb);
1647
- }
1648
- }
1649
- getLoadBalancerTlsPolicies(args, optionsOrCb, cb) {
1650
- const command = new GetLoadBalancerTlsPoliciesCommand_1.GetLoadBalancerTlsPoliciesCommand(args);
1651
- if (typeof optionsOrCb === "function") {
1652
- this.send(command, optionsOrCb);
1653
- }
1654
- else if (typeof cb === "function") {
1655
- if (typeof optionsOrCb !== "object")
1656
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1657
- this.send(command, optionsOrCb || {}, cb);
1658
- }
1659
- else {
1660
- return this.send(command, optionsOrCb);
1661
- }
1662
- }
1663
- getOperation(args, optionsOrCb, cb) {
1664
- const command = new GetOperationCommand_1.GetOperationCommand(args);
1665
- if (typeof optionsOrCb === "function") {
1666
- this.send(command, optionsOrCb);
1667
- }
1668
- else if (typeof cb === "function") {
1669
- if (typeof optionsOrCb !== "object")
1670
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1671
- this.send(command, optionsOrCb || {}, cb);
1672
- }
1673
- else {
1674
- return this.send(command, optionsOrCb);
1675
- }
1676
- }
1677
- getOperations(args, optionsOrCb, cb) {
1678
- const command = new GetOperationsCommand_1.GetOperationsCommand(args);
1679
- if (typeof optionsOrCb === "function") {
1680
- this.send(command, optionsOrCb);
1681
- }
1682
- else if (typeof cb === "function") {
1683
- if (typeof optionsOrCb !== "object")
1684
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1685
- this.send(command, optionsOrCb || {}, cb);
1686
- }
1687
- else {
1688
- return this.send(command, optionsOrCb);
1689
- }
1690
- }
1691
- getOperationsForResource(args, optionsOrCb, cb) {
1692
- const command = new GetOperationsForResourceCommand_1.GetOperationsForResourceCommand(args);
1693
- if (typeof optionsOrCb === "function") {
1694
- this.send(command, optionsOrCb);
1695
- }
1696
- else if (typeof cb === "function") {
1697
- if (typeof optionsOrCb !== "object")
1698
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1699
- this.send(command, optionsOrCb || {}, cb);
1700
- }
1701
- else {
1702
- return this.send(command, optionsOrCb);
1703
- }
1704
- }
1705
- getRegions(args, optionsOrCb, cb) {
1706
- const command = new GetRegionsCommand_1.GetRegionsCommand(args);
1707
- if (typeof optionsOrCb === "function") {
1708
- this.send(command, optionsOrCb);
1709
- }
1710
- else if (typeof cb === "function") {
1711
- if (typeof optionsOrCb !== "object")
1712
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1713
- this.send(command, optionsOrCb || {}, cb);
1714
- }
1715
- else {
1716
- return this.send(command, optionsOrCb);
1717
- }
1718
- }
1719
- getRelationalDatabase(args, optionsOrCb, cb) {
1720
- const command = new GetRelationalDatabaseCommand_1.GetRelationalDatabaseCommand(args);
1721
- if (typeof optionsOrCb === "function") {
1722
- this.send(command, optionsOrCb);
1723
- }
1724
- else if (typeof cb === "function") {
1725
- if (typeof optionsOrCb !== "object")
1726
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1727
- this.send(command, optionsOrCb || {}, cb);
1728
- }
1729
- else {
1730
- return this.send(command, optionsOrCb);
1731
- }
1732
- }
1733
- getRelationalDatabaseBlueprints(args, optionsOrCb, cb) {
1734
- const command = new GetRelationalDatabaseBlueprintsCommand_1.GetRelationalDatabaseBlueprintsCommand(args);
1735
- if (typeof optionsOrCb === "function") {
1736
- this.send(command, optionsOrCb);
1737
- }
1738
- else if (typeof cb === "function") {
1739
- if (typeof optionsOrCb !== "object")
1740
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1741
- this.send(command, optionsOrCb || {}, cb);
1742
- }
1743
- else {
1744
- return this.send(command, optionsOrCb);
1745
- }
1746
- }
1747
- getRelationalDatabaseBundles(args, optionsOrCb, cb) {
1748
- const command = new GetRelationalDatabaseBundlesCommand_1.GetRelationalDatabaseBundlesCommand(args);
1749
- if (typeof optionsOrCb === "function") {
1750
- this.send(command, optionsOrCb);
1751
- }
1752
- else if (typeof cb === "function") {
1753
- if (typeof optionsOrCb !== "object")
1754
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1755
- this.send(command, optionsOrCb || {}, cb);
1756
- }
1757
- else {
1758
- return this.send(command, optionsOrCb);
1759
- }
1760
- }
1761
- getRelationalDatabaseEvents(args, optionsOrCb, cb) {
1762
- const command = new GetRelationalDatabaseEventsCommand_1.GetRelationalDatabaseEventsCommand(args);
1763
- if (typeof optionsOrCb === "function") {
1764
- this.send(command, optionsOrCb);
1765
- }
1766
- else if (typeof cb === "function") {
1767
- if (typeof optionsOrCb !== "object")
1768
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1769
- this.send(command, optionsOrCb || {}, cb);
1770
- }
1771
- else {
1772
- return this.send(command, optionsOrCb);
1773
- }
1774
- }
1775
- getRelationalDatabaseLogEvents(args, optionsOrCb, cb) {
1776
- const command = new GetRelationalDatabaseLogEventsCommand_1.GetRelationalDatabaseLogEventsCommand(args);
1777
- if (typeof optionsOrCb === "function") {
1778
- this.send(command, optionsOrCb);
1779
- }
1780
- else if (typeof cb === "function") {
1781
- if (typeof optionsOrCb !== "object")
1782
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1783
- this.send(command, optionsOrCb || {}, cb);
1784
- }
1785
- else {
1786
- return this.send(command, optionsOrCb);
1787
- }
1788
- }
1789
- getRelationalDatabaseLogStreams(args, optionsOrCb, cb) {
1790
- const command = new GetRelationalDatabaseLogStreamsCommand_1.GetRelationalDatabaseLogStreamsCommand(args);
1791
- if (typeof optionsOrCb === "function") {
1792
- this.send(command, optionsOrCb);
1793
- }
1794
- else if (typeof cb === "function") {
1795
- if (typeof optionsOrCb !== "object")
1796
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1797
- this.send(command, optionsOrCb || {}, cb);
1798
- }
1799
- else {
1800
- return this.send(command, optionsOrCb);
1801
- }
1802
- }
1803
- getRelationalDatabaseMasterUserPassword(args, optionsOrCb, cb) {
1804
- const command = new GetRelationalDatabaseMasterUserPasswordCommand_1.GetRelationalDatabaseMasterUserPasswordCommand(args);
1805
- if (typeof optionsOrCb === "function") {
1806
- this.send(command, optionsOrCb);
1807
- }
1808
- else if (typeof cb === "function") {
1809
- if (typeof optionsOrCb !== "object")
1810
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1811
- this.send(command, optionsOrCb || {}, cb);
1812
- }
1813
- else {
1814
- return this.send(command, optionsOrCb);
1815
- }
1816
- }
1817
- getRelationalDatabaseMetricData(args, optionsOrCb, cb) {
1818
- const command = new GetRelationalDatabaseMetricDataCommand_1.GetRelationalDatabaseMetricDataCommand(args);
1819
- if (typeof optionsOrCb === "function") {
1820
- this.send(command, optionsOrCb);
1821
- }
1822
- else if (typeof cb === "function") {
1823
- if (typeof optionsOrCb !== "object")
1824
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1825
- this.send(command, optionsOrCb || {}, cb);
1826
- }
1827
- else {
1828
- return this.send(command, optionsOrCb);
1829
- }
1830
- }
1831
- getRelationalDatabaseParameters(args, optionsOrCb, cb) {
1832
- const command = new GetRelationalDatabaseParametersCommand_1.GetRelationalDatabaseParametersCommand(args);
1833
- if (typeof optionsOrCb === "function") {
1834
- this.send(command, optionsOrCb);
1835
- }
1836
- else if (typeof cb === "function") {
1837
- if (typeof optionsOrCb !== "object")
1838
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1839
- this.send(command, optionsOrCb || {}, cb);
1840
- }
1841
- else {
1842
- return this.send(command, optionsOrCb);
1843
- }
1844
- }
1845
- getRelationalDatabases(args, optionsOrCb, cb) {
1846
- const command = new GetRelationalDatabasesCommand_1.GetRelationalDatabasesCommand(args);
1847
- if (typeof optionsOrCb === "function") {
1848
- this.send(command, optionsOrCb);
1849
- }
1850
- else if (typeof cb === "function") {
1851
- if (typeof optionsOrCb !== "object")
1852
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1853
- this.send(command, optionsOrCb || {}, cb);
1854
- }
1855
- else {
1856
- return this.send(command, optionsOrCb);
1857
- }
1858
- }
1859
- getRelationalDatabaseSnapshot(args, optionsOrCb, cb) {
1860
- const command = new GetRelationalDatabaseSnapshotCommand_1.GetRelationalDatabaseSnapshotCommand(args);
1861
- if (typeof optionsOrCb === "function") {
1862
- this.send(command, optionsOrCb);
1863
- }
1864
- else if (typeof cb === "function") {
1865
- if (typeof optionsOrCb !== "object")
1866
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1867
- this.send(command, optionsOrCb || {}, cb);
1868
- }
1869
- else {
1870
- return this.send(command, optionsOrCb);
1871
- }
1872
- }
1873
- getRelationalDatabaseSnapshots(args, optionsOrCb, cb) {
1874
- const command = new GetRelationalDatabaseSnapshotsCommand_1.GetRelationalDatabaseSnapshotsCommand(args);
1875
- if (typeof optionsOrCb === "function") {
1876
- this.send(command, optionsOrCb);
1877
- }
1878
- else if (typeof cb === "function") {
1879
- if (typeof optionsOrCb !== "object")
1880
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1881
- this.send(command, optionsOrCb || {}, cb);
1882
- }
1883
- else {
1884
- return this.send(command, optionsOrCb);
1885
- }
1886
- }
1887
- getStaticIp(args, optionsOrCb, cb) {
1888
- const command = new GetStaticIpCommand_1.GetStaticIpCommand(args);
1889
- if (typeof optionsOrCb === "function") {
1890
- this.send(command, optionsOrCb);
1891
- }
1892
- else if (typeof cb === "function") {
1893
- if (typeof optionsOrCb !== "object")
1894
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1895
- this.send(command, optionsOrCb || {}, cb);
1896
- }
1897
- else {
1898
- return this.send(command, optionsOrCb);
1899
- }
1900
- }
1901
- getStaticIps(args, optionsOrCb, cb) {
1902
- const command = new GetStaticIpsCommand_1.GetStaticIpsCommand(args);
1903
- if (typeof optionsOrCb === "function") {
1904
- this.send(command, optionsOrCb);
1905
- }
1906
- else if (typeof cb === "function") {
1907
- if (typeof optionsOrCb !== "object")
1908
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1909
- this.send(command, optionsOrCb || {}, cb);
1910
- }
1911
- else {
1912
- return this.send(command, optionsOrCb);
1913
- }
1914
- }
1915
- importKeyPair(args, optionsOrCb, cb) {
1916
- const command = new ImportKeyPairCommand_1.ImportKeyPairCommand(args);
1917
- if (typeof optionsOrCb === "function") {
1918
- this.send(command, optionsOrCb);
1919
- }
1920
- else if (typeof cb === "function") {
1921
- if (typeof optionsOrCb !== "object")
1922
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1923
- this.send(command, optionsOrCb || {}, cb);
1924
- }
1925
- else {
1926
- return this.send(command, optionsOrCb);
1927
- }
1928
- }
1929
- isVpcPeered(args, optionsOrCb, cb) {
1930
- const command = new IsVpcPeeredCommand_1.IsVpcPeeredCommand(args);
1931
- if (typeof optionsOrCb === "function") {
1932
- this.send(command, optionsOrCb);
1933
- }
1934
- else if (typeof cb === "function") {
1935
- if (typeof optionsOrCb !== "object")
1936
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1937
- this.send(command, optionsOrCb || {}, cb);
1938
- }
1939
- else {
1940
- return this.send(command, optionsOrCb);
1941
- }
1942
- }
1943
- openInstancePublicPorts(args, optionsOrCb, cb) {
1944
- const command = new OpenInstancePublicPortsCommand_1.OpenInstancePublicPortsCommand(args);
1945
- if (typeof optionsOrCb === "function") {
1946
- this.send(command, optionsOrCb);
1947
- }
1948
- else if (typeof cb === "function") {
1949
- if (typeof optionsOrCb !== "object")
1950
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1951
- this.send(command, optionsOrCb || {}, cb);
1952
- }
1953
- else {
1954
- return this.send(command, optionsOrCb);
1955
- }
1956
- }
1957
- peerVpc(args, optionsOrCb, cb) {
1958
- const command = new PeerVpcCommand_1.PeerVpcCommand(args);
1959
- if (typeof optionsOrCb === "function") {
1960
- this.send(command, optionsOrCb);
1961
- }
1962
- else if (typeof cb === "function") {
1963
- if (typeof optionsOrCb !== "object")
1964
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1965
- this.send(command, optionsOrCb || {}, cb);
1966
- }
1967
- else {
1968
- return this.send(command, optionsOrCb);
1969
- }
1970
- }
1971
- putAlarm(args, optionsOrCb, cb) {
1972
- const command = new PutAlarmCommand_1.PutAlarmCommand(args);
1973
- if (typeof optionsOrCb === "function") {
1974
- this.send(command, optionsOrCb);
1975
- }
1976
- else if (typeof cb === "function") {
1977
- if (typeof optionsOrCb !== "object")
1978
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1979
- this.send(command, optionsOrCb || {}, cb);
1980
- }
1981
- else {
1982
- return this.send(command, optionsOrCb);
1983
- }
1984
- }
1985
- putInstancePublicPorts(args, optionsOrCb, cb) {
1986
- const command = new PutInstancePublicPortsCommand_1.PutInstancePublicPortsCommand(args);
1987
- if (typeof optionsOrCb === "function") {
1988
- this.send(command, optionsOrCb);
1989
- }
1990
- else if (typeof cb === "function") {
1991
- if (typeof optionsOrCb !== "object")
1992
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1993
- this.send(command, optionsOrCb || {}, cb);
1994
- }
1995
- else {
1996
- return this.send(command, optionsOrCb);
1997
- }
1998
- }
1999
- rebootInstance(args, optionsOrCb, cb) {
2000
- const command = new RebootInstanceCommand_1.RebootInstanceCommand(args);
2001
- if (typeof optionsOrCb === "function") {
2002
- this.send(command, optionsOrCb);
2003
- }
2004
- else if (typeof cb === "function") {
2005
- if (typeof optionsOrCb !== "object")
2006
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2007
- this.send(command, optionsOrCb || {}, cb);
2008
- }
2009
- else {
2010
- return this.send(command, optionsOrCb);
2011
- }
2012
- }
2013
- rebootRelationalDatabase(args, optionsOrCb, cb) {
2014
- const command = new RebootRelationalDatabaseCommand_1.RebootRelationalDatabaseCommand(args);
2015
- if (typeof optionsOrCb === "function") {
2016
- this.send(command, optionsOrCb);
2017
- }
2018
- else if (typeof cb === "function") {
2019
- if (typeof optionsOrCb !== "object")
2020
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2021
- this.send(command, optionsOrCb || {}, cb);
2022
- }
2023
- else {
2024
- return this.send(command, optionsOrCb);
2025
- }
2026
- }
2027
- registerContainerImage(args, optionsOrCb, cb) {
2028
- const command = new RegisterContainerImageCommand_1.RegisterContainerImageCommand(args);
2029
- if (typeof optionsOrCb === "function") {
2030
- this.send(command, optionsOrCb);
2031
- }
2032
- else if (typeof cb === "function") {
2033
- if (typeof optionsOrCb !== "object")
2034
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2035
- this.send(command, optionsOrCb || {}, cb);
2036
- }
2037
- else {
2038
- return this.send(command, optionsOrCb);
2039
- }
2040
- }
2041
- releaseStaticIp(args, optionsOrCb, cb) {
2042
- const command = new ReleaseStaticIpCommand_1.ReleaseStaticIpCommand(args);
2043
- if (typeof optionsOrCb === "function") {
2044
- this.send(command, optionsOrCb);
2045
- }
2046
- else if (typeof cb === "function") {
2047
- if (typeof optionsOrCb !== "object")
2048
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2049
- this.send(command, optionsOrCb || {}, cb);
2050
- }
2051
- else {
2052
- return this.send(command, optionsOrCb);
2053
- }
2054
- }
2055
- resetDistributionCache(args, optionsOrCb, cb) {
2056
- const command = new ResetDistributionCacheCommand_1.ResetDistributionCacheCommand(args);
2057
- if (typeof optionsOrCb === "function") {
2058
- this.send(command, optionsOrCb);
2059
- }
2060
- else if (typeof cb === "function") {
2061
- if (typeof optionsOrCb !== "object")
2062
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2063
- this.send(command, optionsOrCb || {}, cb);
2064
- }
2065
- else {
2066
- return this.send(command, optionsOrCb);
2067
- }
2068
- }
2069
- sendContactMethodVerification(args, optionsOrCb, cb) {
2070
- const command = new SendContactMethodVerificationCommand_1.SendContactMethodVerificationCommand(args);
2071
- if (typeof optionsOrCb === "function") {
2072
- this.send(command, optionsOrCb);
2073
- }
2074
- else if (typeof cb === "function") {
2075
- if (typeof optionsOrCb !== "object")
2076
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2077
- this.send(command, optionsOrCb || {}, cb);
2078
- }
2079
- else {
2080
- return this.send(command, optionsOrCb);
2081
- }
2082
- }
2083
- setIpAddressType(args, optionsOrCb, cb) {
2084
- const command = new SetIpAddressTypeCommand_1.SetIpAddressTypeCommand(args);
2085
- if (typeof optionsOrCb === "function") {
2086
- this.send(command, optionsOrCb);
2087
- }
2088
- else if (typeof cb === "function") {
2089
- if (typeof optionsOrCb !== "object")
2090
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2091
- this.send(command, optionsOrCb || {}, cb);
2092
- }
2093
- else {
2094
- return this.send(command, optionsOrCb);
2095
- }
2096
- }
2097
- setResourceAccessForBucket(args, optionsOrCb, cb) {
2098
- const command = new SetResourceAccessForBucketCommand_1.SetResourceAccessForBucketCommand(args);
2099
- if (typeof optionsOrCb === "function") {
2100
- this.send(command, optionsOrCb);
2101
- }
2102
- else if (typeof cb === "function") {
2103
- if (typeof optionsOrCb !== "object")
2104
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2105
- this.send(command, optionsOrCb || {}, cb);
2106
- }
2107
- else {
2108
- return this.send(command, optionsOrCb);
2109
- }
2110
- }
2111
- startGUISession(args, optionsOrCb, cb) {
2112
- const command = new StartGUISessionCommand_1.StartGUISessionCommand(args);
2113
- if (typeof optionsOrCb === "function") {
2114
- this.send(command, optionsOrCb);
2115
- }
2116
- else if (typeof cb === "function") {
2117
- if (typeof optionsOrCb !== "object")
2118
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2119
- this.send(command, optionsOrCb || {}, cb);
2120
- }
2121
- else {
2122
- return this.send(command, optionsOrCb);
2123
- }
2124
- }
2125
- startInstance(args, optionsOrCb, cb) {
2126
- const command = new StartInstanceCommand_1.StartInstanceCommand(args);
2127
- if (typeof optionsOrCb === "function") {
2128
- this.send(command, optionsOrCb);
2129
- }
2130
- else if (typeof cb === "function") {
2131
- if (typeof optionsOrCb !== "object")
2132
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2133
- this.send(command, optionsOrCb || {}, cb);
2134
- }
2135
- else {
2136
- return this.send(command, optionsOrCb);
2137
- }
2138
- }
2139
- startRelationalDatabase(args, optionsOrCb, cb) {
2140
- const command = new StartRelationalDatabaseCommand_1.StartRelationalDatabaseCommand(args);
2141
- if (typeof optionsOrCb === "function") {
2142
- this.send(command, optionsOrCb);
2143
- }
2144
- else if (typeof cb === "function") {
2145
- if (typeof optionsOrCb !== "object")
2146
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2147
- this.send(command, optionsOrCb || {}, cb);
2148
- }
2149
- else {
2150
- return this.send(command, optionsOrCb);
2151
- }
2152
- }
2153
- stopGUISession(args, optionsOrCb, cb) {
2154
- const command = new StopGUISessionCommand_1.StopGUISessionCommand(args);
2155
- if (typeof optionsOrCb === "function") {
2156
- this.send(command, optionsOrCb);
2157
- }
2158
- else if (typeof cb === "function") {
2159
- if (typeof optionsOrCb !== "object")
2160
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2161
- this.send(command, optionsOrCb || {}, cb);
2162
- }
2163
- else {
2164
- return this.send(command, optionsOrCb);
2165
- }
2166
- }
2167
- stopInstance(args, optionsOrCb, cb) {
2168
- const command = new StopInstanceCommand_1.StopInstanceCommand(args);
2169
- if (typeof optionsOrCb === "function") {
2170
- this.send(command, optionsOrCb);
2171
- }
2172
- else if (typeof cb === "function") {
2173
- if (typeof optionsOrCb !== "object")
2174
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2175
- this.send(command, optionsOrCb || {}, cb);
2176
- }
2177
- else {
2178
- return this.send(command, optionsOrCb);
2179
- }
2180
- }
2181
- stopRelationalDatabase(args, optionsOrCb, cb) {
2182
- const command = new StopRelationalDatabaseCommand_1.StopRelationalDatabaseCommand(args);
2183
- if (typeof optionsOrCb === "function") {
2184
- this.send(command, optionsOrCb);
2185
- }
2186
- else if (typeof cb === "function") {
2187
- if (typeof optionsOrCb !== "object")
2188
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2189
- this.send(command, optionsOrCb || {}, cb);
2190
- }
2191
- else {
2192
- return this.send(command, optionsOrCb);
2193
- }
2194
- }
2195
- tagResource(args, optionsOrCb, cb) {
2196
- const command = new TagResourceCommand_1.TagResourceCommand(args);
2197
- if (typeof optionsOrCb === "function") {
2198
- this.send(command, optionsOrCb);
2199
- }
2200
- else if (typeof cb === "function") {
2201
- if (typeof optionsOrCb !== "object")
2202
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2203
- this.send(command, optionsOrCb || {}, cb);
2204
- }
2205
- else {
2206
- return this.send(command, optionsOrCb);
2207
- }
2208
- }
2209
- testAlarm(args, optionsOrCb, cb) {
2210
- const command = new TestAlarmCommand_1.TestAlarmCommand(args);
2211
- if (typeof optionsOrCb === "function") {
2212
- this.send(command, optionsOrCb);
2213
- }
2214
- else if (typeof cb === "function") {
2215
- if (typeof optionsOrCb !== "object")
2216
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2217
- this.send(command, optionsOrCb || {}, cb);
2218
- }
2219
- else {
2220
- return this.send(command, optionsOrCb);
2221
- }
2222
- }
2223
- unpeerVpc(args, optionsOrCb, cb) {
2224
- const command = new UnpeerVpcCommand_1.UnpeerVpcCommand(args);
2225
- if (typeof optionsOrCb === "function") {
2226
- this.send(command, optionsOrCb);
2227
- }
2228
- else if (typeof cb === "function") {
2229
- if (typeof optionsOrCb !== "object")
2230
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2231
- this.send(command, optionsOrCb || {}, cb);
2232
- }
2233
- else {
2234
- return this.send(command, optionsOrCb);
2235
- }
2236
- }
2237
- untagResource(args, optionsOrCb, cb) {
2238
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
2239
- if (typeof optionsOrCb === "function") {
2240
- this.send(command, optionsOrCb);
2241
- }
2242
- else if (typeof cb === "function") {
2243
- if (typeof optionsOrCb !== "object")
2244
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2245
- this.send(command, optionsOrCb || {}, cb);
2246
- }
2247
- else {
2248
- return this.send(command, optionsOrCb);
2249
- }
2250
- }
2251
- updateBucket(args, optionsOrCb, cb) {
2252
- const command = new UpdateBucketCommand_1.UpdateBucketCommand(args);
2253
- if (typeof optionsOrCb === "function") {
2254
- this.send(command, optionsOrCb);
2255
- }
2256
- else if (typeof cb === "function") {
2257
- if (typeof optionsOrCb !== "object")
2258
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2259
- this.send(command, optionsOrCb || {}, cb);
2260
- }
2261
- else {
2262
- return this.send(command, optionsOrCb);
2263
- }
2264
- }
2265
- updateBucketBundle(args, optionsOrCb, cb) {
2266
- const command = new UpdateBucketBundleCommand_1.UpdateBucketBundleCommand(args);
2267
- if (typeof optionsOrCb === "function") {
2268
- this.send(command, optionsOrCb);
2269
- }
2270
- else if (typeof cb === "function") {
2271
- if (typeof optionsOrCb !== "object")
2272
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2273
- this.send(command, optionsOrCb || {}, cb);
2274
- }
2275
- else {
2276
- return this.send(command, optionsOrCb);
2277
- }
2278
- }
2279
- updateContainerService(args, optionsOrCb, cb) {
2280
- const command = new UpdateContainerServiceCommand_1.UpdateContainerServiceCommand(args);
2281
- if (typeof optionsOrCb === "function") {
2282
- this.send(command, optionsOrCb);
2283
- }
2284
- else if (typeof cb === "function") {
2285
- if (typeof optionsOrCb !== "object")
2286
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2287
- this.send(command, optionsOrCb || {}, cb);
2288
- }
2289
- else {
2290
- return this.send(command, optionsOrCb);
2291
- }
2292
- }
2293
- updateDistribution(args, optionsOrCb, cb) {
2294
- const command = new UpdateDistributionCommand_1.UpdateDistributionCommand(args);
2295
- if (typeof optionsOrCb === "function") {
2296
- this.send(command, optionsOrCb);
2297
- }
2298
- else if (typeof cb === "function") {
2299
- if (typeof optionsOrCb !== "object")
2300
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2301
- this.send(command, optionsOrCb || {}, cb);
2302
- }
2303
- else {
2304
- return this.send(command, optionsOrCb);
2305
- }
2306
- }
2307
- updateDistributionBundle(args, optionsOrCb, cb) {
2308
- const command = new UpdateDistributionBundleCommand_1.UpdateDistributionBundleCommand(args);
2309
- if (typeof optionsOrCb === "function") {
2310
- this.send(command, optionsOrCb);
2311
- }
2312
- else if (typeof cb === "function") {
2313
- if (typeof optionsOrCb !== "object")
2314
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2315
- this.send(command, optionsOrCb || {}, cb);
2316
- }
2317
- else {
2318
- return this.send(command, optionsOrCb);
2319
- }
2320
- }
2321
- updateDomainEntry(args, optionsOrCb, cb) {
2322
- const command = new UpdateDomainEntryCommand_1.UpdateDomainEntryCommand(args);
2323
- if (typeof optionsOrCb === "function") {
2324
- this.send(command, optionsOrCb);
2325
- }
2326
- else if (typeof cb === "function") {
2327
- if (typeof optionsOrCb !== "object")
2328
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2329
- this.send(command, optionsOrCb || {}, cb);
2330
- }
2331
- else {
2332
- return this.send(command, optionsOrCb);
2333
- }
2334
- }
2335
- updateInstanceMetadataOptions(args, optionsOrCb, cb) {
2336
- const command = new UpdateInstanceMetadataOptionsCommand_1.UpdateInstanceMetadataOptionsCommand(args);
2337
- if (typeof optionsOrCb === "function") {
2338
- this.send(command, optionsOrCb);
2339
- }
2340
- else if (typeof cb === "function") {
2341
- if (typeof optionsOrCb !== "object")
2342
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2343
- this.send(command, optionsOrCb || {}, cb);
2344
- }
2345
- else {
2346
- return this.send(command, optionsOrCb);
2347
- }
2348
- }
2349
- updateLoadBalancerAttribute(args, optionsOrCb, cb) {
2350
- const command = new UpdateLoadBalancerAttributeCommand_1.UpdateLoadBalancerAttributeCommand(args);
2351
- if (typeof optionsOrCb === "function") {
2352
- this.send(command, optionsOrCb);
2353
- }
2354
- else if (typeof cb === "function") {
2355
- if (typeof optionsOrCb !== "object")
2356
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2357
- this.send(command, optionsOrCb || {}, cb);
2358
- }
2359
- else {
2360
- return this.send(command, optionsOrCb);
2361
- }
2362
- }
2363
- updateRelationalDatabase(args, optionsOrCb, cb) {
2364
- const command = new UpdateRelationalDatabaseCommand_1.UpdateRelationalDatabaseCommand(args);
2365
- if (typeof optionsOrCb === "function") {
2366
- this.send(command, optionsOrCb);
2367
- }
2368
- else if (typeof cb === "function") {
2369
- if (typeof optionsOrCb !== "object")
2370
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2371
- this.send(command, optionsOrCb || {}, cb);
2372
- }
2373
- else {
2374
- return this.send(command, optionsOrCb);
2375
- }
2376
- }
2377
- updateRelationalDatabaseParameters(args, optionsOrCb, cb) {
2378
- const command = new UpdateRelationalDatabaseParametersCommand_1.UpdateRelationalDatabaseParametersCommand(args);
2379
- if (typeof optionsOrCb === "function") {
2380
- this.send(command, optionsOrCb);
2381
- }
2382
- else if (typeof cb === "function") {
2383
- if (typeof optionsOrCb !== "object")
2384
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2385
- this.send(command, optionsOrCb || {}, cb);
2386
- }
2387
- else {
2388
- return this.send(command, optionsOrCb);
2389
- }
2390
- }
2391
327
  }
2392
328
  exports.Lightsail = Lightsail;
329
+ (0, smithy_client_1.createAggregatedClient)(commands, Lightsail);