@aws-sdk/client-account 3.50.0 → 3.53.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AccountServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +71 -1
- package/dist-cjs/protocols/Aws_restJson1.js +58 -153
- package/dist-es/index.js +1 -0
- package/dist-es/models/AccountServiceException.js +12 -0
- package/dist-es/models/models_0.js +66 -1
- package/dist-es/protocols/Aws_restJson1.js +87 -171
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AccountServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +38 -22
- package/dist-types/ts3.4/Account.d.ts +20 -0
- package/dist-types/ts3.4/AccountClient.d.ts +76 -0
- package/dist-types/ts3.4/commands/DeleteAlternateContactCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAlternateContactCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutAlternateContactCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/AccountServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +109 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +11 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { AccountServiceException as __BaseException } from "../models/AccountServiceException";
|
|
5
|
+
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1DeleteAlternateContactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -95,16 +97,16 @@ export var deserializeAws_restJson1DeleteAlternateContactCommand = function (out
|
|
|
95
97
|
});
|
|
96
98
|
}); };
|
|
97
99
|
var deserializeAws_restJson1DeleteAlternateContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
98
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
99
|
-
var
|
|
100
|
-
return __generator(this, function (
|
|
101
|
-
switch (
|
|
100
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
101
|
+
var _c;
|
|
102
|
+
return __generator(this, function (_d) {
|
|
103
|
+
switch (_d.label) {
|
|
102
104
|
case 0:
|
|
103
105
|
_a = [__assign({}, output)];
|
|
104
|
-
|
|
106
|
+
_c = {};
|
|
105
107
|
return [4, parseBody(output.body, context)];
|
|
106
108
|
case 1:
|
|
107
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
109
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
108
110
|
errorCode = "UnknownError";
|
|
109
111
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
110
112
|
_b = errorCode;
|
|
@@ -121,46 +123,24 @@ var deserializeAws_restJson1DeleteAlternateContactCommandError = function (outpu
|
|
|
121
123
|
case "com.amazonaws.account#ValidationException": return [3, 10];
|
|
122
124
|
}
|
|
123
125
|
return [3, 12];
|
|
124
|
-
case 2:
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
case
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
case 4
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
case
|
|
134
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
135
|
-
return [3, 13];
|
|
136
|
-
case 6:
|
|
137
|
-
_e = [{}];
|
|
138
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
139
|
-
case 7:
|
|
140
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
141
|
-
return [3, 13];
|
|
142
|
-
case 8:
|
|
143
|
-
_f = [{}];
|
|
144
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
145
|
-
case 9:
|
|
146
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
147
|
-
return [3, 13];
|
|
148
|
-
case 10:
|
|
149
|
-
_g = [{}];
|
|
150
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
151
|
-
case 11:
|
|
152
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
153
|
-
return [3, 13];
|
|
126
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
127
|
+
case 3: throw _d.sent();
|
|
128
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
129
|
+
case 5: throw _d.sent();
|
|
130
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
131
|
+
case 7: throw _d.sent();
|
|
132
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
133
|
+
case 9: throw _d.sent();
|
|
134
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
135
|
+
case 11: throw _d.sent();
|
|
154
136
|
case 12:
|
|
155
137
|
parsedBody = parsedOutput.body;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
response
|
|
162
|
-
delete response.Message;
|
|
163
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
138
|
+
response = new __BaseException({
|
|
139
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
140
|
+
$fault: "client",
|
|
141
|
+
$metadata: deserializeMetadata(output),
|
|
142
|
+
});
|
|
143
|
+
throw __decorateServiceException(response, parsedBody);
|
|
164
144
|
}
|
|
165
145
|
});
|
|
166
146
|
}); };
|
|
@@ -189,16 +169,16 @@ export var deserializeAws_restJson1GetAlternateContactCommand = function (output
|
|
|
189
169
|
});
|
|
190
170
|
}); };
|
|
191
171
|
var deserializeAws_restJson1GetAlternateContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
192
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
193
|
-
var
|
|
194
|
-
return __generator(this, function (
|
|
195
|
-
switch (
|
|
172
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
173
|
+
var _c;
|
|
174
|
+
return __generator(this, function (_d) {
|
|
175
|
+
switch (_d.label) {
|
|
196
176
|
case 0:
|
|
197
177
|
_a = [__assign({}, output)];
|
|
198
|
-
|
|
178
|
+
_c = {};
|
|
199
179
|
return [4, parseBody(output.body, context)];
|
|
200
180
|
case 1:
|
|
201
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
181
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
202
182
|
errorCode = "UnknownError";
|
|
203
183
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
204
184
|
_b = errorCode;
|
|
@@ -215,46 +195,24 @@ var deserializeAws_restJson1GetAlternateContactCommandError = function (output,
|
|
|
215
195
|
case "com.amazonaws.account#ValidationException": return [3, 10];
|
|
216
196
|
}
|
|
217
197
|
return [3, 12];
|
|
218
|
-
case 2:
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
case
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
case 4
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
case
|
|
228
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
229
|
-
return [3, 13];
|
|
230
|
-
case 6:
|
|
231
|
-
_e = [{}];
|
|
232
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
233
|
-
case 7:
|
|
234
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
235
|
-
return [3, 13];
|
|
236
|
-
case 8:
|
|
237
|
-
_f = [{}];
|
|
238
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
239
|
-
case 9:
|
|
240
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
241
|
-
return [3, 13];
|
|
242
|
-
case 10:
|
|
243
|
-
_g = [{}];
|
|
244
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
245
|
-
case 11:
|
|
246
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
247
|
-
return [3, 13];
|
|
198
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
199
|
+
case 3: throw _d.sent();
|
|
200
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
201
|
+
case 5: throw _d.sent();
|
|
202
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
203
|
+
case 7: throw _d.sent();
|
|
204
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
205
|
+
case 9: throw _d.sent();
|
|
206
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
207
|
+
case 11: throw _d.sent();
|
|
248
208
|
case 12:
|
|
249
209
|
parsedBody = parsedOutput.body;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
response
|
|
256
|
-
delete response.Message;
|
|
257
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
210
|
+
response = new __BaseException({
|
|
211
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
212
|
+
$fault: "client",
|
|
213
|
+
$metadata: deserializeMetadata(output),
|
|
214
|
+
});
|
|
215
|
+
throw __decorateServiceException(response, parsedBody);
|
|
258
216
|
}
|
|
259
217
|
});
|
|
260
218
|
}); };
|
|
@@ -277,16 +235,16 @@ export var deserializeAws_restJson1PutAlternateContactCommand = function (output
|
|
|
277
235
|
});
|
|
278
236
|
}); };
|
|
279
237
|
var deserializeAws_restJson1PutAlternateContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
280
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
281
|
-
var
|
|
282
|
-
return __generator(this, function (
|
|
283
|
-
switch (
|
|
238
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
239
|
+
var _c;
|
|
240
|
+
return __generator(this, function (_d) {
|
|
241
|
+
switch (_d.label) {
|
|
284
242
|
case 0:
|
|
285
243
|
_a = [__assign({}, output)];
|
|
286
|
-
|
|
244
|
+
_c = {};
|
|
287
245
|
return [4, parseBody(output.body, context)];
|
|
288
246
|
case 1:
|
|
289
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
247
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
290
248
|
errorCode = "UnknownError";
|
|
291
249
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
292
250
|
_b = errorCode;
|
|
@@ -301,125 +259,83 @@ var deserializeAws_restJson1PutAlternateContactCommandError = function (output,
|
|
|
301
259
|
case "com.amazonaws.account#ValidationException": return [3, 8];
|
|
302
260
|
}
|
|
303
261
|
return [3, 10];
|
|
304
|
-
case 2:
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
case
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
case 4
|
|
311
|
-
|
|
312
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
313
|
-
case 5:
|
|
314
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
315
|
-
return [3, 11];
|
|
316
|
-
case 6:
|
|
317
|
-
_e = [{}];
|
|
318
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
319
|
-
case 7:
|
|
320
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
321
|
-
return [3, 11];
|
|
322
|
-
case 8:
|
|
323
|
-
_f = [{}];
|
|
324
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
325
|
-
case 9:
|
|
326
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
327
|
-
return [3, 11];
|
|
262
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
263
|
+
case 3: throw _d.sent();
|
|
264
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
265
|
+
case 5: throw _d.sent();
|
|
266
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
267
|
+
case 7: throw _d.sent();
|
|
268
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
269
|
+
case 9: throw _d.sent();
|
|
328
270
|
case 10:
|
|
329
271
|
parsedBody = parsedOutput.body;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
response
|
|
336
|
-
delete response.Message;
|
|
337
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
272
|
+
response = new __BaseException({
|
|
273
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
274
|
+
$fault: "client",
|
|
275
|
+
$metadata: deserializeMetadata(output),
|
|
276
|
+
});
|
|
277
|
+
throw __decorateServiceException(response, parsedBody);
|
|
338
278
|
}
|
|
339
279
|
});
|
|
340
280
|
}); };
|
|
341
281
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
342
|
-
var contents, data;
|
|
282
|
+
var contents, data, exception;
|
|
343
283
|
return __generator(this, function (_a) {
|
|
344
|
-
contents = {
|
|
345
|
-
name: "AccessDeniedException",
|
|
346
|
-
$fault: "client",
|
|
347
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
348
|
-
message: undefined,
|
|
349
|
-
};
|
|
284
|
+
contents = {};
|
|
350
285
|
data = parsedOutput.body;
|
|
351
286
|
if (data.message !== undefined && data.message !== null) {
|
|
352
287
|
contents.message = __expectString(data.message);
|
|
353
288
|
}
|
|
354
|
-
|
|
289
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
290
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
355
291
|
});
|
|
356
292
|
}); };
|
|
357
293
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
358
|
-
var contents, data;
|
|
294
|
+
var contents, data, exception;
|
|
359
295
|
return __generator(this, function (_a) {
|
|
360
|
-
contents = {
|
|
361
|
-
name: "InternalServerException",
|
|
362
|
-
$fault: "server",
|
|
363
|
-
$retryable: {},
|
|
364
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
365
|
-
message: undefined,
|
|
366
|
-
};
|
|
296
|
+
contents = {};
|
|
367
297
|
data = parsedOutput.body;
|
|
368
298
|
if (data.message !== undefined && data.message !== null) {
|
|
369
299
|
contents.message = __expectString(data.message);
|
|
370
300
|
}
|
|
371
|
-
|
|
301
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
302
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
372
303
|
});
|
|
373
304
|
}); };
|
|
374
305
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
375
|
-
var contents, data;
|
|
306
|
+
var contents, data, exception;
|
|
376
307
|
return __generator(this, function (_a) {
|
|
377
|
-
contents = {
|
|
378
|
-
name: "ResourceNotFoundException",
|
|
379
|
-
$fault: "client",
|
|
380
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
381
|
-
message: undefined,
|
|
382
|
-
};
|
|
308
|
+
contents = {};
|
|
383
309
|
data = parsedOutput.body;
|
|
384
310
|
if (data.message !== undefined && data.message !== null) {
|
|
385
311
|
contents.message = __expectString(data.message);
|
|
386
312
|
}
|
|
387
|
-
|
|
313
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
314
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
388
315
|
});
|
|
389
316
|
}); };
|
|
390
317
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
391
|
-
var contents, data;
|
|
318
|
+
var contents, data, exception;
|
|
392
319
|
return __generator(this, function (_a) {
|
|
393
|
-
contents = {
|
|
394
|
-
name: "TooManyRequestsException",
|
|
395
|
-
$fault: "client",
|
|
396
|
-
$retryable: {
|
|
397
|
-
throttling: true,
|
|
398
|
-
},
|
|
399
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
400
|
-
message: undefined,
|
|
401
|
-
};
|
|
320
|
+
contents = {};
|
|
402
321
|
data = parsedOutput.body;
|
|
403
322
|
if (data.message !== undefined && data.message !== null) {
|
|
404
323
|
contents.message = __expectString(data.message);
|
|
405
324
|
}
|
|
406
|
-
|
|
325
|
+
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
326
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
407
327
|
});
|
|
408
328
|
}); };
|
|
409
329
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
410
|
-
var contents, data;
|
|
330
|
+
var contents, data, exception;
|
|
411
331
|
return __generator(this, function (_a) {
|
|
412
|
-
contents = {
|
|
413
|
-
name: "ValidationException",
|
|
414
|
-
$fault: "client",
|
|
415
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
416
|
-
message: undefined,
|
|
417
|
-
};
|
|
332
|
+
contents = {};
|
|
418
333
|
data = parsedOutput.body;
|
|
419
334
|
if (data.message !== undefined && data.message !== null) {
|
|
420
335
|
contents.message = __expectString(data.message);
|
|
421
336
|
}
|
|
422
|
-
|
|
337
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
338
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
423
339
|
});
|
|
424
340
|
}); };
|
|
425
341
|
var deserializeAws_restJson1AlternateContact = function (output, context) {
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from Account service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AccountServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { AccountServiceException as __BaseException } from "./AccountServiceException";
|
|
2
3
|
/**
|
|
3
4
|
* <p>The operation failed because the calling identity doesn't have the minimum required
|
|
4
5
|
* permissions.</p>
|
|
5
6
|
*/
|
|
6
|
-
export
|
|
7
|
-
name: "AccessDeniedException";
|
|
8
|
-
$fault: "client";
|
|
9
|
-
|
|
7
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
8
|
+
readonly name: "AccessDeniedException";
|
|
9
|
+
readonly $fault: "client";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
10
14
|
}
|
|
11
15
|
export declare enum AlternateContactType {
|
|
12
16
|
BILLING = "BILLING",
|
|
@@ -50,39 +54,51 @@ export declare namespace DeleteAlternateContactRequest {
|
|
|
50
54
|
* <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again
|
|
51
55
|
* later.</p>
|
|
52
56
|
*/
|
|
53
|
-
export
|
|
54
|
-
name: "InternalServerException";
|
|
55
|
-
$fault: "server";
|
|
57
|
+
export declare class InternalServerException extends __BaseException {
|
|
58
|
+
readonly name: "InternalServerException";
|
|
59
|
+
readonly $fault: "server";
|
|
56
60
|
$retryable: {};
|
|
57
|
-
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
58
65
|
}
|
|
59
66
|
/**
|
|
60
67
|
* <p>The operation failed because it specified a resource that can't be found.</p>
|
|
61
68
|
*/
|
|
62
|
-
export
|
|
63
|
-
name: "ResourceNotFoundException";
|
|
64
|
-
$fault: "client";
|
|
65
|
-
|
|
69
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
70
|
+
readonly name: "ResourceNotFoundException";
|
|
71
|
+
readonly $fault: "client";
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
66
76
|
}
|
|
67
77
|
/**
|
|
68
78
|
* <p>The operation failed because it was called too frequently and exceeded a throttle
|
|
69
79
|
* limit.</p>
|
|
70
80
|
*/
|
|
71
|
-
export
|
|
72
|
-
name: "TooManyRequestsException";
|
|
73
|
-
$fault: "client";
|
|
81
|
+
export declare class TooManyRequestsException extends __BaseException {
|
|
82
|
+
readonly name: "TooManyRequestsException";
|
|
83
|
+
readonly $fault: "client";
|
|
74
84
|
$retryable: {
|
|
75
|
-
throttling:
|
|
85
|
+
throttling: boolean;
|
|
76
86
|
};
|
|
77
|
-
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
|
|
78
91
|
}
|
|
79
92
|
/**
|
|
80
93
|
* <p>The operation failed because one of the input parameters was invalid.</p>
|
|
81
94
|
*/
|
|
82
|
-
export
|
|
83
|
-
name: "ValidationException";
|
|
84
|
-
$fault: "client";
|
|
85
|
-
|
|
95
|
+
export declare class ValidationException extends __BaseException {
|
|
96
|
+
readonly name: "ValidationException";
|
|
97
|
+
readonly $fault: "client";
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
86
102
|
}
|
|
87
103
|
export interface GetAlternateContactRequest {
|
|
88
104
|
/**
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { AccountClient } from "./AccountClient";
|
|
3
|
+
import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "./commands/DeleteAlternateContactCommand";
|
|
4
|
+
import { GetAlternateContactCommandInput, GetAlternateContactCommandOutput } from "./commands/GetAlternateContactCommand";
|
|
5
|
+
import { PutAlternateContactCommandInput, PutAlternateContactCommandOutput } from "./commands/PutAlternateContactCommand";
|
|
6
|
+
|
|
7
|
+
export declare class Account extends AccountClient {
|
|
8
|
+
|
|
9
|
+
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAlternateContactCommandOutput>;
|
|
10
|
+
deleteAlternateContact(args: DeleteAlternateContactCommandInput, cb: (err: any, data?: DeleteAlternateContactCommandOutput) => void): void;
|
|
11
|
+
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAlternateContactCommandOutput) => void): void;
|
|
12
|
+
|
|
13
|
+
getAlternateContact(args: GetAlternateContactCommandInput, options?: __HttpHandlerOptions): Promise<GetAlternateContactCommandOutput>;
|
|
14
|
+
getAlternateContact(args: GetAlternateContactCommandInput, cb: (err: any, data?: GetAlternateContactCommandOutput) => void): void;
|
|
15
|
+
getAlternateContact(args: GetAlternateContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAlternateContactCommandOutput) => void): void;
|
|
16
|
+
|
|
17
|
+
putAlternateContact(args: PutAlternateContactCommandInput, options?: __HttpHandlerOptions): Promise<PutAlternateContactCommandOutput>;
|
|
18
|
+
putAlternateContact(args: PutAlternateContactCommandInput, cb: (err: any, data?: PutAlternateContactCommandOutput) => void): void;
|
|
19
|
+
putAlternateContact(args: PutAlternateContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAlternateContactCommandOutput) => void): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "./commands/DeleteAlternateContactCommand";
|
|
10
|
+
import { GetAlternateContactCommandInput, GetAlternateContactCommandOutput } from "./commands/GetAlternateContactCommand";
|
|
11
|
+
import { PutAlternateContactCommandInput, PutAlternateContactCommandOutput } from "./commands/PutAlternateContactCommand";
|
|
12
|
+
export declare type ServiceInputTypes = DeleteAlternateContactCommandInput | GetAlternateContactCommandInput | PutAlternateContactCommandInput;
|
|
13
|
+
export declare type ServiceOutputTypes = DeleteAlternateContactCommandOutput | GetAlternateContactCommandOutput | PutAlternateContactCommandOutput;
|
|
14
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
15
|
+
|
|
16
|
+
requestHandler?: __HttpHandler;
|
|
17
|
+
|
|
18
|
+
sha256?: __HashConstructor;
|
|
19
|
+
|
|
20
|
+
urlParser?: __UrlParser;
|
|
21
|
+
|
|
22
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
23
|
+
|
|
24
|
+
streamCollector?: __StreamCollector;
|
|
25
|
+
|
|
26
|
+
base64Decoder?: __Decoder;
|
|
27
|
+
|
|
28
|
+
base64Encoder?: __Encoder;
|
|
29
|
+
|
|
30
|
+
utf8Decoder?: __Decoder;
|
|
31
|
+
|
|
32
|
+
utf8Encoder?: __Encoder;
|
|
33
|
+
|
|
34
|
+
runtime?: string;
|
|
35
|
+
|
|
36
|
+
disableHostPrefix?: boolean;
|
|
37
|
+
|
|
38
|
+
maxAttempts?: number | __Provider<number>;
|
|
39
|
+
|
|
40
|
+
retryMode?: string | __Provider<string>;
|
|
41
|
+
|
|
42
|
+
logger?: __Logger;
|
|
43
|
+
|
|
44
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
45
|
+
|
|
46
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
47
|
+
|
|
48
|
+
serviceId?: string;
|
|
49
|
+
|
|
50
|
+
region?: string | __Provider<string>;
|
|
51
|
+
|
|
52
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
53
|
+
|
|
54
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
55
|
+
|
|
56
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
57
|
+
|
|
58
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
59
|
+
}
|
|
60
|
+
declare type AccountClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
61
|
+
|
|
62
|
+
export interface AccountClientConfig extends AccountClientConfigType {
|
|
63
|
+
}
|
|
64
|
+
declare type AccountClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
65
|
+
|
|
66
|
+
export interface AccountClientResolvedConfig extends AccountClientResolvedConfigType {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare class AccountClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, AccountClientResolvedConfig> {
|
|
70
|
+
|
|
71
|
+
readonly config: AccountClientResolvedConfig;
|
|
72
|
+
constructor(configuration: AccountClientConfig);
|
|
73
|
+
|
|
74
|
+
destroy(): void;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
|
|
4
|
+
import { DeleteAlternateContactRequest } from "../models/models_0";
|
|
5
|
+
export interface DeleteAlternateContactCommandInput extends DeleteAlternateContactRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteAlternateContactCommandOutput extends __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class DeleteAlternateContactCommand extends $Command<DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput, AccountClientResolvedConfig> {
|
|
11
|
+
readonly input: DeleteAlternateContactCommandInput;
|
|
12
|
+
constructor(input: DeleteAlternateContactCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AccountClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
|
|
4
|
+
import { GetAlternateContactRequest, GetAlternateContactResponse } from "../models/models_0";
|
|
5
|
+
export interface GetAlternateContactCommandInput extends GetAlternateContactRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetAlternateContactCommandOutput extends GetAlternateContactResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class GetAlternateContactCommand extends $Command<GetAlternateContactCommandInput, GetAlternateContactCommandOutput, AccountClientResolvedConfig> {
|
|
11
|
+
readonly input: GetAlternateContactCommandInput;
|
|
12
|
+
constructor(input: GetAlternateContactCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AccountClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAlternateContactCommandInput, GetAlternateContactCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
|
|
4
|
+
import { PutAlternateContactRequest } from "../models/models_0";
|
|
5
|
+
export interface PutAlternateContactCommandInput extends PutAlternateContactRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface PutAlternateContactCommandOutput extends __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class PutAlternateContactCommand extends $Command<PutAlternateContactCommandInput, PutAlternateContactCommandOutput, AccountClientResolvedConfig> {
|
|
11
|
+
readonly input: PutAlternateContactCommandInput;
|
|
12
|
+
constructor(input: PutAlternateContactCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AccountClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutAlternateContactCommandInput, PutAlternateContactCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|