@aws-sdk/client-translate 3.52.0 → 3.54.1

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.
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateParallelDataCommandInput, CreateParallelDataCommandOutput } from "./commands/CreateParallelDataCommand";
10
10
  import { DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput } from "./commands/DeleteParallelDataCommand";
11
11
  import { DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput } from "./commands/DeleteTerminologyCommand";
@@ -42,7 +42,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
42
42
  * A function that can calculate the length of a request body.
43
43
  * @internal
44
44
  */
45
- bodyLengthChecker?: (body: any) => number | undefined;
45
+ bodyLengthChecker?: __BodyLengthCalculator;
46
46
  /**
47
47
  * A function that converts a stream into an array of bytes.
48
48
  * @internal
@@ -3,3 +3,4 @@ export * from "./TranslateClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { TranslateServiceException } from "./models/TranslateServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from Translate service.
4
+ */
5
+ export declare class TranslateServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
2
3
  /**
3
4
  * <p>The term being translated by the custom terminology.</p>
4
5
  */
@@ -46,10 +47,14 @@ export declare namespace AppliedTerminology {
46
47
  /**
47
48
  * <p>There was a conflict processing the request. Try your request again.</p>
48
49
  */
49
- export interface ConflictException extends __SmithyException, $MetadataBearer {
50
- name: "ConflictException";
51
- $fault: "client";
50
+ export declare class ConflictException extends __BaseException {
51
+ readonly name: "ConflictException";
52
+ readonly $fault: "client";
52
53
  Message?: string;
54
+ /**
55
+ * @internal
56
+ */
57
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
53
58
  }
54
59
  export declare enum EncryptionKeyType {
55
60
  KMS = "KMS"
@@ -155,55 +160,79 @@ export declare namespace CreateParallelDataResponse {
155
160
  /**
156
161
  * <p>An internal server error occurred. Retry your request.</p>
157
162
  */
158
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
159
- name: "InternalServerException";
160
- $fault: "server";
163
+ export declare class InternalServerException extends __BaseException {
164
+ readonly name: "InternalServerException";
165
+ readonly $fault: "server";
161
166
  Message?: string;
167
+ /**
168
+ * @internal
169
+ */
170
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
162
171
  }
163
172
  /**
164
173
  * <p>The value of the parameter is invalid. Review the value of the parameter you are using to
165
174
  * correct it, and then retry your operation.</p>
166
175
  */
167
- export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
168
- name: "InvalidParameterValueException";
169
- $fault: "client";
176
+ export declare class InvalidParameterValueException extends __BaseException {
177
+ readonly name: "InvalidParameterValueException";
178
+ readonly $fault: "client";
170
179
  Message?: string;
180
+ /**
181
+ * @internal
182
+ */
183
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
171
184
  }
172
185
  /**
173
186
  * <p> The request that you made is invalid. Check your request to determine why it's invalid
174
187
  * and then retry the request. </p>
175
188
  */
176
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
177
- name: "InvalidRequestException";
178
- $fault: "client";
189
+ export declare class InvalidRequestException extends __BaseException {
190
+ readonly name: "InvalidRequestException";
191
+ readonly $fault: "client";
179
192
  Message?: string;
193
+ /**
194
+ * @internal
195
+ */
196
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
180
197
  }
181
198
  /**
182
199
  * <p>The specified limit has been exceeded. Review your request and retry it with a quantity
183
200
  * below the stated limit.</p>
184
201
  */
185
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
186
- name: "LimitExceededException";
187
- $fault: "client";
202
+ export declare class LimitExceededException extends __BaseException {
203
+ readonly name: "LimitExceededException";
204
+ readonly $fault: "client";
188
205
  Message?: string;
206
+ /**
207
+ * @internal
208
+ */
209
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
189
210
  }
190
211
  /**
191
212
  * <p> You have made too many requests within a short period of time. Wait for a short time and
192
213
  * then try your request again.</p>
193
214
  */
194
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
195
- name: "TooManyRequestsException";
196
- $fault: "client";
215
+ export declare class TooManyRequestsException extends __BaseException {
216
+ readonly name: "TooManyRequestsException";
217
+ readonly $fault: "client";
197
218
  Message?: string;
219
+ /**
220
+ * @internal
221
+ */
222
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
198
223
  }
199
224
  /**
200
225
  * <p>Another modification is being made. That modification must complete before you can make
201
226
  * your change.</p>
202
227
  */
203
- export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
204
- name: "ConcurrentModificationException";
205
- $fault: "client";
228
+ export declare class ConcurrentModificationException extends __BaseException {
229
+ readonly name: "ConcurrentModificationException";
230
+ readonly $fault: "client";
206
231
  Message?: string;
232
+ /**
233
+ * @internal
234
+ */
235
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
207
236
  }
208
237
  export interface DeleteParallelDataRequest {
209
238
  /**
@@ -238,10 +267,14 @@ export declare namespace DeleteParallelDataResponse {
238
267
  * for and see if a different resource will accomplish your needs before retrying the revised
239
268
  * request.</p>
240
269
  */
241
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
242
- name: "ResourceNotFoundException";
243
- $fault: "client";
270
+ export declare class ResourceNotFoundException extends __BaseException {
271
+ readonly name: "ResourceNotFoundException";
272
+ readonly $fault: "client";
244
273
  Message?: string;
274
+ /**
275
+ * @internal
276
+ */
277
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
245
278
  }
246
279
  export interface DeleteTerminologyRequest {
247
280
  /**
@@ -382,6 +415,10 @@ export declare namespace OutputDataConfig {
382
415
  */
383
416
  const filterSensitiveLog: (obj: OutputDataConfig) => any;
384
417
  }
418
+ export declare enum Formality {
419
+ FORMAL = "FORMAL",
420
+ INFORMAL = "INFORMAL"
421
+ }
385
422
  export declare enum Profanity {
386
423
  MASK = "MASK"
387
424
  }
@@ -389,6 +426,7 @@ export declare enum Profanity {
389
426
  * <p>Settings that configure the translation output.</p>
390
427
  */
391
428
  export interface TranslationSettings {
429
+ Formality?: Formality | string;
392
430
  /**
393
431
  * <p>Enable the profanity setting if you want Amazon Translate to mask profane words and
394
432
  * phrases in your translation output.</p>
@@ -1012,10 +1050,14 @@ export declare namespace ListTerminologiesResponse {
1012
1050
  /**
1013
1051
  * <p>The filter specified for the operation is invalid. Specify a different filter.</p>
1014
1052
  */
1015
- export interface InvalidFilterException extends __SmithyException, $MetadataBearer {
1016
- name: "InvalidFilterException";
1017
- $fault: "client";
1053
+ export declare class InvalidFilterException extends __BaseException {
1054
+ readonly name: "InvalidFilterException";
1055
+ readonly $fault: "client";
1018
1056
  Message?: string;
1057
+ /**
1058
+ * @internal
1059
+ */
1060
+ constructor(opts: __ExceptionOptionType<InvalidFilterException, __BaseException>);
1019
1061
  }
1020
1062
  /**
1021
1063
  * <p>Provides information for filtering a list of translation jobs. For more information, see
@@ -1210,9 +1252,9 @@ export declare namespace StartTextTranslationJobResponse {
1210
1252
  * <p>Amazon Translate does not support translation from the language of the source text into the requested
1211
1253
  * target language. For more information, see <a>how-to-error-msg</a>. </p>
1212
1254
  */
1213
- export interface UnsupportedLanguagePairException extends __SmithyException, $MetadataBearer {
1214
- name: "UnsupportedLanguagePairException";
1215
- $fault: "client";
1255
+ export declare class UnsupportedLanguagePairException extends __BaseException {
1256
+ readonly name: "UnsupportedLanguagePairException";
1257
+ readonly $fault: "client";
1216
1258
  Message?: string;
1217
1259
  /**
1218
1260
  * <p>The language code for the language of the input text. </p>
@@ -1222,6 +1264,10 @@ export interface UnsupportedLanguagePairException extends __SmithyException, $Me
1222
1264
  * <p>The language code for the language of the translated text. </p>
1223
1265
  */
1224
1266
  TargetLanguageCode?: string;
1267
+ /**
1268
+ * @internal
1269
+ */
1270
+ constructor(opts: __ExceptionOptionType<UnsupportedLanguagePairException, __BaseException>);
1225
1271
  }
1226
1272
  export interface StopTextTranslationJobRequest {
1227
1273
  /**
@@ -1258,32 +1304,44 @@ export declare namespace StopTextTranslationJobResponse {
1258
1304
  * exception to call Amazon Translate again. For more information, see the <a href="https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html">DetectDominantLanguage</a> operation in the <i>Amazon Comprehend Developer
1259
1305
  * Guide</i>. </p>
1260
1306
  */
1261
- export interface DetectedLanguageLowConfidenceException extends __SmithyException, $MetadataBearer {
1262
- name: "DetectedLanguageLowConfidenceException";
1263
- $fault: "client";
1307
+ export declare class DetectedLanguageLowConfidenceException extends __BaseException {
1308
+ readonly name: "DetectedLanguageLowConfidenceException";
1309
+ readonly $fault: "client";
1264
1310
  Message?: string;
1265
1311
  /**
1266
1312
  * <p>The language code of the auto-detected language from Amazon Comprehend.</p>
1267
1313
  */
1268
1314
  DetectedLanguageCode?: string;
1315
+ /**
1316
+ * @internal
1317
+ */
1318
+ constructor(opts: __ExceptionOptionType<DetectedLanguageLowConfidenceException, __BaseException>);
1269
1319
  }
1270
1320
  /**
1271
1321
  * <p>The Amazon Translate service is temporarily unavailable. Please wait a bit and then retry your
1272
1322
  * request.</p>
1273
1323
  */
1274
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
1275
- name: "ServiceUnavailableException";
1276
- $fault: "server";
1324
+ export declare class ServiceUnavailableException extends __BaseException {
1325
+ readonly name: "ServiceUnavailableException";
1326
+ readonly $fault: "server";
1277
1327
  Message?: string;
1328
+ /**
1329
+ * @internal
1330
+ */
1331
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
1278
1332
  }
1279
1333
  /**
1280
1334
  * <p> The size of the text you submitted exceeds the size limit. Reduce the size of the text or
1281
1335
  * use a smaller document and then retry your request. </p>
1282
1336
  */
1283
- export interface TextSizeLimitExceededException extends __SmithyException, $MetadataBearer {
1284
- name: "TextSizeLimitExceededException";
1285
- $fault: "client";
1337
+ export declare class TextSizeLimitExceededException extends __BaseException {
1338
+ readonly name: "TextSizeLimitExceededException";
1339
+ readonly $fault: "client";
1286
1340
  Message?: string;
1341
+ /**
1342
+ * @internal
1343
+ */
1344
+ constructor(opts: __ExceptionOptionType<TextSizeLimitExceededException, __BaseException>);
1287
1345
  }
1288
1346
  export interface TranslateTextRequest {
1289
1347
  /**
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateParallelDataCommandInput, CreateParallelDataCommandOutput } from "./commands/CreateParallelDataCommand";
10
10
  import { DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput } from "./commands/DeleteParallelDataCommand";
11
11
  import { DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput } from "./commands/DeleteTerminologyCommand";
@@ -30,7 +30,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
30
30
 
31
31
  urlParser?: __UrlParser;
32
32
 
33
- bodyLengthChecker?: (body: any) => number | undefined;
33
+ bodyLengthChecker?: __BodyLengthCalculator;
34
34
 
35
35
  streamCollector?: __StreamCollector;
36
36
 
@@ -3,3 +3,4 @@ export * from "./TranslateClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { TranslateServiceException } from "./models/TranslateServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class TranslateServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
2
3
 
3
4
  export interface Term {
4
5
 
@@ -22,10 +23,12 @@ export declare namespace AppliedTerminology {
22
23
  const filterSensitiveLog: (obj: AppliedTerminology) => any;
23
24
  }
24
25
 
25
- export interface ConflictException extends __SmithyException, $MetadataBearer {
26
- name: "ConflictException";
27
- $fault: "client";
26
+ export declare class ConflictException extends __BaseException {
27
+ readonly name: "ConflictException";
28
+ readonly $fault: "client";
28
29
  Message?: string;
30
+
31
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
29
32
  }
30
33
  export declare enum EncryptionKeyType {
31
34
  KMS = "KMS"
@@ -91,40 +94,52 @@ export declare namespace CreateParallelDataResponse {
91
94
  const filterSensitiveLog: (obj: CreateParallelDataResponse) => any;
92
95
  }
93
96
 
94
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
95
- name: "InternalServerException";
96
- $fault: "server";
97
+ export declare class InternalServerException extends __BaseException {
98
+ readonly name: "InternalServerException";
99
+ readonly $fault: "server";
97
100
  Message?: string;
101
+
102
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
98
103
  }
99
104
 
100
- export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
101
- name: "InvalidParameterValueException";
102
- $fault: "client";
105
+ export declare class InvalidParameterValueException extends __BaseException {
106
+ readonly name: "InvalidParameterValueException";
107
+ readonly $fault: "client";
103
108
  Message?: string;
109
+
110
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
104
111
  }
105
112
 
106
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
107
- name: "InvalidRequestException";
108
- $fault: "client";
113
+ export declare class InvalidRequestException extends __BaseException {
114
+ readonly name: "InvalidRequestException";
115
+ readonly $fault: "client";
109
116
  Message?: string;
117
+
118
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
110
119
  }
111
120
 
112
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
113
- name: "LimitExceededException";
114
- $fault: "client";
121
+ export declare class LimitExceededException extends __BaseException {
122
+ readonly name: "LimitExceededException";
123
+ readonly $fault: "client";
115
124
  Message?: string;
125
+
126
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
116
127
  }
117
128
 
118
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
119
- name: "TooManyRequestsException";
120
- $fault: "client";
129
+ export declare class TooManyRequestsException extends __BaseException {
130
+ readonly name: "TooManyRequestsException";
131
+ readonly $fault: "client";
121
132
  Message?: string;
133
+
134
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
122
135
  }
123
136
 
124
- export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
125
- name: "ConcurrentModificationException";
126
- $fault: "client";
137
+ export declare class ConcurrentModificationException extends __BaseException {
138
+ readonly name: "ConcurrentModificationException";
139
+ readonly $fault: "client";
127
140
  Message?: string;
141
+
142
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
128
143
  }
129
144
  export interface DeleteParallelDataRequest {
130
145
 
@@ -145,10 +160,12 @@ export declare namespace DeleteParallelDataResponse {
145
160
  const filterSensitiveLog: (obj: DeleteParallelDataResponse) => any;
146
161
  }
147
162
 
148
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
149
- name: "ResourceNotFoundException";
150
- $fault: "client";
163
+ export declare class ResourceNotFoundException extends __BaseException {
164
+ readonly name: "ResourceNotFoundException";
165
+ readonly $fault: "client";
151
166
  Message?: string;
167
+
168
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
152
169
  }
153
170
  export interface DeleteTerminologyRequest {
154
171
 
@@ -210,11 +227,16 @@ export declare namespace OutputDataConfig {
210
227
 
211
228
  const filterSensitiveLog: (obj: OutputDataConfig) => any;
212
229
  }
230
+ export declare enum Formality {
231
+ FORMAL = "FORMAL",
232
+ INFORMAL = "INFORMAL"
233
+ }
213
234
  export declare enum Profanity {
214
235
  MASK = "MASK"
215
236
  }
216
237
 
217
238
  export interface TranslationSettings {
239
+ Formality?: Formality | string;
218
240
 
219
241
  Profanity?: Profanity | string;
220
242
  }
@@ -501,10 +523,12 @@ export declare namespace ListTerminologiesResponse {
501
523
  const filterSensitiveLog: (obj: ListTerminologiesResponse) => any;
502
524
  }
503
525
 
504
- export interface InvalidFilterException extends __SmithyException, $MetadataBearer {
505
- name: "InvalidFilterException";
506
- $fault: "client";
526
+ export declare class InvalidFilterException extends __BaseException {
527
+ readonly name: "InvalidFilterException";
528
+ readonly $fault: "client";
507
529
  Message?: string;
530
+
531
+ constructor(opts: __ExceptionOptionType<InvalidFilterException, __BaseException>);
508
532
  }
509
533
 
510
534
  export interface TextTranslationJobFilter {
@@ -580,14 +604,16 @@ export declare namespace StartTextTranslationJobResponse {
580
604
  const filterSensitiveLog: (obj: StartTextTranslationJobResponse) => any;
581
605
  }
582
606
 
583
- export interface UnsupportedLanguagePairException extends __SmithyException, $MetadataBearer {
584
- name: "UnsupportedLanguagePairException";
585
- $fault: "client";
607
+ export declare class UnsupportedLanguagePairException extends __BaseException {
608
+ readonly name: "UnsupportedLanguagePairException";
609
+ readonly $fault: "client";
586
610
  Message?: string;
587
611
 
588
612
  SourceLanguageCode?: string;
589
613
 
590
614
  TargetLanguageCode?: string;
615
+
616
+ constructor(opts: __ExceptionOptionType<UnsupportedLanguagePairException, __BaseException>);
591
617
  }
592
618
  export interface StopTextTranslationJobRequest {
593
619
 
@@ -608,24 +634,30 @@ export declare namespace StopTextTranslationJobResponse {
608
634
  const filterSensitiveLog: (obj: StopTextTranslationJobResponse) => any;
609
635
  }
610
636
 
611
- export interface DetectedLanguageLowConfidenceException extends __SmithyException, $MetadataBearer {
612
- name: "DetectedLanguageLowConfidenceException";
613
- $fault: "client";
637
+ export declare class DetectedLanguageLowConfidenceException extends __BaseException {
638
+ readonly name: "DetectedLanguageLowConfidenceException";
639
+ readonly $fault: "client";
614
640
  Message?: string;
615
641
 
616
642
  DetectedLanguageCode?: string;
643
+
644
+ constructor(opts: __ExceptionOptionType<DetectedLanguageLowConfidenceException, __BaseException>);
617
645
  }
618
646
 
619
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
620
- name: "ServiceUnavailableException";
621
- $fault: "server";
647
+ export declare class ServiceUnavailableException extends __BaseException {
648
+ readonly name: "ServiceUnavailableException";
649
+ readonly $fault: "server";
622
650
  Message?: string;
651
+
652
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
623
653
  }
624
654
 
625
- export interface TextSizeLimitExceededException extends __SmithyException, $MetadataBearer {
626
- name: "TextSizeLimitExceededException";
627
- $fault: "client";
655
+ export declare class TextSizeLimitExceededException extends __BaseException {
656
+ readonly name: "TextSizeLimitExceededException";
657
+ readonly $fault: "client";
628
658
  Message?: string;
659
+
660
+ constructor(opts: __ExceptionOptionType<TextSizeLimitExceededException, __BaseException>);
629
661
  }
630
662
  export interface TranslateTextRequest {
631
663
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;