@aws-sdk/client-translate 3.180.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 +17 -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 +3 -3
@@ -8,6 +8,17 @@ export interface AppliedTerminology {
8
8
  Name?: string;
9
9
  Terms?: Term[];
10
10
  }
11
+ export declare class ConcurrentModificationException extends __BaseException {
12
+ readonly name: "ConcurrentModificationException";
13
+ readonly $fault: "client";
14
+ Message?: string;
15
+ constructor(
16
+ opts: __ExceptionOptionType<
17
+ ConcurrentModificationException,
18
+ __BaseException
19
+ >
20
+ );
21
+ }
11
22
  export declare class ConflictException extends __BaseException {
12
23
  readonly name: "ConflictException";
13
24
  readonly $fault: "client";
@@ -30,12 +41,17 @@ export interface ParallelDataConfig {
30
41
  S3Uri: string | undefined;
31
42
  Format: ParallelDataFormat | string | undefined;
32
43
  }
44
+ export interface Tag {
45
+ Key: string | undefined;
46
+ Value: string | undefined;
47
+ }
33
48
  export interface CreateParallelDataRequest {
34
49
  Name: string | undefined;
35
50
  Description?: string;
36
51
  ParallelDataConfig: ParallelDataConfig | undefined;
37
52
  EncryptionKey?: EncryptionKey;
38
53
  ClientToken?: string;
54
+ Tags?: Tag[];
39
55
  }
40
56
  export declare enum ParallelDataStatus {
41
57
  ACTIVE = "ACTIVE",
@@ -88,15 +104,12 @@ export declare class TooManyRequestsException extends __BaseException {
88
104
  opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>
89
105
  );
90
106
  }
91
- export declare class ConcurrentModificationException extends __BaseException {
92
- readonly name: "ConcurrentModificationException";
107
+ export declare class TooManyTagsException extends __BaseException {
108
+ readonly name: "TooManyTagsException";
93
109
  readonly $fault: "client";
94
- Message?: string;
110
+ ResourceArn?: string;
95
111
  constructor(
96
- opts: __ExceptionOptionType<
97
- ConcurrentModificationException,
98
- __BaseException
99
- >
112
+ opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
100
113
  );
101
114
  }
102
115
  export interface DeleteParallelDataRequest {
@@ -257,6 +270,7 @@ export interface ImportTerminologyRequest {
257
270
  Description?: string;
258
271
  TerminologyData: TerminologyData | undefined;
259
272
  EncryptionKey?: EncryptionKey;
273
+ Tags?: Tag[];
260
274
  }
261
275
  export interface ImportTerminologyResponse {
262
276
  TerminologyProperties?: TerminologyProperties;
@@ -308,6 +322,12 @@ export interface ListParallelDataResponse {
308
322
  ParallelDataPropertiesList?: ParallelDataProperties[];
309
323
  NextToken?: string;
310
324
  }
325
+ export interface ListTagsForResourceRequest {
326
+ ResourceArn: string | undefined;
327
+ }
328
+ export interface ListTagsForResourceResponse {
329
+ Tags?: Tag[];
330
+ }
311
331
  export interface ListTerminologiesRequest {
312
332
  NextToken?: string;
313
333
  MaxResults?: number;
@@ -375,6 +395,11 @@ export interface StopTextTranslationJobResponse {
375
395
  JobId?: string;
376
396
  JobStatus?: JobStatus | string;
377
397
  }
398
+ export interface TagResourceRequest {
399
+ ResourceArn: string | undefined;
400
+ Tags: Tag[] | undefined;
401
+ }
402
+ export interface TagResourceResponse {}
378
403
  export declare class DetectedLanguageLowConfidenceException extends __BaseException {
379
404
  readonly name: "DetectedLanguageLowConfidenceException";
380
405
  readonly $fault: "client";
@@ -417,6 +442,11 @@ export interface TranslateTextResponse {
417
442
  AppliedTerminologies?: AppliedTerminology[];
418
443
  AppliedSettings?: TranslationSettings;
419
444
  }
445
+ export interface UntagResourceRequest {
446
+ ResourceArn: string | undefined;
447
+ TagKeys: string[] | undefined;
448
+ }
449
+ export interface UntagResourceResponse {}
420
450
  export interface UpdateParallelDataRequest {
421
451
  Name: string | undefined;
422
452
  Description?: string;
@@ -439,6 +469,7 @@ export declare const EncryptionKeyFilterSensitiveLog: (
439
469
  export declare const ParallelDataConfigFilterSensitiveLog: (
440
470
  obj: ParallelDataConfig
441
471
  ) => any;
472
+ export declare const TagFilterSensitiveLog: (obj: Tag) => any;
442
473
  export declare const CreateParallelDataRequestFilterSensitiveLog: (
443
474
  obj: CreateParallelDataRequest
444
475
  ) => any;
@@ -519,6 +550,12 @@ export declare const ListParallelDataRequestFilterSensitiveLog: (
519
550
  export declare const ListParallelDataResponseFilterSensitiveLog: (
520
551
  obj: ListParallelDataResponse
521
552
  ) => any;
553
+ export declare const ListTagsForResourceRequestFilterSensitiveLog: (
554
+ obj: ListTagsForResourceRequest
555
+ ) => any;
556
+ export declare const ListTagsForResourceResponseFilterSensitiveLog: (
557
+ obj: ListTagsForResourceResponse
558
+ ) => any;
522
559
  export declare const ListTerminologiesRequestFilterSensitiveLog: (
523
560
  obj: ListTerminologiesRequest
524
561
  ) => any;
@@ -546,12 +583,24 @@ export declare const StopTextTranslationJobRequestFilterSensitiveLog: (
546
583
  export declare const StopTextTranslationJobResponseFilterSensitiveLog: (
547
584
  obj: StopTextTranslationJobResponse
548
585
  ) => any;
586
+ export declare const TagResourceRequestFilterSensitiveLog: (
587
+ obj: TagResourceRequest
588
+ ) => any;
589
+ export declare const TagResourceResponseFilterSensitiveLog: (
590
+ obj: TagResourceResponse
591
+ ) => any;
549
592
  export declare const TranslateTextRequestFilterSensitiveLog: (
550
593
  obj: TranslateTextRequest
551
594
  ) => any;
552
595
  export declare const TranslateTextResponseFilterSensitiveLog: (
553
596
  obj: TranslateTextResponse
554
597
  ) => any;
598
+ export declare const UntagResourceRequestFilterSensitiveLog: (
599
+ obj: UntagResourceRequest
600
+ ) => any;
601
+ export declare const UntagResourceResponseFilterSensitiveLog: (
602
+ obj: UntagResourceResponse
603
+ ) => any;
555
604
  export declare const UpdateParallelDataRequestFilterSensitiveLog: (
556
605
  obj: UpdateParallelDataRequest
557
606
  ) => any;
@@ -39,6 +39,10 @@ import {
39
39
  ListParallelDataCommandInput,
40
40
  ListParallelDataCommandOutput,
41
41
  } from "../commands/ListParallelDataCommand";
42
+ import {
43
+ ListTagsForResourceCommandInput,
44
+ ListTagsForResourceCommandOutput,
45
+ } from "../commands/ListTagsForResourceCommand";
42
46
  import {
43
47
  ListTerminologiesCommandInput,
44
48
  ListTerminologiesCommandOutput,
@@ -55,10 +59,18 @@ import {
55
59
  StopTextTranslationJobCommandInput,
56
60
  StopTextTranslationJobCommandOutput,
57
61
  } from "../commands/StopTextTranslationJobCommand";
62
+ import {
63
+ TagResourceCommandInput,
64
+ TagResourceCommandOutput,
65
+ } from "../commands/TagResourceCommand";
58
66
  import {
59
67
  TranslateTextCommandInput,
60
68
  TranslateTextCommandOutput,
61
69
  } from "../commands/TranslateTextCommand";
70
+ import {
71
+ UntagResourceCommandInput,
72
+ UntagResourceCommandOutput,
73
+ } from "../commands/UntagResourceCommand";
62
74
  import {
63
75
  UpdateParallelDataCommandInput,
64
76
  UpdateParallelDataCommandOutput,
@@ -99,6 +111,10 @@ export declare const serializeAws_json1_1ListParallelDataCommand: (
99
111
  input: ListParallelDataCommandInput,
100
112
  context: __SerdeContext
101
113
  ) => Promise<__HttpRequest>;
114
+ export declare const serializeAws_json1_1ListTagsForResourceCommand: (
115
+ input: ListTagsForResourceCommandInput,
116
+ context: __SerdeContext
117
+ ) => Promise<__HttpRequest>;
102
118
  export declare const serializeAws_json1_1ListTerminologiesCommand: (
103
119
  input: ListTerminologiesCommandInput,
104
120
  context: __SerdeContext
@@ -115,10 +131,18 @@ export declare const serializeAws_json1_1StopTextTranslationJobCommand: (
115
131
  input: StopTextTranslationJobCommandInput,
116
132
  context: __SerdeContext
117
133
  ) => Promise<__HttpRequest>;
134
+ export declare const serializeAws_json1_1TagResourceCommand: (
135
+ input: TagResourceCommandInput,
136
+ context: __SerdeContext
137
+ ) => Promise<__HttpRequest>;
118
138
  export declare const serializeAws_json1_1TranslateTextCommand: (
119
139
  input: TranslateTextCommandInput,
120
140
  context: __SerdeContext
121
141
  ) => Promise<__HttpRequest>;
142
+ export declare const serializeAws_json1_1UntagResourceCommand: (
143
+ input: UntagResourceCommandInput,
144
+ context: __SerdeContext
145
+ ) => Promise<__HttpRequest>;
122
146
  export declare const serializeAws_json1_1UpdateParallelDataCommand: (
123
147
  input: UpdateParallelDataCommandInput,
124
148
  context: __SerdeContext
@@ -159,6 +183,10 @@ export declare const deserializeAws_json1_1ListParallelDataCommand: (
159
183
  output: __HttpResponse,
160
184
  context: __SerdeContext
161
185
  ) => Promise<ListParallelDataCommandOutput>;
186
+ export declare const deserializeAws_json1_1ListTagsForResourceCommand: (
187
+ output: __HttpResponse,
188
+ context: __SerdeContext
189
+ ) => Promise<ListTagsForResourceCommandOutput>;
162
190
  export declare const deserializeAws_json1_1ListTerminologiesCommand: (
163
191
  output: __HttpResponse,
164
192
  context: __SerdeContext
@@ -175,10 +203,18 @@ export declare const deserializeAws_json1_1StopTextTranslationJobCommand: (
175
203
  output: __HttpResponse,
176
204
  context: __SerdeContext
177
205
  ) => Promise<StopTextTranslationJobCommandOutput>;
206
+ export declare const deserializeAws_json1_1TagResourceCommand: (
207
+ output: __HttpResponse,
208
+ context: __SerdeContext
209
+ ) => Promise<TagResourceCommandOutput>;
178
210
  export declare const deserializeAws_json1_1TranslateTextCommand: (
179
211
  output: __HttpResponse,
180
212
  context: __SerdeContext
181
213
  ) => Promise<TranslateTextCommandOutput>;
214
+ export declare const deserializeAws_json1_1UntagResourceCommand: (
215
+ output: __HttpResponse,
216
+ context: __SerdeContext
217
+ ) => Promise<UntagResourceCommandOutput>;
182
218
  export declare const deserializeAws_json1_1UpdateParallelDataCommand: (
183
219
  output: __HttpResponse,
184
220
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-translate",
3
3
  "description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
4
- "version": "3.180.0",
4
+ "version": "3.181.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.180.0",
22
+ "@aws-sdk/client-sts": "3.181.0",
23
23
  "@aws-sdk/config-resolver": "3.178.0",
24
- "@aws-sdk/credential-provider-node": "3.180.0",
24
+ "@aws-sdk/credential-provider-node": "3.181.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.178.0",
26
26
  "@aws-sdk/hash-node": "3.178.0",
27
27
  "@aws-sdk/invalid-dependency": "3.178.0",