@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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-account
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-account
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-account
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./Account"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./AccountClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var AccountServiceException_1 = require("./models/AccountServiceException");
|
|
10
|
+
Object.defineProperty(exports, "AccountServiceException", { enumerable: true, get: function () { return AccountServiceException_1.AccountServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class AccountServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, AccountServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.AccountServiceException = AccountServiceException;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutAlternateContactRequest = exports.GetAlternateContactResponse = exports.AlternateContact = exports.GetAlternateContactRequest = exports.DeleteAlternateContactRequest = exports.AlternateContactType = void 0;
|
|
3
|
+
exports.PutAlternateContactRequest = exports.GetAlternateContactResponse = exports.AlternateContact = exports.GetAlternateContactRequest = exports.ValidationException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InternalServerException = exports.DeleteAlternateContactRequest = exports.AlternateContactType = exports.AccessDeniedException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const AccountServiceException_1 = require("./AccountServiceException");
|
|
6
|
+
class AccessDeniedException extends AccountServiceException_1.AccountServiceException {
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "AccessDeniedException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
this.name = "AccessDeniedException";
|
|
14
|
+
this.$fault = "client";
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
5
19
|
var AlternateContactType;
|
|
6
20
|
(function (AlternateContactType) {
|
|
7
21
|
AlternateContactType["BILLING"] = "BILLING";
|
|
@@ -14,6 +28,62 @@ var DeleteAlternateContactRequest;
|
|
|
14
28
|
...obj,
|
|
15
29
|
});
|
|
16
30
|
})(DeleteAlternateContactRequest = exports.DeleteAlternateContactRequest || (exports.DeleteAlternateContactRequest = {}));
|
|
31
|
+
class InternalServerException extends AccountServiceException_1.AccountServiceException {
|
|
32
|
+
constructor(opts) {
|
|
33
|
+
super({
|
|
34
|
+
name: "InternalServerException",
|
|
35
|
+
$fault: "server",
|
|
36
|
+
...opts,
|
|
37
|
+
});
|
|
38
|
+
this.name = "InternalServerException";
|
|
39
|
+
this.$fault = "server";
|
|
40
|
+
this.$retryable = {};
|
|
41
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.InternalServerException = InternalServerException;
|
|
45
|
+
class ResourceNotFoundException extends AccountServiceException_1.AccountServiceException {
|
|
46
|
+
constructor(opts) {
|
|
47
|
+
super({
|
|
48
|
+
name: "ResourceNotFoundException",
|
|
49
|
+
$fault: "client",
|
|
50
|
+
...opts,
|
|
51
|
+
});
|
|
52
|
+
this.name = "ResourceNotFoundException";
|
|
53
|
+
this.$fault = "client";
|
|
54
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
58
|
+
class TooManyRequestsException extends AccountServiceException_1.AccountServiceException {
|
|
59
|
+
constructor(opts) {
|
|
60
|
+
super({
|
|
61
|
+
name: "TooManyRequestsException",
|
|
62
|
+
$fault: "client",
|
|
63
|
+
...opts,
|
|
64
|
+
});
|
|
65
|
+
this.name = "TooManyRequestsException";
|
|
66
|
+
this.$fault = "client";
|
|
67
|
+
this.$retryable = {
|
|
68
|
+
throttling: true,
|
|
69
|
+
};
|
|
70
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
74
|
+
class ValidationException extends AccountServiceException_1.AccountServiceException {
|
|
75
|
+
constructor(opts) {
|
|
76
|
+
super({
|
|
77
|
+
name: "ValidationException",
|
|
78
|
+
$fault: "client",
|
|
79
|
+
...opts,
|
|
80
|
+
});
|
|
81
|
+
this.name = "ValidationException";
|
|
82
|
+
this.$fault = "client";
|
|
83
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.ValidationException = ValidationException;
|
|
17
87
|
var GetAlternateContactRequest;
|
|
18
88
|
(function (GetAlternateContactRequest) {
|
|
19
89
|
GetAlternateContactRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1PutAlternateContactCommand = exports.deserializeAws_restJson1GetAlternateContactCommand = exports.deserializeAws_restJson1DeleteAlternateContactCommand = exports.serializeAws_restJson1PutAlternateContactCommand = exports.serializeAws_restJson1GetAlternateContactCommand = exports.serializeAws_restJson1DeleteAlternateContactCommand = 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
|
+
const AccountServiceException_1 = require("../models/AccountServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_restJson1DeleteAlternateContactCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -98,59 +100,28 @@ const deserializeAws_restJson1DeleteAlternateContactCommandError = async (output
|
|
|
98
100
|
switch (errorCode) {
|
|
99
101
|
case "AccessDeniedException":
|
|
100
102
|
case "com.amazonaws.account#AccessDeniedException":
|
|
101
|
-
|
|
102
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
103
|
-
name: errorCode,
|
|
104
|
-
$metadata: deserializeMetadata(output),
|
|
105
|
-
};
|
|
106
|
-
break;
|
|
103
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
107
104
|
case "InternalServerException":
|
|
108
105
|
case "com.amazonaws.account#InternalServerException":
|
|
109
|
-
|
|
110
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
111
|
-
name: errorCode,
|
|
112
|
-
$metadata: deserializeMetadata(output),
|
|
113
|
-
};
|
|
114
|
-
break;
|
|
106
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
115
107
|
case "ResourceNotFoundException":
|
|
116
108
|
case "com.amazonaws.account#ResourceNotFoundException":
|
|
117
|
-
|
|
118
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
119
|
-
name: errorCode,
|
|
120
|
-
$metadata: deserializeMetadata(output),
|
|
121
|
-
};
|
|
122
|
-
break;
|
|
109
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
123
110
|
case "TooManyRequestsException":
|
|
124
111
|
case "com.amazonaws.account#TooManyRequestsException":
|
|
125
|
-
|
|
126
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
127
|
-
name: errorCode,
|
|
128
|
-
$metadata: deserializeMetadata(output),
|
|
129
|
-
};
|
|
130
|
-
break;
|
|
112
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
131
113
|
case "ValidationException":
|
|
132
114
|
case "com.amazonaws.account#ValidationException":
|
|
133
|
-
|
|
134
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
135
|
-
name: errorCode,
|
|
136
|
-
$metadata: deserializeMetadata(output),
|
|
137
|
-
};
|
|
138
|
-
break;
|
|
115
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
139
116
|
default:
|
|
140
117
|
const parsedBody = parsedOutput.body;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
...parsedBody,
|
|
144
|
-
name: `${errorCode}`,
|
|
145
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
118
|
+
response = new AccountServiceException_1.AccountServiceException({
|
|
119
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
146
120
|
$fault: "client",
|
|
147
121
|
$metadata: deserializeMetadata(output),
|
|
148
|
-
};
|
|
122
|
+
});
|
|
123
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
149
124
|
}
|
|
150
|
-
const message = response.message || response.Message || errorCode;
|
|
151
|
-
response.message = message;
|
|
152
|
-
delete response.Message;
|
|
153
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
154
125
|
};
|
|
155
126
|
const deserializeAws_restJson1GetAlternateContactCommand = async (output, context) => {
|
|
156
127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -178,59 +149,28 @@ const deserializeAws_restJson1GetAlternateContactCommandError = async (output, c
|
|
|
178
149
|
switch (errorCode) {
|
|
179
150
|
case "AccessDeniedException":
|
|
180
151
|
case "com.amazonaws.account#AccessDeniedException":
|
|
181
|
-
|
|
182
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
183
|
-
name: errorCode,
|
|
184
|
-
$metadata: deserializeMetadata(output),
|
|
185
|
-
};
|
|
186
|
-
break;
|
|
152
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
187
153
|
case "InternalServerException":
|
|
188
154
|
case "com.amazonaws.account#InternalServerException":
|
|
189
|
-
|
|
190
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
191
|
-
name: errorCode,
|
|
192
|
-
$metadata: deserializeMetadata(output),
|
|
193
|
-
};
|
|
194
|
-
break;
|
|
155
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
195
156
|
case "ResourceNotFoundException":
|
|
196
157
|
case "com.amazonaws.account#ResourceNotFoundException":
|
|
197
|
-
|
|
198
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
199
|
-
name: errorCode,
|
|
200
|
-
$metadata: deserializeMetadata(output),
|
|
201
|
-
};
|
|
202
|
-
break;
|
|
158
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
203
159
|
case "TooManyRequestsException":
|
|
204
160
|
case "com.amazonaws.account#TooManyRequestsException":
|
|
205
|
-
|
|
206
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
207
|
-
name: errorCode,
|
|
208
|
-
$metadata: deserializeMetadata(output),
|
|
209
|
-
};
|
|
210
|
-
break;
|
|
161
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
211
162
|
case "ValidationException":
|
|
212
163
|
case "com.amazonaws.account#ValidationException":
|
|
213
|
-
|
|
214
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
215
|
-
name: errorCode,
|
|
216
|
-
$metadata: deserializeMetadata(output),
|
|
217
|
-
};
|
|
218
|
-
break;
|
|
164
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
219
165
|
default:
|
|
220
166
|
const parsedBody = parsedOutput.body;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
...parsedBody,
|
|
224
|
-
name: `${errorCode}`,
|
|
225
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
167
|
+
response = new AccountServiceException_1.AccountServiceException({
|
|
168
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
226
169
|
$fault: "client",
|
|
227
170
|
$metadata: deserializeMetadata(output),
|
|
228
|
-
};
|
|
171
|
+
});
|
|
172
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
229
173
|
}
|
|
230
|
-
const message = response.message || response.Message || errorCode;
|
|
231
|
-
response.message = message;
|
|
232
|
-
delete response.Message;
|
|
233
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
234
174
|
};
|
|
235
175
|
const deserializeAws_restJson1PutAlternateContactCommand = async (output, context) => {
|
|
236
176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -254,120 +194,85 @@ const deserializeAws_restJson1PutAlternateContactCommandError = async (output, c
|
|
|
254
194
|
switch (errorCode) {
|
|
255
195
|
case "AccessDeniedException":
|
|
256
196
|
case "com.amazonaws.account#AccessDeniedException":
|
|
257
|
-
|
|
258
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
259
|
-
name: errorCode,
|
|
260
|
-
$metadata: deserializeMetadata(output),
|
|
261
|
-
};
|
|
262
|
-
break;
|
|
197
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
263
198
|
case "InternalServerException":
|
|
264
199
|
case "com.amazonaws.account#InternalServerException":
|
|
265
|
-
|
|
266
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
267
|
-
name: errorCode,
|
|
268
|
-
$metadata: deserializeMetadata(output),
|
|
269
|
-
};
|
|
270
|
-
break;
|
|
200
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
271
201
|
case "TooManyRequestsException":
|
|
272
202
|
case "com.amazonaws.account#TooManyRequestsException":
|
|
273
|
-
|
|
274
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
275
|
-
name: errorCode,
|
|
276
|
-
$metadata: deserializeMetadata(output),
|
|
277
|
-
};
|
|
278
|
-
break;
|
|
203
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
279
204
|
case "ValidationException":
|
|
280
205
|
case "com.amazonaws.account#ValidationException":
|
|
281
|
-
|
|
282
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
283
|
-
name: errorCode,
|
|
284
|
-
$metadata: deserializeMetadata(output),
|
|
285
|
-
};
|
|
286
|
-
break;
|
|
206
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
287
207
|
default:
|
|
288
208
|
const parsedBody = parsedOutput.body;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
...parsedBody,
|
|
292
|
-
name: `${errorCode}`,
|
|
293
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
209
|
+
response = new AccountServiceException_1.AccountServiceException({
|
|
210
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
294
211
|
$fault: "client",
|
|
295
212
|
$metadata: deserializeMetadata(output),
|
|
296
|
-
};
|
|
213
|
+
});
|
|
214
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
297
215
|
}
|
|
298
|
-
const message = response.message || response.Message || errorCode;
|
|
299
|
-
response.message = message;
|
|
300
|
-
delete response.Message;
|
|
301
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
302
216
|
};
|
|
303
217
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
304
|
-
const contents = {
|
|
305
|
-
name: "AccessDeniedException",
|
|
306
|
-
$fault: "client",
|
|
307
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
308
|
-
message: undefined,
|
|
309
|
-
};
|
|
218
|
+
const contents = {};
|
|
310
219
|
const data = parsedOutput.body;
|
|
311
220
|
if (data.message !== undefined && data.message !== null) {
|
|
312
221
|
contents.message = smithy_client_1.expectString(data.message);
|
|
313
222
|
}
|
|
314
|
-
|
|
223
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
224
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
225
|
+
...contents,
|
|
226
|
+
});
|
|
227
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
315
228
|
};
|
|
316
229
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
317
|
-
const contents = {
|
|
318
|
-
name: "InternalServerException",
|
|
319
|
-
$fault: "server",
|
|
320
|
-
$retryable: {},
|
|
321
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
322
|
-
message: undefined,
|
|
323
|
-
};
|
|
230
|
+
const contents = {};
|
|
324
231
|
const data = parsedOutput.body;
|
|
325
232
|
if (data.message !== undefined && data.message !== null) {
|
|
326
233
|
contents.message = smithy_client_1.expectString(data.message);
|
|
327
234
|
}
|
|
328
|
-
|
|
235
|
+
const exception = new models_0_1.InternalServerException({
|
|
236
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
237
|
+
...contents,
|
|
238
|
+
});
|
|
239
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
329
240
|
};
|
|
330
241
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
331
|
-
const contents = {
|
|
332
|
-
name: "ResourceNotFoundException",
|
|
333
|
-
$fault: "client",
|
|
334
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
335
|
-
message: undefined,
|
|
336
|
-
};
|
|
242
|
+
const contents = {};
|
|
337
243
|
const data = parsedOutput.body;
|
|
338
244
|
if (data.message !== undefined && data.message !== null) {
|
|
339
245
|
contents.message = smithy_client_1.expectString(data.message);
|
|
340
246
|
}
|
|
341
|
-
|
|
247
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
248
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
249
|
+
...contents,
|
|
250
|
+
});
|
|
251
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
342
252
|
};
|
|
343
253
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
344
|
-
const contents = {
|
|
345
|
-
name: "TooManyRequestsException",
|
|
346
|
-
$fault: "client",
|
|
347
|
-
$retryable: {
|
|
348
|
-
throttling: true,
|
|
349
|
-
},
|
|
350
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
351
|
-
message: undefined,
|
|
352
|
-
};
|
|
254
|
+
const contents = {};
|
|
353
255
|
const data = parsedOutput.body;
|
|
354
256
|
if (data.message !== undefined && data.message !== null) {
|
|
355
257
|
contents.message = smithy_client_1.expectString(data.message);
|
|
356
258
|
}
|
|
357
|
-
|
|
259
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
260
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
261
|
+
...contents,
|
|
262
|
+
});
|
|
263
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
358
264
|
};
|
|
359
265
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
360
|
-
const contents = {
|
|
361
|
-
name: "ValidationException",
|
|
362
|
-
$fault: "client",
|
|
363
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
364
|
-
message: undefined,
|
|
365
|
-
};
|
|
266
|
+
const contents = {};
|
|
366
267
|
const data = parsedOutput.body;
|
|
367
268
|
if (data.message !== undefined && data.message !== null) {
|
|
368
269
|
contents.message = smithy_client_1.expectString(data.message);
|
|
369
270
|
}
|
|
370
|
-
|
|
271
|
+
const exception = new models_0_1.ValidationException({
|
|
272
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
273
|
+
...contents,
|
|
274
|
+
});
|
|
275
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
371
276
|
};
|
|
372
277
|
const deserializeAws_restJson1AlternateContact = (output, context) => {
|
|
373
278
|
return {
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var AccountServiceException = (function (_super) {
|
|
4
|
+
__extends(AccountServiceException, _super);
|
|
5
|
+
function AccountServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, AccountServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return AccountServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { AccountServiceException };
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { AccountServiceException as __BaseException } from "./AccountServiceException";
|
|
4
|
+
var AccessDeniedException = (function (_super) {
|
|
5
|
+
__extends(AccessDeniedException, _super);
|
|
6
|
+
function AccessDeniedException(opts) {
|
|
7
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
8
|
+
_this.name = "AccessDeniedException";
|
|
9
|
+
_this.$fault = "client";
|
|
10
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
return AccessDeniedException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { AccessDeniedException };
|
|
3
16
|
export var AlternateContactType;
|
|
4
17
|
(function (AlternateContactType) {
|
|
5
18
|
AlternateContactType["BILLING"] = "BILLING";
|
|
@@ -10,6 +23,58 @@ export var DeleteAlternateContactRequest;
|
|
|
10
23
|
(function (DeleteAlternateContactRequest) {
|
|
11
24
|
DeleteAlternateContactRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
12
25
|
})(DeleteAlternateContactRequest || (DeleteAlternateContactRequest = {}));
|
|
26
|
+
var InternalServerException = (function (_super) {
|
|
27
|
+
__extends(InternalServerException, _super);
|
|
28
|
+
function InternalServerException(opts) {
|
|
29
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
30
|
+
_this.name = "InternalServerException";
|
|
31
|
+
_this.$fault = "server";
|
|
32
|
+
_this.$retryable = {};
|
|
33
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
34
|
+
return _this;
|
|
35
|
+
}
|
|
36
|
+
return InternalServerException;
|
|
37
|
+
}(__BaseException));
|
|
38
|
+
export { InternalServerException };
|
|
39
|
+
var ResourceNotFoundException = (function (_super) {
|
|
40
|
+
__extends(ResourceNotFoundException, _super);
|
|
41
|
+
function ResourceNotFoundException(opts) {
|
|
42
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
43
|
+
_this.name = "ResourceNotFoundException";
|
|
44
|
+
_this.$fault = "client";
|
|
45
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
46
|
+
return _this;
|
|
47
|
+
}
|
|
48
|
+
return ResourceNotFoundException;
|
|
49
|
+
}(__BaseException));
|
|
50
|
+
export { ResourceNotFoundException };
|
|
51
|
+
var TooManyRequestsException = (function (_super) {
|
|
52
|
+
__extends(TooManyRequestsException, _super);
|
|
53
|
+
function TooManyRequestsException(opts) {
|
|
54
|
+
var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
|
|
55
|
+
_this.name = "TooManyRequestsException";
|
|
56
|
+
_this.$fault = "client";
|
|
57
|
+
_this.$retryable = {
|
|
58
|
+
throttling: true,
|
|
59
|
+
};
|
|
60
|
+
Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
|
|
61
|
+
return _this;
|
|
62
|
+
}
|
|
63
|
+
return TooManyRequestsException;
|
|
64
|
+
}(__BaseException));
|
|
65
|
+
export { TooManyRequestsException };
|
|
66
|
+
var ValidationException = (function (_super) {
|
|
67
|
+
__extends(ValidationException, _super);
|
|
68
|
+
function ValidationException(opts) {
|
|
69
|
+
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
|
|
70
|
+
_this.name = "ValidationException";
|
|
71
|
+
_this.$fault = "client";
|
|
72
|
+
Object.setPrototypeOf(_this, ValidationException.prototype);
|
|
73
|
+
return _this;
|
|
74
|
+
}
|
|
75
|
+
return ValidationException;
|
|
76
|
+
}(__BaseException));
|
|
77
|
+
export { ValidationException };
|
|
13
78
|
export var GetAlternateContactRequest;
|
|
14
79
|
(function (GetAlternateContactRequest) {
|
|
15
80
|
GetAlternateContactRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|