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