@aws-sdk/client-translate 3.306.0 → 3.310.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-cjs/commands/CreateParallelDataCommand.js +2 -2
- package/dist-cjs/commands/DeleteParallelDataCommand.js +2 -2
- package/dist-cjs/commands/DeleteTerminologyCommand.js +2 -2
- package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +2 -2
- package/dist-cjs/commands/GetParallelDataCommand.js +2 -2
- package/dist-cjs/commands/GetTerminologyCommand.js +2 -2
- package/dist-cjs/commands/ImportTerminologyCommand.js +2 -2
- package/dist-cjs/commands/ListLanguagesCommand.js +2 -2
- package/dist-cjs/commands/ListParallelDataCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTerminologiesCommand.js +2 -2
- package/dist-cjs/commands/ListTextTranslationJobsCommand.js +2 -2
- package/dist-cjs/commands/StartTextTranslationJobCommand.js +2 -2
- package/dist-cjs/commands/StopTextTranslationJobCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/TranslateTextCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateParallelDataCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +403 -439
- package/dist-es/commands/CreateParallelDataCommand.js +3 -3
- package/dist-es/commands/DeleteParallelDataCommand.js +3 -3
- package/dist-es/commands/DeleteTerminologyCommand.js +3 -3
- package/dist-es/commands/DescribeTextTranslationJobCommand.js +3 -3
- package/dist-es/commands/GetParallelDataCommand.js +3 -3
- package/dist-es/commands/GetTerminologyCommand.js +3 -3
- package/dist-es/commands/ImportTerminologyCommand.js +3 -3
- package/dist-es/commands/ListLanguagesCommand.js +3 -3
- package/dist-es/commands/ListParallelDataCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTerminologiesCommand.js +3 -3
- package/dist-es/commands/ListTextTranslationJobsCommand.js +3 -3
- package/dist-es/commands/StartTextTranslationJobCommand.js +3 -3
- package/dist-es/commands/StopTextTranslationJobCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/TranslateTextCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateParallelDataCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +366 -402
- package/dist-types/protocols/Aws_json1_1.d.ts +144 -36
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -36
- package/package.json +35 -35
|
@@ -3,182 +3,182 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ConcurrentModificationException, ConflictException, DetectedLanguageLowConfidenceException, InternalServerException, InvalidFilterException, InvalidParameterValueException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, ServiceUnavailableException, TextSizeLimitExceededException, TooManyRequestsException, TooManyTagsException, UnsupportedDisplayLanguageCodeException, UnsupportedLanguagePairException, } from "../models/models_0";
|
|
5
5
|
import { TranslateServiceException as __BaseException } from "../models/TranslateServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CreateParallelDataCommand = async (input, context) => {
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/x-amz-json-1.1",
|
|
9
9
|
"x-amz-target": "AWSShineFrontendService_20170701.CreateParallelData",
|
|
10
10
|
};
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify(se_CreateParallelDataRequest(input, context));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
|
-
export const
|
|
15
|
+
export const se_DeleteParallelDataCommand = async (input, context) => {
|
|
16
16
|
const headers = {
|
|
17
17
|
"content-type": "application/x-amz-json-1.1",
|
|
18
18
|
"x-amz-target": "AWSShineFrontendService_20170701.DeleteParallelData",
|
|
19
19
|
};
|
|
20
20
|
let body;
|
|
21
|
-
body = JSON.stringify(
|
|
21
|
+
body = JSON.stringify(se_DeleteParallelDataRequest(input, context));
|
|
22
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const se_DeleteTerminologyCommand = async (input, context) => {
|
|
25
25
|
const headers = {
|
|
26
26
|
"content-type": "application/x-amz-json-1.1",
|
|
27
27
|
"x-amz-target": "AWSShineFrontendService_20170701.DeleteTerminology",
|
|
28
28
|
};
|
|
29
29
|
let body;
|
|
30
|
-
body = JSON.stringify(
|
|
30
|
+
body = JSON.stringify(se_DeleteTerminologyRequest(input, context));
|
|
31
31
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
33
|
+
export const se_DescribeTextTranslationJobCommand = async (input, context) => {
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/x-amz-json-1.1",
|
|
36
36
|
"x-amz-target": "AWSShineFrontendService_20170701.DescribeTextTranslationJob",
|
|
37
37
|
};
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(se_DescribeTextTranslationJobRequest(input, context));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
42
|
+
export const se_GetParallelDataCommand = async (input, context) => {
|
|
43
43
|
const headers = {
|
|
44
44
|
"content-type": "application/x-amz-json-1.1",
|
|
45
45
|
"x-amz-target": "AWSShineFrontendService_20170701.GetParallelData",
|
|
46
46
|
};
|
|
47
47
|
let body;
|
|
48
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify(se_GetParallelDataRequest(input, context));
|
|
49
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
50
|
};
|
|
51
|
-
export const
|
|
51
|
+
export const se_GetTerminologyCommand = async (input, context) => {
|
|
52
52
|
const headers = {
|
|
53
53
|
"content-type": "application/x-amz-json-1.1",
|
|
54
54
|
"x-amz-target": "AWSShineFrontendService_20170701.GetTerminology",
|
|
55
55
|
};
|
|
56
56
|
let body;
|
|
57
|
-
body = JSON.stringify(
|
|
57
|
+
body = JSON.stringify(se_GetTerminologyRequest(input, context));
|
|
58
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
59
|
};
|
|
60
|
-
export const
|
|
60
|
+
export const se_ImportTerminologyCommand = async (input, context) => {
|
|
61
61
|
const headers = {
|
|
62
62
|
"content-type": "application/x-amz-json-1.1",
|
|
63
63
|
"x-amz-target": "AWSShineFrontendService_20170701.ImportTerminology",
|
|
64
64
|
};
|
|
65
65
|
let body;
|
|
66
|
-
body = JSON.stringify(
|
|
66
|
+
body = JSON.stringify(se_ImportTerminologyRequest(input, context));
|
|
67
67
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
68
|
};
|
|
69
|
-
export const
|
|
69
|
+
export const se_ListLanguagesCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.1",
|
|
72
72
|
"x-amz-target": "AWSShineFrontendService_20170701.ListLanguages",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_ListLanguagesRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
export const
|
|
78
|
+
export const se_ListParallelDataCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.1",
|
|
81
81
|
"x-amz-target": "AWSShineFrontendService_20170701.ListParallelData",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_ListParallelDataRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
export const
|
|
87
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
88
88
|
const headers = {
|
|
89
89
|
"content-type": "application/x-amz-json-1.1",
|
|
90
90
|
"x-amz-target": "AWSShineFrontendService_20170701.ListTagsForResource",
|
|
91
91
|
};
|
|
92
92
|
let body;
|
|
93
|
-
body = JSON.stringify(
|
|
93
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
94
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
95
|
};
|
|
96
|
-
export const
|
|
96
|
+
export const se_ListTerminologiesCommand = async (input, context) => {
|
|
97
97
|
const headers = {
|
|
98
98
|
"content-type": "application/x-amz-json-1.1",
|
|
99
99
|
"x-amz-target": "AWSShineFrontendService_20170701.ListTerminologies",
|
|
100
100
|
};
|
|
101
101
|
let body;
|
|
102
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify(se_ListTerminologiesRequest(input, context));
|
|
103
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
104
|
};
|
|
105
|
-
export const
|
|
105
|
+
export const se_ListTextTranslationJobsCommand = async (input, context) => {
|
|
106
106
|
const headers = {
|
|
107
107
|
"content-type": "application/x-amz-json-1.1",
|
|
108
108
|
"x-amz-target": "AWSShineFrontendService_20170701.ListTextTranslationJobs",
|
|
109
109
|
};
|
|
110
110
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify(se_ListTextTranslationJobsRequest(input, context));
|
|
112
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
113
|
};
|
|
114
|
-
export const
|
|
114
|
+
export const se_StartTextTranslationJobCommand = async (input, context) => {
|
|
115
115
|
const headers = {
|
|
116
116
|
"content-type": "application/x-amz-json-1.1",
|
|
117
117
|
"x-amz-target": "AWSShineFrontendService_20170701.StartTextTranslationJob",
|
|
118
118
|
};
|
|
119
119
|
let body;
|
|
120
|
-
body = JSON.stringify(
|
|
120
|
+
body = JSON.stringify(se_StartTextTranslationJobRequest(input, context));
|
|
121
121
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
122
|
};
|
|
123
|
-
export const
|
|
123
|
+
export const se_StopTextTranslationJobCommand = async (input, context) => {
|
|
124
124
|
const headers = {
|
|
125
125
|
"content-type": "application/x-amz-json-1.1",
|
|
126
126
|
"x-amz-target": "AWSShineFrontendService_20170701.StopTextTranslationJob",
|
|
127
127
|
};
|
|
128
128
|
let body;
|
|
129
|
-
body = JSON.stringify(
|
|
129
|
+
body = JSON.stringify(se_StopTextTranslationJobRequest(input, context));
|
|
130
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
131
|
};
|
|
132
|
-
export const
|
|
132
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
133
133
|
const headers = {
|
|
134
134
|
"content-type": "application/x-amz-json-1.1",
|
|
135
135
|
"x-amz-target": "AWSShineFrontendService_20170701.TagResource",
|
|
136
136
|
};
|
|
137
137
|
let body;
|
|
138
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
139
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
140
|
};
|
|
141
|
-
export const
|
|
141
|
+
export const se_TranslateTextCommand = async (input, context) => {
|
|
142
142
|
const headers = {
|
|
143
143
|
"content-type": "application/x-amz-json-1.1",
|
|
144
144
|
"x-amz-target": "AWSShineFrontendService_20170701.TranslateText",
|
|
145
145
|
};
|
|
146
146
|
let body;
|
|
147
|
-
body = JSON.stringify(
|
|
147
|
+
body = JSON.stringify(se_TranslateTextRequest(input, context));
|
|
148
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
149
|
};
|
|
150
|
-
export const
|
|
150
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
151
151
|
const headers = {
|
|
152
152
|
"content-type": "application/x-amz-json-1.1",
|
|
153
153
|
"x-amz-target": "AWSShineFrontendService_20170701.UntagResource",
|
|
154
154
|
};
|
|
155
155
|
let body;
|
|
156
|
-
body = JSON.stringify(
|
|
156
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
157
157
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
158
|
};
|
|
159
|
-
export const
|
|
159
|
+
export const se_UpdateParallelDataCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.1",
|
|
162
162
|
"x-amz-target": "AWSShineFrontendService_20170701.UpdateParallelData",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_UpdateParallelDataRequest(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
export const
|
|
168
|
+
export const de_CreateParallelDataCommand = async (output, context) => {
|
|
169
169
|
if (output.statusCode >= 300) {
|
|
170
|
-
return
|
|
170
|
+
return de_CreateParallelDataCommandError(output, context);
|
|
171
171
|
}
|
|
172
172
|
const data = await parseBody(output.body, context);
|
|
173
173
|
let contents = {};
|
|
174
|
-
contents =
|
|
174
|
+
contents = de_CreateParallelDataResponse(data, context);
|
|
175
175
|
const response = {
|
|
176
176
|
$metadata: deserializeMetadata(output),
|
|
177
177
|
...contents,
|
|
178
178
|
};
|
|
179
179
|
return Promise.resolve(response);
|
|
180
180
|
};
|
|
181
|
-
const
|
|
181
|
+
const de_CreateParallelDataCommandError = async (output, context) => {
|
|
182
182
|
const parsedOutput = {
|
|
183
183
|
...output,
|
|
184
184
|
body: await parseErrorBody(output.body, context),
|
|
@@ -187,28 +187,28 @@ const deserializeAws_json1_1CreateParallelDataCommandError = async (output, cont
|
|
|
187
187
|
switch (errorCode) {
|
|
188
188
|
case "ConcurrentModificationException":
|
|
189
189
|
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
190
|
-
throw await
|
|
190
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
191
191
|
case "ConflictException":
|
|
192
192
|
case "com.amazonaws.translate#ConflictException":
|
|
193
|
-
throw await
|
|
193
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
194
194
|
case "InternalServerException":
|
|
195
195
|
case "com.amazonaws.translate#InternalServerException":
|
|
196
|
-
throw await
|
|
196
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
197
197
|
case "InvalidParameterValueException":
|
|
198
198
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
199
|
-
throw await
|
|
199
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
200
200
|
case "InvalidRequestException":
|
|
201
201
|
case "com.amazonaws.translate#InvalidRequestException":
|
|
202
|
-
throw await
|
|
202
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
203
203
|
case "LimitExceededException":
|
|
204
204
|
case "com.amazonaws.translate#LimitExceededException":
|
|
205
|
-
throw await
|
|
205
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
206
206
|
case "TooManyRequestsException":
|
|
207
207
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
208
|
-
throw await
|
|
208
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
209
209
|
case "TooManyTagsException":
|
|
210
210
|
case "com.amazonaws.translate#TooManyTagsException":
|
|
211
|
-
throw await
|
|
211
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
212
212
|
default:
|
|
213
213
|
const parsedBody = parsedOutput.body;
|
|
214
214
|
throwDefaultError({
|
|
@@ -219,20 +219,20 @@ const deserializeAws_json1_1CreateParallelDataCommandError = async (output, cont
|
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
|
-
export const
|
|
222
|
+
export const de_DeleteParallelDataCommand = async (output, context) => {
|
|
223
223
|
if (output.statusCode >= 300) {
|
|
224
|
-
return
|
|
224
|
+
return de_DeleteParallelDataCommandError(output, context);
|
|
225
225
|
}
|
|
226
226
|
const data = await parseBody(output.body, context);
|
|
227
227
|
let contents = {};
|
|
228
|
-
contents =
|
|
228
|
+
contents = de_DeleteParallelDataResponse(data, context);
|
|
229
229
|
const response = {
|
|
230
230
|
$metadata: deserializeMetadata(output),
|
|
231
231
|
...contents,
|
|
232
232
|
};
|
|
233
233
|
return Promise.resolve(response);
|
|
234
234
|
};
|
|
235
|
-
const
|
|
235
|
+
const de_DeleteParallelDataCommandError = async (output, context) => {
|
|
236
236
|
const parsedOutput = {
|
|
237
237
|
...output,
|
|
238
238
|
body: await parseErrorBody(output.body, context),
|
|
@@ -241,16 +241,16 @@ const deserializeAws_json1_1DeleteParallelDataCommandError = async (output, cont
|
|
|
241
241
|
switch (errorCode) {
|
|
242
242
|
case "ConcurrentModificationException":
|
|
243
243
|
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
244
|
-
throw await
|
|
244
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
245
245
|
case "InternalServerException":
|
|
246
246
|
case "com.amazonaws.translate#InternalServerException":
|
|
247
|
-
throw await
|
|
247
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
248
248
|
case "ResourceNotFoundException":
|
|
249
249
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
250
|
-
throw await
|
|
250
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
251
251
|
case "TooManyRequestsException":
|
|
252
252
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
253
|
-
throw await
|
|
253
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
254
254
|
default:
|
|
255
255
|
const parsedBody = parsedOutput.body;
|
|
256
256
|
throwDefaultError({
|
|
@@ -261,9 +261,9 @@ const deserializeAws_json1_1DeleteParallelDataCommandError = async (output, cont
|
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
};
|
|
264
|
-
export const
|
|
264
|
+
export const de_DeleteTerminologyCommand = async (output, context) => {
|
|
265
265
|
if (output.statusCode >= 300) {
|
|
266
|
-
return
|
|
266
|
+
return de_DeleteTerminologyCommandError(output, context);
|
|
267
267
|
}
|
|
268
268
|
await collectBody(output.body, context);
|
|
269
269
|
const response = {
|
|
@@ -271,7 +271,7 @@ export const deserializeAws_json1_1DeleteTerminologyCommand = async (output, con
|
|
|
271
271
|
};
|
|
272
272
|
return Promise.resolve(response);
|
|
273
273
|
};
|
|
274
|
-
const
|
|
274
|
+
const de_DeleteTerminologyCommandError = async (output, context) => {
|
|
275
275
|
const parsedOutput = {
|
|
276
276
|
...output,
|
|
277
277
|
body: await parseErrorBody(output.body, context),
|
|
@@ -280,16 +280,16 @@ const deserializeAws_json1_1DeleteTerminologyCommandError = async (output, conte
|
|
|
280
280
|
switch (errorCode) {
|
|
281
281
|
case "InternalServerException":
|
|
282
282
|
case "com.amazonaws.translate#InternalServerException":
|
|
283
|
-
throw await
|
|
283
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
284
284
|
case "InvalidParameterValueException":
|
|
285
285
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
286
|
-
throw await
|
|
286
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
287
287
|
case "ResourceNotFoundException":
|
|
288
288
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
289
|
-
throw await
|
|
289
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
290
290
|
case "TooManyRequestsException":
|
|
291
291
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
292
|
-
throw await
|
|
292
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
293
293
|
default:
|
|
294
294
|
const parsedBody = parsedOutput.body;
|
|
295
295
|
throwDefaultError({
|
|
@@ -300,20 +300,20 @@ const deserializeAws_json1_1DeleteTerminologyCommandError = async (output, conte
|
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
|
-
export const
|
|
303
|
+
export const de_DescribeTextTranslationJobCommand = async (output, context) => {
|
|
304
304
|
if (output.statusCode >= 300) {
|
|
305
|
-
return
|
|
305
|
+
return de_DescribeTextTranslationJobCommandError(output, context);
|
|
306
306
|
}
|
|
307
307
|
const data = await parseBody(output.body, context);
|
|
308
308
|
let contents = {};
|
|
309
|
-
contents =
|
|
309
|
+
contents = de_DescribeTextTranslationJobResponse(data, context);
|
|
310
310
|
const response = {
|
|
311
311
|
$metadata: deserializeMetadata(output),
|
|
312
312
|
...contents,
|
|
313
313
|
};
|
|
314
314
|
return Promise.resolve(response);
|
|
315
315
|
};
|
|
316
|
-
const
|
|
316
|
+
const de_DescribeTextTranslationJobCommandError = async (output, context) => {
|
|
317
317
|
const parsedOutput = {
|
|
318
318
|
...output,
|
|
319
319
|
body: await parseErrorBody(output.body, context),
|
|
@@ -322,13 +322,13 @@ const deserializeAws_json1_1DescribeTextTranslationJobCommandError = async (outp
|
|
|
322
322
|
switch (errorCode) {
|
|
323
323
|
case "InternalServerException":
|
|
324
324
|
case "com.amazonaws.translate#InternalServerException":
|
|
325
|
-
throw await
|
|
325
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
326
326
|
case "ResourceNotFoundException":
|
|
327
327
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
328
|
-
throw await
|
|
328
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
329
329
|
case "TooManyRequestsException":
|
|
330
330
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
331
|
-
throw await
|
|
331
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
332
332
|
default:
|
|
333
333
|
const parsedBody = parsedOutput.body;
|
|
334
334
|
throwDefaultError({
|
|
@@ -339,20 +339,20 @@ const deserializeAws_json1_1DescribeTextTranslationJobCommandError = async (outp
|
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
|
-
export const
|
|
342
|
+
export const de_GetParallelDataCommand = async (output, context) => {
|
|
343
343
|
if (output.statusCode >= 300) {
|
|
344
|
-
return
|
|
344
|
+
return de_GetParallelDataCommandError(output, context);
|
|
345
345
|
}
|
|
346
346
|
const data = await parseBody(output.body, context);
|
|
347
347
|
let contents = {};
|
|
348
|
-
contents =
|
|
348
|
+
contents = de_GetParallelDataResponse(data, context);
|
|
349
349
|
const response = {
|
|
350
350
|
$metadata: deserializeMetadata(output),
|
|
351
351
|
...contents,
|
|
352
352
|
};
|
|
353
353
|
return Promise.resolve(response);
|
|
354
354
|
};
|
|
355
|
-
const
|
|
355
|
+
const de_GetParallelDataCommandError = async (output, context) => {
|
|
356
356
|
const parsedOutput = {
|
|
357
357
|
...output,
|
|
358
358
|
body: await parseErrorBody(output.body, context),
|
|
@@ -361,16 +361,16 @@ const deserializeAws_json1_1GetParallelDataCommandError = async (output, context
|
|
|
361
361
|
switch (errorCode) {
|
|
362
362
|
case "InternalServerException":
|
|
363
363
|
case "com.amazonaws.translate#InternalServerException":
|
|
364
|
-
throw await
|
|
364
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
365
365
|
case "InvalidParameterValueException":
|
|
366
366
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
367
|
-
throw await
|
|
367
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
368
368
|
case "ResourceNotFoundException":
|
|
369
369
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
370
|
-
throw await
|
|
370
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
371
371
|
case "TooManyRequestsException":
|
|
372
372
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
373
|
-
throw await
|
|
373
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
374
374
|
default:
|
|
375
375
|
const parsedBody = parsedOutput.body;
|
|
376
376
|
throwDefaultError({
|
|
@@ -381,20 +381,20 @@ const deserializeAws_json1_1GetParallelDataCommandError = async (output, context
|
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
|
-
export const
|
|
384
|
+
export const de_GetTerminologyCommand = async (output, context) => {
|
|
385
385
|
if (output.statusCode >= 300) {
|
|
386
|
-
return
|
|
386
|
+
return de_GetTerminologyCommandError(output, context);
|
|
387
387
|
}
|
|
388
388
|
const data = await parseBody(output.body, context);
|
|
389
389
|
let contents = {};
|
|
390
|
-
contents =
|
|
390
|
+
contents = de_GetTerminologyResponse(data, context);
|
|
391
391
|
const response = {
|
|
392
392
|
$metadata: deserializeMetadata(output),
|
|
393
393
|
...contents,
|
|
394
394
|
};
|
|
395
395
|
return Promise.resolve(response);
|
|
396
396
|
};
|
|
397
|
-
const
|
|
397
|
+
const de_GetTerminologyCommandError = async (output, context) => {
|
|
398
398
|
const parsedOutput = {
|
|
399
399
|
...output,
|
|
400
400
|
body: await parseErrorBody(output.body, context),
|
|
@@ -403,16 +403,16 @@ const deserializeAws_json1_1GetTerminologyCommandError = async (output, context)
|
|
|
403
403
|
switch (errorCode) {
|
|
404
404
|
case "InternalServerException":
|
|
405
405
|
case "com.amazonaws.translate#InternalServerException":
|
|
406
|
-
throw await
|
|
406
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
407
407
|
case "InvalidParameterValueException":
|
|
408
408
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
409
|
-
throw await
|
|
409
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
410
410
|
case "ResourceNotFoundException":
|
|
411
411
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
412
|
-
throw await
|
|
412
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
413
413
|
case "TooManyRequestsException":
|
|
414
414
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
415
|
-
throw await
|
|
415
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
416
416
|
default:
|
|
417
417
|
const parsedBody = parsedOutput.body;
|
|
418
418
|
throwDefaultError({
|
|
@@ -423,20 +423,20 @@ const deserializeAws_json1_1GetTerminologyCommandError = async (output, context)
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
|
-
export const
|
|
426
|
+
export const de_ImportTerminologyCommand = async (output, context) => {
|
|
427
427
|
if (output.statusCode >= 300) {
|
|
428
|
-
return
|
|
428
|
+
return de_ImportTerminologyCommandError(output, context);
|
|
429
429
|
}
|
|
430
430
|
const data = await parseBody(output.body, context);
|
|
431
431
|
let contents = {};
|
|
432
|
-
contents =
|
|
432
|
+
contents = de_ImportTerminologyResponse(data, context);
|
|
433
433
|
const response = {
|
|
434
434
|
$metadata: deserializeMetadata(output),
|
|
435
435
|
...contents,
|
|
436
436
|
};
|
|
437
437
|
return Promise.resolve(response);
|
|
438
438
|
};
|
|
439
|
-
const
|
|
439
|
+
const de_ImportTerminologyCommandError = async (output, context) => {
|
|
440
440
|
const parsedOutput = {
|
|
441
441
|
...output,
|
|
442
442
|
body: await parseErrorBody(output.body, context),
|
|
@@ -445,22 +445,22 @@ const deserializeAws_json1_1ImportTerminologyCommandError = async (output, conte
|
|
|
445
445
|
switch (errorCode) {
|
|
446
446
|
case "ConcurrentModificationException":
|
|
447
447
|
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
448
|
-
throw await
|
|
448
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
449
449
|
case "InternalServerException":
|
|
450
450
|
case "com.amazonaws.translate#InternalServerException":
|
|
451
|
-
throw await
|
|
451
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
452
452
|
case "InvalidParameterValueException":
|
|
453
453
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
454
|
-
throw await
|
|
454
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
455
455
|
case "LimitExceededException":
|
|
456
456
|
case "com.amazonaws.translate#LimitExceededException":
|
|
457
|
-
throw await
|
|
457
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
458
458
|
case "TooManyRequestsException":
|
|
459
459
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
460
|
-
throw await
|
|
460
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
461
461
|
case "TooManyTagsException":
|
|
462
462
|
case "com.amazonaws.translate#TooManyTagsException":
|
|
463
|
-
throw await
|
|
463
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
464
464
|
default:
|
|
465
465
|
const parsedBody = parsedOutput.body;
|
|
466
466
|
throwDefaultError({
|
|
@@ -471,20 +471,20 @@ const deserializeAws_json1_1ImportTerminologyCommandError = async (output, conte
|
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
|
-
export const
|
|
474
|
+
export const de_ListLanguagesCommand = async (output, context) => {
|
|
475
475
|
if (output.statusCode >= 300) {
|
|
476
|
-
return
|
|
476
|
+
return de_ListLanguagesCommandError(output, context);
|
|
477
477
|
}
|
|
478
478
|
const data = await parseBody(output.body, context);
|
|
479
479
|
let contents = {};
|
|
480
|
-
contents =
|
|
480
|
+
contents = de_ListLanguagesResponse(data, context);
|
|
481
481
|
const response = {
|
|
482
482
|
$metadata: deserializeMetadata(output),
|
|
483
483
|
...contents,
|
|
484
484
|
};
|
|
485
485
|
return Promise.resolve(response);
|
|
486
486
|
};
|
|
487
|
-
const
|
|
487
|
+
const de_ListLanguagesCommandError = async (output, context) => {
|
|
488
488
|
const parsedOutput = {
|
|
489
489
|
...output,
|
|
490
490
|
body: await parseErrorBody(output.body, context),
|
|
@@ -493,16 +493,16 @@ const deserializeAws_json1_1ListLanguagesCommandError = async (output, context)
|
|
|
493
493
|
switch (errorCode) {
|
|
494
494
|
case "InternalServerException":
|
|
495
495
|
case "com.amazonaws.translate#InternalServerException":
|
|
496
|
-
throw await
|
|
496
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
497
497
|
case "InvalidParameterValueException":
|
|
498
498
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
499
|
-
throw await
|
|
499
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
500
500
|
case "TooManyRequestsException":
|
|
501
501
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
502
|
-
throw await
|
|
502
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
503
503
|
case "UnsupportedDisplayLanguageCodeException":
|
|
504
504
|
case "com.amazonaws.translate#UnsupportedDisplayLanguageCodeException":
|
|
505
|
-
throw await
|
|
505
|
+
throw await de_UnsupportedDisplayLanguageCodeExceptionRes(parsedOutput, context);
|
|
506
506
|
default:
|
|
507
507
|
const parsedBody = parsedOutput.body;
|
|
508
508
|
throwDefaultError({
|
|
@@ -513,20 +513,20 @@ const deserializeAws_json1_1ListLanguagesCommandError = async (output, context)
|
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
|
-
export const
|
|
516
|
+
export const de_ListParallelDataCommand = async (output, context) => {
|
|
517
517
|
if (output.statusCode >= 300) {
|
|
518
|
-
return
|
|
518
|
+
return de_ListParallelDataCommandError(output, context);
|
|
519
519
|
}
|
|
520
520
|
const data = await parseBody(output.body, context);
|
|
521
521
|
let contents = {};
|
|
522
|
-
contents =
|
|
522
|
+
contents = de_ListParallelDataResponse(data, context);
|
|
523
523
|
const response = {
|
|
524
524
|
$metadata: deserializeMetadata(output),
|
|
525
525
|
...contents,
|
|
526
526
|
};
|
|
527
527
|
return Promise.resolve(response);
|
|
528
528
|
};
|
|
529
|
-
const
|
|
529
|
+
const de_ListParallelDataCommandError = async (output, context) => {
|
|
530
530
|
const parsedOutput = {
|
|
531
531
|
...output,
|
|
532
532
|
body: await parseErrorBody(output.body, context),
|
|
@@ -535,13 +535,13 @@ const deserializeAws_json1_1ListParallelDataCommandError = async (output, contex
|
|
|
535
535
|
switch (errorCode) {
|
|
536
536
|
case "InternalServerException":
|
|
537
537
|
case "com.amazonaws.translate#InternalServerException":
|
|
538
|
-
throw await
|
|
538
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
539
539
|
case "InvalidParameterValueException":
|
|
540
540
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
541
|
-
throw await
|
|
541
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
542
542
|
case "TooManyRequestsException":
|
|
543
543
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
544
|
-
throw await
|
|
544
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
545
545
|
default:
|
|
546
546
|
const parsedBody = parsedOutput.body;
|
|
547
547
|
throwDefaultError({
|
|
@@ -552,20 +552,20 @@ const deserializeAws_json1_1ListParallelDataCommandError = async (output, contex
|
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
|
-
export const
|
|
555
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
556
556
|
if (output.statusCode >= 300) {
|
|
557
|
-
return
|
|
557
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
558
558
|
}
|
|
559
559
|
const data = await parseBody(output.body, context);
|
|
560
560
|
let contents = {};
|
|
561
|
-
contents =
|
|
561
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
562
562
|
const response = {
|
|
563
563
|
$metadata: deserializeMetadata(output),
|
|
564
564
|
...contents,
|
|
565
565
|
};
|
|
566
566
|
return Promise.resolve(response);
|
|
567
567
|
};
|
|
568
|
-
const
|
|
568
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
569
569
|
const parsedOutput = {
|
|
570
570
|
...output,
|
|
571
571
|
body: await parseErrorBody(output.body, context),
|
|
@@ -574,13 +574,13 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
574
574
|
switch (errorCode) {
|
|
575
575
|
case "InternalServerException":
|
|
576
576
|
case "com.amazonaws.translate#InternalServerException":
|
|
577
|
-
throw await
|
|
577
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
578
578
|
case "InvalidParameterValueException":
|
|
579
579
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
580
|
-
throw await
|
|
580
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
581
581
|
case "ResourceNotFoundException":
|
|
582
582
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
583
|
-
throw await
|
|
583
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
584
584
|
default:
|
|
585
585
|
const parsedBody = parsedOutput.body;
|
|
586
586
|
throwDefaultError({
|
|
@@ -591,20 +591,20 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
};
|
|
594
|
-
export const
|
|
594
|
+
export const de_ListTerminologiesCommand = async (output, context) => {
|
|
595
595
|
if (output.statusCode >= 300) {
|
|
596
|
-
return
|
|
596
|
+
return de_ListTerminologiesCommandError(output, context);
|
|
597
597
|
}
|
|
598
598
|
const data = await parseBody(output.body, context);
|
|
599
599
|
let contents = {};
|
|
600
|
-
contents =
|
|
600
|
+
contents = de_ListTerminologiesResponse(data, context);
|
|
601
601
|
const response = {
|
|
602
602
|
$metadata: deserializeMetadata(output),
|
|
603
603
|
...contents,
|
|
604
604
|
};
|
|
605
605
|
return Promise.resolve(response);
|
|
606
606
|
};
|
|
607
|
-
const
|
|
607
|
+
const de_ListTerminologiesCommandError = async (output, context) => {
|
|
608
608
|
const parsedOutput = {
|
|
609
609
|
...output,
|
|
610
610
|
body: await parseErrorBody(output.body, context),
|
|
@@ -613,13 +613,13 @@ const deserializeAws_json1_1ListTerminologiesCommandError = async (output, conte
|
|
|
613
613
|
switch (errorCode) {
|
|
614
614
|
case "InternalServerException":
|
|
615
615
|
case "com.amazonaws.translate#InternalServerException":
|
|
616
|
-
throw await
|
|
616
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
617
617
|
case "InvalidParameterValueException":
|
|
618
618
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
619
|
-
throw await
|
|
619
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
620
620
|
case "TooManyRequestsException":
|
|
621
621
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
622
|
-
throw await
|
|
622
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
623
623
|
default:
|
|
624
624
|
const parsedBody = parsedOutput.body;
|
|
625
625
|
throwDefaultError({
|
|
@@ -630,20 +630,20 @@ const deserializeAws_json1_1ListTerminologiesCommandError = async (output, conte
|
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
632
|
};
|
|
633
|
-
export const
|
|
633
|
+
export const de_ListTextTranslationJobsCommand = async (output, context) => {
|
|
634
634
|
if (output.statusCode >= 300) {
|
|
635
|
-
return
|
|
635
|
+
return de_ListTextTranslationJobsCommandError(output, context);
|
|
636
636
|
}
|
|
637
637
|
const data = await parseBody(output.body, context);
|
|
638
638
|
let contents = {};
|
|
639
|
-
contents =
|
|
639
|
+
contents = de_ListTextTranslationJobsResponse(data, context);
|
|
640
640
|
const response = {
|
|
641
641
|
$metadata: deserializeMetadata(output),
|
|
642
642
|
...contents,
|
|
643
643
|
};
|
|
644
644
|
return Promise.resolve(response);
|
|
645
645
|
};
|
|
646
|
-
const
|
|
646
|
+
const de_ListTextTranslationJobsCommandError = async (output, context) => {
|
|
647
647
|
const parsedOutput = {
|
|
648
648
|
...output,
|
|
649
649
|
body: await parseErrorBody(output.body, context),
|
|
@@ -652,16 +652,16 @@ const deserializeAws_json1_1ListTextTranslationJobsCommandError = async (output,
|
|
|
652
652
|
switch (errorCode) {
|
|
653
653
|
case "InternalServerException":
|
|
654
654
|
case "com.amazonaws.translate#InternalServerException":
|
|
655
|
-
throw await
|
|
655
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
656
656
|
case "InvalidFilterException":
|
|
657
657
|
case "com.amazonaws.translate#InvalidFilterException":
|
|
658
|
-
throw await
|
|
658
|
+
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
659
659
|
case "InvalidRequestException":
|
|
660
660
|
case "com.amazonaws.translate#InvalidRequestException":
|
|
661
|
-
throw await
|
|
661
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
662
662
|
case "TooManyRequestsException":
|
|
663
663
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
664
|
-
throw await
|
|
664
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
665
665
|
default:
|
|
666
666
|
const parsedBody = parsedOutput.body;
|
|
667
667
|
throwDefaultError({
|
|
@@ -672,20 +672,20 @@ const deserializeAws_json1_1ListTextTranslationJobsCommandError = async (output,
|
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
674
|
};
|
|
675
|
-
export const
|
|
675
|
+
export const de_StartTextTranslationJobCommand = async (output, context) => {
|
|
676
676
|
if (output.statusCode >= 300) {
|
|
677
|
-
return
|
|
677
|
+
return de_StartTextTranslationJobCommandError(output, context);
|
|
678
678
|
}
|
|
679
679
|
const data = await parseBody(output.body, context);
|
|
680
680
|
let contents = {};
|
|
681
|
-
contents =
|
|
681
|
+
contents = de_StartTextTranslationJobResponse(data, context);
|
|
682
682
|
const response = {
|
|
683
683
|
$metadata: deserializeMetadata(output),
|
|
684
684
|
...contents,
|
|
685
685
|
};
|
|
686
686
|
return Promise.resolve(response);
|
|
687
687
|
};
|
|
688
|
-
const
|
|
688
|
+
const de_StartTextTranslationJobCommandError = async (output, context) => {
|
|
689
689
|
const parsedOutput = {
|
|
690
690
|
...output,
|
|
691
691
|
body: await parseErrorBody(output.body, context),
|
|
@@ -694,22 +694,22 @@ const deserializeAws_json1_1StartTextTranslationJobCommandError = async (output,
|
|
|
694
694
|
switch (errorCode) {
|
|
695
695
|
case "InternalServerException":
|
|
696
696
|
case "com.amazonaws.translate#InternalServerException":
|
|
697
|
-
throw await
|
|
697
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
698
698
|
case "InvalidParameterValueException":
|
|
699
699
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
700
|
-
throw await
|
|
700
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
701
701
|
case "InvalidRequestException":
|
|
702
702
|
case "com.amazonaws.translate#InvalidRequestException":
|
|
703
|
-
throw await
|
|
703
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
704
704
|
case "ResourceNotFoundException":
|
|
705
705
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
706
|
-
throw await
|
|
706
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
707
707
|
case "TooManyRequestsException":
|
|
708
708
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
709
|
-
throw await
|
|
709
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
710
710
|
case "UnsupportedLanguagePairException":
|
|
711
711
|
case "com.amazonaws.translate#UnsupportedLanguagePairException":
|
|
712
|
-
throw await
|
|
712
|
+
throw await de_UnsupportedLanguagePairExceptionRes(parsedOutput, context);
|
|
713
713
|
default:
|
|
714
714
|
const parsedBody = parsedOutput.body;
|
|
715
715
|
throwDefaultError({
|
|
@@ -720,20 +720,20 @@ const deserializeAws_json1_1StartTextTranslationJobCommandError = async (output,
|
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
722
|
};
|
|
723
|
-
export const
|
|
723
|
+
export const de_StopTextTranslationJobCommand = async (output, context) => {
|
|
724
724
|
if (output.statusCode >= 300) {
|
|
725
|
-
return
|
|
725
|
+
return de_StopTextTranslationJobCommandError(output, context);
|
|
726
726
|
}
|
|
727
727
|
const data = await parseBody(output.body, context);
|
|
728
728
|
let contents = {};
|
|
729
|
-
contents =
|
|
729
|
+
contents = de_StopTextTranslationJobResponse(data, context);
|
|
730
730
|
const response = {
|
|
731
731
|
$metadata: deserializeMetadata(output),
|
|
732
732
|
...contents,
|
|
733
733
|
};
|
|
734
734
|
return Promise.resolve(response);
|
|
735
735
|
};
|
|
736
|
-
const
|
|
736
|
+
const de_StopTextTranslationJobCommandError = async (output, context) => {
|
|
737
737
|
const parsedOutput = {
|
|
738
738
|
...output,
|
|
739
739
|
body: await parseErrorBody(output.body, context),
|
|
@@ -742,13 +742,13 @@ const deserializeAws_json1_1StopTextTranslationJobCommandError = async (output,
|
|
|
742
742
|
switch (errorCode) {
|
|
743
743
|
case "InternalServerException":
|
|
744
744
|
case "com.amazonaws.translate#InternalServerException":
|
|
745
|
-
throw await
|
|
745
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
746
746
|
case "ResourceNotFoundException":
|
|
747
747
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
748
|
-
throw await
|
|
748
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
749
749
|
case "TooManyRequestsException":
|
|
750
750
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
751
|
-
throw await
|
|
751
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
752
752
|
default:
|
|
753
753
|
const parsedBody = parsedOutput.body;
|
|
754
754
|
throwDefaultError({
|
|
@@ -759,20 +759,20 @@ const deserializeAws_json1_1StopTextTranslationJobCommandError = async (output,
|
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
};
|
|
762
|
-
export const
|
|
762
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
763
763
|
if (output.statusCode >= 300) {
|
|
764
|
-
return
|
|
764
|
+
return de_TagResourceCommandError(output, context);
|
|
765
765
|
}
|
|
766
766
|
const data = await parseBody(output.body, context);
|
|
767
767
|
let contents = {};
|
|
768
|
-
contents =
|
|
768
|
+
contents = de_TagResourceResponse(data, context);
|
|
769
769
|
const response = {
|
|
770
770
|
$metadata: deserializeMetadata(output),
|
|
771
771
|
...contents,
|
|
772
772
|
};
|
|
773
773
|
return Promise.resolve(response);
|
|
774
774
|
};
|
|
775
|
-
const
|
|
775
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
776
776
|
const parsedOutput = {
|
|
777
777
|
...output,
|
|
778
778
|
body: await parseErrorBody(output.body, context),
|
|
@@ -781,19 +781,19 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
781
781
|
switch (errorCode) {
|
|
782
782
|
case "ConcurrentModificationException":
|
|
783
783
|
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
784
|
-
throw await
|
|
784
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
785
785
|
case "InternalServerException":
|
|
786
786
|
case "com.amazonaws.translate#InternalServerException":
|
|
787
|
-
throw await
|
|
787
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
788
788
|
case "InvalidParameterValueException":
|
|
789
789
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
790
|
-
throw await
|
|
790
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
791
791
|
case "ResourceNotFoundException":
|
|
792
792
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
793
|
-
throw await
|
|
793
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
794
794
|
case "TooManyTagsException":
|
|
795
795
|
case "com.amazonaws.translate#TooManyTagsException":
|
|
796
|
-
throw await
|
|
796
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
797
797
|
default:
|
|
798
798
|
const parsedBody = parsedOutput.body;
|
|
799
799
|
throwDefaultError({
|
|
@@ -804,20 +804,20 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
806
|
};
|
|
807
|
-
export const
|
|
807
|
+
export const de_TranslateTextCommand = async (output, context) => {
|
|
808
808
|
if (output.statusCode >= 300) {
|
|
809
|
-
return
|
|
809
|
+
return de_TranslateTextCommandError(output, context);
|
|
810
810
|
}
|
|
811
811
|
const data = await parseBody(output.body, context);
|
|
812
812
|
let contents = {};
|
|
813
|
-
contents =
|
|
813
|
+
contents = de_TranslateTextResponse(data, context);
|
|
814
814
|
const response = {
|
|
815
815
|
$metadata: deserializeMetadata(output),
|
|
816
816
|
...contents,
|
|
817
817
|
};
|
|
818
818
|
return Promise.resolve(response);
|
|
819
819
|
};
|
|
820
|
-
const
|
|
820
|
+
const de_TranslateTextCommandError = async (output, context) => {
|
|
821
821
|
const parsedOutput = {
|
|
822
822
|
...output,
|
|
823
823
|
body: await parseErrorBody(output.body, context),
|
|
@@ -826,28 +826,28 @@ const deserializeAws_json1_1TranslateTextCommandError = async (output, context)
|
|
|
826
826
|
switch (errorCode) {
|
|
827
827
|
case "DetectedLanguageLowConfidenceException":
|
|
828
828
|
case "com.amazonaws.translate#DetectedLanguageLowConfidenceException":
|
|
829
|
-
throw await
|
|
829
|
+
throw await de_DetectedLanguageLowConfidenceExceptionRes(parsedOutput, context);
|
|
830
830
|
case "InternalServerException":
|
|
831
831
|
case "com.amazonaws.translate#InternalServerException":
|
|
832
|
-
throw await
|
|
832
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
833
833
|
case "InvalidRequestException":
|
|
834
834
|
case "com.amazonaws.translate#InvalidRequestException":
|
|
835
|
-
throw await
|
|
835
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
836
836
|
case "ResourceNotFoundException":
|
|
837
837
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
838
|
-
throw await
|
|
838
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
839
839
|
case "ServiceUnavailableException":
|
|
840
840
|
case "com.amazonaws.translate#ServiceUnavailableException":
|
|
841
|
-
throw await
|
|
841
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
842
842
|
case "TextSizeLimitExceededException":
|
|
843
843
|
case "com.amazonaws.translate#TextSizeLimitExceededException":
|
|
844
|
-
throw await
|
|
844
|
+
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
845
845
|
case "TooManyRequestsException":
|
|
846
846
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
847
|
-
throw await
|
|
847
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
848
848
|
case "UnsupportedLanguagePairException":
|
|
849
849
|
case "com.amazonaws.translate#UnsupportedLanguagePairException":
|
|
850
|
-
throw await
|
|
850
|
+
throw await de_UnsupportedLanguagePairExceptionRes(parsedOutput, context);
|
|
851
851
|
default:
|
|
852
852
|
const parsedBody = parsedOutput.body;
|
|
853
853
|
throwDefaultError({
|
|
@@ -858,20 +858,20 @@ const deserializeAws_json1_1TranslateTextCommandError = async (output, context)
|
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
860
|
};
|
|
861
|
-
export const
|
|
861
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
862
862
|
if (output.statusCode >= 300) {
|
|
863
|
-
return
|
|
863
|
+
return de_UntagResourceCommandError(output, context);
|
|
864
864
|
}
|
|
865
865
|
const data = await parseBody(output.body, context);
|
|
866
866
|
let contents = {};
|
|
867
|
-
contents =
|
|
867
|
+
contents = de_UntagResourceResponse(data, context);
|
|
868
868
|
const response = {
|
|
869
869
|
$metadata: deserializeMetadata(output),
|
|
870
870
|
...contents,
|
|
871
871
|
};
|
|
872
872
|
return Promise.resolve(response);
|
|
873
873
|
};
|
|
874
|
-
const
|
|
874
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
875
875
|
const parsedOutput = {
|
|
876
876
|
...output,
|
|
877
877
|
body: await parseErrorBody(output.body, context),
|
|
@@ -880,16 +880,16 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
880
880
|
switch (errorCode) {
|
|
881
881
|
case "ConcurrentModificationException":
|
|
882
882
|
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
883
|
-
throw await
|
|
883
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
884
884
|
case "InternalServerException":
|
|
885
885
|
case "com.amazonaws.translate#InternalServerException":
|
|
886
|
-
throw await
|
|
886
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
887
887
|
case "InvalidParameterValueException":
|
|
888
888
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
889
|
-
throw await
|
|
889
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
890
890
|
case "ResourceNotFoundException":
|
|
891
891
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
892
|
-
throw await
|
|
892
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
893
893
|
default:
|
|
894
894
|
const parsedBody = parsedOutput.body;
|
|
895
895
|
throwDefaultError({
|
|
@@ -900,20 +900,20 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
902
|
};
|
|
903
|
-
export const
|
|
903
|
+
export const de_UpdateParallelDataCommand = async (output, context) => {
|
|
904
904
|
if (output.statusCode >= 300) {
|
|
905
|
-
return
|
|
905
|
+
return de_UpdateParallelDataCommandError(output, context);
|
|
906
906
|
}
|
|
907
907
|
const data = await parseBody(output.body, context);
|
|
908
908
|
let contents = {};
|
|
909
|
-
contents =
|
|
909
|
+
contents = de_UpdateParallelDataResponse(data, context);
|
|
910
910
|
const response = {
|
|
911
911
|
$metadata: deserializeMetadata(output),
|
|
912
912
|
...contents,
|
|
913
913
|
};
|
|
914
914
|
return Promise.resolve(response);
|
|
915
915
|
};
|
|
916
|
-
const
|
|
916
|
+
const de_UpdateParallelDataCommandError = async (output, context) => {
|
|
917
917
|
const parsedOutput = {
|
|
918
918
|
...output,
|
|
919
919
|
body: await parseErrorBody(output.body, context),
|
|
@@ -922,28 +922,28 @@ const deserializeAws_json1_1UpdateParallelDataCommandError = async (output, cont
|
|
|
922
922
|
switch (errorCode) {
|
|
923
923
|
case "ConcurrentModificationException":
|
|
924
924
|
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
925
|
-
throw await
|
|
925
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
926
926
|
case "ConflictException":
|
|
927
927
|
case "com.amazonaws.translate#ConflictException":
|
|
928
|
-
throw await
|
|
928
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
929
929
|
case "InternalServerException":
|
|
930
930
|
case "com.amazonaws.translate#InternalServerException":
|
|
931
|
-
throw await
|
|
931
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
932
932
|
case "InvalidParameterValueException":
|
|
933
933
|
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
934
|
-
throw await
|
|
934
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
935
935
|
case "InvalidRequestException":
|
|
936
936
|
case "com.amazonaws.translate#InvalidRequestException":
|
|
937
|
-
throw await
|
|
937
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
938
938
|
case "LimitExceededException":
|
|
939
939
|
case "com.amazonaws.translate#LimitExceededException":
|
|
940
|
-
throw await
|
|
940
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
941
941
|
case "ResourceNotFoundException":
|
|
942
942
|
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
943
|
-
throw await
|
|
943
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
944
944
|
case "TooManyRequestsException":
|
|
945
945
|
case "com.amazonaws.translate#TooManyRequestsException":
|
|
946
|
-
throw await
|
|
946
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
947
947
|
default:
|
|
948
948
|
const parsedBody = parsedOutput.body;
|
|
949
949
|
throwDefaultError({
|
|
@@ -954,329 +954,315 @@ const deserializeAws_json1_1UpdateParallelDataCommandError = async (output, cont
|
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
956
|
};
|
|
957
|
-
const
|
|
957
|
+
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
958
958
|
const body = parsedOutput.body;
|
|
959
|
-
const deserialized =
|
|
959
|
+
const deserialized = de_ConcurrentModificationException(body, context);
|
|
960
960
|
const exception = new ConcurrentModificationException({
|
|
961
961
|
$metadata: deserializeMetadata(parsedOutput),
|
|
962
962
|
...deserialized,
|
|
963
963
|
});
|
|
964
964
|
return __decorateServiceException(exception, body);
|
|
965
965
|
};
|
|
966
|
-
const
|
|
966
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
967
967
|
const body = parsedOutput.body;
|
|
968
|
-
const deserialized =
|
|
968
|
+
const deserialized = de_ConflictException(body, context);
|
|
969
969
|
const exception = new ConflictException({
|
|
970
970
|
$metadata: deserializeMetadata(parsedOutput),
|
|
971
971
|
...deserialized,
|
|
972
972
|
});
|
|
973
973
|
return __decorateServiceException(exception, body);
|
|
974
974
|
};
|
|
975
|
-
const
|
|
975
|
+
const de_DetectedLanguageLowConfidenceExceptionRes = async (parsedOutput, context) => {
|
|
976
976
|
const body = parsedOutput.body;
|
|
977
|
-
const deserialized =
|
|
977
|
+
const deserialized = de_DetectedLanguageLowConfidenceException(body, context);
|
|
978
978
|
const exception = new DetectedLanguageLowConfidenceException({
|
|
979
979
|
$metadata: deserializeMetadata(parsedOutput),
|
|
980
980
|
...deserialized,
|
|
981
981
|
});
|
|
982
982
|
return __decorateServiceException(exception, body);
|
|
983
983
|
};
|
|
984
|
-
const
|
|
984
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
985
985
|
const body = parsedOutput.body;
|
|
986
|
-
const deserialized =
|
|
986
|
+
const deserialized = de_InternalServerException(body, context);
|
|
987
987
|
const exception = new InternalServerException({
|
|
988
988
|
$metadata: deserializeMetadata(parsedOutput),
|
|
989
989
|
...deserialized,
|
|
990
990
|
});
|
|
991
991
|
return __decorateServiceException(exception, body);
|
|
992
992
|
};
|
|
993
|
-
const
|
|
993
|
+
const de_InvalidFilterExceptionRes = async (parsedOutput, context) => {
|
|
994
994
|
const body = parsedOutput.body;
|
|
995
|
-
const deserialized =
|
|
995
|
+
const deserialized = de_InvalidFilterException(body, context);
|
|
996
996
|
const exception = new InvalidFilterException({
|
|
997
997
|
$metadata: deserializeMetadata(parsedOutput),
|
|
998
998
|
...deserialized,
|
|
999
999
|
});
|
|
1000
1000
|
return __decorateServiceException(exception, body);
|
|
1001
1001
|
};
|
|
1002
|
-
const
|
|
1002
|
+
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
1003
1003
|
const body = parsedOutput.body;
|
|
1004
|
-
const deserialized =
|
|
1004
|
+
const deserialized = de_InvalidParameterValueException(body, context);
|
|
1005
1005
|
const exception = new InvalidParameterValueException({
|
|
1006
1006
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1007
1007
|
...deserialized,
|
|
1008
1008
|
});
|
|
1009
1009
|
return __decorateServiceException(exception, body);
|
|
1010
1010
|
};
|
|
1011
|
-
const
|
|
1011
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1012
1012
|
const body = parsedOutput.body;
|
|
1013
|
-
const deserialized =
|
|
1013
|
+
const deserialized = de_InvalidRequestException(body, context);
|
|
1014
1014
|
const exception = new InvalidRequestException({
|
|
1015
1015
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1016
1016
|
...deserialized,
|
|
1017
1017
|
});
|
|
1018
1018
|
return __decorateServiceException(exception, body);
|
|
1019
1019
|
};
|
|
1020
|
-
const
|
|
1020
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1021
1021
|
const body = parsedOutput.body;
|
|
1022
|
-
const deserialized =
|
|
1022
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
1023
1023
|
const exception = new LimitExceededException({
|
|
1024
1024
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1025
1025
|
...deserialized,
|
|
1026
1026
|
});
|
|
1027
1027
|
return __decorateServiceException(exception, body);
|
|
1028
1028
|
};
|
|
1029
|
-
const
|
|
1029
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1030
1030
|
const body = parsedOutput.body;
|
|
1031
|
-
const deserialized =
|
|
1031
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1032
1032
|
const exception = new ResourceNotFoundException({
|
|
1033
1033
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1034
1034
|
...deserialized,
|
|
1035
1035
|
});
|
|
1036
1036
|
return __decorateServiceException(exception, body);
|
|
1037
1037
|
};
|
|
1038
|
-
const
|
|
1038
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1039
1039
|
const body = parsedOutput.body;
|
|
1040
|
-
const deserialized =
|
|
1040
|
+
const deserialized = de_ServiceUnavailableException(body, context);
|
|
1041
1041
|
const exception = new ServiceUnavailableException({
|
|
1042
1042
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1043
1043
|
...deserialized,
|
|
1044
1044
|
});
|
|
1045
1045
|
return __decorateServiceException(exception, body);
|
|
1046
1046
|
};
|
|
1047
|
-
const
|
|
1047
|
+
const de_TextSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1048
1048
|
const body = parsedOutput.body;
|
|
1049
|
-
const deserialized =
|
|
1049
|
+
const deserialized = de_TextSizeLimitExceededException(body, context);
|
|
1050
1050
|
const exception = new TextSizeLimitExceededException({
|
|
1051
1051
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1052
1052
|
...deserialized,
|
|
1053
1053
|
});
|
|
1054
1054
|
return __decorateServiceException(exception, body);
|
|
1055
1055
|
};
|
|
1056
|
-
const
|
|
1056
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1057
1057
|
const body = parsedOutput.body;
|
|
1058
|
-
const deserialized =
|
|
1058
|
+
const deserialized = de_TooManyRequestsException(body, context);
|
|
1059
1059
|
const exception = new TooManyRequestsException({
|
|
1060
1060
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1061
1061
|
...deserialized,
|
|
1062
1062
|
});
|
|
1063
1063
|
return __decorateServiceException(exception, body);
|
|
1064
1064
|
};
|
|
1065
|
-
const
|
|
1065
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1066
1066
|
const body = parsedOutput.body;
|
|
1067
|
-
const deserialized =
|
|
1067
|
+
const deserialized = de_TooManyTagsException(body, context);
|
|
1068
1068
|
const exception = new TooManyTagsException({
|
|
1069
1069
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1070
1070
|
...deserialized,
|
|
1071
1071
|
});
|
|
1072
1072
|
return __decorateServiceException(exception, body);
|
|
1073
1073
|
};
|
|
1074
|
-
const
|
|
1074
|
+
const de_UnsupportedDisplayLanguageCodeExceptionRes = async (parsedOutput, context) => {
|
|
1075
1075
|
const body = parsedOutput.body;
|
|
1076
|
-
const deserialized =
|
|
1076
|
+
const deserialized = de_UnsupportedDisplayLanguageCodeException(body, context);
|
|
1077
1077
|
const exception = new UnsupportedDisplayLanguageCodeException({
|
|
1078
1078
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1079
1079
|
...deserialized,
|
|
1080
1080
|
});
|
|
1081
1081
|
return __decorateServiceException(exception, body);
|
|
1082
1082
|
};
|
|
1083
|
-
const
|
|
1083
|
+
const de_UnsupportedLanguagePairExceptionRes = async (parsedOutput, context) => {
|
|
1084
1084
|
const body = parsedOutput.body;
|
|
1085
|
-
const deserialized =
|
|
1085
|
+
const deserialized = de_UnsupportedLanguagePairException(body, context);
|
|
1086
1086
|
const exception = new UnsupportedLanguagePairException({
|
|
1087
1087
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1088
1088
|
...deserialized,
|
|
1089
1089
|
});
|
|
1090
1090
|
return __decorateServiceException(exception, body);
|
|
1091
1091
|
};
|
|
1092
|
-
const
|
|
1092
|
+
const se_CreateParallelDataRequest = (input, context) => {
|
|
1093
1093
|
return {
|
|
1094
1094
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1095
1095
|
...(input.Description != null && { Description: input.Description }),
|
|
1096
|
-
...(input.EncryptionKey != null && {
|
|
1097
|
-
EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context),
|
|
1098
|
-
}),
|
|
1096
|
+
...(input.EncryptionKey != null && { EncryptionKey: se_EncryptionKey(input.EncryptionKey, context) }),
|
|
1099
1097
|
...(input.Name != null && { Name: input.Name }),
|
|
1100
1098
|
...(input.ParallelDataConfig != null && {
|
|
1101
|
-
ParallelDataConfig:
|
|
1099
|
+
ParallelDataConfig: se_ParallelDataConfig(input.ParallelDataConfig, context),
|
|
1102
1100
|
}),
|
|
1103
|
-
...(input.Tags != null && { Tags:
|
|
1101
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1104
1102
|
};
|
|
1105
1103
|
};
|
|
1106
|
-
const
|
|
1104
|
+
const se_DeleteParallelDataRequest = (input, context) => {
|
|
1107
1105
|
return {
|
|
1108
1106
|
...(input.Name != null && { Name: input.Name }),
|
|
1109
1107
|
};
|
|
1110
1108
|
};
|
|
1111
|
-
const
|
|
1109
|
+
const se_DeleteTerminologyRequest = (input, context) => {
|
|
1112
1110
|
return {
|
|
1113
1111
|
...(input.Name != null && { Name: input.Name }),
|
|
1114
1112
|
};
|
|
1115
1113
|
};
|
|
1116
|
-
const
|
|
1114
|
+
const se_DescribeTextTranslationJobRequest = (input, context) => {
|
|
1117
1115
|
return {
|
|
1118
1116
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
1119
1117
|
};
|
|
1120
1118
|
};
|
|
1121
|
-
const
|
|
1119
|
+
const se_EncryptionKey = (input, context) => {
|
|
1122
1120
|
return {
|
|
1123
1121
|
...(input.Id != null && { Id: input.Id }),
|
|
1124
1122
|
...(input.Type != null && { Type: input.Type }),
|
|
1125
1123
|
};
|
|
1126
1124
|
};
|
|
1127
|
-
const
|
|
1125
|
+
const se_GetParallelDataRequest = (input, context) => {
|
|
1128
1126
|
return {
|
|
1129
1127
|
...(input.Name != null && { Name: input.Name }),
|
|
1130
1128
|
};
|
|
1131
1129
|
};
|
|
1132
|
-
const
|
|
1130
|
+
const se_GetTerminologyRequest = (input, context) => {
|
|
1133
1131
|
return {
|
|
1134
1132
|
...(input.Name != null && { Name: input.Name }),
|
|
1135
1133
|
...(input.TerminologyDataFormat != null && { TerminologyDataFormat: input.TerminologyDataFormat }),
|
|
1136
1134
|
};
|
|
1137
1135
|
};
|
|
1138
|
-
const
|
|
1136
|
+
const se_ImportTerminologyRequest = (input, context) => {
|
|
1139
1137
|
return {
|
|
1140
1138
|
...(input.Description != null && { Description: input.Description }),
|
|
1141
|
-
...(input.EncryptionKey != null && {
|
|
1142
|
-
EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context),
|
|
1143
|
-
}),
|
|
1139
|
+
...(input.EncryptionKey != null && { EncryptionKey: se_EncryptionKey(input.EncryptionKey, context) }),
|
|
1144
1140
|
...(input.MergeStrategy != null && { MergeStrategy: input.MergeStrategy }),
|
|
1145
1141
|
...(input.Name != null && { Name: input.Name }),
|
|
1146
|
-
...(input.Tags != null && { Tags:
|
|
1147
|
-
...(input.TerminologyData != null && {
|
|
1148
|
-
TerminologyData: serializeAws_json1_1TerminologyData(input.TerminologyData, context),
|
|
1149
|
-
}),
|
|
1142
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1143
|
+
...(input.TerminologyData != null && { TerminologyData: se_TerminologyData(input.TerminologyData, context) }),
|
|
1150
1144
|
};
|
|
1151
1145
|
};
|
|
1152
|
-
const
|
|
1146
|
+
const se_InputDataConfig = (input, context) => {
|
|
1153
1147
|
return {
|
|
1154
1148
|
...(input.ContentType != null && { ContentType: input.ContentType }),
|
|
1155
1149
|
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1156
1150
|
};
|
|
1157
1151
|
};
|
|
1158
|
-
const
|
|
1152
|
+
const se_ListLanguagesRequest = (input, context) => {
|
|
1159
1153
|
return {
|
|
1160
1154
|
...(input.DisplayLanguageCode != null && { DisplayLanguageCode: input.DisplayLanguageCode }),
|
|
1161
1155
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1162
1156
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1163
1157
|
};
|
|
1164
1158
|
};
|
|
1165
|
-
const
|
|
1159
|
+
const se_ListParallelDataRequest = (input, context) => {
|
|
1166
1160
|
return {
|
|
1167
1161
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1168
1162
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1169
1163
|
};
|
|
1170
1164
|
};
|
|
1171
|
-
const
|
|
1165
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1172
1166
|
return {
|
|
1173
1167
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1174
1168
|
};
|
|
1175
1169
|
};
|
|
1176
|
-
const
|
|
1170
|
+
const se_ListTerminologiesRequest = (input, context) => {
|
|
1177
1171
|
return {
|
|
1178
1172
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1179
1173
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1180
1174
|
};
|
|
1181
1175
|
};
|
|
1182
|
-
const
|
|
1176
|
+
const se_ListTextTranslationJobsRequest = (input, context) => {
|
|
1183
1177
|
return {
|
|
1184
|
-
...(input.Filter != null && { Filter:
|
|
1178
|
+
...(input.Filter != null && { Filter: se_TextTranslationJobFilter(input.Filter, context) }),
|
|
1185
1179
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1186
1180
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1187
1181
|
};
|
|
1188
1182
|
};
|
|
1189
|
-
const
|
|
1183
|
+
const se_OutputDataConfig = (input, context) => {
|
|
1190
1184
|
return {
|
|
1191
|
-
...(input.EncryptionKey != null && {
|
|
1192
|
-
EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context),
|
|
1193
|
-
}),
|
|
1185
|
+
...(input.EncryptionKey != null && { EncryptionKey: se_EncryptionKey(input.EncryptionKey, context) }),
|
|
1194
1186
|
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1195
1187
|
};
|
|
1196
1188
|
};
|
|
1197
|
-
const
|
|
1189
|
+
const se_ParallelDataConfig = (input, context) => {
|
|
1198
1190
|
return {
|
|
1199
1191
|
...(input.Format != null && { Format: input.Format }),
|
|
1200
1192
|
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1201
1193
|
};
|
|
1202
1194
|
};
|
|
1203
|
-
const
|
|
1195
|
+
const se_ResourceNameList = (input, context) => {
|
|
1204
1196
|
return input
|
|
1205
1197
|
.filter((e) => e != null)
|
|
1206
1198
|
.map((entry) => {
|
|
1207
1199
|
return entry;
|
|
1208
1200
|
});
|
|
1209
1201
|
};
|
|
1210
|
-
const
|
|
1202
|
+
const se_StartTextTranslationJobRequest = (input, context) => {
|
|
1211
1203
|
return {
|
|
1212
1204
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1213
1205
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1214
|
-
...(input.InputDataConfig != null && {
|
|
1215
|
-
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
1216
|
-
}),
|
|
1206
|
+
...(input.InputDataConfig != null && { InputDataConfig: se_InputDataConfig(input.InputDataConfig, context) }),
|
|
1217
1207
|
...(input.JobName != null && { JobName: input.JobName }),
|
|
1218
|
-
...(input.OutputDataConfig != null && {
|
|
1219
|
-
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
1220
|
-
}),
|
|
1208
|
+
...(input.OutputDataConfig != null && { OutputDataConfig: se_OutputDataConfig(input.OutputDataConfig, context) }),
|
|
1221
1209
|
...(input.ParallelDataNames != null && {
|
|
1222
|
-
ParallelDataNames:
|
|
1210
|
+
ParallelDataNames: se_ResourceNameList(input.ParallelDataNames, context),
|
|
1223
1211
|
}),
|
|
1224
|
-
...(input.Settings != null && { Settings:
|
|
1212
|
+
...(input.Settings != null && { Settings: se_TranslationSettings(input.Settings, context) }),
|
|
1225
1213
|
...(input.SourceLanguageCode != null && { SourceLanguageCode: input.SourceLanguageCode }),
|
|
1226
1214
|
...(input.TargetLanguageCodes != null && {
|
|
1227
|
-
TargetLanguageCodes:
|
|
1228
|
-
}),
|
|
1229
|
-
...(input.TerminologyNames != null && {
|
|
1230
|
-
TerminologyNames: serializeAws_json1_1ResourceNameList(input.TerminologyNames, context),
|
|
1215
|
+
TargetLanguageCodes: se_TargetLanguageCodeStringList(input.TargetLanguageCodes, context),
|
|
1231
1216
|
}),
|
|
1217
|
+
...(input.TerminologyNames != null && { TerminologyNames: se_ResourceNameList(input.TerminologyNames, context) }),
|
|
1232
1218
|
};
|
|
1233
1219
|
};
|
|
1234
|
-
const
|
|
1220
|
+
const se_StopTextTranslationJobRequest = (input, context) => {
|
|
1235
1221
|
return {
|
|
1236
1222
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
1237
1223
|
};
|
|
1238
1224
|
};
|
|
1239
|
-
const
|
|
1225
|
+
const se_Tag = (input, context) => {
|
|
1240
1226
|
return {
|
|
1241
1227
|
...(input.Key != null && { Key: input.Key }),
|
|
1242
1228
|
...(input.Value != null && { Value: input.Value }),
|
|
1243
1229
|
};
|
|
1244
1230
|
};
|
|
1245
|
-
const
|
|
1231
|
+
const se_TagKeyList = (input, context) => {
|
|
1246
1232
|
return input
|
|
1247
1233
|
.filter((e) => e != null)
|
|
1248
1234
|
.map((entry) => {
|
|
1249
1235
|
return entry;
|
|
1250
1236
|
});
|
|
1251
1237
|
};
|
|
1252
|
-
const
|
|
1238
|
+
const se_TagList = (input, context) => {
|
|
1253
1239
|
return input
|
|
1254
1240
|
.filter((e) => e != null)
|
|
1255
1241
|
.map((entry) => {
|
|
1256
|
-
return
|
|
1242
|
+
return se_Tag(entry, context);
|
|
1257
1243
|
});
|
|
1258
1244
|
};
|
|
1259
|
-
const
|
|
1245
|
+
const se_TagResourceRequest = (input, context) => {
|
|
1260
1246
|
return {
|
|
1261
1247
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1262
|
-
...(input.Tags != null && { Tags:
|
|
1248
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1263
1249
|
};
|
|
1264
1250
|
};
|
|
1265
|
-
const
|
|
1251
|
+
const se_TargetLanguageCodeStringList = (input, context) => {
|
|
1266
1252
|
return input
|
|
1267
1253
|
.filter((e) => e != null)
|
|
1268
1254
|
.map((entry) => {
|
|
1269
1255
|
return entry;
|
|
1270
1256
|
});
|
|
1271
1257
|
};
|
|
1272
|
-
const
|
|
1258
|
+
const se_TerminologyData = (input, context) => {
|
|
1273
1259
|
return {
|
|
1274
1260
|
...(input.Directionality != null && { Directionality: input.Directionality }),
|
|
1275
1261
|
...(input.File != null && { File: context.base64Encoder(input.File) }),
|
|
1276
1262
|
...(input.Format != null && { Format: input.Format }),
|
|
1277
1263
|
};
|
|
1278
1264
|
};
|
|
1279
|
-
const
|
|
1265
|
+
const se_TextTranslationJobFilter = (input, context) => {
|
|
1280
1266
|
return {
|
|
1281
1267
|
...(input.JobName != null && { JobName: input.JobName }),
|
|
1282
1268
|
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
@@ -1288,176 +1274,172 @@ const serializeAws_json1_1TextTranslationJobFilter = (input, context) => {
|
|
|
1288
1274
|
}),
|
|
1289
1275
|
};
|
|
1290
1276
|
};
|
|
1291
|
-
const
|
|
1277
|
+
const se_TranslateTextRequest = (input, context) => {
|
|
1292
1278
|
return {
|
|
1293
|
-
...(input.Settings != null && { Settings:
|
|
1279
|
+
...(input.Settings != null && { Settings: se_TranslationSettings(input.Settings, context) }),
|
|
1294
1280
|
...(input.SourceLanguageCode != null && { SourceLanguageCode: input.SourceLanguageCode }),
|
|
1295
1281
|
...(input.TargetLanguageCode != null && { TargetLanguageCode: input.TargetLanguageCode }),
|
|
1296
|
-
...(input.TerminologyNames != null && {
|
|
1297
|
-
TerminologyNames: serializeAws_json1_1ResourceNameList(input.TerminologyNames, context),
|
|
1298
|
-
}),
|
|
1282
|
+
...(input.TerminologyNames != null && { TerminologyNames: se_ResourceNameList(input.TerminologyNames, context) }),
|
|
1299
1283
|
...(input.Text != null && { Text: input.Text }),
|
|
1300
1284
|
};
|
|
1301
1285
|
};
|
|
1302
|
-
const
|
|
1286
|
+
const se_TranslationSettings = (input, context) => {
|
|
1303
1287
|
return {
|
|
1304
1288
|
...(input.Formality != null && { Formality: input.Formality }),
|
|
1305
1289
|
...(input.Profanity != null && { Profanity: input.Profanity }),
|
|
1306
1290
|
};
|
|
1307
1291
|
};
|
|
1308
|
-
const
|
|
1292
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
1309
1293
|
return {
|
|
1310
1294
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1311
|
-
...(input.TagKeys != null && { TagKeys:
|
|
1295
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1312
1296
|
};
|
|
1313
1297
|
};
|
|
1314
|
-
const
|
|
1298
|
+
const se_UpdateParallelDataRequest = (input, context) => {
|
|
1315
1299
|
return {
|
|
1316
1300
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1317
1301
|
...(input.Description != null && { Description: input.Description }),
|
|
1318
1302
|
...(input.Name != null && { Name: input.Name }),
|
|
1319
1303
|
...(input.ParallelDataConfig != null && {
|
|
1320
|
-
ParallelDataConfig:
|
|
1304
|
+
ParallelDataConfig: se_ParallelDataConfig(input.ParallelDataConfig, context),
|
|
1321
1305
|
}),
|
|
1322
1306
|
};
|
|
1323
1307
|
};
|
|
1324
|
-
const
|
|
1308
|
+
const de_AppliedTerminology = (output, context) => {
|
|
1325
1309
|
return {
|
|
1326
1310
|
Name: __expectString(output.Name),
|
|
1327
|
-
Terms: output.Terms != null ?
|
|
1311
|
+
Terms: output.Terms != null ? de_TermList(output.Terms, context) : undefined,
|
|
1328
1312
|
};
|
|
1329
1313
|
};
|
|
1330
|
-
const
|
|
1314
|
+
const de_AppliedTerminologyList = (output, context) => {
|
|
1331
1315
|
const retVal = (output || [])
|
|
1332
1316
|
.filter((e) => e != null)
|
|
1333
1317
|
.map((entry) => {
|
|
1334
1318
|
if (entry === null) {
|
|
1335
1319
|
return null;
|
|
1336
1320
|
}
|
|
1337
|
-
return
|
|
1321
|
+
return de_AppliedTerminology(entry, context);
|
|
1338
1322
|
});
|
|
1339
1323
|
return retVal;
|
|
1340
1324
|
};
|
|
1341
|
-
const
|
|
1325
|
+
const de_ConcurrentModificationException = (output, context) => {
|
|
1342
1326
|
return {
|
|
1343
1327
|
Message: __expectString(output.Message),
|
|
1344
1328
|
};
|
|
1345
1329
|
};
|
|
1346
|
-
const
|
|
1330
|
+
const de_ConflictException = (output, context) => {
|
|
1347
1331
|
return {
|
|
1348
1332
|
Message: __expectString(output.Message),
|
|
1349
1333
|
};
|
|
1350
1334
|
};
|
|
1351
|
-
const
|
|
1335
|
+
const de_CreateParallelDataResponse = (output, context) => {
|
|
1352
1336
|
return {
|
|
1353
1337
|
Name: __expectString(output.Name),
|
|
1354
1338
|
Status: __expectString(output.Status),
|
|
1355
1339
|
};
|
|
1356
1340
|
};
|
|
1357
|
-
const
|
|
1341
|
+
const de_DeleteParallelDataResponse = (output, context) => {
|
|
1358
1342
|
return {
|
|
1359
1343
|
Name: __expectString(output.Name),
|
|
1360
1344
|
Status: __expectString(output.Status),
|
|
1361
1345
|
};
|
|
1362
1346
|
};
|
|
1363
|
-
const
|
|
1347
|
+
const de_DescribeTextTranslationJobResponse = (output, context) => {
|
|
1364
1348
|
return {
|
|
1365
1349
|
TextTranslationJobProperties: output.TextTranslationJobProperties != null
|
|
1366
|
-
?
|
|
1350
|
+
? de_TextTranslationJobProperties(output.TextTranslationJobProperties, context)
|
|
1367
1351
|
: undefined,
|
|
1368
1352
|
};
|
|
1369
1353
|
};
|
|
1370
|
-
const
|
|
1354
|
+
const de_DetectedLanguageLowConfidenceException = (output, context) => {
|
|
1371
1355
|
return {
|
|
1372
1356
|
DetectedLanguageCode: __expectString(output.DetectedLanguageCode),
|
|
1373
1357
|
Message: __expectString(output.Message),
|
|
1374
1358
|
};
|
|
1375
1359
|
};
|
|
1376
|
-
const
|
|
1360
|
+
const de_EncryptionKey = (output, context) => {
|
|
1377
1361
|
return {
|
|
1378
1362
|
Id: __expectString(output.Id),
|
|
1379
1363
|
Type: __expectString(output.Type),
|
|
1380
1364
|
};
|
|
1381
1365
|
};
|
|
1382
|
-
const
|
|
1366
|
+
const de_GetParallelDataResponse = (output, context) => {
|
|
1383
1367
|
return {
|
|
1384
1368
|
AuxiliaryDataLocation: output.AuxiliaryDataLocation != null
|
|
1385
|
-
?
|
|
1386
|
-
: undefined,
|
|
1387
|
-
DataLocation: output.DataLocation != null
|
|
1388
|
-
? deserializeAws_json1_1ParallelDataDataLocation(output.DataLocation, context)
|
|
1369
|
+
? de_ParallelDataDataLocation(output.AuxiliaryDataLocation, context)
|
|
1389
1370
|
: undefined,
|
|
1371
|
+
DataLocation: output.DataLocation != null ? de_ParallelDataDataLocation(output.DataLocation, context) : undefined,
|
|
1390
1372
|
LatestUpdateAttemptAuxiliaryDataLocation: output.LatestUpdateAttemptAuxiliaryDataLocation != null
|
|
1391
|
-
?
|
|
1373
|
+
? de_ParallelDataDataLocation(output.LatestUpdateAttemptAuxiliaryDataLocation, context)
|
|
1392
1374
|
: undefined,
|
|
1393
1375
|
ParallelDataProperties: output.ParallelDataProperties != null
|
|
1394
|
-
?
|
|
1376
|
+
? de_ParallelDataProperties(output.ParallelDataProperties, context)
|
|
1395
1377
|
: undefined,
|
|
1396
1378
|
};
|
|
1397
1379
|
};
|
|
1398
|
-
const
|
|
1380
|
+
const de_GetTerminologyResponse = (output, context) => {
|
|
1399
1381
|
return {
|
|
1400
1382
|
AuxiliaryDataLocation: output.AuxiliaryDataLocation != null
|
|
1401
|
-
?
|
|
1383
|
+
? de_TerminologyDataLocation(output.AuxiliaryDataLocation, context)
|
|
1402
1384
|
: undefined,
|
|
1403
1385
|
TerminologyDataLocation: output.TerminologyDataLocation != null
|
|
1404
|
-
?
|
|
1386
|
+
? de_TerminologyDataLocation(output.TerminologyDataLocation, context)
|
|
1405
1387
|
: undefined,
|
|
1406
1388
|
TerminologyProperties: output.TerminologyProperties != null
|
|
1407
|
-
?
|
|
1389
|
+
? de_TerminologyProperties(output.TerminologyProperties, context)
|
|
1408
1390
|
: undefined,
|
|
1409
1391
|
};
|
|
1410
1392
|
};
|
|
1411
|
-
const
|
|
1393
|
+
const de_ImportTerminologyResponse = (output, context) => {
|
|
1412
1394
|
return {
|
|
1413
1395
|
AuxiliaryDataLocation: output.AuxiliaryDataLocation != null
|
|
1414
|
-
?
|
|
1396
|
+
? de_TerminologyDataLocation(output.AuxiliaryDataLocation, context)
|
|
1415
1397
|
: undefined,
|
|
1416
1398
|
TerminologyProperties: output.TerminologyProperties != null
|
|
1417
|
-
?
|
|
1399
|
+
? de_TerminologyProperties(output.TerminologyProperties, context)
|
|
1418
1400
|
: undefined,
|
|
1419
1401
|
};
|
|
1420
1402
|
};
|
|
1421
|
-
const
|
|
1403
|
+
const de_InputDataConfig = (output, context) => {
|
|
1422
1404
|
return {
|
|
1423
1405
|
ContentType: __expectString(output.ContentType),
|
|
1424
1406
|
S3Uri: __expectString(output.S3Uri),
|
|
1425
1407
|
};
|
|
1426
1408
|
};
|
|
1427
|
-
const
|
|
1409
|
+
const de_InternalServerException = (output, context) => {
|
|
1428
1410
|
return {
|
|
1429
1411
|
Message: __expectString(output.Message),
|
|
1430
1412
|
};
|
|
1431
1413
|
};
|
|
1432
|
-
const
|
|
1414
|
+
const de_InvalidFilterException = (output, context) => {
|
|
1433
1415
|
return {
|
|
1434
1416
|
Message: __expectString(output.Message),
|
|
1435
1417
|
};
|
|
1436
1418
|
};
|
|
1437
|
-
const
|
|
1419
|
+
const de_InvalidParameterValueException = (output, context) => {
|
|
1438
1420
|
return {
|
|
1439
1421
|
Message: __expectString(output.Message),
|
|
1440
1422
|
};
|
|
1441
1423
|
};
|
|
1442
|
-
const
|
|
1424
|
+
const de_InvalidRequestException = (output, context) => {
|
|
1443
1425
|
return {
|
|
1444
1426
|
Message: __expectString(output.Message),
|
|
1445
1427
|
};
|
|
1446
1428
|
};
|
|
1447
|
-
const
|
|
1429
|
+
const de_JobDetails = (output, context) => {
|
|
1448
1430
|
return {
|
|
1449
1431
|
DocumentsWithErrorsCount: __expectInt32(output.DocumentsWithErrorsCount),
|
|
1450
1432
|
InputDocumentsCount: __expectInt32(output.InputDocumentsCount),
|
|
1451
1433
|
TranslatedDocumentsCount: __expectInt32(output.TranslatedDocumentsCount),
|
|
1452
1434
|
};
|
|
1453
1435
|
};
|
|
1454
|
-
const
|
|
1436
|
+
const de_Language = (output, context) => {
|
|
1455
1437
|
return {
|
|
1456
1438
|
LanguageCode: __expectString(output.LanguageCode),
|
|
1457
1439
|
LanguageName: __expectString(output.LanguageName),
|
|
1458
1440
|
};
|
|
1459
1441
|
};
|
|
1460
|
-
const
|
|
1442
|
+
const de_LanguageCodeStringList = (output, context) => {
|
|
1461
1443
|
const retVal = (output || [])
|
|
1462
1444
|
.filter((e) => e != null)
|
|
1463
1445
|
.map((entry) => {
|
|
@@ -1468,82 +1450,82 @@ const deserializeAws_json1_1LanguageCodeStringList = (output, context) => {
|
|
|
1468
1450
|
});
|
|
1469
1451
|
return retVal;
|
|
1470
1452
|
};
|
|
1471
|
-
const
|
|
1453
|
+
const de_LanguagesList = (output, context) => {
|
|
1472
1454
|
const retVal = (output || [])
|
|
1473
1455
|
.filter((e) => e != null)
|
|
1474
1456
|
.map((entry) => {
|
|
1475
1457
|
if (entry === null) {
|
|
1476
1458
|
return null;
|
|
1477
1459
|
}
|
|
1478
|
-
return
|
|
1460
|
+
return de_Language(entry, context);
|
|
1479
1461
|
});
|
|
1480
1462
|
return retVal;
|
|
1481
1463
|
};
|
|
1482
|
-
const
|
|
1464
|
+
const de_LimitExceededException = (output, context) => {
|
|
1483
1465
|
return {
|
|
1484
1466
|
Message: __expectString(output.Message),
|
|
1485
1467
|
};
|
|
1486
1468
|
};
|
|
1487
|
-
const
|
|
1469
|
+
const de_ListLanguagesResponse = (output, context) => {
|
|
1488
1470
|
return {
|
|
1489
1471
|
DisplayLanguageCode: __expectString(output.DisplayLanguageCode),
|
|
1490
|
-
Languages: output.Languages != null ?
|
|
1472
|
+
Languages: output.Languages != null ? de_LanguagesList(output.Languages, context) : undefined,
|
|
1491
1473
|
NextToken: __expectString(output.NextToken),
|
|
1492
1474
|
};
|
|
1493
1475
|
};
|
|
1494
|
-
const
|
|
1476
|
+
const de_ListParallelDataResponse = (output, context) => {
|
|
1495
1477
|
return {
|
|
1496
1478
|
NextToken: __expectString(output.NextToken),
|
|
1497
1479
|
ParallelDataPropertiesList: output.ParallelDataPropertiesList != null
|
|
1498
|
-
?
|
|
1480
|
+
? de_ParallelDataPropertiesList(output.ParallelDataPropertiesList, context)
|
|
1499
1481
|
: undefined,
|
|
1500
1482
|
};
|
|
1501
1483
|
};
|
|
1502
|
-
const
|
|
1484
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1503
1485
|
return {
|
|
1504
|
-
Tags: output.Tags != null ?
|
|
1486
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1505
1487
|
};
|
|
1506
1488
|
};
|
|
1507
|
-
const
|
|
1489
|
+
const de_ListTerminologiesResponse = (output, context) => {
|
|
1508
1490
|
return {
|
|
1509
1491
|
NextToken: __expectString(output.NextToken),
|
|
1510
1492
|
TerminologyPropertiesList: output.TerminologyPropertiesList != null
|
|
1511
|
-
?
|
|
1493
|
+
? de_TerminologyPropertiesList(output.TerminologyPropertiesList, context)
|
|
1512
1494
|
: undefined,
|
|
1513
1495
|
};
|
|
1514
1496
|
};
|
|
1515
|
-
const
|
|
1497
|
+
const de_ListTextTranslationJobsResponse = (output, context) => {
|
|
1516
1498
|
return {
|
|
1517
1499
|
NextToken: __expectString(output.NextToken),
|
|
1518
1500
|
TextTranslationJobPropertiesList: output.TextTranslationJobPropertiesList != null
|
|
1519
|
-
?
|
|
1501
|
+
? de_TextTranslationJobPropertiesList(output.TextTranslationJobPropertiesList, context)
|
|
1520
1502
|
: undefined,
|
|
1521
1503
|
};
|
|
1522
1504
|
};
|
|
1523
|
-
const
|
|
1505
|
+
const de_OutputDataConfig = (output, context) => {
|
|
1524
1506
|
return {
|
|
1525
|
-
EncryptionKey: output.EncryptionKey != null ?
|
|
1507
|
+
EncryptionKey: output.EncryptionKey != null ? de_EncryptionKey(output.EncryptionKey, context) : undefined,
|
|
1526
1508
|
S3Uri: __expectString(output.S3Uri),
|
|
1527
1509
|
};
|
|
1528
1510
|
};
|
|
1529
|
-
const
|
|
1511
|
+
const de_ParallelDataConfig = (output, context) => {
|
|
1530
1512
|
return {
|
|
1531
1513
|
Format: __expectString(output.Format),
|
|
1532
1514
|
S3Uri: __expectString(output.S3Uri),
|
|
1533
1515
|
};
|
|
1534
1516
|
};
|
|
1535
|
-
const
|
|
1517
|
+
const de_ParallelDataDataLocation = (output, context) => {
|
|
1536
1518
|
return {
|
|
1537
1519
|
Location: __expectString(output.Location),
|
|
1538
1520
|
RepositoryType: __expectString(output.RepositoryType),
|
|
1539
1521
|
};
|
|
1540
1522
|
};
|
|
1541
|
-
const
|
|
1523
|
+
const de_ParallelDataProperties = (output, context) => {
|
|
1542
1524
|
return {
|
|
1543
1525
|
Arn: __expectString(output.Arn),
|
|
1544
1526
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1545
1527
|
Description: __expectString(output.Description),
|
|
1546
|
-
EncryptionKey: output.EncryptionKey != null ?
|
|
1528
|
+
EncryptionKey: output.EncryptionKey != null ? de_EncryptionKey(output.EncryptionKey, context) : undefined,
|
|
1547
1529
|
FailedRecordCount: __expectLong(output.FailedRecordCount),
|
|
1548
1530
|
ImportedDataSize: __expectLong(output.ImportedDataSize),
|
|
1549
1531
|
ImportedRecordCount: __expectLong(output.ImportedRecordCount),
|
|
@@ -1556,29 +1538,25 @@ const deserializeAws_json1_1ParallelDataProperties = (output, context) => {
|
|
|
1556
1538
|
LatestUpdateAttemptStatus: __expectString(output.LatestUpdateAttemptStatus),
|
|
1557
1539
|
Message: __expectString(output.Message),
|
|
1558
1540
|
Name: __expectString(output.Name),
|
|
1559
|
-
ParallelDataConfig: output.ParallelDataConfig != null
|
|
1560
|
-
? deserializeAws_json1_1ParallelDataConfig(output.ParallelDataConfig, context)
|
|
1561
|
-
: undefined,
|
|
1541
|
+
ParallelDataConfig: output.ParallelDataConfig != null ? de_ParallelDataConfig(output.ParallelDataConfig, context) : undefined,
|
|
1562
1542
|
SkippedRecordCount: __expectLong(output.SkippedRecordCount),
|
|
1563
1543
|
SourceLanguageCode: __expectString(output.SourceLanguageCode),
|
|
1564
1544
|
Status: __expectString(output.Status),
|
|
1565
|
-
TargetLanguageCodes: output.TargetLanguageCodes != null
|
|
1566
|
-
? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
|
|
1567
|
-
: undefined,
|
|
1545
|
+
TargetLanguageCodes: output.TargetLanguageCodes != null ? de_LanguageCodeStringList(output.TargetLanguageCodes, context) : undefined,
|
|
1568
1546
|
};
|
|
1569
1547
|
};
|
|
1570
|
-
const
|
|
1548
|
+
const de_ParallelDataPropertiesList = (output, context) => {
|
|
1571
1549
|
const retVal = (output || [])
|
|
1572
1550
|
.filter((e) => e != null)
|
|
1573
1551
|
.map((entry) => {
|
|
1574
1552
|
if (entry === null) {
|
|
1575
1553
|
return null;
|
|
1576
1554
|
}
|
|
1577
|
-
return
|
|
1555
|
+
return de_ParallelDataProperties(entry, context);
|
|
1578
1556
|
});
|
|
1579
1557
|
return retVal;
|
|
1580
1558
|
};
|
|
1581
|
-
const
|
|
1559
|
+
const de_ResourceNameList = (output, context) => {
|
|
1582
1560
|
const retVal = (output || [])
|
|
1583
1561
|
.filter((e) => e != null)
|
|
1584
1562
|
.map((entry) => {
|
|
@@ -1589,49 +1567,49 @@ const deserializeAws_json1_1ResourceNameList = (output, context) => {
|
|
|
1589
1567
|
});
|
|
1590
1568
|
return retVal;
|
|
1591
1569
|
};
|
|
1592
|
-
const
|
|
1570
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
1593
1571
|
return {
|
|
1594
1572
|
Message: __expectString(output.Message),
|
|
1595
1573
|
};
|
|
1596
1574
|
};
|
|
1597
|
-
const
|
|
1575
|
+
const de_ServiceUnavailableException = (output, context) => {
|
|
1598
1576
|
return {
|
|
1599
1577
|
Message: __expectString(output.Message),
|
|
1600
1578
|
};
|
|
1601
1579
|
};
|
|
1602
|
-
const
|
|
1580
|
+
const de_StartTextTranslationJobResponse = (output, context) => {
|
|
1603
1581
|
return {
|
|
1604
1582
|
JobId: __expectString(output.JobId),
|
|
1605
1583
|
JobStatus: __expectString(output.JobStatus),
|
|
1606
1584
|
};
|
|
1607
1585
|
};
|
|
1608
|
-
const
|
|
1586
|
+
const de_StopTextTranslationJobResponse = (output, context) => {
|
|
1609
1587
|
return {
|
|
1610
1588
|
JobId: __expectString(output.JobId),
|
|
1611
1589
|
JobStatus: __expectString(output.JobStatus),
|
|
1612
1590
|
};
|
|
1613
1591
|
};
|
|
1614
|
-
const
|
|
1592
|
+
const de_Tag = (output, context) => {
|
|
1615
1593
|
return {
|
|
1616
1594
|
Key: __expectString(output.Key),
|
|
1617
1595
|
Value: __expectString(output.Value),
|
|
1618
1596
|
};
|
|
1619
1597
|
};
|
|
1620
|
-
const
|
|
1598
|
+
const de_TagList = (output, context) => {
|
|
1621
1599
|
const retVal = (output || [])
|
|
1622
1600
|
.filter((e) => e != null)
|
|
1623
1601
|
.map((entry) => {
|
|
1624
1602
|
if (entry === null) {
|
|
1625
1603
|
return null;
|
|
1626
1604
|
}
|
|
1627
|
-
return
|
|
1605
|
+
return de_Tag(entry, context);
|
|
1628
1606
|
});
|
|
1629
1607
|
return retVal;
|
|
1630
1608
|
};
|
|
1631
|
-
const
|
|
1609
|
+
const de_TagResourceResponse = (output, context) => {
|
|
1632
1610
|
return {};
|
|
1633
1611
|
};
|
|
1634
|
-
const
|
|
1612
|
+
const de_TargetLanguageCodeStringList = (output, context) => {
|
|
1635
1613
|
const retVal = (output || [])
|
|
1636
1614
|
.filter((e) => e != null)
|
|
1637
1615
|
.map((entry) => {
|
|
@@ -1642,25 +1620,25 @@ const deserializeAws_json1_1TargetLanguageCodeStringList = (output, context) =>
|
|
|
1642
1620
|
});
|
|
1643
1621
|
return retVal;
|
|
1644
1622
|
};
|
|
1645
|
-
const
|
|
1623
|
+
const de_Term = (output, context) => {
|
|
1646
1624
|
return {
|
|
1647
1625
|
SourceText: __expectString(output.SourceText),
|
|
1648
1626
|
TargetText: __expectString(output.TargetText),
|
|
1649
1627
|
};
|
|
1650
1628
|
};
|
|
1651
|
-
const
|
|
1629
|
+
const de_TerminologyDataLocation = (output, context) => {
|
|
1652
1630
|
return {
|
|
1653
1631
|
Location: __expectString(output.Location),
|
|
1654
1632
|
RepositoryType: __expectString(output.RepositoryType),
|
|
1655
1633
|
};
|
|
1656
1634
|
};
|
|
1657
|
-
const
|
|
1635
|
+
const de_TerminologyProperties = (output, context) => {
|
|
1658
1636
|
return {
|
|
1659
1637
|
Arn: __expectString(output.Arn),
|
|
1660
1638
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1661
1639
|
Description: __expectString(output.Description),
|
|
1662
1640
|
Directionality: __expectString(output.Directionality),
|
|
1663
|
-
EncryptionKey: output.EncryptionKey != null ?
|
|
1641
|
+
EncryptionKey: output.EncryptionKey != null ? de_EncryptionKey(output.EncryptionKey, context) : undefined,
|
|
1664
1642
|
Format: __expectString(output.Format),
|
|
1665
1643
|
LastUpdatedAt: output.LastUpdatedAt != null
|
|
1666
1644
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
@@ -1670,128 +1648,114 @@ const deserializeAws_json1_1TerminologyProperties = (output, context) => {
|
|
|
1670
1648
|
SizeBytes: __expectInt32(output.SizeBytes),
|
|
1671
1649
|
SkippedTermCount: __expectInt32(output.SkippedTermCount),
|
|
1672
1650
|
SourceLanguageCode: __expectString(output.SourceLanguageCode),
|
|
1673
|
-
TargetLanguageCodes: output.TargetLanguageCodes != null
|
|
1674
|
-
? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
|
|
1675
|
-
: undefined,
|
|
1651
|
+
TargetLanguageCodes: output.TargetLanguageCodes != null ? de_LanguageCodeStringList(output.TargetLanguageCodes, context) : undefined,
|
|
1676
1652
|
TermCount: __expectInt32(output.TermCount),
|
|
1677
1653
|
};
|
|
1678
1654
|
};
|
|
1679
|
-
const
|
|
1655
|
+
const de_TerminologyPropertiesList = (output, context) => {
|
|
1680
1656
|
const retVal = (output || [])
|
|
1681
1657
|
.filter((e) => e != null)
|
|
1682
1658
|
.map((entry) => {
|
|
1683
1659
|
if (entry === null) {
|
|
1684
1660
|
return null;
|
|
1685
1661
|
}
|
|
1686
|
-
return
|
|
1662
|
+
return de_TerminologyProperties(entry, context);
|
|
1687
1663
|
});
|
|
1688
1664
|
return retVal;
|
|
1689
1665
|
};
|
|
1690
|
-
const
|
|
1666
|
+
const de_TermList = (output, context) => {
|
|
1691
1667
|
const retVal = (output || [])
|
|
1692
1668
|
.filter((e) => e != null)
|
|
1693
1669
|
.map((entry) => {
|
|
1694
1670
|
if (entry === null) {
|
|
1695
1671
|
return null;
|
|
1696
1672
|
}
|
|
1697
|
-
return
|
|
1673
|
+
return de_Term(entry, context);
|
|
1698
1674
|
});
|
|
1699
1675
|
return retVal;
|
|
1700
1676
|
};
|
|
1701
|
-
const
|
|
1677
|
+
const de_TextSizeLimitExceededException = (output, context) => {
|
|
1702
1678
|
return {
|
|
1703
1679
|
Message: __expectString(output.Message),
|
|
1704
1680
|
};
|
|
1705
1681
|
};
|
|
1706
|
-
const
|
|
1682
|
+
const de_TextTranslationJobProperties = (output, context) => {
|
|
1707
1683
|
return {
|
|
1708
1684
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
1709
1685
|
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
1710
|
-
InputDataConfig: output.InputDataConfig != null
|
|
1711
|
-
|
|
1712
|
-
: undefined,
|
|
1713
|
-
JobDetails: output.JobDetails != null ? deserializeAws_json1_1JobDetails(output.JobDetails, context) : undefined,
|
|
1686
|
+
InputDataConfig: output.InputDataConfig != null ? de_InputDataConfig(output.InputDataConfig, context) : undefined,
|
|
1687
|
+
JobDetails: output.JobDetails != null ? de_JobDetails(output.JobDetails, context) : undefined,
|
|
1714
1688
|
JobId: __expectString(output.JobId),
|
|
1715
1689
|
JobName: __expectString(output.JobName),
|
|
1716
1690
|
JobStatus: __expectString(output.JobStatus),
|
|
1717
1691
|
Message: __expectString(output.Message),
|
|
1718
|
-
OutputDataConfig: output.OutputDataConfig != null
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
ParallelDataNames: output.ParallelDataNames != null
|
|
1722
|
-
? deserializeAws_json1_1ResourceNameList(output.ParallelDataNames, context)
|
|
1723
|
-
: undefined,
|
|
1724
|
-
Settings: output.Settings != null ? deserializeAws_json1_1TranslationSettings(output.Settings, context) : undefined,
|
|
1692
|
+
OutputDataConfig: output.OutputDataConfig != null ? de_OutputDataConfig(output.OutputDataConfig, context) : undefined,
|
|
1693
|
+
ParallelDataNames: output.ParallelDataNames != null ? de_ResourceNameList(output.ParallelDataNames, context) : undefined,
|
|
1694
|
+
Settings: output.Settings != null ? de_TranslationSettings(output.Settings, context) : undefined,
|
|
1725
1695
|
SourceLanguageCode: __expectString(output.SourceLanguageCode),
|
|
1726
1696
|
SubmittedTime: output.SubmittedTime != null
|
|
1727
1697
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmittedTime)))
|
|
1728
1698
|
: undefined,
|
|
1729
1699
|
TargetLanguageCodes: output.TargetLanguageCodes != null
|
|
1730
|
-
?
|
|
1731
|
-
: undefined,
|
|
1732
|
-
TerminologyNames: output.TerminologyNames != null
|
|
1733
|
-
? deserializeAws_json1_1ResourceNameList(output.TerminologyNames, context)
|
|
1700
|
+
? de_TargetLanguageCodeStringList(output.TargetLanguageCodes, context)
|
|
1734
1701
|
: undefined,
|
|
1702
|
+
TerminologyNames: output.TerminologyNames != null ? de_ResourceNameList(output.TerminologyNames, context) : undefined,
|
|
1735
1703
|
};
|
|
1736
1704
|
};
|
|
1737
|
-
const
|
|
1705
|
+
const de_TextTranslationJobPropertiesList = (output, context) => {
|
|
1738
1706
|
const retVal = (output || [])
|
|
1739
1707
|
.filter((e) => e != null)
|
|
1740
1708
|
.map((entry) => {
|
|
1741
1709
|
if (entry === null) {
|
|
1742
1710
|
return null;
|
|
1743
1711
|
}
|
|
1744
|
-
return
|
|
1712
|
+
return de_TextTranslationJobProperties(entry, context);
|
|
1745
1713
|
});
|
|
1746
1714
|
return retVal;
|
|
1747
1715
|
};
|
|
1748
|
-
const
|
|
1716
|
+
const de_TooManyRequestsException = (output, context) => {
|
|
1749
1717
|
return {
|
|
1750
1718
|
Message: __expectString(output.Message),
|
|
1751
1719
|
};
|
|
1752
1720
|
};
|
|
1753
|
-
const
|
|
1721
|
+
const de_TooManyTagsException = (output, context) => {
|
|
1754
1722
|
return {
|
|
1755
1723
|
ResourceArn: __expectString(output.ResourceArn),
|
|
1756
1724
|
message: __expectString(output.message),
|
|
1757
1725
|
};
|
|
1758
1726
|
};
|
|
1759
|
-
const
|
|
1727
|
+
const de_TranslateTextResponse = (output, context) => {
|
|
1760
1728
|
return {
|
|
1761
|
-
AppliedSettings: output.AppliedSettings != null
|
|
1762
|
-
|
|
1763
|
-
: undefined,
|
|
1764
|
-
AppliedTerminologies: output.AppliedTerminologies != null
|
|
1765
|
-
? deserializeAws_json1_1AppliedTerminologyList(output.AppliedTerminologies, context)
|
|
1766
|
-
: undefined,
|
|
1729
|
+
AppliedSettings: output.AppliedSettings != null ? de_TranslationSettings(output.AppliedSettings, context) : undefined,
|
|
1730
|
+
AppliedTerminologies: output.AppliedTerminologies != null ? de_AppliedTerminologyList(output.AppliedTerminologies, context) : undefined,
|
|
1767
1731
|
SourceLanguageCode: __expectString(output.SourceLanguageCode),
|
|
1768
1732
|
TargetLanguageCode: __expectString(output.TargetLanguageCode),
|
|
1769
1733
|
TranslatedText: __expectString(output.TranslatedText),
|
|
1770
1734
|
};
|
|
1771
1735
|
};
|
|
1772
|
-
const
|
|
1736
|
+
const de_TranslationSettings = (output, context) => {
|
|
1773
1737
|
return {
|
|
1774
1738
|
Formality: __expectString(output.Formality),
|
|
1775
1739
|
Profanity: __expectString(output.Profanity),
|
|
1776
1740
|
};
|
|
1777
1741
|
};
|
|
1778
|
-
const
|
|
1742
|
+
const de_UnsupportedDisplayLanguageCodeException = (output, context) => {
|
|
1779
1743
|
return {
|
|
1780
1744
|
DisplayLanguageCode: __expectString(output.DisplayLanguageCode),
|
|
1781
1745
|
Message: __expectString(output.Message),
|
|
1782
1746
|
};
|
|
1783
1747
|
};
|
|
1784
|
-
const
|
|
1748
|
+
const de_UnsupportedLanguagePairException = (output, context) => {
|
|
1785
1749
|
return {
|
|
1786
1750
|
Message: __expectString(output.Message),
|
|
1787
1751
|
SourceLanguageCode: __expectString(output.SourceLanguageCode),
|
|
1788
1752
|
TargetLanguageCode: __expectString(output.TargetLanguageCode),
|
|
1789
1753
|
};
|
|
1790
1754
|
};
|
|
1791
|
-
const
|
|
1755
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
1792
1756
|
return {};
|
|
1793
1757
|
};
|
|
1794
|
-
const
|
|
1758
|
+
const de_UpdateParallelDataResponse = (output, context) => {
|
|
1795
1759
|
return {
|
|
1796
1760
|
LatestUpdateAttemptAt: output.LatestUpdateAttemptAt != null
|
|
1797
1761
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestUpdateAttemptAt)))
|