@aws-sdk/client-account 3.927.0 → 3.929.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/index.js +528 -707
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/AccountClient.js +2 -0
- package/dist-es/commands/AcceptPrimaryEmailUpdateCommand.js +3 -10
- package/dist-es/commands/DeleteAlternateContactCommand.js +3 -9
- package/dist-es/commands/DisableRegionCommand.js +3 -9
- package/dist-es/commands/EnableRegionCommand.js +3 -9
- package/dist-es/commands/GetAccountInformationCommand.js +3 -10
- package/dist-es/commands/GetAlternateContactCommand.js +3 -10
- package/dist-es/commands/GetContactInformationCommand.js +3 -10
- package/dist-es/commands/GetPrimaryEmailCommand.js +3 -10
- package/dist-es/commands/GetRegionOptStatusCommand.js +3 -9
- package/dist-es/commands/ListRegionsCommand.js +3 -9
- package/dist-es/commands/PutAccountNameCommand.js +3 -10
- package/dist-es/commands/PutAlternateContactCommand.js +3 -10
- package/dist-es/commands/PutContactInformationCommand.js +3 -10
- package/dist-es/commands/StartPrimaryEmailUpdateCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -67
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +482 -0
- package/dist-types/AccountClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -48
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +70 -0
- package/dist-types/ts3.4/AccountClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -36
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +76 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -515
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -128
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -173
|
@@ -1,515 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccountServiceException as __BaseException } from "../models/AccountServiceException";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_AcceptPrimaryEmailUpdateCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/acceptPrimaryEmailUpdate");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
AccountId: [],
|
|
15
|
-
Otp: [],
|
|
16
|
-
PrimaryEmail: [],
|
|
17
|
-
}));
|
|
18
|
-
b.m("POST").h(headers).b(body);
|
|
19
|
-
return b.build();
|
|
20
|
-
};
|
|
21
|
-
export const se_DeleteAlternateContactCommand = async (input, context) => {
|
|
22
|
-
const b = rb(input, context);
|
|
23
|
-
const headers = {
|
|
24
|
-
"content-type": "application/json",
|
|
25
|
-
};
|
|
26
|
-
b.bp("/deleteAlternateContact");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(take(input, {
|
|
29
|
-
AccountId: [],
|
|
30
|
-
AlternateContactType: [],
|
|
31
|
-
}));
|
|
32
|
-
b.m("POST").h(headers).b(body);
|
|
33
|
-
return b.build();
|
|
34
|
-
};
|
|
35
|
-
export const se_DisableRegionCommand = async (input, context) => {
|
|
36
|
-
const b = rb(input, context);
|
|
37
|
-
const headers = {
|
|
38
|
-
"content-type": "application/json",
|
|
39
|
-
};
|
|
40
|
-
b.bp("/disableRegion");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify(take(input, {
|
|
43
|
-
AccountId: [],
|
|
44
|
-
RegionName: [],
|
|
45
|
-
}));
|
|
46
|
-
b.m("POST").h(headers).b(body);
|
|
47
|
-
return b.build();
|
|
48
|
-
};
|
|
49
|
-
export const se_EnableRegionCommand = async (input, context) => {
|
|
50
|
-
const b = rb(input, context);
|
|
51
|
-
const headers = {
|
|
52
|
-
"content-type": "application/json",
|
|
53
|
-
};
|
|
54
|
-
b.bp("/enableRegion");
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify(take(input, {
|
|
57
|
-
AccountId: [],
|
|
58
|
-
RegionName: [],
|
|
59
|
-
}));
|
|
60
|
-
b.m("POST").h(headers).b(body);
|
|
61
|
-
return b.build();
|
|
62
|
-
};
|
|
63
|
-
export const se_GetAccountInformationCommand = async (input, context) => {
|
|
64
|
-
const b = rb(input, context);
|
|
65
|
-
const headers = {
|
|
66
|
-
"content-type": "application/json",
|
|
67
|
-
};
|
|
68
|
-
b.bp("/getAccountInformation");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(take(input, {
|
|
71
|
-
AccountId: [],
|
|
72
|
-
}));
|
|
73
|
-
b.m("POST").h(headers).b(body);
|
|
74
|
-
return b.build();
|
|
75
|
-
};
|
|
76
|
-
export const se_GetAlternateContactCommand = async (input, context) => {
|
|
77
|
-
const b = rb(input, context);
|
|
78
|
-
const headers = {
|
|
79
|
-
"content-type": "application/json",
|
|
80
|
-
};
|
|
81
|
-
b.bp("/getAlternateContact");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify(take(input, {
|
|
84
|
-
AccountId: [],
|
|
85
|
-
AlternateContactType: [],
|
|
86
|
-
}));
|
|
87
|
-
b.m("POST").h(headers).b(body);
|
|
88
|
-
return b.build();
|
|
89
|
-
};
|
|
90
|
-
export const se_GetContactInformationCommand = async (input, context) => {
|
|
91
|
-
const b = rb(input, context);
|
|
92
|
-
const headers = {
|
|
93
|
-
"content-type": "application/json",
|
|
94
|
-
};
|
|
95
|
-
b.bp("/getContactInformation");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify(take(input, {
|
|
98
|
-
AccountId: [],
|
|
99
|
-
}));
|
|
100
|
-
b.m("POST").h(headers).b(body);
|
|
101
|
-
return b.build();
|
|
102
|
-
};
|
|
103
|
-
export const se_GetPrimaryEmailCommand = async (input, context) => {
|
|
104
|
-
const b = rb(input, context);
|
|
105
|
-
const headers = {
|
|
106
|
-
"content-type": "application/json",
|
|
107
|
-
};
|
|
108
|
-
b.bp("/getPrimaryEmail");
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify(take(input, {
|
|
111
|
-
AccountId: [],
|
|
112
|
-
}));
|
|
113
|
-
b.m("POST").h(headers).b(body);
|
|
114
|
-
return b.build();
|
|
115
|
-
};
|
|
116
|
-
export const se_GetRegionOptStatusCommand = async (input, context) => {
|
|
117
|
-
const b = rb(input, context);
|
|
118
|
-
const headers = {
|
|
119
|
-
"content-type": "application/json",
|
|
120
|
-
};
|
|
121
|
-
b.bp("/getRegionOptStatus");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(take(input, {
|
|
124
|
-
AccountId: [],
|
|
125
|
-
RegionName: [],
|
|
126
|
-
}));
|
|
127
|
-
b.m("POST").h(headers).b(body);
|
|
128
|
-
return b.build();
|
|
129
|
-
};
|
|
130
|
-
export const se_ListRegionsCommand = async (input, context) => {
|
|
131
|
-
const b = rb(input, context);
|
|
132
|
-
const headers = {
|
|
133
|
-
"content-type": "application/json",
|
|
134
|
-
};
|
|
135
|
-
b.bp("/listRegions");
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify(take(input, {
|
|
138
|
-
AccountId: [],
|
|
139
|
-
MaxResults: [],
|
|
140
|
-
NextToken: [],
|
|
141
|
-
RegionOptStatusContains: (_) => _json(_),
|
|
142
|
-
}));
|
|
143
|
-
b.m("POST").h(headers).b(body);
|
|
144
|
-
return b.build();
|
|
145
|
-
};
|
|
146
|
-
export const se_PutAccountNameCommand = async (input, context) => {
|
|
147
|
-
const b = rb(input, context);
|
|
148
|
-
const headers = {
|
|
149
|
-
"content-type": "application/json",
|
|
150
|
-
};
|
|
151
|
-
b.bp("/putAccountName");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(take(input, {
|
|
154
|
-
AccountId: [],
|
|
155
|
-
AccountName: [],
|
|
156
|
-
}));
|
|
157
|
-
b.m("POST").h(headers).b(body);
|
|
158
|
-
return b.build();
|
|
159
|
-
};
|
|
160
|
-
export const se_PutAlternateContactCommand = async (input, context) => {
|
|
161
|
-
const b = rb(input, context);
|
|
162
|
-
const headers = {
|
|
163
|
-
"content-type": "application/json",
|
|
164
|
-
};
|
|
165
|
-
b.bp("/putAlternateContact");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify(take(input, {
|
|
168
|
-
AccountId: [],
|
|
169
|
-
AlternateContactType: [],
|
|
170
|
-
EmailAddress: [],
|
|
171
|
-
Name: [],
|
|
172
|
-
PhoneNumber: [],
|
|
173
|
-
Title: [],
|
|
174
|
-
}));
|
|
175
|
-
b.m("POST").h(headers).b(body);
|
|
176
|
-
return b.build();
|
|
177
|
-
};
|
|
178
|
-
export const se_PutContactInformationCommand = async (input, context) => {
|
|
179
|
-
const b = rb(input, context);
|
|
180
|
-
const headers = {
|
|
181
|
-
"content-type": "application/json",
|
|
182
|
-
};
|
|
183
|
-
b.bp("/putContactInformation");
|
|
184
|
-
let body;
|
|
185
|
-
body = JSON.stringify(take(input, {
|
|
186
|
-
AccountId: [],
|
|
187
|
-
ContactInformation: (_) => _json(_),
|
|
188
|
-
}));
|
|
189
|
-
b.m("POST").h(headers).b(body);
|
|
190
|
-
return b.build();
|
|
191
|
-
};
|
|
192
|
-
export const se_StartPrimaryEmailUpdateCommand = async (input, context) => {
|
|
193
|
-
const b = rb(input, context);
|
|
194
|
-
const headers = {
|
|
195
|
-
"content-type": "application/json",
|
|
196
|
-
};
|
|
197
|
-
b.bp("/startPrimaryEmailUpdate");
|
|
198
|
-
let body;
|
|
199
|
-
body = JSON.stringify(take(input, {
|
|
200
|
-
AccountId: [],
|
|
201
|
-
PrimaryEmail: [],
|
|
202
|
-
}));
|
|
203
|
-
b.m("POST").h(headers).b(body);
|
|
204
|
-
return b.build();
|
|
205
|
-
};
|
|
206
|
-
export const de_AcceptPrimaryEmailUpdateCommand = async (output, context) => {
|
|
207
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
208
|
-
return de_CommandError(output, context);
|
|
209
|
-
}
|
|
210
|
-
const contents = map({
|
|
211
|
-
$metadata: deserializeMetadata(output),
|
|
212
|
-
});
|
|
213
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
214
|
-
const doc = take(data, {
|
|
215
|
-
Status: __expectString,
|
|
216
|
-
});
|
|
217
|
-
Object.assign(contents, doc);
|
|
218
|
-
return contents;
|
|
219
|
-
};
|
|
220
|
-
export const de_DeleteAlternateContactCommand = async (output, context) => {
|
|
221
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
222
|
-
return de_CommandError(output, context);
|
|
223
|
-
}
|
|
224
|
-
const contents = map({
|
|
225
|
-
$metadata: deserializeMetadata(output),
|
|
226
|
-
});
|
|
227
|
-
await collectBody(output.body, context);
|
|
228
|
-
return contents;
|
|
229
|
-
};
|
|
230
|
-
export const de_DisableRegionCommand = async (output, context) => {
|
|
231
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
232
|
-
return de_CommandError(output, context);
|
|
233
|
-
}
|
|
234
|
-
const contents = map({
|
|
235
|
-
$metadata: deserializeMetadata(output),
|
|
236
|
-
});
|
|
237
|
-
await collectBody(output.body, context);
|
|
238
|
-
return contents;
|
|
239
|
-
};
|
|
240
|
-
export const de_EnableRegionCommand = async (output, context) => {
|
|
241
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
242
|
-
return de_CommandError(output, context);
|
|
243
|
-
}
|
|
244
|
-
const contents = map({
|
|
245
|
-
$metadata: deserializeMetadata(output),
|
|
246
|
-
});
|
|
247
|
-
await collectBody(output.body, context);
|
|
248
|
-
return contents;
|
|
249
|
-
};
|
|
250
|
-
export const de_GetAccountInformationCommand = async (output, context) => {
|
|
251
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
252
|
-
return de_CommandError(output, context);
|
|
253
|
-
}
|
|
254
|
-
const contents = map({
|
|
255
|
-
$metadata: deserializeMetadata(output),
|
|
256
|
-
});
|
|
257
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
258
|
-
const doc = take(data, {
|
|
259
|
-
AccountCreatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
260
|
-
AccountId: __expectString,
|
|
261
|
-
AccountName: __expectString,
|
|
262
|
-
});
|
|
263
|
-
Object.assign(contents, doc);
|
|
264
|
-
return contents;
|
|
265
|
-
};
|
|
266
|
-
export const de_GetAlternateContactCommand = async (output, context) => {
|
|
267
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
268
|
-
return de_CommandError(output, context);
|
|
269
|
-
}
|
|
270
|
-
const contents = map({
|
|
271
|
-
$metadata: deserializeMetadata(output),
|
|
272
|
-
});
|
|
273
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
274
|
-
const doc = take(data, {
|
|
275
|
-
AlternateContact: _json,
|
|
276
|
-
});
|
|
277
|
-
Object.assign(contents, doc);
|
|
278
|
-
return contents;
|
|
279
|
-
};
|
|
280
|
-
export const de_GetContactInformationCommand = async (output, context) => {
|
|
281
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
282
|
-
return de_CommandError(output, context);
|
|
283
|
-
}
|
|
284
|
-
const contents = map({
|
|
285
|
-
$metadata: deserializeMetadata(output),
|
|
286
|
-
});
|
|
287
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
288
|
-
const doc = take(data, {
|
|
289
|
-
ContactInformation: _json,
|
|
290
|
-
});
|
|
291
|
-
Object.assign(contents, doc);
|
|
292
|
-
return contents;
|
|
293
|
-
};
|
|
294
|
-
export const de_GetPrimaryEmailCommand = async (output, context) => {
|
|
295
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
296
|
-
return de_CommandError(output, context);
|
|
297
|
-
}
|
|
298
|
-
const contents = map({
|
|
299
|
-
$metadata: deserializeMetadata(output),
|
|
300
|
-
});
|
|
301
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
302
|
-
const doc = take(data, {
|
|
303
|
-
PrimaryEmail: __expectString,
|
|
304
|
-
});
|
|
305
|
-
Object.assign(contents, doc);
|
|
306
|
-
return contents;
|
|
307
|
-
};
|
|
308
|
-
export const de_GetRegionOptStatusCommand = async (output, context) => {
|
|
309
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
310
|
-
return de_CommandError(output, context);
|
|
311
|
-
}
|
|
312
|
-
const contents = map({
|
|
313
|
-
$metadata: deserializeMetadata(output),
|
|
314
|
-
});
|
|
315
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
316
|
-
const doc = take(data, {
|
|
317
|
-
RegionName: __expectString,
|
|
318
|
-
RegionOptStatus: __expectString,
|
|
319
|
-
});
|
|
320
|
-
Object.assign(contents, doc);
|
|
321
|
-
return contents;
|
|
322
|
-
};
|
|
323
|
-
export const de_ListRegionsCommand = async (output, context) => {
|
|
324
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
325
|
-
return de_CommandError(output, context);
|
|
326
|
-
}
|
|
327
|
-
const contents = map({
|
|
328
|
-
$metadata: deserializeMetadata(output),
|
|
329
|
-
});
|
|
330
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
331
|
-
const doc = take(data, {
|
|
332
|
-
NextToken: __expectString,
|
|
333
|
-
Regions: _json,
|
|
334
|
-
});
|
|
335
|
-
Object.assign(contents, doc);
|
|
336
|
-
return contents;
|
|
337
|
-
};
|
|
338
|
-
export const de_PutAccountNameCommand = async (output, context) => {
|
|
339
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
340
|
-
return de_CommandError(output, context);
|
|
341
|
-
}
|
|
342
|
-
const contents = map({
|
|
343
|
-
$metadata: deserializeMetadata(output),
|
|
344
|
-
});
|
|
345
|
-
await collectBody(output.body, context);
|
|
346
|
-
return contents;
|
|
347
|
-
};
|
|
348
|
-
export const de_PutAlternateContactCommand = async (output, context) => {
|
|
349
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
350
|
-
return de_CommandError(output, context);
|
|
351
|
-
}
|
|
352
|
-
const contents = map({
|
|
353
|
-
$metadata: deserializeMetadata(output),
|
|
354
|
-
});
|
|
355
|
-
await collectBody(output.body, context);
|
|
356
|
-
return contents;
|
|
357
|
-
};
|
|
358
|
-
export const de_PutContactInformationCommand = async (output, context) => {
|
|
359
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
360
|
-
return de_CommandError(output, context);
|
|
361
|
-
}
|
|
362
|
-
const contents = map({
|
|
363
|
-
$metadata: deserializeMetadata(output),
|
|
364
|
-
});
|
|
365
|
-
await collectBody(output.body, context);
|
|
366
|
-
return contents;
|
|
367
|
-
};
|
|
368
|
-
export const de_StartPrimaryEmailUpdateCommand = async (output, context) => {
|
|
369
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
370
|
-
return de_CommandError(output, context);
|
|
371
|
-
}
|
|
372
|
-
const contents = map({
|
|
373
|
-
$metadata: deserializeMetadata(output),
|
|
374
|
-
});
|
|
375
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
376
|
-
const doc = take(data, {
|
|
377
|
-
Status: __expectString,
|
|
378
|
-
});
|
|
379
|
-
Object.assign(contents, doc);
|
|
380
|
-
return contents;
|
|
381
|
-
};
|
|
382
|
-
const de_CommandError = async (output, context) => {
|
|
383
|
-
const parsedOutput = {
|
|
384
|
-
...output,
|
|
385
|
-
body: await parseErrorBody(output.body, context),
|
|
386
|
-
};
|
|
387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
|
-
switch (errorCode) {
|
|
389
|
-
case "AccessDeniedException":
|
|
390
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
391
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
392
|
-
case "ConflictException":
|
|
393
|
-
case "com.amazonaws.account#ConflictException":
|
|
394
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
395
|
-
case "InternalServerException":
|
|
396
|
-
case "com.amazonaws.account#InternalServerException":
|
|
397
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
398
|
-
case "ResourceNotFoundException":
|
|
399
|
-
case "com.amazonaws.account#ResourceNotFoundException":
|
|
400
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
401
|
-
case "TooManyRequestsException":
|
|
402
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
403
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
404
|
-
case "ValidationException":
|
|
405
|
-
case "com.amazonaws.account#ValidationException":
|
|
406
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
407
|
-
default:
|
|
408
|
-
const parsedBody = parsedOutput.body;
|
|
409
|
-
return throwDefaultError({
|
|
410
|
-
output,
|
|
411
|
-
parsedBody,
|
|
412
|
-
errorCode,
|
|
413
|
-
});
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
417
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
418
|
-
const contents = map({
|
|
419
|
-
[_eT]: [, parsedOutput.headers[_xae]],
|
|
420
|
-
});
|
|
421
|
-
const data = parsedOutput.body;
|
|
422
|
-
const doc = take(data, {
|
|
423
|
-
message: __expectString,
|
|
424
|
-
});
|
|
425
|
-
Object.assign(contents, doc);
|
|
426
|
-
const exception = new AccessDeniedException({
|
|
427
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
428
|
-
...contents,
|
|
429
|
-
});
|
|
430
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
431
|
-
};
|
|
432
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
433
|
-
const contents = map({
|
|
434
|
-
[_eT]: [, parsedOutput.headers[_xae]],
|
|
435
|
-
});
|
|
436
|
-
const data = parsedOutput.body;
|
|
437
|
-
const doc = take(data, {
|
|
438
|
-
message: __expectString,
|
|
439
|
-
});
|
|
440
|
-
Object.assign(contents, doc);
|
|
441
|
-
const exception = new ConflictException({
|
|
442
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
443
|
-
...contents,
|
|
444
|
-
});
|
|
445
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
446
|
-
};
|
|
447
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
448
|
-
const contents = map({
|
|
449
|
-
[_eT]: [, parsedOutput.headers[_xae]],
|
|
450
|
-
});
|
|
451
|
-
const data = parsedOutput.body;
|
|
452
|
-
const doc = take(data, {
|
|
453
|
-
message: __expectString,
|
|
454
|
-
});
|
|
455
|
-
Object.assign(contents, doc);
|
|
456
|
-
const exception = new InternalServerException({
|
|
457
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
458
|
-
...contents,
|
|
459
|
-
});
|
|
460
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
461
|
-
};
|
|
462
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
463
|
-
const contents = map({
|
|
464
|
-
[_eT]: [, parsedOutput.headers[_xae]],
|
|
465
|
-
});
|
|
466
|
-
const data = parsedOutput.body;
|
|
467
|
-
const doc = take(data, {
|
|
468
|
-
message: __expectString,
|
|
469
|
-
});
|
|
470
|
-
Object.assign(contents, doc);
|
|
471
|
-
const exception = new ResourceNotFoundException({
|
|
472
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
473
|
-
...contents,
|
|
474
|
-
});
|
|
475
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
476
|
-
};
|
|
477
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
478
|
-
const contents = map({
|
|
479
|
-
[_eT]: [, parsedOutput.headers[_xae]],
|
|
480
|
-
});
|
|
481
|
-
const data = parsedOutput.body;
|
|
482
|
-
const doc = take(data, {
|
|
483
|
-
message: __expectString,
|
|
484
|
-
});
|
|
485
|
-
Object.assign(contents, doc);
|
|
486
|
-
const exception = new TooManyRequestsException({
|
|
487
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
488
|
-
...contents,
|
|
489
|
-
});
|
|
490
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
491
|
-
};
|
|
492
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
493
|
-
const contents = map({});
|
|
494
|
-
const data = parsedOutput.body;
|
|
495
|
-
const doc = take(data, {
|
|
496
|
-
fieldList: _json,
|
|
497
|
-
message: __expectString,
|
|
498
|
-
reason: __expectString,
|
|
499
|
-
});
|
|
500
|
-
Object.assign(contents, doc);
|
|
501
|
-
const exception = new ValidationException({
|
|
502
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
503
|
-
...contents,
|
|
504
|
-
});
|
|
505
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
506
|
-
};
|
|
507
|
-
const deserializeMetadata = (output) => ({
|
|
508
|
-
httpStatusCode: output.statusCode,
|
|
509
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
510
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
511
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
512
|
-
});
|
|
513
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
514
|
-
const _eT = "errorType";
|
|
515
|
-
const _xae = "x-amzn-errortype";
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput } from "../commands/AcceptPrimaryEmailUpdateCommand";
|
|
4
|
-
import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "../commands/DeleteAlternateContactCommand";
|
|
5
|
-
import { DisableRegionCommandInput, DisableRegionCommandOutput } from "../commands/DisableRegionCommand";
|
|
6
|
-
import { EnableRegionCommandInput, EnableRegionCommandOutput } from "../commands/EnableRegionCommand";
|
|
7
|
-
import { GetAccountInformationCommandInput, GetAccountInformationCommandOutput } from "../commands/GetAccountInformationCommand";
|
|
8
|
-
import { GetAlternateContactCommandInput, GetAlternateContactCommandOutput } from "../commands/GetAlternateContactCommand";
|
|
9
|
-
import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "../commands/GetContactInformationCommand";
|
|
10
|
-
import { GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput } from "../commands/GetPrimaryEmailCommand";
|
|
11
|
-
import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "../commands/GetRegionOptStatusCommand";
|
|
12
|
-
import { ListRegionsCommandInput, ListRegionsCommandOutput } from "../commands/ListRegionsCommand";
|
|
13
|
-
import { PutAccountNameCommandInput, PutAccountNameCommandOutput } from "../commands/PutAccountNameCommand";
|
|
14
|
-
import { PutAlternateContactCommandInput, PutAlternateContactCommandOutput } from "../commands/PutAlternateContactCommand";
|
|
15
|
-
import { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "../commands/PutContactInformationCommand";
|
|
16
|
-
import { StartPrimaryEmailUpdateCommandInput, StartPrimaryEmailUpdateCommandOutput } from "../commands/StartPrimaryEmailUpdateCommand";
|
|
17
|
-
/**
|
|
18
|
-
* serializeAws_restJson1AcceptPrimaryEmailUpdateCommand
|
|
19
|
-
*/
|
|
20
|
-
export declare const se_AcceptPrimaryEmailUpdateCommand: (input: AcceptPrimaryEmailUpdateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
21
|
-
/**
|
|
22
|
-
* serializeAws_restJson1DeleteAlternateContactCommand
|
|
23
|
-
*/
|
|
24
|
-
export declare const se_DeleteAlternateContactCommand: (input: DeleteAlternateContactCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
|
-
/**
|
|
26
|
-
* serializeAws_restJson1DisableRegionCommand
|
|
27
|
-
*/
|
|
28
|
-
export declare const se_DisableRegionCommand: (input: DisableRegionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
29
|
-
/**
|
|
30
|
-
* serializeAws_restJson1EnableRegionCommand
|
|
31
|
-
*/
|
|
32
|
-
export declare const se_EnableRegionCommand: (input: EnableRegionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
|
-
/**
|
|
34
|
-
* serializeAws_restJson1GetAccountInformationCommand
|
|
35
|
-
*/
|
|
36
|
-
export declare const se_GetAccountInformationCommand: (input: GetAccountInformationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
37
|
-
/**
|
|
38
|
-
* serializeAws_restJson1GetAlternateContactCommand
|
|
39
|
-
*/
|
|
40
|
-
export declare const se_GetAlternateContactCommand: (input: GetAlternateContactCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
41
|
-
/**
|
|
42
|
-
* serializeAws_restJson1GetContactInformationCommand
|
|
43
|
-
*/
|
|
44
|
-
export declare const se_GetContactInformationCommand: (input: GetContactInformationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
|
-
/**
|
|
46
|
-
* serializeAws_restJson1GetPrimaryEmailCommand
|
|
47
|
-
*/
|
|
48
|
-
export declare const se_GetPrimaryEmailCommand: (input: GetPrimaryEmailCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
49
|
-
/**
|
|
50
|
-
* serializeAws_restJson1GetRegionOptStatusCommand
|
|
51
|
-
*/
|
|
52
|
-
export declare const se_GetRegionOptStatusCommand: (input: GetRegionOptStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
53
|
-
/**
|
|
54
|
-
* serializeAws_restJson1ListRegionsCommand
|
|
55
|
-
*/
|
|
56
|
-
export declare const se_ListRegionsCommand: (input: ListRegionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
57
|
-
/**
|
|
58
|
-
* serializeAws_restJson1PutAccountNameCommand
|
|
59
|
-
*/
|
|
60
|
-
export declare const se_PutAccountNameCommand: (input: PutAccountNameCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
61
|
-
/**
|
|
62
|
-
* serializeAws_restJson1PutAlternateContactCommand
|
|
63
|
-
*/
|
|
64
|
-
export declare const se_PutAlternateContactCommand: (input: PutAlternateContactCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
65
|
-
/**
|
|
66
|
-
* serializeAws_restJson1PutContactInformationCommand
|
|
67
|
-
*/
|
|
68
|
-
export declare const se_PutContactInformationCommand: (input: PutContactInformationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
69
|
-
/**
|
|
70
|
-
* serializeAws_restJson1StartPrimaryEmailUpdateCommand
|
|
71
|
-
*/
|
|
72
|
-
export declare const se_StartPrimaryEmailUpdateCommand: (input: StartPrimaryEmailUpdateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
|
-
/**
|
|
74
|
-
* deserializeAws_restJson1AcceptPrimaryEmailUpdateCommand
|
|
75
|
-
*/
|
|
76
|
-
export declare const de_AcceptPrimaryEmailUpdateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AcceptPrimaryEmailUpdateCommandOutput>;
|
|
77
|
-
/**
|
|
78
|
-
* deserializeAws_restJson1DeleteAlternateContactCommand
|
|
79
|
-
*/
|
|
80
|
-
export declare const de_DeleteAlternateContactCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteAlternateContactCommandOutput>;
|
|
81
|
-
/**
|
|
82
|
-
* deserializeAws_restJson1DisableRegionCommand
|
|
83
|
-
*/
|
|
84
|
-
export declare const de_DisableRegionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisableRegionCommandOutput>;
|
|
85
|
-
/**
|
|
86
|
-
* deserializeAws_restJson1EnableRegionCommand
|
|
87
|
-
*/
|
|
88
|
-
export declare const de_EnableRegionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<EnableRegionCommandOutput>;
|
|
89
|
-
/**
|
|
90
|
-
* deserializeAws_restJson1GetAccountInformationCommand
|
|
91
|
-
*/
|
|
92
|
-
export declare const de_GetAccountInformationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAccountInformationCommandOutput>;
|
|
93
|
-
/**
|
|
94
|
-
* deserializeAws_restJson1GetAlternateContactCommand
|
|
95
|
-
*/
|
|
96
|
-
export declare const de_GetAlternateContactCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAlternateContactCommandOutput>;
|
|
97
|
-
/**
|
|
98
|
-
* deserializeAws_restJson1GetContactInformationCommand
|
|
99
|
-
*/
|
|
100
|
-
export declare const de_GetContactInformationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetContactInformationCommandOutput>;
|
|
101
|
-
/**
|
|
102
|
-
* deserializeAws_restJson1GetPrimaryEmailCommand
|
|
103
|
-
*/
|
|
104
|
-
export declare const de_GetPrimaryEmailCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPrimaryEmailCommandOutput>;
|
|
105
|
-
/**
|
|
106
|
-
* deserializeAws_restJson1GetRegionOptStatusCommand
|
|
107
|
-
*/
|
|
108
|
-
export declare const de_GetRegionOptStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRegionOptStatusCommandOutput>;
|
|
109
|
-
/**
|
|
110
|
-
* deserializeAws_restJson1ListRegionsCommand
|
|
111
|
-
*/
|
|
112
|
-
export declare const de_ListRegionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRegionsCommandOutput>;
|
|
113
|
-
/**
|
|
114
|
-
* deserializeAws_restJson1PutAccountNameCommand
|
|
115
|
-
*/
|
|
116
|
-
export declare const de_PutAccountNameCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutAccountNameCommandOutput>;
|
|
117
|
-
/**
|
|
118
|
-
* deserializeAws_restJson1PutAlternateContactCommand
|
|
119
|
-
*/
|
|
120
|
-
export declare const de_PutAlternateContactCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutAlternateContactCommandOutput>;
|
|
121
|
-
/**
|
|
122
|
-
* deserializeAws_restJson1PutContactInformationCommand
|
|
123
|
-
*/
|
|
124
|
-
export declare const de_PutContactInformationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutContactInformationCommandOutput>;
|
|
125
|
-
/**
|
|
126
|
-
* deserializeAws_restJson1StartPrimaryEmailUpdateCommand
|
|
127
|
-
*/
|
|
128
|
-
export declare const de_StartPrimaryEmailUpdateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartPrimaryEmailUpdateCommandOutput>;
|