@aws-sdk/client-translate 3.179.0 → 3.181.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist-cjs/Translate.js +45 -0
  3. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  4. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  5. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +50 -8
  8. package/dist-cjs/protocols/Aws_json1_1.js +275 -16
  9. package/dist-es/Translate.js +45 -0
  10. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  11. package/dist-es/commands/TagResourceCommand.js +39 -0
  12. package/dist-es/commands/UntagResourceCommand.js +39 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/models/models_0.js +29 -9
  15. package/dist-es/protocols/Aws_json1_1.js +378 -58
  16. package/dist-types/Translate.d.ts +12 -0
  17. package/dist-types/TranslateClient.d.ts +5 -2
  18. package/dist-types/commands/ListTagsForResourceCommand.d.ts +18 -0
  19. package/dist-types/commands/TagResourceCommand.d.ts +18 -0
  20. package/dist-types/commands/UntagResourceCommand.d.ts +18 -0
  21. package/dist-types/commands/index.d.ts +3 -0
  22. package/dist-types/models/models_0.d.ts +69 -8
  23. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  24. package/dist-types/ts3.4/Translate.d.ts +51 -0
  25. package/dist-types/ts3.4/TranslateClient.d.ts +18 -0
  26. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +36 -0
  27. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
  28. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +56 -7
  31. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  32. package/package.json +6 -6
@@ -8,11 +8,14 @@ import { GetTerminologyCommandInput, GetTerminologyCommandOutput } from "./comma
8
8
  import { ImportTerminologyCommandInput, ImportTerminologyCommandOutput } from "./commands/ImportTerminologyCommand";
9
9
  import { ListLanguagesCommandInput, ListLanguagesCommandOutput } from "./commands/ListLanguagesCommand";
10
10
  import { ListParallelDataCommandInput, ListParallelDataCommandOutput } from "./commands/ListParallelDataCommand";
11
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
11
12
  import { ListTerminologiesCommandInput, ListTerminologiesCommandOutput } from "./commands/ListTerminologiesCommand";
12
13
  import { ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput } from "./commands/ListTextTranslationJobsCommand";
13
14
  import { StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput } from "./commands/StartTextTranslationJobCommand";
14
15
  import { StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput } from "./commands/StopTextTranslationJobCommand";
16
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
15
17
  import { TranslateTextCommandInput, TranslateTextCommandOutput } from "./commands/TranslateTextCommand";
18
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
16
19
  import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from "./commands/UpdateParallelDataCommand";
17
20
  import { TranslateClient } from "./TranslateClient";
18
21
  /**
@@ -85,6 +88,9 @@ export declare class Translate extends TranslateClient {
85
88
  listParallelData(args: ListParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<ListParallelDataCommandOutput>;
86
89
  listParallelData(args: ListParallelDataCommandInput, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
87
90
  listParallelData(args: ListParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
91
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
92
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
93
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
88
94
  /**
89
95
  * <p>Provides a list of custom terminologies associated with your account.</p>
90
96
  */
@@ -122,6 +128,9 @@ export declare class Translate extends TranslateClient {
122
128
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<StopTextTranslationJobCommandOutput>;
123
129
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void): void;
124
130
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void): void;
131
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
132
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
133
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
125
134
  /**
126
135
  * <p>Translates input text from the source language to the target language. For a list of
127
136
  * available languages and language codes, see <a>what-is-languages</a>.</p>
@@ -129,6 +138,9 @@ export declare class Translate extends TranslateClient {
129
138
  translateText(args: TranslateTextCommandInput, options?: __HttpHandlerOptions): Promise<TranslateTextCommandOutput>;
130
139
  translateText(args: TranslateTextCommandInput, cb: (err: any, data?: TranslateTextCommandOutput) => void): void;
131
140
  translateText(args: TranslateTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TranslateTextCommandOutput) => void): void;
141
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
142
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
143
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
132
144
  /**
133
145
  * <p>Updates a previously created parallel data resource by importing a new input file from
134
146
  * Amazon S3.</p>
@@ -15,14 +15,17 @@ import { GetTerminologyCommandInput, GetTerminologyCommandOutput } from "./comma
15
15
  import { ImportTerminologyCommandInput, ImportTerminologyCommandOutput } from "./commands/ImportTerminologyCommand";
16
16
  import { ListLanguagesCommandInput, ListLanguagesCommandOutput } from "./commands/ListLanguagesCommand";
17
17
  import { ListParallelDataCommandInput, ListParallelDataCommandOutput } from "./commands/ListParallelDataCommand";
18
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
18
19
  import { ListTerminologiesCommandInput, ListTerminologiesCommandOutput } from "./commands/ListTerminologiesCommand";
19
20
  import { ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput } from "./commands/ListTextTranslationJobsCommand";
20
21
  import { StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput } from "./commands/StartTextTranslationJobCommand";
21
22
  import { StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput } from "./commands/StopTextTranslationJobCommand";
23
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
22
24
  import { TranslateTextCommandInput, TranslateTextCommandOutput } from "./commands/TranslateTextCommand";
25
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
23
26
  import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from "./commands/UpdateParallelDataCommand";
24
- export declare type ServiceInputTypes = CreateParallelDataCommandInput | DeleteParallelDataCommandInput | DeleteTerminologyCommandInput | DescribeTextTranslationJobCommandInput | GetParallelDataCommandInput | GetTerminologyCommandInput | ImportTerminologyCommandInput | ListLanguagesCommandInput | ListParallelDataCommandInput | ListTerminologiesCommandInput | ListTextTranslationJobsCommandInput | StartTextTranslationJobCommandInput | StopTextTranslationJobCommandInput | TranslateTextCommandInput | UpdateParallelDataCommandInput;
25
- export declare type ServiceOutputTypes = CreateParallelDataCommandOutput | DeleteParallelDataCommandOutput | DeleteTerminologyCommandOutput | DescribeTextTranslationJobCommandOutput | GetParallelDataCommandOutput | GetTerminologyCommandOutput | ImportTerminologyCommandOutput | ListLanguagesCommandOutput | ListParallelDataCommandOutput | ListTerminologiesCommandOutput | ListTextTranslationJobsCommandOutput | StartTextTranslationJobCommandOutput | StopTextTranslationJobCommandOutput | TranslateTextCommandOutput | UpdateParallelDataCommandOutput;
27
+ export declare type ServiceInputTypes = CreateParallelDataCommandInput | DeleteParallelDataCommandInput | DeleteTerminologyCommandInput | DescribeTextTranslationJobCommandInput | GetParallelDataCommandInput | GetTerminologyCommandInput | ImportTerminologyCommandInput | ListLanguagesCommandInput | ListParallelDataCommandInput | ListTagsForResourceCommandInput | ListTerminologiesCommandInput | ListTextTranslationJobsCommandInput | StartTextTranslationJobCommandInput | StopTextTranslationJobCommandInput | TagResourceCommandInput | TranslateTextCommandInput | UntagResourceCommandInput | UpdateParallelDataCommandInput;
28
+ export declare type ServiceOutputTypes = CreateParallelDataCommandOutput | DeleteParallelDataCommandOutput | DeleteTerminologyCommandOutput | DescribeTextTranslationJobCommandOutput | GetParallelDataCommandOutput | GetTerminologyCommandOutput | ImportTerminologyCommandOutput | ListLanguagesCommandOutput | ListParallelDataCommandOutput | ListTagsForResourceCommandOutput | ListTerminologiesCommandOutput | ListTextTranslationJobsCommandOutput | StartTextTranslationJobCommandOutput | StopTextTranslationJobCommandOutput | TagResourceCommandOutput | TranslateTextCommandOutput | UntagResourceCommandOutput | UpdateParallelDataCommandOutput;
26
29
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
27
30
  /**
28
31
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,18 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
5
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
6
+ }
7
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
8
+ }
9
+ export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, TranslateClientResolvedConfig> {
10
+ readonly input: ListTagsForResourceCommandInput;
11
+ constructor(input: ListTagsForResourceCommandInput);
12
+ /**
13
+ * @internal
14
+ */
15
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
16
+ private serialize;
17
+ private deserialize;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
5
+ export interface TagResourceCommandInput extends TagResourceRequest {
6
+ }
7
+ export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
8
+ }
9
+ export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, TranslateClientResolvedConfig> {
10
+ readonly input: TagResourceCommandInput;
11
+ constructor(input: TagResourceCommandInput);
12
+ /**
13
+ * @internal
14
+ */
15
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
16
+ private serialize;
17
+ private deserialize;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
5
+ export interface UntagResourceCommandInput extends UntagResourceRequest {
6
+ }
7
+ export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
8
+ }
9
+ export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, TranslateClientResolvedConfig> {
10
+ readonly input: UntagResourceCommandInput;
11
+ constructor(input: UntagResourceCommandInput);
12
+ /**
13
+ * @internal
14
+ */
15
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
16
+ private serialize;
17
+ private deserialize;
18
+ }
@@ -7,9 +7,12 @@ export * from "./GetTerminologyCommand";
7
7
  export * from "./ImportTerminologyCommand";
8
8
  export * from "./ListLanguagesCommand";
9
9
  export * from "./ListParallelDataCommand";
10
+ export * from "./ListTagsForResourceCommand";
10
11
  export * from "./ListTerminologiesCommand";
11
12
  export * from "./ListTextTranslationJobsCommand";
12
13
  export * from "./StartTextTranslationJobCommand";
13
14
  export * from "./StopTextTranslationJobCommand";
15
+ export * from "./TagResourceCommand";
14
16
  export * from "./TranslateTextCommand";
17
+ export * from "./UntagResourceCommand";
15
18
  export * from "./UpdateParallelDataCommand";
@@ -32,6 +32,19 @@ export interface AppliedTerminology {
32
32
  */
33
33
  Terms?: Term[];
34
34
  }
35
+ /**
36
+ * <p>Another modification is being made. That modification must complete before you can make
37
+ * your change.</p>
38
+ */
39
+ export declare class ConcurrentModificationException extends __BaseException {
40
+ readonly name: "ConcurrentModificationException";
41
+ readonly $fault: "client";
42
+ Message?: string;
43
+ /**
44
+ * @internal
45
+ */
46
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
47
+ }
35
48
  /**
36
49
  * <p>There was a conflict processing the request. Try your request again.</p>
37
50
  */
@@ -79,6 +92,10 @@ export interface ParallelDataConfig {
79
92
  */
80
93
  Format: ParallelDataFormat | string | undefined;
81
94
  }
95
+ export interface Tag {
96
+ Key: string | undefined;
97
+ Value: string | undefined;
98
+ }
82
99
  export interface CreateParallelDataRequest {
83
100
  /**
84
101
  * <p>A custom name for the parallel data resource in Amazon Translate. You must assign a name
@@ -102,6 +119,7 @@ export interface CreateParallelDataRequest {
102
119
  * Amazon Translate through an AWS SDK.</p>
103
120
  */
104
121
  ClientToken?: string;
122
+ Tags?: Tag[];
105
123
  }
106
124
  export declare enum ParallelDataStatus {
107
125
  ACTIVE = "ACTIVE",
@@ -185,18 +203,14 @@ export declare class TooManyRequestsException extends __BaseException {
185
203
  */
186
204
  constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
187
205
  }
188
- /**
189
- * <p>Another modification is being made. That modification must complete before you can make
190
- * your change.</p>
191
- */
192
- export declare class ConcurrentModificationException extends __BaseException {
193
- readonly name: "ConcurrentModificationException";
206
+ export declare class TooManyTagsException extends __BaseException {
207
+ readonly name: "TooManyTagsException";
194
208
  readonly $fault: "client";
195
- Message?: string;
209
+ ResourceArn?: string;
196
210
  /**
197
211
  * @internal
198
212
  */
199
- constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
213
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
200
214
  }
201
215
  export interface DeleteParallelDataRequest {
202
216
  /**
@@ -824,6 +838,7 @@ export interface ImportTerminologyRequest {
824
838
  * <p>The encryption key for the custom terminology being imported.</p>
825
839
  */
826
840
  EncryptionKey?: EncryptionKey;
841
+ Tags?: Tag[];
827
842
  }
828
843
  export interface ImportTerminologyResponse {
829
844
  /**
@@ -930,6 +945,12 @@ export interface ListParallelDataResponse {
930
945
  */
931
946
  NextToken?: string;
932
947
  }
948
+ export interface ListTagsForResourceRequest {
949
+ ResourceArn: string | undefined;
950
+ }
951
+ export interface ListTagsForResourceResponse {
952
+ Tags?: Tag[];
953
+ }
933
954
  export interface ListTerminologiesRequest {
934
955
  /**
935
956
  * <p>If the result of the request to ListTerminologies was truncated, include the NextToken to
@@ -1160,6 +1181,12 @@ export interface StopTextTranslationJobResponse {
1160
1181
  */
1161
1182
  JobStatus?: JobStatus | string;
1162
1183
  }
1184
+ export interface TagResourceRequest {
1185
+ ResourceArn: string | undefined;
1186
+ Tags: Tag[] | undefined;
1187
+ }
1188
+ export interface TagResourceResponse {
1189
+ }
1163
1190
  /**
1164
1191
  * <p>The confidence that Amazon Comprehend accurately detected the source language is low. If a
1165
1192
  * low confidence level is acceptable for your application, you can use the language in the
@@ -1264,6 +1291,12 @@ export interface TranslateTextResponse {
1264
1291
  */
1265
1292
  AppliedSettings?: TranslationSettings;
1266
1293
  }
1294
+ export interface UntagResourceRequest {
1295
+ ResourceArn: string | undefined;
1296
+ TagKeys: string[] | undefined;
1297
+ }
1298
+ export interface UntagResourceResponse {
1299
+ }
1267
1300
  export interface UpdateParallelDataRequest {
1268
1301
  /**
1269
1302
  * <p>The name of the parallel data resource being updated.</p>
@@ -1320,6 +1353,10 @@ export declare const EncryptionKeyFilterSensitiveLog: (obj: EncryptionKey) => an
1320
1353
  * @internal
1321
1354
  */
1322
1355
  export declare const ParallelDataConfigFilterSensitiveLog: (obj: ParallelDataConfig) => any;
1356
+ /**
1357
+ * @internal
1358
+ */
1359
+ export declare const TagFilterSensitiveLog: (obj: Tag) => any;
1323
1360
  /**
1324
1361
  * @internal
1325
1362
  */
@@ -1432,6 +1469,14 @@ export declare const ListParallelDataRequestFilterSensitiveLog: (obj: ListParall
1432
1469
  * @internal
1433
1470
  */
1434
1471
  export declare const ListParallelDataResponseFilterSensitiveLog: (obj: ListParallelDataResponse) => any;
1472
+ /**
1473
+ * @internal
1474
+ */
1475
+ export declare const ListTagsForResourceRequestFilterSensitiveLog: (obj: ListTagsForResourceRequest) => any;
1476
+ /**
1477
+ * @internal
1478
+ */
1479
+ export declare const ListTagsForResourceResponseFilterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
1435
1480
  /**
1436
1481
  * @internal
1437
1482
  */
@@ -1468,6 +1513,14 @@ export declare const StopTextTranslationJobRequestFilterSensitiveLog: (obj: Stop
1468
1513
  * @internal
1469
1514
  */
1470
1515
  export declare const StopTextTranslationJobResponseFilterSensitiveLog: (obj: StopTextTranslationJobResponse) => any;
1516
+ /**
1517
+ * @internal
1518
+ */
1519
+ export declare const TagResourceRequestFilterSensitiveLog: (obj: TagResourceRequest) => any;
1520
+ /**
1521
+ * @internal
1522
+ */
1523
+ export declare const TagResourceResponseFilterSensitiveLog: (obj: TagResourceResponse) => any;
1471
1524
  /**
1472
1525
  * @internal
1473
1526
  */
@@ -1476,6 +1529,14 @@ export declare const TranslateTextRequestFilterSensitiveLog: (obj: TranslateText
1476
1529
  * @internal
1477
1530
  */
1478
1531
  export declare const TranslateTextResponseFilterSensitiveLog: (obj: TranslateTextResponse) => any;
1532
+ /**
1533
+ * @internal
1534
+ */
1535
+ export declare const UntagResourceRequestFilterSensitiveLog: (obj: UntagResourceRequest) => any;
1536
+ /**
1537
+ * @internal
1538
+ */
1539
+ export declare const UntagResourceResponseFilterSensitiveLog: (obj: UntagResourceResponse) => any;
1479
1540
  /**
1480
1541
  * @internal
1481
1542
  */
@@ -9,11 +9,14 @@ import { GetTerminologyCommandInput, GetTerminologyCommandOutput } from "../comm
9
9
  import { ImportTerminologyCommandInput, ImportTerminologyCommandOutput } from "../commands/ImportTerminologyCommand";
10
10
  import { ListLanguagesCommandInput, ListLanguagesCommandOutput } from "../commands/ListLanguagesCommand";
11
11
  import { ListParallelDataCommandInput, ListParallelDataCommandOutput } from "../commands/ListParallelDataCommand";
12
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
12
13
  import { ListTerminologiesCommandInput, ListTerminologiesCommandOutput } from "../commands/ListTerminologiesCommand";
13
14
  import { ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput } from "../commands/ListTextTranslationJobsCommand";
14
15
  import { StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput } from "../commands/StartTextTranslationJobCommand";
15
16
  import { StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput } from "../commands/StopTextTranslationJobCommand";
17
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
16
18
  import { TranslateTextCommandInput, TranslateTextCommandOutput } from "../commands/TranslateTextCommand";
19
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
17
20
  import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from "../commands/UpdateParallelDataCommand";
18
21
  export declare const serializeAws_json1_1CreateParallelDataCommand: (input: CreateParallelDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
22
  export declare const serializeAws_json1_1DeleteParallelDataCommand: (input: DeleteParallelDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -24,11 +27,14 @@ export declare const serializeAws_json1_1GetTerminologyCommand: (input: GetTermi
24
27
  export declare const serializeAws_json1_1ImportTerminologyCommand: (input: ImportTerminologyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
25
28
  export declare const serializeAws_json1_1ListLanguagesCommand: (input: ListLanguagesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
26
29
  export declare const serializeAws_json1_1ListParallelDataCommand: (input: ListParallelDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
30
+ export declare const serializeAws_json1_1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
27
31
  export declare const serializeAws_json1_1ListTerminologiesCommand: (input: ListTerminologiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
32
  export declare const serializeAws_json1_1ListTextTranslationJobsCommand: (input: ListTextTranslationJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
29
33
  export declare const serializeAws_json1_1StartTextTranslationJobCommand: (input: StartTextTranslationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
30
34
  export declare const serializeAws_json1_1StopTextTranslationJobCommand: (input: StopTextTranslationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
35
+ export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
31
36
  export declare const serializeAws_json1_1TranslateTextCommand: (input: TranslateTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
37
+ export declare const serializeAws_json1_1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
32
38
  export declare const serializeAws_json1_1UpdateParallelDataCommand: (input: UpdateParallelDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
33
39
  export declare const deserializeAws_json1_1CreateParallelDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateParallelDataCommandOutput>;
34
40
  export declare const deserializeAws_json1_1DeleteParallelDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteParallelDataCommandOutput>;
@@ -39,9 +45,12 @@ export declare const deserializeAws_json1_1GetTerminologyCommand: (output: __Htt
39
45
  export declare const deserializeAws_json1_1ImportTerminologyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ImportTerminologyCommandOutput>;
40
46
  export declare const deserializeAws_json1_1ListLanguagesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListLanguagesCommandOutput>;
41
47
  export declare const deserializeAws_json1_1ListParallelDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListParallelDataCommandOutput>;
48
+ export declare const deserializeAws_json1_1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
42
49
  export declare const deserializeAws_json1_1ListTerminologiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTerminologiesCommandOutput>;
43
50
  export declare const deserializeAws_json1_1ListTextTranslationJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTextTranslationJobsCommandOutput>;
44
51
  export declare const deserializeAws_json1_1StartTextTranslationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartTextTranslationJobCommandOutput>;
45
52
  export declare const deserializeAws_json1_1StopTextTranslationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopTextTranslationJobCommandOutput>;
53
+ export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
46
54
  export declare const deserializeAws_json1_1TranslateTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TranslateTextCommandOutput>;
55
+ export declare const deserializeAws_json1_1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
47
56
  export declare const deserializeAws_json1_1UpdateParallelDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateParallelDataCommandOutput>;
@@ -35,6 +35,10 @@ import {
35
35
  ListParallelDataCommandInput,
36
36
  ListParallelDataCommandOutput,
37
37
  } from "./commands/ListParallelDataCommand";
38
+ import {
39
+ ListTagsForResourceCommandInput,
40
+ ListTagsForResourceCommandOutput,
41
+ } from "./commands/ListTagsForResourceCommand";
38
42
  import {
39
43
  ListTerminologiesCommandInput,
40
44
  ListTerminologiesCommandOutput,
@@ -51,10 +55,18 @@ import {
51
55
  StopTextTranslationJobCommandInput,
52
56
  StopTextTranslationJobCommandOutput,
53
57
  } from "./commands/StopTextTranslationJobCommand";
58
+ import {
59
+ TagResourceCommandInput,
60
+ TagResourceCommandOutput,
61
+ } from "./commands/TagResourceCommand";
54
62
  import {
55
63
  TranslateTextCommandInput,
56
64
  TranslateTextCommandOutput,
57
65
  } from "./commands/TranslateTextCommand";
66
+ import {
67
+ UntagResourceCommandInput,
68
+ UntagResourceCommandOutput,
69
+ } from "./commands/UntagResourceCommand";
58
70
  import {
59
71
  UpdateParallelDataCommandInput,
60
72
  UpdateParallelDataCommandOutput,
@@ -178,6 +190,19 @@ export declare class Translate extends TranslateClient {
178
190
  options: __HttpHandlerOptions,
179
191
  cb: (err: any, data?: ListParallelDataCommandOutput) => void
180
192
  ): void;
193
+ listTagsForResource(
194
+ args: ListTagsForResourceCommandInput,
195
+ options?: __HttpHandlerOptions
196
+ ): Promise<ListTagsForResourceCommandOutput>;
197
+ listTagsForResource(
198
+ args: ListTagsForResourceCommandInput,
199
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
200
+ ): void;
201
+ listTagsForResource(
202
+ args: ListTagsForResourceCommandInput,
203
+ options: __HttpHandlerOptions,
204
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
205
+ ): void;
181
206
  listTerminologies(
182
207
  args: ListTerminologiesCommandInput,
183
208
  options?: __HttpHandlerOptions
@@ -230,6 +255,19 @@ export declare class Translate extends TranslateClient {
230
255
  options: __HttpHandlerOptions,
231
256
  cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void
232
257
  ): void;
258
+ tagResource(
259
+ args: TagResourceCommandInput,
260
+ options?: __HttpHandlerOptions
261
+ ): Promise<TagResourceCommandOutput>;
262
+ tagResource(
263
+ args: TagResourceCommandInput,
264
+ cb: (err: any, data?: TagResourceCommandOutput) => void
265
+ ): void;
266
+ tagResource(
267
+ args: TagResourceCommandInput,
268
+ options: __HttpHandlerOptions,
269
+ cb: (err: any, data?: TagResourceCommandOutput) => void
270
+ ): void;
233
271
  translateText(
234
272
  args: TranslateTextCommandInput,
235
273
  options?: __HttpHandlerOptions
@@ -243,6 +281,19 @@ export declare class Translate extends TranslateClient {
243
281
  options: __HttpHandlerOptions,
244
282
  cb: (err: any, data?: TranslateTextCommandOutput) => void
245
283
  ): void;
284
+ untagResource(
285
+ args: UntagResourceCommandInput,
286
+ options?: __HttpHandlerOptions
287
+ ): Promise<UntagResourceCommandOutput>;
288
+ untagResource(
289
+ args: UntagResourceCommandInput,
290
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
291
+ ): void;
292
+ untagResource(
293
+ args: UntagResourceCommandInput,
294
+ options: __HttpHandlerOptions,
295
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
296
+ ): void;
246
297
  updateParallelData(
247
298
  args: UpdateParallelDataCommandInput,
248
299
  options?: __HttpHandlerOptions
@@ -78,6 +78,10 @@ import {
78
78
  ListParallelDataCommandInput,
79
79
  ListParallelDataCommandOutput,
80
80
  } from "./commands/ListParallelDataCommand";
81
+ import {
82
+ ListTagsForResourceCommandInput,
83
+ ListTagsForResourceCommandOutput,
84
+ } from "./commands/ListTagsForResourceCommand";
81
85
  import {
82
86
  ListTerminologiesCommandInput,
83
87
  ListTerminologiesCommandOutput,
@@ -94,10 +98,18 @@ import {
94
98
  StopTextTranslationJobCommandInput,
95
99
  StopTextTranslationJobCommandOutput,
96
100
  } from "./commands/StopTextTranslationJobCommand";
101
+ import {
102
+ TagResourceCommandInput,
103
+ TagResourceCommandOutput,
104
+ } from "./commands/TagResourceCommand";
97
105
  import {
98
106
  TranslateTextCommandInput,
99
107
  TranslateTextCommandOutput,
100
108
  } from "./commands/TranslateTextCommand";
109
+ import {
110
+ UntagResourceCommandInput,
111
+ UntagResourceCommandOutput,
112
+ } from "./commands/UntagResourceCommand";
101
113
  import {
102
114
  UpdateParallelDataCommandInput,
103
115
  UpdateParallelDataCommandOutput,
@@ -112,11 +124,14 @@ export declare type ServiceInputTypes =
112
124
  | ImportTerminologyCommandInput
113
125
  | ListLanguagesCommandInput
114
126
  | ListParallelDataCommandInput
127
+ | ListTagsForResourceCommandInput
115
128
  | ListTerminologiesCommandInput
116
129
  | ListTextTranslationJobsCommandInput
117
130
  | StartTextTranslationJobCommandInput
118
131
  | StopTextTranslationJobCommandInput
132
+ | TagResourceCommandInput
119
133
  | TranslateTextCommandInput
134
+ | UntagResourceCommandInput
120
135
  | UpdateParallelDataCommandInput;
121
136
  export declare type ServiceOutputTypes =
122
137
  | CreateParallelDataCommandOutput
@@ -128,11 +143,14 @@ export declare type ServiceOutputTypes =
128
143
  | ImportTerminologyCommandOutput
129
144
  | ListLanguagesCommandOutput
130
145
  | ListParallelDataCommandOutput
146
+ | ListTagsForResourceCommandOutput
131
147
  | ListTerminologiesCommandOutput
132
148
  | ListTextTranslationJobsCommandOutput
133
149
  | StartTextTranslationJobCommandOutput
134
150
  | StopTextTranslationJobCommandOutput
151
+ | TagResourceCommandOutput
135
152
  | TranslateTextCommandOutput
153
+ | UntagResourceCommandOutput
136
154
  | UpdateParallelDataCommandOutput;
137
155
  export interface ClientDefaults
138
156
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import {
3
+ Handler,
4
+ HttpHandlerOptions as __HttpHandlerOptions,
5
+ MetadataBearer as __MetadataBearer,
6
+ MiddlewareStack,
7
+ } from "@aws-sdk/types";
8
+ import {
9
+ ListTagsForResourceRequest,
10
+ ListTagsForResourceResponse,
11
+ } from "../models/models_0";
12
+ import {
13
+ ServiceInputTypes,
14
+ ServiceOutputTypes,
15
+ TranslateClientResolvedConfig,
16
+ } from "../TranslateClient";
17
+ export interface ListTagsForResourceCommandInput
18
+ extends ListTagsForResourceRequest {}
19
+ export interface ListTagsForResourceCommandOutput
20
+ extends ListTagsForResourceResponse,
21
+ __MetadataBearer {}
22
+ export declare class ListTagsForResourceCommand extends $Command<
23
+ ListTagsForResourceCommandInput,
24
+ ListTagsForResourceCommandOutput,
25
+ TranslateClientResolvedConfig
26
+ > {
27
+ readonly input: ListTagsForResourceCommandInput;
28
+ constructor(input: ListTagsForResourceCommandInput);
29
+ resolveMiddleware(
30
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
31
+ configuration: TranslateClientResolvedConfig,
32
+ options?: __HttpHandlerOptions
33
+ ): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -0,0 +1,32 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import {
3
+ Handler,
4
+ HttpHandlerOptions as __HttpHandlerOptions,
5
+ MetadataBearer as __MetadataBearer,
6
+ MiddlewareStack,
7
+ } from "@aws-sdk/types";
8
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
9
+ import {
10
+ ServiceInputTypes,
11
+ ServiceOutputTypes,
12
+ TranslateClientResolvedConfig,
13
+ } from "../TranslateClient";
14
+ export interface TagResourceCommandInput extends TagResourceRequest {}
15
+ export interface TagResourceCommandOutput
16
+ extends TagResourceResponse,
17
+ __MetadataBearer {}
18
+ export declare class TagResourceCommand extends $Command<
19
+ TagResourceCommandInput,
20
+ TagResourceCommandOutput,
21
+ TranslateClientResolvedConfig
22
+ > {
23
+ readonly input: TagResourceCommandInput;
24
+ constructor(input: TagResourceCommandInput);
25
+ resolveMiddleware(
26
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
27
+ configuration: TranslateClientResolvedConfig,
28
+ options?: __HttpHandlerOptions
29
+ ): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
30
+ private serialize;
31
+ private deserialize;
32
+ }
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import {
3
+ Handler,
4
+ HttpHandlerOptions as __HttpHandlerOptions,
5
+ MetadataBearer as __MetadataBearer,
6
+ MiddlewareStack,
7
+ } from "@aws-sdk/types";
8
+ import {
9
+ UntagResourceRequest,
10
+ UntagResourceResponse,
11
+ } from "../models/models_0";
12
+ import {
13
+ ServiceInputTypes,
14
+ ServiceOutputTypes,
15
+ TranslateClientResolvedConfig,
16
+ } from "../TranslateClient";
17
+ export interface UntagResourceCommandInput extends UntagResourceRequest {}
18
+ export interface UntagResourceCommandOutput
19
+ extends UntagResourceResponse,
20
+ __MetadataBearer {}
21
+ export declare class UntagResourceCommand extends $Command<
22
+ UntagResourceCommandInput,
23
+ UntagResourceCommandOutput,
24
+ TranslateClientResolvedConfig
25
+ > {
26
+ readonly input: UntagResourceCommandInput;
27
+ constructor(input: UntagResourceCommandInput);
28
+ resolveMiddleware(
29
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
+ configuration: TranslateClientResolvedConfig,
31
+ options?: __HttpHandlerOptions
32
+ ): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -7,9 +7,12 @@ export * from "./GetTerminologyCommand";
7
7
  export * from "./ImportTerminologyCommand";
8
8
  export * from "./ListLanguagesCommand";
9
9
  export * from "./ListParallelDataCommand";
10
+ export * from "./ListTagsForResourceCommand";
10
11
  export * from "./ListTerminologiesCommand";
11
12
  export * from "./ListTextTranslationJobsCommand";
12
13
  export * from "./StartTextTranslationJobCommand";
13
14
  export * from "./StopTextTranslationJobCommand";
15
+ export * from "./TagResourceCommand";
14
16
  export * from "./TranslateTextCommand";
17
+ export * from "./UntagResourceCommand";
15
18
  export * from "./UpdateParallelDataCommand";