@@ -46,6 +46,11 @@ import {
46
46
ListParallelDataCommandInput ,
47
47
ListParallelDataCommandOutput ,
48
48
} from "./commands/ListParallelDataCommand" ;
49
+ import {
50
+ ListTagsForResourceCommand ,
51
+ ListTagsForResourceCommandInput ,
52
+ ListTagsForResourceCommandOutput ,
53
+ } from "./commands/ListTagsForResourceCommand" ;
49
54
import {
50
55
ListTerminologiesCommand ,
51
56
ListTerminologiesCommandInput ,
@@ -66,11 +71,17 @@ import {
66
71
StopTextTranslationJobCommandInput ,
67
72
StopTextTranslationJobCommandOutput ,
68
73
} from "./commands/StopTextTranslationJobCommand" ;
74
+ import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ;
69
75
import {
70
76
TranslateTextCommand ,
71
77
TranslateTextCommandInput ,
72
78
TranslateTextCommandOutput ,
73
79
} from "./commands/TranslateTextCommand" ;
80
+ import {
81
+ UntagResourceCommand ,
82
+ UntagResourceCommandInput ,
83
+ UntagResourceCommandOutput ,
84
+ } from "./commands/UntagResourceCommand" ;
74
85
import {
75
86
UpdateParallelDataCommand ,
76
87
UpdateParallelDataCommandInput ,
@@ -382,6 +393,35 @@ export class Translate extends TranslateClient {
382
393
}
383
394
}
384
395
396
+ public listTagsForResource (
397
+ args : ListTagsForResourceCommandInput ,
398
+ options ?: __HttpHandlerOptions
399
+ ) : Promise < ListTagsForResourceCommandOutput > ;
400
+ public listTagsForResource (
401
+ args : ListTagsForResourceCommandInput ,
402
+ cb : ( err : any , data ?: ListTagsForResourceCommandOutput ) => void
403
+ ) : void ;
404
+ public listTagsForResource (
405
+ args : ListTagsForResourceCommandInput ,
406
+ options : __HttpHandlerOptions ,
407
+ cb : ( err : any , data ?: ListTagsForResourceCommandOutput ) => void
408
+ ) : void ;
409
+ public listTagsForResource (
410
+ args : ListTagsForResourceCommandInput ,
411
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListTagsForResourceCommandOutput ) => void ) ,
412
+ cb ?: ( err : any , data ?: ListTagsForResourceCommandOutput ) => void
413
+ ) : Promise < ListTagsForResourceCommandOutput > | void {
414
+ const command = new ListTagsForResourceCommand ( args ) ;
415
+ if ( typeof optionsOrCb === "function" ) {
416
+ this . send ( command , optionsOrCb ) ;
417
+ } else if ( typeof cb === "function" ) {
418
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
419
+ this . send ( command , optionsOrCb || { } , cb ) ;
420
+ } else {
421
+ return this . send ( command , optionsOrCb ) ;
422
+ }
423
+ }
424
+
385
425
/**
386
426
* <p>Provides a list of custom terminologies associated with your account.</p>
387
427
*/
@@ -523,6 +563,29 @@ export class Translate extends TranslateClient {
523
563
}
524
564
}
525
565
566
+ public tagResource ( args : TagResourceCommandInput , options ?: __HttpHandlerOptions ) : Promise < TagResourceCommandOutput > ;
567
+ public tagResource ( args : TagResourceCommandInput , cb : ( err : any , data ?: TagResourceCommandOutput ) => void ) : void ;
568
+ public tagResource (
569
+ args : TagResourceCommandInput ,
570
+ options : __HttpHandlerOptions ,
571
+ cb : ( err : any , data ?: TagResourceCommandOutput ) => void
572
+ ) : void ;
573
+ public tagResource (
574
+ args : TagResourceCommandInput ,
575
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: TagResourceCommandOutput ) => void ) ,
576
+ cb ?: ( err : any , data ?: TagResourceCommandOutput ) => void
577
+ ) : Promise < TagResourceCommandOutput > | void {
578
+ const command = new TagResourceCommand ( args ) ;
579
+ if ( typeof optionsOrCb === "function" ) {
580
+ this . send ( command , optionsOrCb ) ;
581
+ } else if ( typeof cb === "function" ) {
582
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
583
+ this . send ( command , optionsOrCb || { } , cb ) ;
584
+ } else {
585
+ return this . send ( command , optionsOrCb ) ;
586
+ }
587
+ }
588
+
526
589
/**
527
590
* <p>Translates input text from the source language to the target language. For a list of
528
591
* available languages and language codes, see <a>what-is-languages</a>.</p>
@@ -556,6 +619,35 @@ export class Translate extends TranslateClient {
556
619
}
557
620
}
558
621
622
+ public untagResource (
623
+ args : UntagResourceCommandInput ,
624
+ options ?: __HttpHandlerOptions
625
+ ) : Promise < UntagResourceCommandOutput > ;
626
+ public untagResource (
627
+ args : UntagResourceCommandInput ,
628
+ cb : ( err : any , data ?: UntagResourceCommandOutput ) => void
629
+ ) : void ;
630
+ public untagResource (
631
+ args : UntagResourceCommandInput ,
632
+ options : __HttpHandlerOptions ,
633
+ cb : ( err : any , data ?: UntagResourceCommandOutput ) => void
634
+ ) : void ;
635
+ public untagResource (
636
+ args : UntagResourceCommandInput ,
637
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UntagResourceCommandOutput ) => void ) ,
638
+ cb ?: ( err : any , data ?: UntagResourceCommandOutput ) => void
639
+ ) : Promise < UntagResourceCommandOutput > | void {
640
+ const command = new UntagResourceCommand ( args ) ;
641
+ if ( typeof optionsOrCb === "function" ) {
642
+ this . send ( command , optionsOrCb ) ;
643
+ } else if ( typeof cb === "function" ) {
644
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
645
+ this . send ( command , optionsOrCb || { } , cb ) ;
646
+ } else {
647
+ return this . send ( command , optionsOrCb ) ;
648
+ }
649
+ }
650
+
559
651
/**
560
652
* <p>Updates a previously created parallel data resource by importing a new input file from
561
653
* Amazon S3.</p>
0 commit comments