@aws-sdk/client-iot 3.312.0 → 3.316.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.
package/dist-es/IoT.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AcceptCertificateTransferCommand, } from "./commands/AcceptCertificateTransferCommand";
2
3
  import { AddThingToBillingGroupCommand, } from "./commands/AddThingToBillingGroupCommand";
3
4
  import { AddThingToThingGroupCommand, } from "./commands/AddThingToThingGroupCommand";
@@ -237,3337 +238,246 @@ import { UpdateThingGroupsForThingCommand, } from "./commands/UpdateThingGroupsF
237
238
  import { UpdateTopicRuleDestinationCommand, } from "./commands/UpdateTopicRuleDestinationCommand";
238
239
  import { ValidateSecurityProfileBehaviorsCommand, } from "./commands/ValidateSecurityProfileBehaviorsCommand";
239
240
  import { IoTClient } from "./IoTClient";
241
+ const commands = {
242
+ AcceptCertificateTransferCommand,
243
+ AddThingToBillingGroupCommand,
244
+ AddThingToThingGroupCommand,
245
+ AssociateTargetsWithJobCommand,
246
+ AttachPolicyCommand,
247
+ AttachPrincipalPolicyCommand,
248
+ AttachSecurityProfileCommand,
249
+ AttachThingPrincipalCommand,
250
+ CancelAuditMitigationActionsTaskCommand,
251
+ CancelAuditTaskCommand,
252
+ CancelCertificateTransferCommand,
253
+ CancelDetectMitigationActionsTaskCommand,
254
+ CancelJobCommand,
255
+ CancelJobExecutionCommand,
256
+ ClearDefaultAuthorizerCommand,
257
+ ConfirmTopicRuleDestinationCommand,
258
+ CreateAuditSuppressionCommand,
259
+ CreateAuthorizerCommand,
260
+ CreateBillingGroupCommand,
261
+ CreateCertificateFromCsrCommand,
262
+ CreateCustomMetricCommand,
263
+ CreateDimensionCommand,
264
+ CreateDomainConfigurationCommand,
265
+ CreateDynamicThingGroupCommand,
266
+ CreateFleetMetricCommand,
267
+ CreateJobCommand,
268
+ CreateJobTemplateCommand,
269
+ CreateKeysAndCertificateCommand,
270
+ CreateMitigationActionCommand,
271
+ CreateOTAUpdateCommand,
272
+ CreatePolicyCommand,
273
+ CreatePolicyVersionCommand,
274
+ CreateProvisioningClaimCommand,
275
+ CreateProvisioningTemplateCommand,
276
+ CreateProvisioningTemplateVersionCommand,
277
+ CreateRoleAliasCommand,
278
+ CreateScheduledAuditCommand,
279
+ CreateSecurityProfileCommand,
280
+ CreateStreamCommand,
281
+ CreateThingCommand,
282
+ CreateThingGroupCommand,
283
+ CreateThingTypeCommand,
284
+ CreateTopicRuleCommand,
285
+ CreateTopicRuleDestinationCommand,
286
+ DeleteAccountAuditConfigurationCommand,
287
+ DeleteAuditSuppressionCommand,
288
+ DeleteAuthorizerCommand,
289
+ DeleteBillingGroupCommand,
290
+ DeleteCACertificateCommand,
291
+ DeleteCertificateCommand,
292
+ DeleteCustomMetricCommand,
293
+ DeleteDimensionCommand,
294
+ DeleteDomainConfigurationCommand,
295
+ DeleteDynamicThingGroupCommand,
296
+ DeleteFleetMetricCommand,
297
+ DeleteJobCommand,
298
+ DeleteJobExecutionCommand,
299
+ DeleteJobTemplateCommand,
300
+ DeleteMitigationActionCommand,
301
+ DeleteOTAUpdateCommand,
302
+ DeletePolicyCommand,
303
+ DeletePolicyVersionCommand,
304
+ DeleteProvisioningTemplateCommand,
305
+ DeleteProvisioningTemplateVersionCommand,
306
+ DeleteRegistrationCodeCommand,
307
+ DeleteRoleAliasCommand,
308
+ DeleteScheduledAuditCommand,
309
+ DeleteSecurityProfileCommand,
310
+ DeleteStreamCommand,
311
+ DeleteThingCommand,
312
+ DeleteThingGroupCommand,
313
+ DeleteThingTypeCommand,
314
+ DeleteTopicRuleCommand,
315
+ DeleteTopicRuleDestinationCommand,
316
+ DeleteV2LoggingLevelCommand,
317
+ DeprecateThingTypeCommand,
318
+ DescribeAccountAuditConfigurationCommand,
319
+ DescribeAuditFindingCommand,
320
+ DescribeAuditMitigationActionsTaskCommand,
321
+ DescribeAuditSuppressionCommand,
322
+ DescribeAuditTaskCommand,
323
+ DescribeAuthorizerCommand,
324
+ DescribeBillingGroupCommand,
325
+ DescribeCACertificateCommand,
326
+ DescribeCertificateCommand,
327
+ DescribeCustomMetricCommand,
328
+ DescribeDefaultAuthorizerCommand,
329
+ DescribeDetectMitigationActionsTaskCommand,
330
+ DescribeDimensionCommand,
331
+ DescribeDomainConfigurationCommand,
332
+ DescribeEndpointCommand,
333
+ DescribeEventConfigurationsCommand,
334
+ DescribeFleetMetricCommand,
335
+ DescribeIndexCommand,
336
+ DescribeJobCommand,
337
+ DescribeJobExecutionCommand,
338
+ DescribeJobTemplateCommand,
339
+ DescribeManagedJobTemplateCommand,
340
+ DescribeMitigationActionCommand,
341
+ DescribeProvisioningTemplateCommand,
342
+ DescribeProvisioningTemplateVersionCommand,
343
+ DescribeRoleAliasCommand,
344
+ DescribeScheduledAuditCommand,
345
+ DescribeSecurityProfileCommand,
346
+ DescribeStreamCommand,
347
+ DescribeThingCommand,
348
+ DescribeThingGroupCommand,
349
+ DescribeThingRegistrationTaskCommand,
350
+ DescribeThingTypeCommand,
351
+ DetachPolicyCommand,
352
+ DetachPrincipalPolicyCommand,
353
+ DetachSecurityProfileCommand,
354
+ DetachThingPrincipalCommand,
355
+ DisableTopicRuleCommand,
356
+ EnableTopicRuleCommand,
357
+ GetBehaviorModelTrainingSummariesCommand,
358
+ GetBucketsAggregationCommand,
359
+ GetCardinalityCommand,
360
+ GetEffectivePoliciesCommand,
361
+ GetIndexingConfigurationCommand,
362
+ GetJobDocumentCommand,
363
+ GetLoggingOptionsCommand,
364
+ GetOTAUpdateCommand,
365
+ GetPercentilesCommand,
366
+ GetPolicyCommand,
367
+ GetPolicyVersionCommand,
368
+ GetRegistrationCodeCommand,
369
+ GetStatisticsCommand,
370
+ GetTopicRuleCommand,
371
+ GetTopicRuleDestinationCommand,
372
+ GetV2LoggingOptionsCommand,
373
+ ListActiveViolationsCommand,
374
+ ListAttachedPoliciesCommand,
375
+ ListAuditFindingsCommand,
376
+ ListAuditMitigationActionsExecutionsCommand,
377
+ ListAuditMitigationActionsTasksCommand,
378
+ ListAuditSuppressionsCommand,
379
+ ListAuditTasksCommand,
380
+ ListAuthorizersCommand,
381
+ ListBillingGroupsCommand,
382
+ ListCACertificatesCommand,
383
+ ListCertificatesCommand,
384
+ ListCertificatesByCACommand,
385
+ ListCustomMetricsCommand,
386
+ ListDetectMitigationActionsExecutionsCommand,
387
+ ListDetectMitigationActionsTasksCommand,
388
+ ListDimensionsCommand,
389
+ ListDomainConfigurationsCommand,
390
+ ListFleetMetricsCommand,
391
+ ListIndicesCommand,
392
+ ListJobExecutionsForJobCommand,
393
+ ListJobExecutionsForThingCommand,
394
+ ListJobsCommand,
395
+ ListJobTemplatesCommand,
396
+ ListManagedJobTemplatesCommand,
397
+ ListMetricValuesCommand,
398
+ ListMitigationActionsCommand,
399
+ ListOTAUpdatesCommand,
400
+ ListOutgoingCertificatesCommand,
401
+ ListPoliciesCommand,
402
+ ListPolicyPrincipalsCommand,
403
+ ListPolicyVersionsCommand,
404
+ ListPrincipalPoliciesCommand,
405
+ ListPrincipalThingsCommand,
406
+ ListProvisioningTemplatesCommand,
407
+ ListProvisioningTemplateVersionsCommand,
408
+ ListRelatedResourcesForAuditFindingCommand,
409
+ ListRoleAliasesCommand,
410
+ ListScheduledAuditsCommand,
411
+ ListSecurityProfilesCommand,
412
+ ListSecurityProfilesForTargetCommand,
413
+ ListStreamsCommand,
414
+ ListTagsForResourceCommand,
415
+ ListTargetsForPolicyCommand,
416
+ ListTargetsForSecurityProfileCommand,
417
+ ListThingGroupsCommand,
418
+ ListThingGroupsForThingCommand,
419
+ ListThingPrincipalsCommand,
420
+ ListThingRegistrationTaskReportsCommand,
421
+ ListThingRegistrationTasksCommand,
422
+ ListThingsCommand,
423
+ ListThingsInBillingGroupCommand,
424
+ ListThingsInThingGroupCommand,
425
+ ListThingTypesCommand,
426
+ ListTopicRuleDestinationsCommand,
427
+ ListTopicRulesCommand,
428
+ ListV2LoggingLevelsCommand,
429
+ ListViolationEventsCommand,
430
+ PutVerificationStateOnViolationCommand,
431
+ RegisterCACertificateCommand,
432
+ RegisterCertificateCommand,
433
+ RegisterCertificateWithoutCACommand,
434
+ RegisterThingCommand,
435
+ RejectCertificateTransferCommand,
436
+ RemoveThingFromBillingGroupCommand,
437
+ RemoveThingFromThingGroupCommand,
438
+ ReplaceTopicRuleCommand,
439
+ SearchIndexCommand,
440
+ SetDefaultAuthorizerCommand,
441
+ SetDefaultPolicyVersionCommand,
442
+ SetLoggingOptionsCommand,
443
+ SetV2LoggingLevelCommand,
444
+ SetV2LoggingOptionsCommand,
445
+ StartAuditMitigationActionsTaskCommand,
446
+ StartDetectMitigationActionsTaskCommand,
447
+ StartOnDemandAuditTaskCommand,
448
+ StartThingRegistrationTaskCommand,
449
+ StopThingRegistrationTaskCommand,
450
+ TagResourceCommand,
451
+ TestAuthorizationCommand,
452
+ TestInvokeAuthorizerCommand,
453
+ TransferCertificateCommand,
454
+ UntagResourceCommand,
455
+ UpdateAccountAuditConfigurationCommand,
456
+ UpdateAuditSuppressionCommand,
457
+ UpdateAuthorizerCommand,
458
+ UpdateBillingGroupCommand,
459
+ UpdateCACertificateCommand,
460
+ UpdateCertificateCommand,
461
+ UpdateCustomMetricCommand,
462
+ UpdateDimensionCommand,
463
+ UpdateDomainConfigurationCommand,
464
+ UpdateDynamicThingGroupCommand,
465
+ UpdateEventConfigurationsCommand,
466
+ UpdateFleetMetricCommand,
467
+ UpdateIndexingConfigurationCommand,
468
+ UpdateJobCommand,
469
+ UpdateMitigationActionCommand,
470
+ UpdateProvisioningTemplateCommand,
471
+ UpdateRoleAliasCommand,
472
+ UpdateScheduledAuditCommand,
473
+ UpdateSecurityProfileCommand,
474
+ UpdateStreamCommand,
475
+ UpdateThingCommand,
476
+ UpdateThingGroupCommand,
477
+ UpdateThingGroupsForThingCommand,
478
+ UpdateTopicRuleDestinationCommand,
479
+ ValidateSecurityProfileBehaviorsCommand,
480
+ };
240
481
  export class IoT extends IoTClient {
241
- acceptCertificateTransfer(args, optionsOrCb, cb) {
242
- const command = new AcceptCertificateTransferCommand(args);
243
- if (typeof optionsOrCb === "function") {
244
- this.send(command, optionsOrCb);
245
- }
246
- else if (typeof cb === "function") {
247
- if (typeof optionsOrCb !== "object")
248
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
249
- this.send(command, optionsOrCb || {}, cb);
250
- }
251
- else {
252
- return this.send(command, optionsOrCb);
253
- }
254
- }
255
- addThingToBillingGroup(args, optionsOrCb, cb) {
256
- const command = new AddThingToBillingGroupCommand(args);
257
- if (typeof optionsOrCb === "function") {
258
- this.send(command, optionsOrCb);
259
- }
260
- else if (typeof cb === "function") {
261
- if (typeof optionsOrCb !== "object")
262
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
263
- this.send(command, optionsOrCb || {}, cb);
264
- }
265
- else {
266
- return this.send(command, optionsOrCb);
267
- }
268
- }
269
- addThingToThingGroup(args, optionsOrCb, cb) {
270
- const command = new AddThingToThingGroupCommand(args);
271
- if (typeof optionsOrCb === "function") {
272
- this.send(command, optionsOrCb);
273
- }
274
- else if (typeof cb === "function") {
275
- if (typeof optionsOrCb !== "object")
276
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
277
- this.send(command, optionsOrCb || {}, cb);
278
- }
279
- else {
280
- return this.send(command, optionsOrCb);
281
- }
282
- }
283
- associateTargetsWithJob(args, optionsOrCb, cb) {
284
- const command = new AssociateTargetsWithJobCommand(args);
285
- if (typeof optionsOrCb === "function") {
286
- this.send(command, optionsOrCb);
287
- }
288
- else if (typeof cb === "function") {
289
- if (typeof optionsOrCb !== "object")
290
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
291
- this.send(command, optionsOrCb || {}, cb);
292
- }
293
- else {
294
- return this.send(command, optionsOrCb);
295
- }
296
- }
297
- attachPolicy(args, optionsOrCb, cb) {
298
- const command = new AttachPolicyCommand(args);
299
- if (typeof optionsOrCb === "function") {
300
- this.send(command, optionsOrCb);
301
- }
302
- else if (typeof cb === "function") {
303
- if (typeof optionsOrCb !== "object")
304
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
305
- this.send(command, optionsOrCb || {}, cb);
306
- }
307
- else {
308
- return this.send(command, optionsOrCb);
309
- }
310
- }
311
- attachPrincipalPolicy(args, optionsOrCb, cb) {
312
- const command = new AttachPrincipalPolicyCommand(args);
313
- if (typeof optionsOrCb === "function") {
314
- this.send(command, optionsOrCb);
315
- }
316
- else if (typeof cb === "function") {
317
- if (typeof optionsOrCb !== "object")
318
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
319
- this.send(command, optionsOrCb || {}, cb);
320
- }
321
- else {
322
- return this.send(command, optionsOrCb);
323
- }
324
- }
325
- attachSecurityProfile(args, optionsOrCb, cb) {
326
- const command = new AttachSecurityProfileCommand(args);
327
- if (typeof optionsOrCb === "function") {
328
- this.send(command, optionsOrCb);
329
- }
330
- else if (typeof cb === "function") {
331
- if (typeof optionsOrCb !== "object")
332
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
333
- this.send(command, optionsOrCb || {}, cb);
334
- }
335
- else {
336
- return this.send(command, optionsOrCb);
337
- }
338
- }
339
- attachThingPrincipal(args, optionsOrCb, cb) {
340
- const command = new AttachThingPrincipalCommand(args);
341
- if (typeof optionsOrCb === "function") {
342
- this.send(command, optionsOrCb);
343
- }
344
- else if (typeof cb === "function") {
345
- if (typeof optionsOrCb !== "object")
346
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
347
- this.send(command, optionsOrCb || {}, cb);
348
- }
349
- else {
350
- return this.send(command, optionsOrCb);
351
- }
352
- }
353
- cancelAuditMitigationActionsTask(args, optionsOrCb, cb) {
354
- const command = new CancelAuditMitigationActionsTaskCommand(args);
355
- if (typeof optionsOrCb === "function") {
356
- this.send(command, optionsOrCb);
357
- }
358
- else if (typeof cb === "function") {
359
- if (typeof optionsOrCb !== "object")
360
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
361
- this.send(command, optionsOrCb || {}, cb);
362
- }
363
- else {
364
- return this.send(command, optionsOrCb);
365
- }
366
- }
367
- cancelAuditTask(args, optionsOrCb, cb) {
368
- const command = new CancelAuditTaskCommand(args);
369
- if (typeof optionsOrCb === "function") {
370
- this.send(command, optionsOrCb);
371
- }
372
- else if (typeof cb === "function") {
373
- if (typeof optionsOrCb !== "object")
374
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
375
- this.send(command, optionsOrCb || {}, cb);
376
- }
377
- else {
378
- return this.send(command, optionsOrCb);
379
- }
380
- }
381
- cancelCertificateTransfer(args, optionsOrCb, cb) {
382
- const command = new CancelCertificateTransferCommand(args);
383
- if (typeof optionsOrCb === "function") {
384
- this.send(command, optionsOrCb);
385
- }
386
- else if (typeof cb === "function") {
387
- if (typeof optionsOrCb !== "object")
388
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
389
- this.send(command, optionsOrCb || {}, cb);
390
- }
391
- else {
392
- return this.send(command, optionsOrCb);
393
- }
394
- }
395
- cancelDetectMitigationActionsTask(args, optionsOrCb, cb) {
396
- const command = new CancelDetectMitigationActionsTaskCommand(args);
397
- if (typeof optionsOrCb === "function") {
398
- this.send(command, optionsOrCb);
399
- }
400
- else if (typeof cb === "function") {
401
- if (typeof optionsOrCb !== "object")
402
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
403
- this.send(command, optionsOrCb || {}, cb);
404
- }
405
- else {
406
- return this.send(command, optionsOrCb);
407
- }
408
- }
409
- cancelJob(args, optionsOrCb, cb) {
410
- const command = new CancelJobCommand(args);
411
- if (typeof optionsOrCb === "function") {
412
- this.send(command, optionsOrCb);
413
- }
414
- else if (typeof cb === "function") {
415
- if (typeof optionsOrCb !== "object")
416
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
417
- this.send(command, optionsOrCb || {}, cb);
418
- }
419
- else {
420
- return this.send(command, optionsOrCb);
421
- }
422
- }
423
- cancelJobExecution(args, optionsOrCb, cb) {
424
- const command = new CancelJobExecutionCommand(args);
425
- if (typeof optionsOrCb === "function") {
426
- this.send(command, optionsOrCb);
427
- }
428
- else if (typeof cb === "function") {
429
- if (typeof optionsOrCb !== "object")
430
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
431
- this.send(command, optionsOrCb || {}, cb);
432
- }
433
- else {
434
- return this.send(command, optionsOrCb);
435
- }
436
- }
437
- clearDefaultAuthorizer(args, optionsOrCb, cb) {
438
- const command = new ClearDefaultAuthorizerCommand(args);
439
- if (typeof optionsOrCb === "function") {
440
- this.send(command, optionsOrCb);
441
- }
442
- else if (typeof cb === "function") {
443
- if (typeof optionsOrCb !== "object")
444
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
445
- this.send(command, optionsOrCb || {}, cb);
446
- }
447
- else {
448
- return this.send(command, optionsOrCb);
449
- }
450
- }
451
- confirmTopicRuleDestination(args, optionsOrCb, cb) {
452
- const command = new ConfirmTopicRuleDestinationCommand(args);
453
- if (typeof optionsOrCb === "function") {
454
- this.send(command, optionsOrCb);
455
- }
456
- else if (typeof cb === "function") {
457
- if (typeof optionsOrCb !== "object")
458
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
459
- this.send(command, optionsOrCb || {}, cb);
460
- }
461
- else {
462
- return this.send(command, optionsOrCb);
463
- }
464
- }
465
- createAuditSuppression(args, optionsOrCb, cb) {
466
- const command = new CreateAuditSuppressionCommand(args);
467
- if (typeof optionsOrCb === "function") {
468
- this.send(command, optionsOrCb);
469
- }
470
- else if (typeof cb === "function") {
471
- if (typeof optionsOrCb !== "object")
472
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
473
- this.send(command, optionsOrCb || {}, cb);
474
- }
475
- else {
476
- return this.send(command, optionsOrCb);
477
- }
478
- }
479
- createAuthorizer(args, optionsOrCb, cb) {
480
- const command = new CreateAuthorizerCommand(args);
481
- if (typeof optionsOrCb === "function") {
482
- this.send(command, optionsOrCb);
483
- }
484
- else if (typeof cb === "function") {
485
- if (typeof optionsOrCb !== "object")
486
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
487
- this.send(command, optionsOrCb || {}, cb);
488
- }
489
- else {
490
- return this.send(command, optionsOrCb);
491
- }
492
- }
493
- createBillingGroup(args, optionsOrCb, cb) {
494
- const command = new CreateBillingGroupCommand(args);
495
- if (typeof optionsOrCb === "function") {
496
- this.send(command, optionsOrCb);
497
- }
498
- else if (typeof cb === "function") {
499
- if (typeof optionsOrCb !== "object")
500
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
501
- this.send(command, optionsOrCb || {}, cb);
502
- }
503
- else {
504
- return this.send(command, optionsOrCb);
505
- }
506
- }
507
- createCertificateFromCsr(args, optionsOrCb, cb) {
508
- const command = new CreateCertificateFromCsrCommand(args);
509
- if (typeof optionsOrCb === "function") {
510
- this.send(command, optionsOrCb);
511
- }
512
- else if (typeof cb === "function") {
513
- if (typeof optionsOrCb !== "object")
514
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
515
- this.send(command, optionsOrCb || {}, cb);
516
- }
517
- else {
518
- return this.send(command, optionsOrCb);
519
- }
520
- }
521
- createCustomMetric(args, optionsOrCb, cb) {
522
- const command = new CreateCustomMetricCommand(args);
523
- if (typeof optionsOrCb === "function") {
524
- this.send(command, optionsOrCb);
525
- }
526
- else if (typeof cb === "function") {
527
- if (typeof optionsOrCb !== "object")
528
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
529
- this.send(command, optionsOrCb || {}, cb);
530
- }
531
- else {
532
- return this.send(command, optionsOrCb);
533
- }
534
- }
535
- createDimension(args, optionsOrCb, cb) {
536
- const command = new CreateDimensionCommand(args);
537
- if (typeof optionsOrCb === "function") {
538
- this.send(command, optionsOrCb);
539
- }
540
- else if (typeof cb === "function") {
541
- if (typeof optionsOrCb !== "object")
542
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
543
- this.send(command, optionsOrCb || {}, cb);
544
- }
545
- else {
546
- return this.send(command, optionsOrCb);
547
- }
548
- }
549
- createDomainConfiguration(args, optionsOrCb, cb) {
550
- const command = new CreateDomainConfigurationCommand(args);
551
- if (typeof optionsOrCb === "function") {
552
- this.send(command, optionsOrCb);
553
- }
554
- else if (typeof cb === "function") {
555
- if (typeof optionsOrCb !== "object")
556
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
557
- this.send(command, optionsOrCb || {}, cb);
558
- }
559
- else {
560
- return this.send(command, optionsOrCb);
561
- }
562
- }
563
- createDynamicThingGroup(args, optionsOrCb, cb) {
564
- const command = new CreateDynamicThingGroupCommand(args);
565
- if (typeof optionsOrCb === "function") {
566
- this.send(command, optionsOrCb);
567
- }
568
- else if (typeof cb === "function") {
569
- if (typeof optionsOrCb !== "object")
570
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
571
- this.send(command, optionsOrCb || {}, cb);
572
- }
573
- else {
574
- return this.send(command, optionsOrCb);
575
- }
576
- }
577
- createFleetMetric(args, optionsOrCb, cb) {
578
- const command = new CreateFleetMetricCommand(args);
579
- if (typeof optionsOrCb === "function") {
580
- this.send(command, optionsOrCb);
581
- }
582
- else if (typeof cb === "function") {
583
- if (typeof optionsOrCb !== "object")
584
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
585
- this.send(command, optionsOrCb || {}, cb);
586
- }
587
- else {
588
- return this.send(command, optionsOrCb);
589
- }
590
- }
591
- createJob(args, optionsOrCb, cb) {
592
- const command = new CreateJobCommand(args);
593
- if (typeof optionsOrCb === "function") {
594
- this.send(command, optionsOrCb);
595
- }
596
- else if (typeof cb === "function") {
597
- if (typeof optionsOrCb !== "object")
598
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
599
- this.send(command, optionsOrCb || {}, cb);
600
- }
601
- else {
602
- return this.send(command, optionsOrCb);
603
- }
604
- }
605
- createJobTemplate(args, optionsOrCb, cb) {
606
- const command = new CreateJobTemplateCommand(args);
607
- if (typeof optionsOrCb === "function") {
608
- this.send(command, optionsOrCb);
609
- }
610
- else if (typeof cb === "function") {
611
- if (typeof optionsOrCb !== "object")
612
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
613
- this.send(command, optionsOrCb || {}, cb);
614
- }
615
- else {
616
- return this.send(command, optionsOrCb);
617
- }
618
- }
619
- createKeysAndCertificate(args, optionsOrCb, cb) {
620
- const command = new CreateKeysAndCertificateCommand(args);
621
- if (typeof optionsOrCb === "function") {
622
- this.send(command, optionsOrCb);
623
- }
624
- else if (typeof cb === "function") {
625
- if (typeof optionsOrCb !== "object")
626
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
627
- this.send(command, optionsOrCb || {}, cb);
628
- }
629
- else {
630
- return this.send(command, optionsOrCb);
631
- }
632
- }
633
- createMitigationAction(args, optionsOrCb, cb) {
634
- const command = new CreateMitigationActionCommand(args);
635
- if (typeof optionsOrCb === "function") {
636
- this.send(command, optionsOrCb);
637
- }
638
- else if (typeof cb === "function") {
639
- if (typeof optionsOrCb !== "object")
640
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
641
- this.send(command, optionsOrCb || {}, cb);
642
- }
643
- else {
644
- return this.send(command, optionsOrCb);
645
- }
646
- }
647
- createOTAUpdate(args, optionsOrCb, cb) {
648
- const command = new CreateOTAUpdateCommand(args);
649
- if (typeof optionsOrCb === "function") {
650
- this.send(command, optionsOrCb);
651
- }
652
- else if (typeof cb === "function") {
653
- if (typeof optionsOrCb !== "object")
654
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
655
- this.send(command, optionsOrCb || {}, cb);
656
- }
657
- else {
658
- return this.send(command, optionsOrCb);
659
- }
660
- }
661
- createPolicy(args, optionsOrCb, cb) {
662
- const command = new CreatePolicyCommand(args);
663
- if (typeof optionsOrCb === "function") {
664
- this.send(command, optionsOrCb);
665
- }
666
- else if (typeof cb === "function") {
667
- if (typeof optionsOrCb !== "object")
668
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
669
- this.send(command, optionsOrCb || {}, cb);
670
- }
671
- else {
672
- return this.send(command, optionsOrCb);
673
- }
674
- }
675
- createPolicyVersion(args, optionsOrCb, cb) {
676
- const command = new CreatePolicyVersionCommand(args);
677
- if (typeof optionsOrCb === "function") {
678
- this.send(command, optionsOrCb);
679
- }
680
- else if (typeof cb === "function") {
681
- if (typeof optionsOrCb !== "object")
682
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
683
- this.send(command, optionsOrCb || {}, cb);
684
- }
685
- else {
686
- return this.send(command, optionsOrCb);
687
- }
688
- }
689
- createProvisioningClaim(args, optionsOrCb, cb) {
690
- const command = new CreateProvisioningClaimCommand(args);
691
- if (typeof optionsOrCb === "function") {
692
- this.send(command, optionsOrCb);
693
- }
694
- else if (typeof cb === "function") {
695
- if (typeof optionsOrCb !== "object")
696
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
697
- this.send(command, optionsOrCb || {}, cb);
698
- }
699
- else {
700
- return this.send(command, optionsOrCb);
701
- }
702
- }
703
- createProvisioningTemplate(args, optionsOrCb, cb) {
704
- const command = new CreateProvisioningTemplateCommand(args);
705
- if (typeof optionsOrCb === "function") {
706
- this.send(command, optionsOrCb);
707
- }
708
- else if (typeof cb === "function") {
709
- if (typeof optionsOrCb !== "object")
710
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
711
- this.send(command, optionsOrCb || {}, cb);
712
- }
713
- else {
714
- return this.send(command, optionsOrCb);
715
- }
716
- }
717
- createProvisioningTemplateVersion(args, optionsOrCb, cb) {
718
- const command = new CreateProvisioningTemplateVersionCommand(args);
719
- if (typeof optionsOrCb === "function") {
720
- this.send(command, optionsOrCb);
721
- }
722
- else if (typeof cb === "function") {
723
- if (typeof optionsOrCb !== "object")
724
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
725
- this.send(command, optionsOrCb || {}, cb);
726
- }
727
- else {
728
- return this.send(command, optionsOrCb);
729
- }
730
- }
731
- createRoleAlias(args, optionsOrCb, cb) {
732
- const command = new CreateRoleAliasCommand(args);
733
- if (typeof optionsOrCb === "function") {
734
- this.send(command, optionsOrCb);
735
- }
736
- else if (typeof cb === "function") {
737
- if (typeof optionsOrCb !== "object")
738
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
739
- this.send(command, optionsOrCb || {}, cb);
740
- }
741
- else {
742
- return this.send(command, optionsOrCb);
743
- }
744
- }
745
- createScheduledAudit(args, optionsOrCb, cb) {
746
- const command = new CreateScheduledAuditCommand(args);
747
- if (typeof optionsOrCb === "function") {
748
- this.send(command, optionsOrCb);
749
- }
750
- else if (typeof cb === "function") {
751
- if (typeof optionsOrCb !== "object")
752
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
753
- this.send(command, optionsOrCb || {}, cb);
754
- }
755
- else {
756
- return this.send(command, optionsOrCb);
757
- }
758
- }
759
- createSecurityProfile(args, optionsOrCb, cb) {
760
- const command = new CreateSecurityProfileCommand(args);
761
- if (typeof optionsOrCb === "function") {
762
- this.send(command, optionsOrCb);
763
- }
764
- else if (typeof cb === "function") {
765
- if (typeof optionsOrCb !== "object")
766
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
767
- this.send(command, optionsOrCb || {}, cb);
768
- }
769
- else {
770
- return this.send(command, optionsOrCb);
771
- }
772
- }
773
- createStream(args, optionsOrCb, cb) {
774
- const command = new CreateStreamCommand(args);
775
- if (typeof optionsOrCb === "function") {
776
- this.send(command, optionsOrCb);
777
- }
778
- else if (typeof cb === "function") {
779
- if (typeof optionsOrCb !== "object")
780
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
781
- this.send(command, optionsOrCb || {}, cb);
782
- }
783
- else {
784
- return this.send(command, optionsOrCb);
785
- }
786
- }
787
- createThing(args, optionsOrCb, cb) {
788
- const command = new CreateThingCommand(args);
789
- if (typeof optionsOrCb === "function") {
790
- this.send(command, optionsOrCb);
791
- }
792
- else if (typeof cb === "function") {
793
- if (typeof optionsOrCb !== "object")
794
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
795
- this.send(command, optionsOrCb || {}, cb);
796
- }
797
- else {
798
- return this.send(command, optionsOrCb);
799
- }
800
- }
801
- createThingGroup(args, optionsOrCb, cb) {
802
- const command = new CreateThingGroupCommand(args);
803
- if (typeof optionsOrCb === "function") {
804
- this.send(command, optionsOrCb);
805
- }
806
- else if (typeof cb === "function") {
807
- if (typeof optionsOrCb !== "object")
808
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
809
- this.send(command, optionsOrCb || {}, cb);
810
- }
811
- else {
812
- return this.send(command, optionsOrCb);
813
- }
814
- }
815
- createThingType(args, optionsOrCb, cb) {
816
- const command = new CreateThingTypeCommand(args);
817
- if (typeof optionsOrCb === "function") {
818
- this.send(command, optionsOrCb);
819
- }
820
- else if (typeof cb === "function") {
821
- if (typeof optionsOrCb !== "object")
822
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
823
- this.send(command, optionsOrCb || {}, cb);
824
- }
825
- else {
826
- return this.send(command, optionsOrCb);
827
- }
828
- }
829
- createTopicRule(args, optionsOrCb, cb) {
830
- const command = new CreateTopicRuleCommand(args);
831
- if (typeof optionsOrCb === "function") {
832
- this.send(command, optionsOrCb);
833
- }
834
- else if (typeof cb === "function") {
835
- if (typeof optionsOrCb !== "object")
836
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
837
- this.send(command, optionsOrCb || {}, cb);
838
- }
839
- else {
840
- return this.send(command, optionsOrCb);
841
- }
842
- }
843
- createTopicRuleDestination(args, optionsOrCb, cb) {
844
- const command = new CreateTopicRuleDestinationCommand(args);
845
- if (typeof optionsOrCb === "function") {
846
- this.send(command, optionsOrCb);
847
- }
848
- else if (typeof cb === "function") {
849
- if (typeof optionsOrCb !== "object")
850
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
851
- this.send(command, optionsOrCb || {}, cb);
852
- }
853
- else {
854
- return this.send(command, optionsOrCb);
855
- }
856
- }
857
- deleteAccountAuditConfiguration(args, optionsOrCb, cb) {
858
- const command = new DeleteAccountAuditConfigurationCommand(args);
859
- if (typeof optionsOrCb === "function") {
860
- this.send(command, optionsOrCb);
861
- }
862
- else if (typeof cb === "function") {
863
- if (typeof optionsOrCb !== "object")
864
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
865
- this.send(command, optionsOrCb || {}, cb);
866
- }
867
- else {
868
- return this.send(command, optionsOrCb);
869
- }
870
- }
871
- deleteAuditSuppression(args, optionsOrCb, cb) {
872
- const command = new DeleteAuditSuppressionCommand(args);
873
- if (typeof optionsOrCb === "function") {
874
- this.send(command, optionsOrCb);
875
- }
876
- else if (typeof cb === "function") {
877
- if (typeof optionsOrCb !== "object")
878
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
879
- this.send(command, optionsOrCb || {}, cb);
880
- }
881
- else {
882
- return this.send(command, optionsOrCb);
883
- }
884
- }
885
- deleteAuthorizer(args, optionsOrCb, cb) {
886
- const command = new DeleteAuthorizerCommand(args);
887
- if (typeof optionsOrCb === "function") {
888
- this.send(command, optionsOrCb);
889
- }
890
- else if (typeof cb === "function") {
891
- if (typeof optionsOrCb !== "object")
892
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
893
- this.send(command, optionsOrCb || {}, cb);
894
- }
895
- else {
896
- return this.send(command, optionsOrCb);
897
- }
898
- }
899
- deleteBillingGroup(args, optionsOrCb, cb) {
900
- const command = new DeleteBillingGroupCommand(args);
901
- if (typeof optionsOrCb === "function") {
902
- this.send(command, optionsOrCb);
903
- }
904
- else if (typeof cb === "function") {
905
- if (typeof optionsOrCb !== "object")
906
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
907
- this.send(command, optionsOrCb || {}, cb);
908
- }
909
- else {
910
- return this.send(command, optionsOrCb);
911
- }
912
- }
913
- deleteCACertificate(args, optionsOrCb, cb) {
914
- const command = new DeleteCACertificateCommand(args);
915
- if (typeof optionsOrCb === "function") {
916
- this.send(command, optionsOrCb);
917
- }
918
- else if (typeof cb === "function") {
919
- if (typeof optionsOrCb !== "object")
920
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
921
- this.send(command, optionsOrCb || {}, cb);
922
- }
923
- else {
924
- return this.send(command, optionsOrCb);
925
- }
926
- }
927
- deleteCertificate(args, optionsOrCb, cb) {
928
- const command = new DeleteCertificateCommand(args);
929
- if (typeof optionsOrCb === "function") {
930
- this.send(command, optionsOrCb);
931
- }
932
- else if (typeof cb === "function") {
933
- if (typeof optionsOrCb !== "object")
934
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
935
- this.send(command, optionsOrCb || {}, cb);
936
- }
937
- else {
938
- return this.send(command, optionsOrCb);
939
- }
940
- }
941
- deleteCustomMetric(args, optionsOrCb, cb) {
942
- const command = new DeleteCustomMetricCommand(args);
943
- if (typeof optionsOrCb === "function") {
944
- this.send(command, optionsOrCb);
945
- }
946
- else if (typeof cb === "function") {
947
- if (typeof optionsOrCb !== "object")
948
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
949
- this.send(command, optionsOrCb || {}, cb);
950
- }
951
- else {
952
- return this.send(command, optionsOrCb);
953
- }
954
- }
955
- deleteDimension(args, optionsOrCb, cb) {
956
- const command = new DeleteDimensionCommand(args);
957
- if (typeof optionsOrCb === "function") {
958
- this.send(command, optionsOrCb);
959
- }
960
- else if (typeof cb === "function") {
961
- if (typeof optionsOrCb !== "object")
962
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
963
- this.send(command, optionsOrCb || {}, cb);
964
- }
965
- else {
966
- return this.send(command, optionsOrCb);
967
- }
968
- }
969
- deleteDomainConfiguration(args, optionsOrCb, cb) {
970
- const command = new DeleteDomainConfigurationCommand(args);
971
- if (typeof optionsOrCb === "function") {
972
- this.send(command, optionsOrCb);
973
- }
974
- else if (typeof cb === "function") {
975
- if (typeof optionsOrCb !== "object")
976
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
977
- this.send(command, optionsOrCb || {}, cb);
978
- }
979
- else {
980
- return this.send(command, optionsOrCb);
981
- }
982
- }
983
- deleteDynamicThingGroup(args, optionsOrCb, cb) {
984
- const command = new DeleteDynamicThingGroupCommand(args);
985
- if (typeof optionsOrCb === "function") {
986
- this.send(command, optionsOrCb);
987
- }
988
- else if (typeof cb === "function") {
989
- if (typeof optionsOrCb !== "object")
990
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
991
- this.send(command, optionsOrCb || {}, cb);
992
- }
993
- else {
994
- return this.send(command, optionsOrCb);
995
- }
996
- }
997
- deleteFleetMetric(args, optionsOrCb, cb) {
998
- const command = new DeleteFleetMetricCommand(args);
999
- if (typeof optionsOrCb === "function") {
1000
- this.send(command, optionsOrCb);
1001
- }
1002
- else if (typeof cb === "function") {
1003
- if (typeof optionsOrCb !== "object")
1004
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1005
- this.send(command, optionsOrCb || {}, cb);
1006
- }
1007
- else {
1008
- return this.send(command, optionsOrCb);
1009
- }
1010
- }
1011
- deleteJob(args, optionsOrCb, cb) {
1012
- const command = new DeleteJobCommand(args);
1013
- if (typeof optionsOrCb === "function") {
1014
- this.send(command, optionsOrCb);
1015
- }
1016
- else if (typeof cb === "function") {
1017
- if (typeof optionsOrCb !== "object")
1018
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1019
- this.send(command, optionsOrCb || {}, cb);
1020
- }
1021
- else {
1022
- return this.send(command, optionsOrCb);
1023
- }
1024
- }
1025
- deleteJobExecution(args, optionsOrCb, cb) {
1026
- const command = new DeleteJobExecutionCommand(args);
1027
- if (typeof optionsOrCb === "function") {
1028
- this.send(command, optionsOrCb);
1029
- }
1030
- else if (typeof cb === "function") {
1031
- if (typeof optionsOrCb !== "object")
1032
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1033
- this.send(command, optionsOrCb || {}, cb);
1034
- }
1035
- else {
1036
- return this.send(command, optionsOrCb);
1037
- }
1038
- }
1039
- deleteJobTemplate(args, optionsOrCb, cb) {
1040
- const command = new DeleteJobTemplateCommand(args);
1041
- if (typeof optionsOrCb === "function") {
1042
- this.send(command, optionsOrCb);
1043
- }
1044
- else if (typeof cb === "function") {
1045
- if (typeof optionsOrCb !== "object")
1046
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1047
- this.send(command, optionsOrCb || {}, cb);
1048
- }
1049
- else {
1050
- return this.send(command, optionsOrCb);
1051
- }
1052
- }
1053
- deleteMitigationAction(args, optionsOrCb, cb) {
1054
- const command = new DeleteMitigationActionCommand(args);
1055
- if (typeof optionsOrCb === "function") {
1056
- this.send(command, optionsOrCb);
1057
- }
1058
- else if (typeof cb === "function") {
1059
- if (typeof optionsOrCb !== "object")
1060
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1061
- this.send(command, optionsOrCb || {}, cb);
1062
- }
1063
- else {
1064
- return this.send(command, optionsOrCb);
1065
- }
1066
- }
1067
- deleteOTAUpdate(args, optionsOrCb, cb) {
1068
- const command = new DeleteOTAUpdateCommand(args);
1069
- if (typeof optionsOrCb === "function") {
1070
- this.send(command, optionsOrCb);
1071
- }
1072
- else if (typeof cb === "function") {
1073
- if (typeof optionsOrCb !== "object")
1074
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1075
- this.send(command, optionsOrCb || {}, cb);
1076
- }
1077
- else {
1078
- return this.send(command, optionsOrCb);
1079
- }
1080
- }
1081
- deletePolicy(args, optionsOrCb, cb) {
1082
- const command = new DeletePolicyCommand(args);
1083
- if (typeof optionsOrCb === "function") {
1084
- this.send(command, optionsOrCb);
1085
- }
1086
- else if (typeof cb === "function") {
1087
- if (typeof optionsOrCb !== "object")
1088
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1089
- this.send(command, optionsOrCb || {}, cb);
1090
- }
1091
- else {
1092
- return this.send(command, optionsOrCb);
1093
- }
1094
- }
1095
- deletePolicyVersion(args, optionsOrCb, cb) {
1096
- const command = new DeletePolicyVersionCommand(args);
1097
- if (typeof optionsOrCb === "function") {
1098
- this.send(command, optionsOrCb);
1099
- }
1100
- else if (typeof cb === "function") {
1101
- if (typeof optionsOrCb !== "object")
1102
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1103
- this.send(command, optionsOrCb || {}, cb);
1104
- }
1105
- else {
1106
- return this.send(command, optionsOrCb);
1107
- }
1108
- }
1109
- deleteProvisioningTemplate(args, optionsOrCb, cb) {
1110
- const command = new DeleteProvisioningTemplateCommand(args);
1111
- if (typeof optionsOrCb === "function") {
1112
- this.send(command, optionsOrCb);
1113
- }
1114
- else if (typeof cb === "function") {
1115
- if (typeof optionsOrCb !== "object")
1116
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1117
- this.send(command, optionsOrCb || {}, cb);
1118
- }
1119
- else {
1120
- return this.send(command, optionsOrCb);
1121
- }
1122
- }
1123
- deleteProvisioningTemplateVersion(args, optionsOrCb, cb) {
1124
- const command = new DeleteProvisioningTemplateVersionCommand(args);
1125
- if (typeof optionsOrCb === "function") {
1126
- this.send(command, optionsOrCb);
1127
- }
1128
- else if (typeof cb === "function") {
1129
- if (typeof optionsOrCb !== "object")
1130
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1131
- this.send(command, optionsOrCb || {}, cb);
1132
- }
1133
- else {
1134
- return this.send(command, optionsOrCb);
1135
- }
1136
- }
1137
- deleteRegistrationCode(args, optionsOrCb, cb) {
1138
- const command = new DeleteRegistrationCodeCommand(args);
1139
- if (typeof optionsOrCb === "function") {
1140
- this.send(command, optionsOrCb);
1141
- }
1142
- else if (typeof cb === "function") {
1143
- if (typeof optionsOrCb !== "object")
1144
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1145
- this.send(command, optionsOrCb || {}, cb);
1146
- }
1147
- else {
1148
- return this.send(command, optionsOrCb);
1149
- }
1150
- }
1151
- deleteRoleAlias(args, optionsOrCb, cb) {
1152
- const command = new DeleteRoleAliasCommand(args);
1153
- if (typeof optionsOrCb === "function") {
1154
- this.send(command, optionsOrCb);
1155
- }
1156
- else if (typeof cb === "function") {
1157
- if (typeof optionsOrCb !== "object")
1158
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1159
- this.send(command, optionsOrCb || {}, cb);
1160
- }
1161
- else {
1162
- return this.send(command, optionsOrCb);
1163
- }
1164
- }
1165
- deleteScheduledAudit(args, optionsOrCb, cb) {
1166
- const command = new DeleteScheduledAuditCommand(args);
1167
- if (typeof optionsOrCb === "function") {
1168
- this.send(command, optionsOrCb);
1169
- }
1170
- else if (typeof cb === "function") {
1171
- if (typeof optionsOrCb !== "object")
1172
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1173
- this.send(command, optionsOrCb || {}, cb);
1174
- }
1175
- else {
1176
- return this.send(command, optionsOrCb);
1177
- }
1178
- }
1179
- deleteSecurityProfile(args, optionsOrCb, cb) {
1180
- const command = new DeleteSecurityProfileCommand(args);
1181
- if (typeof optionsOrCb === "function") {
1182
- this.send(command, optionsOrCb);
1183
- }
1184
- else if (typeof cb === "function") {
1185
- if (typeof optionsOrCb !== "object")
1186
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1187
- this.send(command, optionsOrCb || {}, cb);
1188
- }
1189
- else {
1190
- return this.send(command, optionsOrCb);
1191
- }
1192
- }
1193
- deleteStream(args, optionsOrCb, cb) {
1194
- const command = new DeleteStreamCommand(args);
1195
- if (typeof optionsOrCb === "function") {
1196
- this.send(command, optionsOrCb);
1197
- }
1198
- else if (typeof cb === "function") {
1199
- if (typeof optionsOrCb !== "object")
1200
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1201
- this.send(command, optionsOrCb || {}, cb);
1202
- }
1203
- else {
1204
- return this.send(command, optionsOrCb);
1205
- }
1206
- }
1207
- deleteThing(args, optionsOrCb, cb) {
1208
- const command = new DeleteThingCommand(args);
1209
- if (typeof optionsOrCb === "function") {
1210
- this.send(command, optionsOrCb);
1211
- }
1212
- else if (typeof cb === "function") {
1213
- if (typeof optionsOrCb !== "object")
1214
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1215
- this.send(command, optionsOrCb || {}, cb);
1216
- }
1217
- else {
1218
- return this.send(command, optionsOrCb);
1219
- }
1220
- }
1221
- deleteThingGroup(args, optionsOrCb, cb) {
1222
- const command = new DeleteThingGroupCommand(args);
1223
- if (typeof optionsOrCb === "function") {
1224
- this.send(command, optionsOrCb);
1225
- }
1226
- else if (typeof cb === "function") {
1227
- if (typeof optionsOrCb !== "object")
1228
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1229
- this.send(command, optionsOrCb || {}, cb);
1230
- }
1231
- else {
1232
- return this.send(command, optionsOrCb);
1233
- }
1234
- }
1235
- deleteThingType(args, optionsOrCb, cb) {
1236
- const command = new DeleteThingTypeCommand(args);
1237
- if (typeof optionsOrCb === "function") {
1238
- this.send(command, optionsOrCb);
1239
- }
1240
- else if (typeof cb === "function") {
1241
- if (typeof optionsOrCb !== "object")
1242
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1243
- this.send(command, optionsOrCb || {}, cb);
1244
- }
1245
- else {
1246
- return this.send(command, optionsOrCb);
1247
- }
1248
- }
1249
- deleteTopicRule(args, optionsOrCb, cb) {
1250
- const command = new DeleteTopicRuleCommand(args);
1251
- if (typeof optionsOrCb === "function") {
1252
- this.send(command, optionsOrCb);
1253
- }
1254
- else if (typeof cb === "function") {
1255
- if (typeof optionsOrCb !== "object")
1256
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1257
- this.send(command, optionsOrCb || {}, cb);
1258
- }
1259
- else {
1260
- return this.send(command, optionsOrCb);
1261
- }
1262
- }
1263
- deleteTopicRuleDestination(args, optionsOrCb, cb) {
1264
- const command = new DeleteTopicRuleDestinationCommand(args);
1265
- if (typeof optionsOrCb === "function") {
1266
- this.send(command, optionsOrCb);
1267
- }
1268
- else if (typeof cb === "function") {
1269
- if (typeof optionsOrCb !== "object")
1270
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1271
- this.send(command, optionsOrCb || {}, cb);
1272
- }
1273
- else {
1274
- return this.send(command, optionsOrCb);
1275
- }
1276
- }
1277
- deleteV2LoggingLevel(args, optionsOrCb, cb) {
1278
- const command = new DeleteV2LoggingLevelCommand(args);
1279
- if (typeof optionsOrCb === "function") {
1280
- this.send(command, optionsOrCb);
1281
- }
1282
- else if (typeof cb === "function") {
1283
- if (typeof optionsOrCb !== "object")
1284
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1285
- this.send(command, optionsOrCb || {}, cb);
1286
- }
1287
- else {
1288
- return this.send(command, optionsOrCb);
1289
- }
1290
- }
1291
- deprecateThingType(args, optionsOrCb, cb) {
1292
- const command = new DeprecateThingTypeCommand(args);
1293
- if (typeof optionsOrCb === "function") {
1294
- this.send(command, optionsOrCb);
1295
- }
1296
- else if (typeof cb === "function") {
1297
- if (typeof optionsOrCb !== "object")
1298
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1299
- this.send(command, optionsOrCb || {}, cb);
1300
- }
1301
- else {
1302
- return this.send(command, optionsOrCb);
1303
- }
1304
- }
1305
- describeAccountAuditConfiguration(args, optionsOrCb, cb) {
1306
- const command = new DescribeAccountAuditConfigurationCommand(args);
1307
- if (typeof optionsOrCb === "function") {
1308
- this.send(command, optionsOrCb);
1309
- }
1310
- else if (typeof cb === "function") {
1311
- if (typeof optionsOrCb !== "object")
1312
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1313
- this.send(command, optionsOrCb || {}, cb);
1314
- }
1315
- else {
1316
- return this.send(command, optionsOrCb);
1317
- }
1318
- }
1319
- describeAuditFinding(args, optionsOrCb, cb) {
1320
- const command = new DescribeAuditFindingCommand(args);
1321
- if (typeof optionsOrCb === "function") {
1322
- this.send(command, optionsOrCb);
1323
- }
1324
- else if (typeof cb === "function") {
1325
- if (typeof optionsOrCb !== "object")
1326
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1327
- this.send(command, optionsOrCb || {}, cb);
1328
- }
1329
- else {
1330
- return this.send(command, optionsOrCb);
1331
- }
1332
- }
1333
- describeAuditMitigationActionsTask(args, optionsOrCb, cb) {
1334
- const command = new DescribeAuditMitigationActionsTaskCommand(args);
1335
- if (typeof optionsOrCb === "function") {
1336
- this.send(command, optionsOrCb);
1337
- }
1338
- else if (typeof cb === "function") {
1339
- if (typeof optionsOrCb !== "object")
1340
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1341
- this.send(command, optionsOrCb || {}, cb);
1342
- }
1343
- else {
1344
- return this.send(command, optionsOrCb);
1345
- }
1346
- }
1347
- describeAuditSuppression(args, optionsOrCb, cb) {
1348
- const command = new DescribeAuditSuppressionCommand(args);
1349
- if (typeof optionsOrCb === "function") {
1350
- this.send(command, optionsOrCb);
1351
- }
1352
- else if (typeof cb === "function") {
1353
- if (typeof optionsOrCb !== "object")
1354
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1355
- this.send(command, optionsOrCb || {}, cb);
1356
- }
1357
- else {
1358
- return this.send(command, optionsOrCb);
1359
- }
1360
- }
1361
- describeAuditTask(args, optionsOrCb, cb) {
1362
- const command = new DescribeAuditTaskCommand(args);
1363
- if (typeof optionsOrCb === "function") {
1364
- this.send(command, optionsOrCb);
1365
- }
1366
- else if (typeof cb === "function") {
1367
- if (typeof optionsOrCb !== "object")
1368
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1369
- this.send(command, optionsOrCb || {}, cb);
1370
- }
1371
- else {
1372
- return this.send(command, optionsOrCb);
1373
- }
1374
- }
1375
- describeAuthorizer(args, optionsOrCb, cb) {
1376
- const command = new DescribeAuthorizerCommand(args);
1377
- if (typeof optionsOrCb === "function") {
1378
- this.send(command, optionsOrCb);
1379
- }
1380
- else if (typeof cb === "function") {
1381
- if (typeof optionsOrCb !== "object")
1382
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1383
- this.send(command, optionsOrCb || {}, cb);
1384
- }
1385
- else {
1386
- return this.send(command, optionsOrCb);
1387
- }
1388
- }
1389
- describeBillingGroup(args, optionsOrCb, cb) {
1390
- const command = new DescribeBillingGroupCommand(args);
1391
- if (typeof optionsOrCb === "function") {
1392
- this.send(command, optionsOrCb);
1393
- }
1394
- else if (typeof cb === "function") {
1395
- if (typeof optionsOrCb !== "object")
1396
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1397
- this.send(command, optionsOrCb || {}, cb);
1398
- }
1399
- else {
1400
- return this.send(command, optionsOrCb);
1401
- }
1402
- }
1403
- describeCACertificate(args, optionsOrCb, cb) {
1404
- const command = new DescribeCACertificateCommand(args);
1405
- if (typeof optionsOrCb === "function") {
1406
- this.send(command, optionsOrCb);
1407
- }
1408
- else if (typeof cb === "function") {
1409
- if (typeof optionsOrCb !== "object")
1410
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1411
- this.send(command, optionsOrCb || {}, cb);
1412
- }
1413
- else {
1414
- return this.send(command, optionsOrCb);
1415
- }
1416
- }
1417
- describeCertificate(args, optionsOrCb, cb) {
1418
- const command = new DescribeCertificateCommand(args);
1419
- if (typeof optionsOrCb === "function") {
1420
- this.send(command, optionsOrCb);
1421
- }
1422
- else if (typeof cb === "function") {
1423
- if (typeof optionsOrCb !== "object")
1424
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1425
- this.send(command, optionsOrCb || {}, cb);
1426
- }
1427
- else {
1428
- return this.send(command, optionsOrCb);
1429
- }
1430
- }
1431
- describeCustomMetric(args, optionsOrCb, cb) {
1432
- const command = new DescribeCustomMetricCommand(args);
1433
- if (typeof optionsOrCb === "function") {
1434
- this.send(command, optionsOrCb);
1435
- }
1436
- else if (typeof cb === "function") {
1437
- if (typeof optionsOrCb !== "object")
1438
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1439
- this.send(command, optionsOrCb || {}, cb);
1440
- }
1441
- else {
1442
- return this.send(command, optionsOrCb);
1443
- }
1444
- }
1445
- describeDefaultAuthorizer(args, optionsOrCb, cb) {
1446
- const command = new DescribeDefaultAuthorizerCommand(args);
1447
- if (typeof optionsOrCb === "function") {
1448
- this.send(command, optionsOrCb);
1449
- }
1450
- else if (typeof cb === "function") {
1451
- if (typeof optionsOrCb !== "object")
1452
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1453
- this.send(command, optionsOrCb || {}, cb);
1454
- }
1455
- else {
1456
- return this.send(command, optionsOrCb);
1457
- }
1458
- }
1459
- describeDetectMitigationActionsTask(args, optionsOrCb, cb) {
1460
- const command = new DescribeDetectMitigationActionsTaskCommand(args);
1461
- if (typeof optionsOrCb === "function") {
1462
- this.send(command, optionsOrCb);
1463
- }
1464
- else if (typeof cb === "function") {
1465
- if (typeof optionsOrCb !== "object")
1466
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1467
- this.send(command, optionsOrCb || {}, cb);
1468
- }
1469
- else {
1470
- return this.send(command, optionsOrCb);
1471
- }
1472
- }
1473
- describeDimension(args, optionsOrCb, cb) {
1474
- const command = new DescribeDimensionCommand(args);
1475
- if (typeof optionsOrCb === "function") {
1476
- this.send(command, optionsOrCb);
1477
- }
1478
- else if (typeof cb === "function") {
1479
- if (typeof optionsOrCb !== "object")
1480
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1481
- this.send(command, optionsOrCb || {}, cb);
1482
- }
1483
- else {
1484
- return this.send(command, optionsOrCb);
1485
- }
1486
- }
1487
- describeDomainConfiguration(args, optionsOrCb, cb) {
1488
- const command = new DescribeDomainConfigurationCommand(args);
1489
- if (typeof optionsOrCb === "function") {
1490
- this.send(command, optionsOrCb);
1491
- }
1492
- else if (typeof cb === "function") {
1493
- if (typeof optionsOrCb !== "object")
1494
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1495
- this.send(command, optionsOrCb || {}, cb);
1496
- }
1497
- else {
1498
- return this.send(command, optionsOrCb);
1499
- }
1500
- }
1501
- describeEndpoint(args, optionsOrCb, cb) {
1502
- const command = new DescribeEndpointCommand(args);
1503
- if (typeof optionsOrCb === "function") {
1504
- this.send(command, optionsOrCb);
1505
- }
1506
- else if (typeof cb === "function") {
1507
- if (typeof optionsOrCb !== "object")
1508
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1509
- this.send(command, optionsOrCb || {}, cb);
1510
- }
1511
- else {
1512
- return this.send(command, optionsOrCb);
1513
- }
1514
- }
1515
- describeEventConfigurations(args, optionsOrCb, cb) {
1516
- const command = new DescribeEventConfigurationsCommand(args);
1517
- if (typeof optionsOrCb === "function") {
1518
- this.send(command, optionsOrCb);
1519
- }
1520
- else if (typeof cb === "function") {
1521
- if (typeof optionsOrCb !== "object")
1522
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1523
- this.send(command, optionsOrCb || {}, cb);
1524
- }
1525
- else {
1526
- return this.send(command, optionsOrCb);
1527
- }
1528
- }
1529
- describeFleetMetric(args, optionsOrCb, cb) {
1530
- const command = new DescribeFleetMetricCommand(args);
1531
- if (typeof optionsOrCb === "function") {
1532
- this.send(command, optionsOrCb);
1533
- }
1534
- else if (typeof cb === "function") {
1535
- if (typeof optionsOrCb !== "object")
1536
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1537
- this.send(command, optionsOrCb || {}, cb);
1538
- }
1539
- else {
1540
- return this.send(command, optionsOrCb);
1541
- }
1542
- }
1543
- describeIndex(args, optionsOrCb, cb) {
1544
- const command = new DescribeIndexCommand(args);
1545
- if (typeof optionsOrCb === "function") {
1546
- this.send(command, optionsOrCb);
1547
- }
1548
- else if (typeof cb === "function") {
1549
- if (typeof optionsOrCb !== "object")
1550
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1551
- this.send(command, optionsOrCb || {}, cb);
1552
- }
1553
- else {
1554
- return this.send(command, optionsOrCb);
1555
- }
1556
- }
1557
- describeJob(args, optionsOrCb, cb) {
1558
- const command = new DescribeJobCommand(args);
1559
- if (typeof optionsOrCb === "function") {
1560
- this.send(command, optionsOrCb);
1561
- }
1562
- else if (typeof cb === "function") {
1563
- if (typeof optionsOrCb !== "object")
1564
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1565
- this.send(command, optionsOrCb || {}, cb);
1566
- }
1567
- else {
1568
- return this.send(command, optionsOrCb);
1569
- }
1570
- }
1571
- describeJobExecution(args, optionsOrCb, cb) {
1572
- const command = new DescribeJobExecutionCommand(args);
1573
- if (typeof optionsOrCb === "function") {
1574
- this.send(command, optionsOrCb);
1575
- }
1576
- else if (typeof cb === "function") {
1577
- if (typeof optionsOrCb !== "object")
1578
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1579
- this.send(command, optionsOrCb || {}, cb);
1580
- }
1581
- else {
1582
- return this.send(command, optionsOrCb);
1583
- }
1584
- }
1585
- describeJobTemplate(args, optionsOrCb, cb) {
1586
- const command = new DescribeJobTemplateCommand(args);
1587
- if (typeof optionsOrCb === "function") {
1588
- this.send(command, optionsOrCb);
1589
- }
1590
- else if (typeof cb === "function") {
1591
- if (typeof optionsOrCb !== "object")
1592
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1593
- this.send(command, optionsOrCb || {}, cb);
1594
- }
1595
- else {
1596
- return this.send(command, optionsOrCb);
1597
- }
1598
- }
1599
- describeManagedJobTemplate(args, optionsOrCb, cb) {
1600
- const command = new DescribeManagedJobTemplateCommand(args);
1601
- if (typeof optionsOrCb === "function") {
1602
- this.send(command, optionsOrCb);
1603
- }
1604
- else if (typeof cb === "function") {
1605
- if (typeof optionsOrCb !== "object")
1606
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1607
- this.send(command, optionsOrCb || {}, cb);
1608
- }
1609
- else {
1610
- return this.send(command, optionsOrCb);
1611
- }
1612
- }
1613
- describeMitigationAction(args, optionsOrCb, cb) {
1614
- const command = new DescribeMitigationActionCommand(args);
1615
- if (typeof optionsOrCb === "function") {
1616
- this.send(command, optionsOrCb);
1617
- }
1618
- else if (typeof cb === "function") {
1619
- if (typeof optionsOrCb !== "object")
1620
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1621
- this.send(command, optionsOrCb || {}, cb);
1622
- }
1623
- else {
1624
- return this.send(command, optionsOrCb);
1625
- }
1626
- }
1627
- describeProvisioningTemplate(args, optionsOrCb, cb) {
1628
- const command = new DescribeProvisioningTemplateCommand(args);
1629
- if (typeof optionsOrCb === "function") {
1630
- this.send(command, optionsOrCb);
1631
- }
1632
- else if (typeof cb === "function") {
1633
- if (typeof optionsOrCb !== "object")
1634
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1635
- this.send(command, optionsOrCb || {}, cb);
1636
- }
1637
- else {
1638
- return this.send(command, optionsOrCb);
1639
- }
1640
- }
1641
- describeProvisioningTemplateVersion(args, optionsOrCb, cb) {
1642
- const command = new DescribeProvisioningTemplateVersionCommand(args);
1643
- if (typeof optionsOrCb === "function") {
1644
- this.send(command, optionsOrCb);
1645
- }
1646
- else if (typeof cb === "function") {
1647
- if (typeof optionsOrCb !== "object")
1648
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1649
- this.send(command, optionsOrCb || {}, cb);
1650
- }
1651
- else {
1652
- return this.send(command, optionsOrCb);
1653
- }
1654
- }
1655
- describeRoleAlias(args, optionsOrCb, cb) {
1656
- const command = new DescribeRoleAliasCommand(args);
1657
- if (typeof optionsOrCb === "function") {
1658
- this.send(command, optionsOrCb);
1659
- }
1660
- else if (typeof cb === "function") {
1661
- if (typeof optionsOrCb !== "object")
1662
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1663
- this.send(command, optionsOrCb || {}, cb);
1664
- }
1665
- else {
1666
- return this.send(command, optionsOrCb);
1667
- }
1668
- }
1669
- describeScheduledAudit(args, optionsOrCb, cb) {
1670
- const command = new DescribeScheduledAuditCommand(args);
1671
- if (typeof optionsOrCb === "function") {
1672
- this.send(command, optionsOrCb);
1673
- }
1674
- else if (typeof cb === "function") {
1675
- if (typeof optionsOrCb !== "object")
1676
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1677
- this.send(command, optionsOrCb || {}, cb);
1678
- }
1679
- else {
1680
- return this.send(command, optionsOrCb);
1681
- }
1682
- }
1683
- describeSecurityProfile(args, optionsOrCb, cb) {
1684
- const command = new DescribeSecurityProfileCommand(args);
1685
- if (typeof optionsOrCb === "function") {
1686
- this.send(command, optionsOrCb);
1687
- }
1688
- else if (typeof cb === "function") {
1689
- if (typeof optionsOrCb !== "object")
1690
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1691
- this.send(command, optionsOrCb || {}, cb);
1692
- }
1693
- else {
1694
- return this.send(command, optionsOrCb);
1695
- }
1696
- }
1697
- describeStream(args, optionsOrCb, cb) {
1698
- const command = new DescribeStreamCommand(args);
1699
- if (typeof optionsOrCb === "function") {
1700
- this.send(command, optionsOrCb);
1701
- }
1702
- else if (typeof cb === "function") {
1703
- if (typeof optionsOrCb !== "object")
1704
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1705
- this.send(command, optionsOrCb || {}, cb);
1706
- }
1707
- else {
1708
- return this.send(command, optionsOrCb);
1709
- }
1710
- }
1711
- describeThing(args, optionsOrCb, cb) {
1712
- const command = new DescribeThingCommand(args);
1713
- if (typeof optionsOrCb === "function") {
1714
- this.send(command, optionsOrCb);
1715
- }
1716
- else if (typeof cb === "function") {
1717
- if (typeof optionsOrCb !== "object")
1718
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1719
- this.send(command, optionsOrCb || {}, cb);
1720
- }
1721
- else {
1722
- return this.send(command, optionsOrCb);
1723
- }
1724
- }
1725
- describeThingGroup(args, optionsOrCb, cb) {
1726
- const command = new DescribeThingGroupCommand(args);
1727
- if (typeof optionsOrCb === "function") {
1728
- this.send(command, optionsOrCb);
1729
- }
1730
- else if (typeof cb === "function") {
1731
- if (typeof optionsOrCb !== "object")
1732
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1733
- this.send(command, optionsOrCb || {}, cb);
1734
- }
1735
- else {
1736
- return this.send(command, optionsOrCb);
1737
- }
1738
- }
1739
- describeThingRegistrationTask(args, optionsOrCb, cb) {
1740
- const command = new DescribeThingRegistrationTaskCommand(args);
1741
- if (typeof optionsOrCb === "function") {
1742
- this.send(command, optionsOrCb);
1743
- }
1744
- else if (typeof cb === "function") {
1745
- if (typeof optionsOrCb !== "object")
1746
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1747
- this.send(command, optionsOrCb || {}, cb);
1748
- }
1749
- else {
1750
- return this.send(command, optionsOrCb);
1751
- }
1752
- }
1753
- describeThingType(args, optionsOrCb, cb) {
1754
- const command = new DescribeThingTypeCommand(args);
1755
- if (typeof optionsOrCb === "function") {
1756
- this.send(command, optionsOrCb);
1757
- }
1758
- else if (typeof cb === "function") {
1759
- if (typeof optionsOrCb !== "object")
1760
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1761
- this.send(command, optionsOrCb || {}, cb);
1762
- }
1763
- else {
1764
- return this.send(command, optionsOrCb);
1765
- }
1766
- }
1767
- detachPolicy(args, optionsOrCb, cb) {
1768
- const command = new DetachPolicyCommand(args);
1769
- if (typeof optionsOrCb === "function") {
1770
- this.send(command, optionsOrCb);
1771
- }
1772
- else if (typeof cb === "function") {
1773
- if (typeof optionsOrCb !== "object")
1774
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1775
- this.send(command, optionsOrCb || {}, cb);
1776
- }
1777
- else {
1778
- return this.send(command, optionsOrCb);
1779
- }
1780
- }
1781
- detachPrincipalPolicy(args, optionsOrCb, cb) {
1782
- const command = new DetachPrincipalPolicyCommand(args);
1783
- if (typeof optionsOrCb === "function") {
1784
- this.send(command, optionsOrCb);
1785
- }
1786
- else if (typeof cb === "function") {
1787
- if (typeof optionsOrCb !== "object")
1788
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1789
- this.send(command, optionsOrCb || {}, cb);
1790
- }
1791
- else {
1792
- return this.send(command, optionsOrCb);
1793
- }
1794
- }
1795
- detachSecurityProfile(args, optionsOrCb, cb) {
1796
- const command = new DetachSecurityProfileCommand(args);
1797
- if (typeof optionsOrCb === "function") {
1798
- this.send(command, optionsOrCb);
1799
- }
1800
- else if (typeof cb === "function") {
1801
- if (typeof optionsOrCb !== "object")
1802
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1803
- this.send(command, optionsOrCb || {}, cb);
1804
- }
1805
- else {
1806
- return this.send(command, optionsOrCb);
1807
- }
1808
- }
1809
- detachThingPrincipal(args, optionsOrCb, cb) {
1810
- const command = new DetachThingPrincipalCommand(args);
1811
- if (typeof optionsOrCb === "function") {
1812
- this.send(command, optionsOrCb);
1813
- }
1814
- else if (typeof cb === "function") {
1815
- if (typeof optionsOrCb !== "object")
1816
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1817
- this.send(command, optionsOrCb || {}, cb);
1818
- }
1819
- else {
1820
- return this.send(command, optionsOrCb);
1821
- }
1822
- }
1823
- disableTopicRule(args, optionsOrCb, cb) {
1824
- const command = new DisableTopicRuleCommand(args);
1825
- if (typeof optionsOrCb === "function") {
1826
- this.send(command, optionsOrCb);
1827
- }
1828
- else if (typeof cb === "function") {
1829
- if (typeof optionsOrCb !== "object")
1830
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1831
- this.send(command, optionsOrCb || {}, cb);
1832
- }
1833
- else {
1834
- return this.send(command, optionsOrCb);
1835
- }
1836
- }
1837
- enableTopicRule(args, optionsOrCb, cb) {
1838
- const command = new EnableTopicRuleCommand(args);
1839
- if (typeof optionsOrCb === "function") {
1840
- this.send(command, optionsOrCb);
1841
- }
1842
- else if (typeof cb === "function") {
1843
- if (typeof optionsOrCb !== "object")
1844
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1845
- this.send(command, optionsOrCb || {}, cb);
1846
- }
1847
- else {
1848
- return this.send(command, optionsOrCb);
1849
- }
1850
- }
1851
- getBehaviorModelTrainingSummaries(args, optionsOrCb, cb) {
1852
- const command = new GetBehaviorModelTrainingSummariesCommand(args);
1853
- if (typeof optionsOrCb === "function") {
1854
- this.send(command, optionsOrCb);
1855
- }
1856
- else if (typeof cb === "function") {
1857
- if (typeof optionsOrCb !== "object")
1858
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1859
- this.send(command, optionsOrCb || {}, cb);
1860
- }
1861
- else {
1862
- return this.send(command, optionsOrCb);
1863
- }
1864
- }
1865
- getBucketsAggregation(args, optionsOrCb, cb) {
1866
- const command = new GetBucketsAggregationCommand(args);
1867
- if (typeof optionsOrCb === "function") {
1868
- this.send(command, optionsOrCb);
1869
- }
1870
- else if (typeof cb === "function") {
1871
- if (typeof optionsOrCb !== "object")
1872
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1873
- this.send(command, optionsOrCb || {}, cb);
1874
- }
1875
- else {
1876
- return this.send(command, optionsOrCb);
1877
- }
1878
- }
1879
- getCardinality(args, optionsOrCb, cb) {
1880
- const command = new GetCardinalityCommand(args);
1881
- if (typeof optionsOrCb === "function") {
1882
- this.send(command, optionsOrCb);
1883
- }
1884
- else if (typeof cb === "function") {
1885
- if (typeof optionsOrCb !== "object")
1886
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1887
- this.send(command, optionsOrCb || {}, cb);
1888
- }
1889
- else {
1890
- return this.send(command, optionsOrCb);
1891
- }
1892
- }
1893
- getEffectivePolicies(args, optionsOrCb, cb) {
1894
- const command = new GetEffectivePoliciesCommand(args);
1895
- if (typeof optionsOrCb === "function") {
1896
- this.send(command, optionsOrCb);
1897
- }
1898
- else if (typeof cb === "function") {
1899
- if (typeof optionsOrCb !== "object")
1900
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1901
- this.send(command, optionsOrCb || {}, cb);
1902
- }
1903
- else {
1904
- return this.send(command, optionsOrCb);
1905
- }
1906
- }
1907
- getIndexingConfiguration(args, optionsOrCb, cb) {
1908
- const command = new GetIndexingConfigurationCommand(args);
1909
- if (typeof optionsOrCb === "function") {
1910
- this.send(command, optionsOrCb);
1911
- }
1912
- else if (typeof cb === "function") {
1913
- if (typeof optionsOrCb !== "object")
1914
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1915
- this.send(command, optionsOrCb || {}, cb);
1916
- }
1917
- else {
1918
- return this.send(command, optionsOrCb);
1919
- }
1920
- }
1921
- getJobDocument(args, optionsOrCb, cb) {
1922
- const command = new GetJobDocumentCommand(args);
1923
- if (typeof optionsOrCb === "function") {
1924
- this.send(command, optionsOrCb);
1925
- }
1926
- else if (typeof cb === "function") {
1927
- if (typeof optionsOrCb !== "object")
1928
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1929
- this.send(command, optionsOrCb || {}, cb);
1930
- }
1931
- else {
1932
- return this.send(command, optionsOrCb);
1933
- }
1934
- }
1935
- getLoggingOptions(args, optionsOrCb, cb) {
1936
- const command = new GetLoggingOptionsCommand(args);
1937
- if (typeof optionsOrCb === "function") {
1938
- this.send(command, optionsOrCb);
1939
- }
1940
- else if (typeof cb === "function") {
1941
- if (typeof optionsOrCb !== "object")
1942
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1943
- this.send(command, optionsOrCb || {}, cb);
1944
- }
1945
- else {
1946
- return this.send(command, optionsOrCb);
1947
- }
1948
- }
1949
- getOTAUpdate(args, optionsOrCb, cb) {
1950
- const command = new GetOTAUpdateCommand(args);
1951
- if (typeof optionsOrCb === "function") {
1952
- this.send(command, optionsOrCb);
1953
- }
1954
- else if (typeof cb === "function") {
1955
- if (typeof optionsOrCb !== "object")
1956
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1957
- this.send(command, optionsOrCb || {}, cb);
1958
- }
1959
- else {
1960
- return this.send(command, optionsOrCb);
1961
- }
1962
- }
1963
- getPercentiles(args, optionsOrCb, cb) {
1964
- const command = new GetPercentilesCommand(args);
1965
- if (typeof optionsOrCb === "function") {
1966
- this.send(command, optionsOrCb);
1967
- }
1968
- else if (typeof cb === "function") {
1969
- if (typeof optionsOrCb !== "object")
1970
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1971
- this.send(command, optionsOrCb || {}, cb);
1972
- }
1973
- else {
1974
- return this.send(command, optionsOrCb);
1975
- }
1976
- }
1977
- getPolicy(args, optionsOrCb, cb) {
1978
- const command = new GetPolicyCommand(args);
1979
- if (typeof optionsOrCb === "function") {
1980
- this.send(command, optionsOrCb);
1981
- }
1982
- else if (typeof cb === "function") {
1983
- if (typeof optionsOrCb !== "object")
1984
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1985
- this.send(command, optionsOrCb || {}, cb);
1986
- }
1987
- else {
1988
- return this.send(command, optionsOrCb);
1989
- }
1990
- }
1991
- getPolicyVersion(args, optionsOrCb, cb) {
1992
- const command = new GetPolicyVersionCommand(args);
1993
- if (typeof optionsOrCb === "function") {
1994
- this.send(command, optionsOrCb);
1995
- }
1996
- else if (typeof cb === "function") {
1997
- if (typeof optionsOrCb !== "object")
1998
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1999
- this.send(command, optionsOrCb || {}, cb);
2000
- }
2001
- else {
2002
- return this.send(command, optionsOrCb);
2003
- }
2004
- }
2005
- getRegistrationCode(args, optionsOrCb, cb) {
2006
- const command = new GetRegistrationCodeCommand(args);
2007
- if (typeof optionsOrCb === "function") {
2008
- this.send(command, optionsOrCb);
2009
- }
2010
- else if (typeof cb === "function") {
2011
- if (typeof optionsOrCb !== "object")
2012
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2013
- this.send(command, optionsOrCb || {}, cb);
2014
- }
2015
- else {
2016
- return this.send(command, optionsOrCb);
2017
- }
2018
- }
2019
- getStatistics(args, optionsOrCb, cb) {
2020
- const command = new GetStatisticsCommand(args);
2021
- if (typeof optionsOrCb === "function") {
2022
- this.send(command, optionsOrCb);
2023
- }
2024
- else if (typeof cb === "function") {
2025
- if (typeof optionsOrCb !== "object")
2026
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2027
- this.send(command, optionsOrCb || {}, cb);
2028
- }
2029
- else {
2030
- return this.send(command, optionsOrCb);
2031
- }
2032
- }
2033
- getTopicRule(args, optionsOrCb, cb) {
2034
- const command = new GetTopicRuleCommand(args);
2035
- if (typeof optionsOrCb === "function") {
2036
- this.send(command, optionsOrCb);
2037
- }
2038
- else if (typeof cb === "function") {
2039
- if (typeof optionsOrCb !== "object")
2040
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2041
- this.send(command, optionsOrCb || {}, cb);
2042
- }
2043
- else {
2044
- return this.send(command, optionsOrCb);
2045
- }
2046
- }
2047
- getTopicRuleDestination(args, optionsOrCb, cb) {
2048
- const command = new GetTopicRuleDestinationCommand(args);
2049
- if (typeof optionsOrCb === "function") {
2050
- this.send(command, optionsOrCb);
2051
- }
2052
- else if (typeof cb === "function") {
2053
- if (typeof optionsOrCb !== "object")
2054
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2055
- this.send(command, optionsOrCb || {}, cb);
2056
- }
2057
- else {
2058
- return this.send(command, optionsOrCb);
2059
- }
2060
- }
2061
- getV2LoggingOptions(args, optionsOrCb, cb) {
2062
- const command = new GetV2LoggingOptionsCommand(args);
2063
- if (typeof optionsOrCb === "function") {
2064
- this.send(command, optionsOrCb);
2065
- }
2066
- else if (typeof cb === "function") {
2067
- if (typeof optionsOrCb !== "object")
2068
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2069
- this.send(command, optionsOrCb || {}, cb);
2070
- }
2071
- else {
2072
- return this.send(command, optionsOrCb);
2073
- }
2074
- }
2075
- listActiveViolations(args, optionsOrCb, cb) {
2076
- const command = new ListActiveViolationsCommand(args);
2077
- if (typeof optionsOrCb === "function") {
2078
- this.send(command, optionsOrCb);
2079
- }
2080
- else if (typeof cb === "function") {
2081
- if (typeof optionsOrCb !== "object")
2082
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2083
- this.send(command, optionsOrCb || {}, cb);
2084
- }
2085
- else {
2086
- return this.send(command, optionsOrCb);
2087
- }
2088
- }
2089
- listAttachedPolicies(args, optionsOrCb, cb) {
2090
- const command = new ListAttachedPoliciesCommand(args);
2091
- if (typeof optionsOrCb === "function") {
2092
- this.send(command, optionsOrCb);
2093
- }
2094
- else if (typeof cb === "function") {
2095
- if (typeof optionsOrCb !== "object")
2096
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2097
- this.send(command, optionsOrCb || {}, cb);
2098
- }
2099
- else {
2100
- return this.send(command, optionsOrCb);
2101
- }
2102
- }
2103
- listAuditFindings(args, optionsOrCb, cb) {
2104
- const command = new ListAuditFindingsCommand(args);
2105
- if (typeof optionsOrCb === "function") {
2106
- this.send(command, optionsOrCb);
2107
- }
2108
- else if (typeof cb === "function") {
2109
- if (typeof optionsOrCb !== "object")
2110
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2111
- this.send(command, optionsOrCb || {}, cb);
2112
- }
2113
- else {
2114
- return this.send(command, optionsOrCb);
2115
- }
2116
- }
2117
- listAuditMitigationActionsExecutions(args, optionsOrCb, cb) {
2118
- const command = new ListAuditMitigationActionsExecutionsCommand(args);
2119
- if (typeof optionsOrCb === "function") {
2120
- this.send(command, optionsOrCb);
2121
- }
2122
- else if (typeof cb === "function") {
2123
- if (typeof optionsOrCb !== "object")
2124
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2125
- this.send(command, optionsOrCb || {}, cb);
2126
- }
2127
- else {
2128
- return this.send(command, optionsOrCb);
2129
- }
2130
- }
2131
- listAuditMitigationActionsTasks(args, optionsOrCb, cb) {
2132
- const command = new ListAuditMitigationActionsTasksCommand(args);
2133
- if (typeof optionsOrCb === "function") {
2134
- this.send(command, optionsOrCb);
2135
- }
2136
- else if (typeof cb === "function") {
2137
- if (typeof optionsOrCb !== "object")
2138
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2139
- this.send(command, optionsOrCb || {}, cb);
2140
- }
2141
- else {
2142
- return this.send(command, optionsOrCb);
2143
- }
2144
- }
2145
- listAuditSuppressions(args, optionsOrCb, cb) {
2146
- const command = new ListAuditSuppressionsCommand(args);
2147
- if (typeof optionsOrCb === "function") {
2148
- this.send(command, optionsOrCb);
2149
- }
2150
- else if (typeof cb === "function") {
2151
- if (typeof optionsOrCb !== "object")
2152
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2153
- this.send(command, optionsOrCb || {}, cb);
2154
- }
2155
- else {
2156
- return this.send(command, optionsOrCb);
2157
- }
2158
- }
2159
- listAuditTasks(args, optionsOrCb, cb) {
2160
- const command = new ListAuditTasksCommand(args);
2161
- if (typeof optionsOrCb === "function") {
2162
- this.send(command, optionsOrCb);
2163
- }
2164
- else if (typeof cb === "function") {
2165
- if (typeof optionsOrCb !== "object")
2166
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2167
- this.send(command, optionsOrCb || {}, cb);
2168
- }
2169
- else {
2170
- return this.send(command, optionsOrCb);
2171
- }
2172
- }
2173
- listAuthorizers(args, optionsOrCb, cb) {
2174
- const command = new ListAuthorizersCommand(args);
2175
- if (typeof optionsOrCb === "function") {
2176
- this.send(command, optionsOrCb);
2177
- }
2178
- else if (typeof cb === "function") {
2179
- if (typeof optionsOrCb !== "object")
2180
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2181
- this.send(command, optionsOrCb || {}, cb);
2182
- }
2183
- else {
2184
- return this.send(command, optionsOrCb);
2185
- }
2186
- }
2187
- listBillingGroups(args, optionsOrCb, cb) {
2188
- const command = new ListBillingGroupsCommand(args);
2189
- if (typeof optionsOrCb === "function") {
2190
- this.send(command, optionsOrCb);
2191
- }
2192
- else if (typeof cb === "function") {
2193
- if (typeof optionsOrCb !== "object")
2194
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2195
- this.send(command, optionsOrCb || {}, cb);
2196
- }
2197
- else {
2198
- return this.send(command, optionsOrCb);
2199
- }
2200
- }
2201
- listCACertificates(args, optionsOrCb, cb) {
2202
- const command = new ListCACertificatesCommand(args);
2203
- if (typeof optionsOrCb === "function") {
2204
- this.send(command, optionsOrCb);
2205
- }
2206
- else if (typeof cb === "function") {
2207
- if (typeof optionsOrCb !== "object")
2208
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2209
- this.send(command, optionsOrCb || {}, cb);
2210
- }
2211
- else {
2212
- return this.send(command, optionsOrCb);
2213
- }
2214
- }
2215
- listCertificates(args, optionsOrCb, cb) {
2216
- const command = new ListCertificatesCommand(args);
2217
- if (typeof optionsOrCb === "function") {
2218
- this.send(command, optionsOrCb);
2219
- }
2220
- else if (typeof cb === "function") {
2221
- if (typeof optionsOrCb !== "object")
2222
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2223
- this.send(command, optionsOrCb || {}, cb);
2224
- }
2225
- else {
2226
- return this.send(command, optionsOrCb);
2227
- }
2228
- }
2229
- listCertificatesByCA(args, optionsOrCb, cb) {
2230
- const command = new ListCertificatesByCACommand(args);
2231
- if (typeof optionsOrCb === "function") {
2232
- this.send(command, optionsOrCb);
2233
- }
2234
- else if (typeof cb === "function") {
2235
- if (typeof optionsOrCb !== "object")
2236
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2237
- this.send(command, optionsOrCb || {}, cb);
2238
- }
2239
- else {
2240
- return this.send(command, optionsOrCb);
2241
- }
2242
- }
2243
- listCustomMetrics(args, optionsOrCb, cb) {
2244
- const command = new ListCustomMetricsCommand(args);
2245
- if (typeof optionsOrCb === "function") {
2246
- this.send(command, optionsOrCb);
2247
- }
2248
- else if (typeof cb === "function") {
2249
- if (typeof optionsOrCb !== "object")
2250
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2251
- this.send(command, optionsOrCb || {}, cb);
2252
- }
2253
- else {
2254
- return this.send(command, optionsOrCb);
2255
- }
2256
- }
2257
- listDetectMitigationActionsExecutions(args, optionsOrCb, cb) {
2258
- const command = new ListDetectMitigationActionsExecutionsCommand(args);
2259
- if (typeof optionsOrCb === "function") {
2260
- this.send(command, optionsOrCb);
2261
- }
2262
- else if (typeof cb === "function") {
2263
- if (typeof optionsOrCb !== "object")
2264
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2265
- this.send(command, optionsOrCb || {}, cb);
2266
- }
2267
- else {
2268
- return this.send(command, optionsOrCb);
2269
- }
2270
- }
2271
- listDetectMitigationActionsTasks(args, optionsOrCb, cb) {
2272
- const command = new ListDetectMitigationActionsTasksCommand(args);
2273
- if (typeof optionsOrCb === "function") {
2274
- this.send(command, optionsOrCb);
2275
- }
2276
- else if (typeof cb === "function") {
2277
- if (typeof optionsOrCb !== "object")
2278
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2279
- this.send(command, optionsOrCb || {}, cb);
2280
- }
2281
- else {
2282
- return this.send(command, optionsOrCb);
2283
- }
2284
- }
2285
- listDimensions(args, optionsOrCb, cb) {
2286
- const command = new ListDimensionsCommand(args);
2287
- if (typeof optionsOrCb === "function") {
2288
- this.send(command, optionsOrCb);
2289
- }
2290
- else if (typeof cb === "function") {
2291
- if (typeof optionsOrCb !== "object")
2292
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2293
- this.send(command, optionsOrCb || {}, cb);
2294
- }
2295
- else {
2296
- return this.send(command, optionsOrCb);
2297
- }
2298
- }
2299
- listDomainConfigurations(args, optionsOrCb, cb) {
2300
- const command = new ListDomainConfigurationsCommand(args);
2301
- if (typeof optionsOrCb === "function") {
2302
- this.send(command, optionsOrCb);
2303
- }
2304
- else if (typeof cb === "function") {
2305
- if (typeof optionsOrCb !== "object")
2306
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2307
- this.send(command, optionsOrCb || {}, cb);
2308
- }
2309
- else {
2310
- return this.send(command, optionsOrCb);
2311
- }
2312
- }
2313
- listFleetMetrics(args, optionsOrCb, cb) {
2314
- const command = new ListFleetMetricsCommand(args);
2315
- if (typeof optionsOrCb === "function") {
2316
- this.send(command, optionsOrCb);
2317
- }
2318
- else if (typeof cb === "function") {
2319
- if (typeof optionsOrCb !== "object")
2320
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2321
- this.send(command, optionsOrCb || {}, cb);
2322
- }
2323
- else {
2324
- return this.send(command, optionsOrCb);
2325
- }
2326
- }
2327
- listIndices(args, optionsOrCb, cb) {
2328
- const command = new ListIndicesCommand(args);
2329
- if (typeof optionsOrCb === "function") {
2330
- this.send(command, optionsOrCb);
2331
- }
2332
- else if (typeof cb === "function") {
2333
- if (typeof optionsOrCb !== "object")
2334
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2335
- this.send(command, optionsOrCb || {}, cb);
2336
- }
2337
- else {
2338
- return this.send(command, optionsOrCb);
2339
- }
2340
- }
2341
- listJobExecutionsForJob(args, optionsOrCb, cb) {
2342
- const command = new ListJobExecutionsForJobCommand(args);
2343
- if (typeof optionsOrCb === "function") {
2344
- this.send(command, optionsOrCb);
2345
- }
2346
- else if (typeof cb === "function") {
2347
- if (typeof optionsOrCb !== "object")
2348
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2349
- this.send(command, optionsOrCb || {}, cb);
2350
- }
2351
- else {
2352
- return this.send(command, optionsOrCb);
2353
- }
2354
- }
2355
- listJobExecutionsForThing(args, optionsOrCb, cb) {
2356
- const command = new ListJobExecutionsForThingCommand(args);
2357
- if (typeof optionsOrCb === "function") {
2358
- this.send(command, optionsOrCb);
2359
- }
2360
- else if (typeof cb === "function") {
2361
- if (typeof optionsOrCb !== "object")
2362
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2363
- this.send(command, optionsOrCb || {}, cb);
2364
- }
2365
- else {
2366
- return this.send(command, optionsOrCb);
2367
- }
2368
- }
2369
- listJobs(args, optionsOrCb, cb) {
2370
- const command = new ListJobsCommand(args);
2371
- if (typeof optionsOrCb === "function") {
2372
- this.send(command, optionsOrCb);
2373
- }
2374
- else if (typeof cb === "function") {
2375
- if (typeof optionsOrCb !== "object")
2376
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2377
- this.send(command, optionsOrCb || {}, cb);
2378
- }
2379
- else {
2380
- return this.send(command, optionsOrCb);
2381
- }
2382
- }
2383
- listJobTemplates(args, optionsOrCb, cb) {
2384
- const command = new ListJobTemplatesCommand(args);
2385
- if (typeof optionsOrCb === "function") {
2386
- this.send(command, optionsOrCb);
2387
- }
2388
- else if (typeof cb === "function") {
2389
- if (typeof optionsOrCb !== "object")
2390
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2391
- this.send(command, optionsOrCb || {}, cb);
2392
- }
2393
- else {
2394
- return this.send(command, optionsOrCb);
2395
- }
2396
- }
2397
- listManagedJobTemplates(args, optionsOrCb, cb) {
2398
- const command = new ListManagedJobTemplatesCommand(args);
2399
- if (typeof optionsOrCb === "function") {
2400
- this.send(command, optionsOrCb);
2401
- }
2402
- else if (typeof cb === "function") {
2403
- if (typeof optionsOrCb !== "object")
2404
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2405
- this.send(command, optionsOrCb || {}, cb);
2406
- }
2407
- else {
2408
- return this.send(command, optionsOrCb);
2409
- }
2410
- }
2411
- listMetricValues(args, optionsOrCb, cb) {
2412
- const command = new ListMetricValuesCommand(args);
2413
- if (typeof optionsOrCb === "function") {
2414
- this.send(command, optionsOrCb);
2415
- }
2416
- else if (typeof cb === "function") {
2417
- if (typeof optionsOrCb !== "object")
2418
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2419
- this.send(command, optionsOrCb || {}, cb);
2420
- }
2421
- else {
2422
- return this.send(command, optionsOrCb);
2423
- }
2424
- }
2425
- listMitigationActions(args, optionsOrCb, cb) {
2426
- const command = new ListMitigationActionsCommand(args);
2427
- if (typeof optionsOrCb === "function") {
2428
- this.send(command, optionsOrCb);
2429
- }
2430
- else if (typeof cb === "function") {
2431
- if (typeof optionsOrCb !== "object")
2432
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2433
- this.send(command, optionsOrCb || {}, cb);
2434
- }
2435
- else {
2436
- return this.send(command, optionsOrCb);
2437
- }
2438
- }
2439
- listOTAUpdates(args, optionsOrCb, cb) {
2440
- const command = new ListOTAUpdatesCommand(args);
2441
- if (typeof optionsOrCb === "function") {
2442
- this.send(command, optionsOrCb);
2443
- }
2444
- else if (typeof cb === "function") {
2445
- if (typeof optionsOrCb !== "object")
2446
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2447
- this.send(command, optionsOrCb || {}, cb);
2448
- }
2449
- else {
2450
- return this.send(command, optionsOrCb);
2451
- }
2452
- }
2453
- listOutgoingCertificates(args, optionsOrCb, cb) {
2454
- const command = new ListOutgoingCertificatesCommand(args);
2455
- if (typeof optionsOrCb === "function") {
2456
- this.send(command, optionsOrCb);
2457
- }
2458
- else if (typeof cb === "function") {
2459
- if (typeof optionsOrCb !== "object")
2460
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2461
- this.send(command, optionsOrCb || {}, cb);
2462
- }
2463
- else {
2464
- return this.send(command, optionsOrCb);
2465
- }
2466
- }
2467
- listPolicies(args, optionsOrCb, cb) {
2468
- const command = new ListPoliciesCommand(args);
2469
- if (typeof optionsOrCb === "function") {
2470
- this.send(command, optionsOrCb);
2471
- }
2472
- else if (typeof cb === "function") {
2473
- if (typeof optionsOrCb !== "object")
2474
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2475
- this.send(command, optionsOrCb || {}, cb);
2476
- }
2477
- else {
2478
- return this.send(command, optionsOrCb);
2479
- }
2480
- }
2481
- listPolicyPrincipals(args, optionsOrCb, cb) {
2482
- const command = new ListPolicyPrincipalsCommand(args);
2483
- if (typeof optionsOrCb === "function") {
2484
- this.send(command, optionsOrCb);
2485
- }
2486
- else if (typeof cb === "function") {
2487
- if (typeof optionsOrCb !== "object")
2488
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2489
- this.send(command, optionsOrCb || {}, cb);
2490
- }
2491
- else {
2492
- return this.send(command, optionsOrCb);
2493
- }
2494
- }
2495
- listPolicyVersions(args, optionsOrCb, cb) {
2496
- const command = new ListPolicyVersionsCommand(args);
2497
- if (typeof optionsOrCb === "function") {
2498
- this.send(command, optionsOrCb);
2499
- }
2500
- else if (typeof cb === "function") {
2501
- if (typeof optionsOrCb !== "object")
2502
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2503
- this.send(command, optionsOrCb || {}, cb);
2504
- }
2505
- else {
2506
- return this.send(command, optionsOrCb);
2507
- }
2508
- }
2509
- listPrincipalPolicies(args, optionsOrCb, cb) {
2510
- const command = new ListPrincipalPoliciesCommand(args);
2511
- if (typeof optionsOrCb === "function") {
2512
- this.send(command, optionsOrCb);
2513
- }
2514
- else if (typeof cb === "function") {
2515
- if (typeof optionsOrCb !== "object")
2516
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2517
- this.send(command, optionsOrCb || {}, cb);
2518
- }
2519
- else {
2520
- return this.send(command, optionsOrCb);
2521
- }
2522
- }
2523
- listPrincipalThings(args, optionsOrCb, cb) {
2524
- const command = new ListPrincipalThingsCommand(args);
2525
- if (typeof optionsOrCb === "function") {
2526
- this.send(command, optionsOrCb);
2527
- }
2528
- else if (typeof cb === "function") {
2529
- if (typeof optionsOrCb !== "object")
2530
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2531
- this.send(command, optionsOrCb || {}, cb);
2532
- }
2533
- else {
2534
- return this.send(command, optionsOrCb);
2535
- }
2536
- }
2537
- listProvisioningTemplates(args, optionsOrCb, cb) {
2538
- const command = new ListProvisioningTemplatesCommand(args);
2539
- if (typeof optionsOrCb === "function") {
2540
- this.send(command, optionsOrCb);
2541
- }
2542
- else if (typeof cb === "function") {
2543
- if (typeof optionsOrCb !== "object")
2544
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2545
- this.send(command, optionsOrCb || {}, cb);
2546
- }
2547
- else {
2548
- return this.send(command, optionsOrCb);
2549
- }
2550
- }
2551
- listProvisioningTemplateVersions(args, optionsOrCb, cb) {
2552
- const command = new ListProvisioningTemplateVersionsCommand(args);
2553
- if (typeof optionsOrCb === "function") {
2554
- this.send(command, optionsOrCb);
2555
- }
2556
- else if (typeof cb === "function") {
2557
- if (typeof optionsOrCb !== "object")
2558
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2559
- this.send(command, optionsOrCb || {}, cb);
2560
- }
2561
- else {
2562
- return this.send(command, optionsOrCb);
2563
- }
2564
- }
2565
- listRelatedResourcesForAuditFinding(args, optionsOrCb, cb) {
2566
- const command = new ListRelatedResourcesForAuditFindingCommand(args);
2567
- if (typeof optionsOrCb === "function") {
2568
- this.send(command, optionsOrCb);
2569
- }
2570
- else if (typeof cb === "function") {
2571
- if (typeof optionsOrCb !== "object")
2572
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2573
- this.send(command, optionsOrCb || {}, cb);
2574
- }
2575
- else {
2576
- return this.send(command, optionsOrCb);
2577
- }
2578
- }
2579
- listRoleAliases(args, optionsOrCb, cb) {
2580
- const command = new ListRoleAliasesCommand(args);
2581
- if (typeof optionsOrCb === "function") {
2582
- this.send(command, optionsOrCb);
2583
- }
2584
- else if (typeof cb === "function") {
2585
- if (typeof optionsOrCb !== "object")
2586
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2587
- this.send(command, optionsOrCb || {}, cb);
2588
- }
2589
- else {
2590
- return this.send(command, optionsOrCb);
2591
- }
2592
- }
2593
- listScheduledAudits(args, optionsOrCb, cb) {
2594
- const command = new ListScheduledAuditsCommand(args);
2595
- if (typeof optionsOrCb === "function") {
2596
- this.send(command, optionsOrCb);
2597
- }
2598
- else if (typeof cb === "function") {
2599
- if (typeof optionsOrCb !== "object")
2600
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2601
- this.send(command, optionsOrCb || {}, cb);
2602
- }
2603
- else {
2604
- return this.send(command, optionsOrCb);
2605
- }
2606
- }
2607
- listSecurityProfiles(args, optionsOrCb, cb) {
2608
- const command = new ListSecurityProfilesCommand(args);
2609
- if (typeof optionsOrCb === "function") {
2610
- this.send(command, optionsOrCb);
2611
- }
2612
- else if (typeof cb === "function") {
2613
- if (typeof optionsOrCb !== "object")
2614
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2615
- this.send(command, optionsOrCb || {}, cb);
2616
- }
2617
- else {
2618
- return this.send(command, optionsOrCb);
2619
- }
2620
- }
2621
- listSecurityProfilesForTarget(args, optionsOrCb, cb) {
2622
- const command = new ListSecurityProfilesForTargetCommand(args);
2623
- if (typeof optionsOrCb === "function") {
2624
- this.send(command, optionsOrCb);
2625
- }
2626
- else if (typeof cb === "function") {
2627
- if (typeof optionsOrCb !== "object")
2628
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2629
- this.send(command, optionsOrCb || {}, cb);
2630
- }
2631
- else {
2632
- return this.send(command, optionsOrCb);
2633
- }
2634
- }
2635
- listStreams(args, optionsOrCb, cb) {
2636
- const command = new ListStreamsCommand(args);
2637
- if (typeof optionsOrCb === "function") {
2638
- this.send(command, optionsOrCb);
2639
- }
2640
- else if (typeof cb === "function") {
2641
- if (typeof optionsOrCb !== "object")
2642
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2643
- this.send(command, optionsOrCb || {}, cb);
2644
- }
2645
- else {
2646
- return this.send(command, optionsOrCb);
2647
- }
2648
- }
2649
- listTagsForResource(args, optionsOrCb, cb) {
2650
- const command = new ListTagsForResourceCommand(args);
2651
- if (typeof optionsOrCb === "function") {
2652
- this.send(command, optionsOrCb);
2653
- }
2654
- else if (typeof cb === "function") {
2655
- if (typeof optionsOrCb !== "object")
2656
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2657
- this.send(command, optionsOrCb || {}, cb);
2658
- }
2659
- else {
2660
- return this.send(command, optionsOrCb);
2661
- }
2662
- }
2663
- listTargetsForPolicy(args, optionsOrCb, cb) {
2664
- const command = new ListTargetsForPolicyCommand(args);
2665
- if (typeof optionsOrCb === "function") {
2666
- this.send(command, optionsOrCb);
2667
- }
2668
- else if (typeof cb === "function") {
2669
- if (typeof optionsOrCb !== "object")
2670
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2671
- this.send(command, optionsOrCb || {}, cb);
2672
- }
2673
- else {
2674
- return this.send(command, optionsOrCb);
2675
- }
2676
- }
2677
- listTargetsForSecurityProfile(args, optionsOrCb, cb) {
2678
- const command = new ListTargetsForSecurityProfileCommand(args);
2679
- if (typeof optionsOrCb === "function") {
2680
- this.send(command, optionsOrCb);
2681
- }
2682
- else if (typeof cb === "function") {
2683
- if (typeof optionsOrCb !== "object")
2684
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2685
- this.send(command, optionsOrCb || {}, cb);
2686
- }
2687
- else {
2688
- return this.send(command, optionsOrCb);
2689
- }
2690
- }
2691
- listThingGroups(args, optionsOrCb, cb) {
2692
- const command = new ListThingGroupsCommand(args);
2693
- if (typeof optionsOrCb === "function") {
2694
- this.send(command, optionsOrCb);
2695
- }
2696
- else if (typeof cb === "function") {
2697
- if (typeof optionsOrCb !== "object")
2698
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2699
- this.send(command, optionsOrCb || {}, cb);
2700
- }
2701
- else {
2702
- return this.send(command, optionsOrCb);
2703
- }
2704
- }
2705
- listThingGroupsForThing(args, optionsOrCb, cb) {
2706
- const command = new ListThingGroupsForThingCommand(args);
2707
- if (typeof optionsOrCb === "function") {
2708
- this.send(command, optionsOrCb);
2709
- }
2710
- else if (typeof cb === "function") {
2711
- if (typeof optionsOrCb !== "object")
2712
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2713
- this.send(command, optionsOrCb || {}, cb);
2714
- }
2715
- else {
2716
- return this.send(command, optionsOrCb);
2717
- }
2718
- }
2719
- listThingPrincipals(args, optionsOrCb, cb) {
2720
- const command = new ListThingPrincipalsCommand(args);
2721
- if (typeof optionsOrCb === "function") {
2722
- this.send(command, optionsOrCb);
2723
- }
2724
- else if (typeof cb === "function") {
2725
- if (typeof optionsOrCb !== "object")
2726
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2727
- this.send(command, optionsOrCb || {}, cb);
2728
- }
2729
- else {
2730
- return this.send(command, optionsOrCb);
2731
- }
2732
- }
2733
- listThingRegistrationTaskReports(args, optionsOrCb, cb) {
2734
- const command = new ListThingRegistrationTaskReportsCommand(args);
2735
- if (typeof optionsOrCb === "function") {
2736
- this.send(command, optionsOrCb);
2737
- }
2738
- else if (typeof cb === "function") {
2739
- if (typeof optionsOrCb !== "object")
2740
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2741
- this.send(command, optionsOrCb || {}, cb);
2742
- }
2743
- else {
2744
- return this.send(command, optionsOrCb);
2745
- }
2746
- }
2747
- listThingRegistrationTasks(args, optionsOrCb, cb) {
2748
- const command = new ListThingRegistrationTasksCommand(args);
2749
- if (typeof optionsOrCb === "function") {
2750
- this.send(command, optionsOrCb);
2751
- }
2752
- else if (typeof cb === "function") {
2753
- if (typeof optionsOrCb !== "object")
2754
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2755
- this.send(command, optionsOrCb || {}, cb);
2756
- }
2757
- else {
2758
- return this.send(command, optionsOrCb);
2759
- }
2760
- }
2761
- listThings(args, optionsOrCb, cb) {
2762
- const command = new ListThingsCommand(args);
2763
- if (typeof optionsOrCb === "function") {
2764
- this.send(command, optionsOrCb);
2765
- }
2766
- else if (typeof cb === "function") {
2767
- if (typeof optionsOrCb !== "object")
2768
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2769
- this.send(command, optionsOrCb || {}, cb);
2770
- }
2771
- else {
2772
- return this.send(command, optionsOrCb);
2773
- }
2774
- }
2775
- listThingsInBillingGroup(args, optionsOrCb, cb) {
2776
- const command = new ListThingsInBillingGroupCommand(args);
2777
- if (typeof optionsOrCb === "function") {
2778
- this.send(command, optionsOrCb);
2779
- }
2780
- else if (typeof cb === "function") {
2781
- if (typeof optionsOrCb !== "object")
2782
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2783
- this.send(command, optionsOrCb || {}, cb);
2784
- }
2785
- else {
2786
- return this.send(command, optionsOrCb);
2787
- }
2788
- }
2789
- listThingsInThingGroup(args, optionsOrCb, cb) {
2790
- const command = new ListThingsInThingGroupCommand(args);
2791
- if (typeof optionsOrCb === "function") {
2792
- this.send(command, optionsOrCb);
2793
- }
2794
- else if (typeof cb === "function") {
2795
- if (typeof optionsOrCb !== "object")
2796
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2797
- this.send(command, optionsOrCb || {}, cb);
2798
- }
2799
- else {
2800
- return this.send(command, optionsOrCb);
2801
- }
2802
- }
2803
- listThingTypes(args, optionsOrCb, cb) {
2804
- const command = new ListThingTypesCommand(args);
2805
- if (typeof optionsOrCb === "function") {
2806
- this.send(command, optionsOrCb);
2807
- }
2808
- else if (typeof cb === "function") {
2809
- if (typeof optionsOrCb !== "object")
2810
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2811
- this.send(command, optionsOrCb || {}, cb);
2812
- }
2813
- else {
2814
- return this.send(command, optionsOrCb);
2815
- }
2816
- }
2817
- listTopicRuleDestinations(args, optionsOrCb, cb) {
2818
- const command = new ListTopicRuleDestinationsCommand(args);
2819
- if (typeof optionsOrCb === "function") {
2820
- this.send(command, optionsOrCb);
2821
- }
2822
- else if (typeof cb === "function") {
2823
- if (typeof optionsOrCb !== "object")
2824
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2825
- this.send(command, optionsOrCb || {}, cb);
2826
- }
2827
- else {
2828
- return this.send(command, optionsOrCb);
2829
- }
2830
- }
2831
- listTopicRules(args, optionsOrCb, cb) {
2832
- const command = new ListTopicRulesCommand(args);
2833
- if (typeof optionsOrCb === "function") {
2834
- this.send(command, optionsOrCb);
2835
- }
2836
- else if (typeof cb === "function") {
2837
- if (typeof optionsOrCb !== "object")
2838
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2839
- this.send(command, optionsOrCb || {}, cb);
2840
- }
2841
- else {
2842
- return this.send(command, optionsOrCb);
2843
- }
2844
- }
2845
- listV2LoggingLevels(args, optionsOrCb, cb) {
2846
- const command = new ListV2LoggingLevelsCommand(args);
2847
- if (typeof optionsOrCb === "function") {
2848
- this.send(command, optionsOrCb);
2849
- }
2850
- else if (typeof cb === "function") {
2851
- if (typeof optionsOrCb !== "object")
2852
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2853
- this.send(command, optionsOrCb || {}, cb);
2854
- }
2855
- else {
2856
- return this.send(command, optionsOrCb);
2857
- }
2858
- }
2859
- listViolationEvents(args, optionsOrCb, cb) {
2860
- const command = new ListViolationEventsCommand(args);
2861
- if (typeof optionsOrCb === "function") {
2862
- this.send(command, optionsOrCb);
2863
- }
2864
- else if (typeof cb === "function") {
2865
- if (typeof optionsOrCb !== "object")
2866
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2867
- this.send(command, optionsOrCb || {}, cb);
2868
- }
2869
- else {
2870
- return this.send(command, optionsOrCb);
2871
- }
2872
- }
2873
- putVerificationStateOnViolation(args, optionsOrCb, cb) {
2874
- const command = new PutVerificationStateOnViolationCommand(args);
2875
- if (typeof optionsOrCb === "function") {
2876
- this.send(command, optionsOrCb);
2877
- }
2878
- else if (typeof cb === "function") {
2879
- if (typeof optionsOrCb !== "object")
2880
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2881
- this.send(command, optionsOrCb || {}, cb);
2882
- }
2883
- else {
2884
- return this.send(command, optionsOrCb);
2885
- }
2886
- }
2887
- registerCACertificate(args, optionsOrCb, cb) {
2888
- const command = new RegisterCACertificateCommand(args);
2889
- if (typeof optionsOrCb === "function") {
2890
- this.send(command, optionsOrCb);
2891
- }
2892
- else if (typeof cb === "function") {
2893
- if (typeof optionsOrCb !== "object")
2894
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2895
- this.send(command, optionsOrCb || {}, cb);
2896
- }
2897
- else {
2898
- return this.send(command, optionsOrCb);
2899
- }
2900
- }
2901
- registerCertificate(args, optionsOrCb, cb) {
2902
- const command = new RegisterCertificateCommand(args);
2903
- if (typeof optionsOrCb === "function") {
2904
- this.send(command, optionsOrCb);
2905
- }
2906
- else if (typeof cb === "function") {
2907
- if (typeof optionsOrCb !== "object")
2908
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2909
- this.send(command, optionsOrCb || {}, cb);
2910
- }
2911
- else {
2912
- return this.send(command, optionsOrCb);
2913
- }
2914
- }
2915
- registerCertificateWithoutCA(args, optionsOrCb, cb) {
2916
- const command = new RegisterCertificateWithoutCACommand(args);
2917
- if (typeof optionsOrCb === "function") {
2918
- this.send(command, optionsOrCb);
2919
- }
2920
- else if (typeof cb === "function") {
2921
- if (typeof optionsOrCb !== "object")
2922
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2923
- this.send(command, optionsOrCb || {}, cb);
2924
- }
2925
- else {
2926
- return this.send(command, optionsOrCb);
2927
- }
2928
- }
2929
- registerThing(args, optionsOrCb, cb) {
2930
- const command = new RegisterThingCommand(args);
2931
- if (typeof optionsOrCb === "function") {
2932
- this.send(command, optionsOrCb);
2933
- }
2934
- else if (typeof cb === "function") {
2935
- if (typeof optionsOrCb !== "object")
2936
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2937
- this.send(command, optionsOrCb || {}, cb);
2938
- }
2939
- else {
2940
- return this.send(command, optionsOrCb);
2941
- }
2942
- }
2943
- rejectCertificateTransfer(args, optionsOrCb, cb) {
2944
- const command = new RejectCertificateTransferCommand(args);
2945
- if (typeof optionsOrCb === "function") {
2946
- this.send(command, optionsOrCb);
2947
- }
2948
- else if (typeof cb === "function") {
2949
- if (typeof optionsOrCb !== "object")
2950
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2951
- this.send(command, optionsOrCb || {}, cb);
2952
- }
2953
- else {
2954
- return this.send(command, optionsOrCb);
2955
- }
2956
- }
2957
- removeThingFromBillingGroup(args, optionsOrCb, cb) {
2958
- const command = new RemoveThingFromBillingGroupCommand(args);
2959
- if (typeof optionsOrCb === "function") {
2960
- this.send(command, optionsOrCb);
2961
- }
2962
- else if (typeof cb === "function") {
2963
- if (typeof optionsOrCb !== "object")
2964
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2965
- this.send(command, optionsOrCb || {}, cb);
2966
- }
2967
- else {
2968
- return this.send(command, optionsOrCb);
2969
- }
2970
- }
2971
- removeThingFromThingGroup(args, optionsOrCb, cb) {
2972
- const command = new RemoveThingFromThingGroupCommand(args);
2973
- if (typeof optionsOrCb === "function") {
2974
- this.send(command, optionsOrCb);
2975
- }
2976
- else if (typeof cb === "function") {
2977
- if (typeof optionsOrCb !== "object")
2978
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2979
- this.send(command, optionsOrCb || {}, cb);
2980
- }
2981
- else {
2982
- return this.send(command, optionsOrCb);
2983
- }
2984
- }
2985
- replaceTopicRule(args, optionsOrCb, cb) {
2986
- const command = new ReplaceTopicRuleCommand(args);
2987
- if (typeof optionsOrCb === "function") {
2988
- this.send(command, optionsOrCb);
2989
- }
2990
- else if (typeof cb === "function") {
2991
- if (typeof optionsOrCb !== "object")
2992
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2993
- this.send(command, optionsOrCb || {}, cb);
2994
- }
2995
- else {
2996
- return this.send(command, optionsOrCb);
2997
- }
2998
- }
2999
- searchIndex(args, optionsOrCb, cb) {
3000
- const command = new SearchIndexCommand(args);
3001
- if (typeof optionsOrCb === "function") {
3002
- this.send(command, optionsOrCb);
3003
- }
3004
- else if (typeof cb === "function") {
3005
- if (typeof optionsOrCb !== "object")
3006
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3007
- this.send(command, optionsOrCb || {}, cb);
3008
- }
3009
- else {
3010
- return this.send(command, optionsOrCb);
3011
- }
3012
- }
3013
- setDefaultAuthorizer(args, optionsOrCb, cb) {
3014
- const command = new SetDefaultAuthorizerCommand(args);
3015
- if (typeof optionsOrCb === "function") {
3016
- this.send(command, optionsOrCb);
3017
- }
3018
- else if (typeof cb === "function") {
3019
- if (typeof optionsOrCb !== "object")
3020
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3021
- this.send(command, optionsOrCb || {}, cb);
3022
- }
3023
- else {
3024
- return this.send(command, optionsOrCb);
3025
- }
3026
- }
3027
- setDefaultPolicyVersion(args, optionsOrCb, cb) {
3028
- const command = new SetDefaultPolicyVersionCommand(args);
3029
- if (typeof optionsOrCb === "function") {
3030
- this.send(command, optionsOrCb);
3031
- }
3032
- else if (typeof cb === "function") {
3033
- if (typeof optionsOrCb !== "object")
3034
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3035
- this.send(command, optionsOrCb || {}, cb);
3036
- }
3037
- else {
3038
- return this.send(command, optionsOrCb);
3039
- }
3040
- }
3041
- setLoggingOptions(args, optionsOrCb, cb) {
3042
- const command = new SetLoggingOptionsCommand(args);
3043
- if (typeof optionsOrCb === "function") {
3044
- this.send(command, optionsOrCb);
3045
- }
3046
- else if (typeof cb === "function") {
3047
- if (typeof optionsOrCb !== "object")
3048
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3049
- this.send(command, optionsOrCb || {}, cb);
3050
- }
3051
- else {
3052
- return this.send(command, optionsOrCb);
3053
- }
3054
- }
3055
- setV2LoggingLevel(args, optionsOrCb, cb) {
3056
- const command = new SetV2LoggingLevelCommand(args);
3057
- if (typeof optionsOrCb === "function") {
3058
- this.send(command, optionsOrCb);
3059
- }
3060
- else if (typeof cb === "function") {
3061
- if (typeof optionsOrCb !== "object")
3062
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3063
- this.send(command, optionsOrCb || {}, cb);
3064
- }
3065
- else {
3066
- return this.send(command, optionsOrCb);
3067
- }
3068
- }
3069
- setV2LoggingOptions(args, optionsOrCb, cb) {
3070
- const command = new SetV2LoggingOptionsCommand(args);
3071
- if (typeof optionsOrCb === "function") {
3072
- this.send(command, optionsOrCb);
3073
- }
3074
- else if (typeof cb === "function") {
3075
- if (typeof optionsOrCb !== "object")
3076
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3077
- this.send(command, optionsOrCb || {}, cb);
3078
- }
3079
- else {
3080
- return this.send(command, optionsOrCb);
3081
- }
3082
- }
3083
- startAuditMitigationActionsTask(args, optionsOrCb, cb) {
3084
- const command = new StartAuditMitigationActionsTaskCommand(args);
3085
- if (typeof optionsOrCb === "function") {
3086
- this.send(command, optionsOrCb);
3087
- }
3088
- else if (typeof cb === "function") {
3089
- if (typeof optionsOrCb !== "object")
3090
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3091
- this.send(command, optionsOrCb || {}, cb);
3092
- }
3093
- else {
3094
- return this.send(command, optionsOrCb);
3095
- }
3096
- }
3097
- startDetectMitigationActionsTask(args, optionsOrCb, cb) {
3098
- const command = new StartDetectMitigationActionsTaskCommand(args);
3099
- if (typeof optionsOrCb === "function") {
3100
- this.send(command, optionsOrCb);
3101
- }
3102
- else if (typeof cb === "function") {
3103
- if (typeof optionsOrCb !== "object")
3104
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3105
- this.send(command, optionsOrCb || {}, cb);
3106
- }
3107
- else {
3108
- return this.send(command, optionsOrCb);
3109
- }
3110
- }
3111
- startOnDemandAuditTask(args, optionsOrCb, cb) {
3112
- const command = new StartOnDemandAuditTaskCommand(args);
3113
- if (typeof optionsOrCb === "function") {
3114
- this.send(command, optionsOrCb);
3115
- }
3116
- else if (typeof cb === "function") {
3117
- if (typeof optionsOrCb !== "object")
3118
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3119
- this.send(command, optionsOrCb || {}, cb);
3120
- }
3121
- else {
3122
- return this.send(command, optionsOrCb);
3123
- }
3124
- }
3125
- startThingRegistrationTask(args, optionsOrCb, cb) {
3126
- const command = new StartThingRegistrationTaskCommand(args);
3127
- if (typeof optionsOrCb === "function") {
3128
- this.send(command, optionsOrCb);
3129
- }
3130
- else if (typeof cb === "function") {
3131
- if (typeof optionsOrCb !== "object")
3132
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3133
- this.send(command, optionsOrCb || {}, cb);
3134
- }
3135
- else {
3136
- return this.send(command, optionsOrCb);
3137
- }
3138
- }
3139
- stopThingRegistrationTask(args, optionsOrCb, cb) {
3140
- const command = new StopThingRegistrationTaskCommand(args);
3141
- if (typeof optionsOrCb === "function") {
3142
- this.send(command, optionsOrCb);
3143
- }
3144
- else if (typeof cb === "function") {
3145
- if (typeof optionsOrCb !== "object")
3146
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3147
- this.send(command, optionsOrCb || {}, cb);
3148
- }
3149
- else {
3150
- return this.send(command, optionsOrCb);
3151
- }
3152
- }
3153
- tagResource(args, optionsOrCb, cb) {
3154
- const command = new TagResourceCommand(args);
3155
- if (typeof optionsOrCb === "function") {
3156
- this.send(command, optionsOrCb);
3157
- }
3158
- else if (typeof cb === "function") {
3159
- if (typeof optionsOrCb !== "object")
3160
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3161
- this.send(command, optionsOrCb || {}, cb);
3162
- }
3163
- else {
3164
- return this.send(command, optionsOrCb);
3165
- }
3166
- }
3167
- testAuthorization(args, optionsOrCb, cb) {
3168
- const command = new TestAuthorizationCommand(args);
3169
- if (typeof optionsOrCb === "function") {
3170
- this.send(command, optionsOrCb);
3171
- }
3172
- else if (typeof cb === "function") {
3173
- if (typeof optionsOrCb !== "object")
3174
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3175
- this.send(command, optionsOrCb || {}, cb);
3176
- }
3177
- else {
3178
- return this.send(command, optionsOrCb);
3179
- }
3180
- }
3181
- testInvokeAuthorizer(args, optionsOrCb, cb) {
3182
- const command = new TestInvokeAuthorizerCommand(args);
3183
- if (typeof optionsOrCb === "function") {
3184
- this.send(command, optionsOrCb);
3185
- }
3186
- else if (typeof cb === "function") {
3187
- if (typeof optionsOrCb !== "object")
3188
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3189
- this.send(command, optionsOrCb || {}, cb);
3190
- }
3191
- else {
3192
- return this.send(command, optionsOrCb);
3193
- }
3194
- }
3195
- transferCertificate(args, optionsOrCb, cb) {
3196
- const command = new TransferCertificateCommand(args);
3197
- if (typeof optionsOrCb === "function") {
3198
- this.send(command, optionsOrCb);
3199
- }
3200
- else if (typeof cb === "function") {
3201
- if (typeof optionsOrCb !== "object")
3202
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3203
- this.send(command, optionsOrCb || {}, cb);
3204
- }
3205
- else {
3206
- return this.send(command, optionsOrCb);
3207
- }
3208
- }
3209
- untagResource(args, optionsOrCb, cb) {
3210
- const command = new UntagResourceCommand(args);
3211
- if (typeof optionsOrCb === "function") {
3212
- this.send(command, optionsOrCb);
3213
- }
3214
- else if (typeof cb === "function") {
3215
- if (typeof optionsOrCb !== "object")
3216
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3217
- this.send(command, optionsOrCb || {}, cb);
3218
- }
3219
- else {
3220
- return this.send(command, optionsOrCb);
3221
- }
3222
- }
3223
- updateAccountAuditConfiguration(args, optionsOrCb, cb) {
3224
- const command = new UpdateAccountAuditConfigurationCommand(args);
3225
- if (typeof optionsOrCb === "function") {
3226
- this.send(command, optionsOrCb);
3227
- }
3228
- else if (typeof cb === "function") {
3229
- if (typeof optionsOrCb !== "object")
3230
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3231
- this.send(command, optionsOrCb || {}, cb);
3232
- }
3233
- else {
3234
- return this.send(command, optionsOrCb);
3235
- }
3236
- }
3237
- updateAuditSuppression(args, optionsOrCb, cb) {
3238
- const command = new UpdateAuditSuppressionCommand(args);
3239
- if (typeof optionsOrCb === "function") {
3240
- this.send(command, optionsOrCb);
3241
- }
3242
- else if (typeof cb === "function") {
3243
- if (typeof optionsOrCb !== "object")
3244
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3245
- this.send(command, optionsOrCb || {}, cb);
3246
- }
3247
- else {
3248
- return this.send(command, optionsOrCb);
3249
- }
3250
- }
3251
- updateAuthorizer(args, optionsOrCb, cb) {
3252
- const command = new UpdateAuthorizerCommand(args);
3253
- if (typeof optionsOrCb === "function") {
3254
- this.send(command, optionsOrCb);
3255
- }
3256
- else if (typeof cb === "function") {
3257
- if (typeof optionsOrCb !== "object")
3258
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3259
- this.send(command, optionsOrCb || {}, cb);
3260
- }
3261
- else {
3262
- return this.send(command, optionsOrCb);
3263
- }
3264
- }
3265
- updateBillingGroup(args, optionsOrCb, cb) {
3266
- const command = new UpdateBillingGroupCommand(args);
3267
- if (typeof optionsOrCb === "function") {
3268
- this.send(command, optionsOrCb);
3269
- }
3270
- else if (typeof cb === "function") {
3271
- if (typeof optionsOrCb !== "object")
3272
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3273
- this.send(command, optionsOrCb || {}, cb);
3274
- }
3275
- else {
3276
- return this.send(command, optionsOrCb);
3277
- }
3278
- }
3279
- updateCACertificate(args, optionsOrCb, cb) {
3280
- const command = new UpdateCACertificateCommand(args);
3281
- if (typeof optionsOrCb === "function") {
3282
- this.send(command, optionsOrCb);
3283
- }
3284
- else if (typeof cb === "function") {
3285
- if (typeof optionsOrCb !== "object")
3286
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3287
- this.send(command, optionsOrCb || {}, cb);
3288
- }
3289
- else {
3290
- return this.send(command, optionsOrCb);
3291
- }
3292
- }
3293
- updateCertificate(args, optionsOrCb, cb) {
3294
- const command = new UpdateCertificateCommand(args);
3295
- if (typeof optionsOrCb === "function") {
3296
- this.send(command, optionsOrCb);
3297
- }
3298
- else if (typeof cb === "function") {
3299
- if (typeof optionsOrCb !== "object")
3300
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3301
- this.send(command, optionsOrCb || {}, cb);
3302
- }
3303
- else {
3304
- return this.send(command, optionsOrCb);
3305
- }
3306
- }
3307
- updateCustomMetric(args, optionsOrCb, cb) {
3308
- const command = new UpdateCustomMetricCommand(args);
3309
- if (typeof optionsOrCb === "function") {
3310
- this.send(command, optionsOrCb);
3311
- }
3312
- else if (typeof cb === "function") {
3313
- if (typeof optionsOrCb !== "object")
3314
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3315
- this.send(command, optionsOrCb || {}, cb);
3316
- }
3317
- else {
3318
- return this.send(command, optionsOrCb);
3319
- }
3320
- }
3321
- updateDimension(args, optionsOrCb, cb) {
3322
- const command = new UpdateDimensionCommand(args);
3323
- if (typeof optionsOrCb === "function") {
3324
- this.send(command, optionsOrCb);
3325
- }
3326
- else if (typeof cb === "function") {
3327
- if (typeof optionsOrCb !== "object")
3328
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3329
- this.send(command, optionsOrCb || {}, cb);
3330
- }
3331
- else {
3332
- return this.send(command, optionsOrCb);
3333
- }
3334
- }
3335
- updateDomainConfiguration(args, optionsOrCb, cb) {
3336
- const command = new UpdateDomainConfigurationCommand(args);
3337
- if (typeof optionsOrCb === "function") {
3338
- this.send(command, optionsOrCb);
3339
- }
3340
- else if (typeof cb === "function") {
3341
- if (typeof optionsOrCb !== "object")
3342
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3343
- this.send(command, optionsOrCb || {}, cb);
3344
- }
3345
- else {
3346
- return this.send(command, optionsOrCb);
3347
- }
3348
- }
3349
- updateDynamicThingGroup(args, optionsOrCb, cb) {
3350
- const command = new UpdateDynamicThingGroupCommand(args);
3351
- if (typeof optionsOrCb === "function") {
3352
- this.send(command, optionsOrCb);
3353
- }
3354
- else if (typeof cb === "function") {
3355
- if (typeof optionsOrCb !== "object")
3356
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3357
- this.send(command, optionsOrCb || {}, cb);
3358
- }
3359
- else {
3360
- return this.send(command, optionsOrCb);
3361
- }
3362
- }
3363
- updateEventConfigurations(args, optionsOrCb, cb) {
3364
- const command = new UpdateEventConfigurationsCommand(args);
3365
- if (typeof optionsOrCb === "function") {
3366
- this.send(command, optionsOrCb);
3367
- }
3368
- else if (typeof cb === "function") {
3369
- if (typeof optionsOrCb !== "object")
3370
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3371
- this.send(command, optionsOrCb || {}, cb);
3372
- }
3373
- else {
3374
- return this.send(command, optionsOrCb);
3375
- }
3376
- }
3377
- updateFleetMetric(args, optionsOrCb, cb) {
3378
- const command = new UpdateFleetMetricCommand(args);
3379
- if (typeof optionsOrCb === "function") {
3380
- this.send(command, optionsOrCb);
3381
- }
3382
- else if (typeof cb === "function") {
3383
- if (typeof optionsOrCb !== "object")
3384
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3385
- this.send(command, optionsOrCb || {}, cb);
3386
- }
3387
- else {
3388
- return this.send(command, optionsOrCb);
3389
- }
3390
- }
3391
- updateIndexingConfiguration(args, optionsOrCb, cb) {
3392
- const command = new UpdateIndexingConfigurationCommand(args);
3393
- if (typeof optionsOrCb === "function") {
3394
- this.send(command, optionsOrCb);
3395
- }
3396
- else if (typeof cb === "function") {
3397
- if (typeof optionsOrCb !== "object")
3398
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3399
- this.send(command, optionsOrCb || {}, cb);
3400
- }
3401
- else {
3402
- return this.send(command, optionsOrCb);
3403
- }
3404
- }
3405
- updateJob(args, optionsOrCb, cb) {
3406
- const command = new UpdateJobCommand(args);
3407
- if (typeof optionsOrCb === "function") {
3408
- this.send(command, optionsOrCb);
3409
- }
3410
- else if (typeof cb === "function") {
3411
- if (typeof optionsOrCb !== "object")
3412
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3413
- this.send(command, optionsOrCb || {}, cb);
3414
- }
3415
- else {
3416
- return this.send(command, optionsOrCb);
3417
- }
3418
- }
3419
- updateMitigationAction(args, optionsOrCb, cb) {
3420
- const command = new UpdateMitigationActionCommand(args);
3421
- if (typeof optionsOrCb === "function") {
3422
- this.send(command, optionsOrCb);
3423
- }
3424
- else if (typeof cb === "function") {
3425
- if (typeof optionsOrCb !== "object")
3426
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3427
- this.send(command, optionsOrCb || {}, cb);
3428
- }
3429
- else {
3430
- return this.send(command, optionsOrCb);
3431
- }
3432
- }
3433
- updateProvisioningTemplate(args, optionsOrCb, cb) {
3434
- const command = new UpdateProvisioningTemplateCommand(args);
3435
- if (typeof optionsOrCb === "function") {
3436
- this.send(command, optionsOrCb);
3437
- }
3438
- else if (typeof cb === "function") {
3439
- if (typeof optionsOrCb !== "object")
3440
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3441
- this.send(command, optionsOrCb || {}, cb);
3442
- }
3443
- else {
3444
- return this.send(command, optionsOrCb);
3445
- }
3446
- }
3447
- updateRoleAlias(args, optionsOrCb, cb) {
3448
- const command = new UpdateRoleAliasCommand(args);
3449
- if (typeof optionsOrCb === "function") {
3450
- this.send(command, optionsOrCb);
3451
- }
3452
- else if (typeof cb === "function") {
3453
- if (typeof optionsOrCb !== "object")
3454
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3455
- this.send(command, optionsOrCb || {}, cb);
3456
- }
3457
- else {
3458
- return this.send(command, optionsOrCb);
3459
- }
3460
- }
3461
- updateScheduledAudit(args, optionsOrCb, cb) {
3462
- const command = new UpdateScheduledAuditCommand(args);
3463
- if (typeof optionsOrCb === "function") {
3464
- this.send(command, optionsOrCb);
3465
- }
3466
- else if (typeof cb === "function") {
3467
- if (typeof optionsOrCb !== "object")
3468
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3469
- this.send(command, optionsOrCb || {}, cb);
3470
- }
3471
- else {
3472
- return this.send(command, optionsOrCb);
3473
- }
3474
- }
3475
- updateSecurityProfile(args, optionsOrCb, cb) {
3476
- const command = new UpdateSecurityProfileCommand(args);
3477
- if (typeof optionsOrCb === "function") {
3478
- this.send(command, optionsOrCb);
3479
- }
3480
- else if (typeof cb === "function") {
3481
- if (typeof optionsOrCb !== "object")
3482
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3483
- this.send(command, optionsOrCb || {}, cb);
3484
- }
3485
- else {
3486
- return this.send(command, optionsOrCb);
3487
- }
3488
- }
3489
- updateStream(args, optionsOrCb, cb) {
3490
- const command = new UpdateStreamCommand(args);
3491
- if (typeof optionsOrCb === "function") {
3492
- this.send(command, optionsOrCb);
3493
- }
3494
- else if (typeof cb === "function") {
3495
- if (typeof optionsOrCb !== "object")
3496
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3497
- this.send(command, optionsOrCb || {}, cb);
3498
- }
3499
- else {
3500
- return this.send(command, optionsOrCb);
3501
- }
3502
- }
3503
- updateThing(args, optionsOrCb, cb) {
3504
- const command = new UpdateThingCommand(args);
3505
- if (typeof optionsOrCb === "function") {
3506
- this.send(command, optionsOrCb);
3507
- }
3508
- else if (typeof cb === "function") {
3509
- if (typeof optionsOrCb !== "object")
3510
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3511
- this.send(command, optionsOrCb || {}, cb);
3512
- }
3513
- else {
3514
- return this.send(command, optionsOrCb);
3515
- }
3516
- }
3517
- updateThingGroup(args, optionsOrCb, cb) {
3518
- const command = new UpdateThingGroupCommand(args);
3519
- if (typeof optionsOrCb === "function") {
3520
- this.send(command, optionsOrCb);
3521
- }
3522
- else if (typeof cb === "function") {
3523
- if (typeof optionsOrCb !== "object")
3524
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3525
- this.send(command, optionsOrCb || {}, cb);
3526
- }
3527
- else {
3528
- return this.send(command, optionsOrCb);
3529
- }
3530
- }
3531
- updateThingGroupsForThing(args, optionsOrCb, cb) {
3532
- const command = new UpdateThingGroupsForThingCommand(args);
3533
- if (typeof optionsOrCb === "function") {
3534
- this.send(command, optionsOrCb);
3535
- }
3536
- else if (typeof cb === "function") {
3537
- if (typeof optionsOrCb !== "object")
3538
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3539
- this.send(command, optionsOrCb || {}, cb);
3540
- }
3541
- else {
3542
- return this.send(command, optionsOrCb);
3543
- }
3544
- }
3545
- updateTopicRuleDestination(args, optionsOrCb, cb) {
3546
- const command = new UpdateTopicRuleDestinationCommand(args);
3547
- if (typeof optionsOrCb === "function") {
3548
- this.send(command, optionsOrCb);
3549
- }
3550
- else if (typeof cb === "function") {
3551
- if (typeof optionsOrCb !== "object")
3552
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3553
- this.send(command, optionsOrCb || {}, cb);
3554
- }
3555
- else {
3556
- return this.send(command, optionsOrCb);
3557
- }
3558
- }
3559
- validateSecurityProfileBehaviors(args, optionsOrCb, cb) {
3560
- const command = new ValidateSecurityProfileBehaviorsCommand(args);
3561
- if (typeof optionsOrCb === "function") {
3562
- this.send(command, optionsOrCb);
3563
- }
3564
- else if (typeof cb === "function") {
3565
- if (typeof optionsOrCb !== "object")
3566
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3567
- this.send(command, optionsOrCb || {}, cb);
3568
- }
3569
- else {
3570
- return this.send(command, optionsOrCb);
3571
- }
3572
- }
3573
482
  }
483
+ createAggregatedClient(commands, IoT);