@aws-sdk/client-account 3.136.0 → 3.142.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.
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { PutContactInformationRequest } from "../models/models_0";
4
+ import { PutContactInformationRequestFilterSensitiveLog } from "../models/models_0";
5
5
  import { deserializeAws_restJson1PutContactInformationCommand, serializeAws_restJson1PutContactInformationCommand, } from "../protocols/Aws_restJson1";
6
6
  var PutContactInformationCommand = (function (_super) {
7
7
  __extends(PutContactInformationCommand, _super);
@@ -20,7 +20,7 @@ var PutContactInformationCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: PutContactInformationRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: PutContactInformationRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: function (output) { return output; },
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
@@ -19,10 +19,6 @@ export var AlternateContactType;
19
19
  AlternateContactType["OPERATIONS"] = "OPERATIONS";
20
20
  AlternateContactType["SECURITY"] = "SECURITY";
21
21
  })(AlternateContactType || (AlternateContactType = {}));
22
- export var DeleteAlternateContactRequest;
23
- (function (DeleteAlternateContactRequest) {
24
- DeleteAlternateContactRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
- })(DeleteAlternateContactRequest || (DeleteAlternateContactRequest = {}));
26
22
  var InternalServerException = (function (_super) {
27
23
  __extends(InternalServerException, _super);
28
24
  function InternalServerException(opts) {
@@ -75,39 +71,12 @@ var ValidationException = (function (_super) {
75
71
  return ValidationException;
76
72
  }(__BaseException));
77
73
  export { ValidationException };
78
- export var GetAlternateContactRequest;
79
- (function (GetAlternateContactRequest) {
80
- GetAlternateContactRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
81
- })(GetAlternateContactRequest || (GetAlternateContactRequest = {}));
82
- export var AlternateContact;
83
- (function (AlternateContact) {
84
- AlternateContact.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Title && { Title: SENSITIVE_STRING })), (obj.EmailAddress && { EmailAddress: SENSITIVE_STRING })), (obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }))); };
85
- })(AlternateContact || (AlternateContact = {}));
86
- export var GetAlternateContactResponse;
87
- (function (GetAlternateContactResponse) {
88
- GetAlternateContactResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.AlternateContact && { AlternateContact: AlternateContact.filterSensitiveLog(obj.AlternateContact) }))); };
89
- })(GetAlternateContactResponse || (GetAlternateContactResponse = {}));
90
- export var PutAlternateContactRequest;
91
- (function (PutAlternateContactRequest) {
92
- PutAlternateContactRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Title && { Title: SENSITIVE_STRING })), (obj.EmailAddress && { EmailAddress: SENSITIVE_STRING })), (obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }))); };
93
- })(PutAlternateContactRequest || (PutAlternateContactRequest = {}));
94
- export var GetContactInformationRequest;
95
- (function (GetContactInformationRequest) {
96
- GetContactInformationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
- })(GetContactInformationRequest || (GetContactInformationRequest = {}));
98
- export var ContactInformation;
99
- (function (ContactInformation) {
100
- ContactInformation.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, obj), (obj.FullName && { FullName: SENSITIVE_STRING })), (obj.AddressLine1 && { AddressLine1: SENSITIVE_STRING })), (obj.AddressLine2 && { AddressLine2: SENSITIVE_STRING })), (obj.AddressLine3 && { AddressLine3: SENSITIVE_STRING })), (obj.City && { City: SENSITIVE_STRING })), (obj.StateOrRegion && { StateOrRegion: SENSITIVE_STRING })), (obj.DistrictOrCounty && { DistrictOrCounty: SENSITIVE_STRING })), (obj.PostalCode && { PostalCode: SENSITIVE_STRING })), (obj.CountryCode && { CountryCode: SENSITIVE_STRING })), (obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING })), (obj.CompanyName && { CompanyName: SENSITIVE_STRING })), (obj.WebsiteUrl && { WebsiteUrl: SENSITIVE_STRING }))); };
101
- })(ContactInformation || (ContactInformation = {}));
102
- export var GetContactInformationResponse;
103
- (function (GetContactInformationResponse) {
104
- GetContactInformationResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ContactInformation && {
105
- ContactInformation: ContactInformation.filterSensitiveLog(obj.ContactInformation),
106
- }))); };
107
- })(GetContactInformationResponse || (GetContactInformationResponse = {}));
108
- export var PutContactInformationRequest;
109
- (function (PutContactInformationRequest) {
110
- PutContactInformationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ContactInformation && {
111
- ContactInformation: ContactInformation.filterSensitiveLog(obj.ContactInformation),
112
- }))); };
113
- })(PutContactInformationRequest || (PutContactInformationRequest = {}));
74
+ export var DeleteAlternateContactRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
75
+ export var GetAlternateContactRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
76
+ export var AlternateContactFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Title && { Title: SENSITIVE_STRING })), (obj.EmailAddress && { EmailAddress: SENSITIVE_STRING })), (obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }))); };
77
+ export var GetAlternateContactResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.AlternateContact && { AlternateContact: AlternateContactFilterSensitiveLog(obj.AlternateContact) }))); };
78
+ export var PutAlternateContactRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Title && { Title: SENSITIVE_STRING })), (obj.EmailAddress && { EmailAddress: SENSITIVE_STRING })), (obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }))); };
79
+ export var GetContactInformationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
80
+ export var ContactInformationFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, obj), (obj.FullName && { FullName: SENSITIVE_STRING })), (obj.AddressLine1 && { AddressLine1: SENSITIVE_STRING })), (obj.AddressLine2 && { AddressLine2: SENSITIVE_STRING })), (obj.AddressLine3 && { AddressLine3: SENSITIVE_STRING })), (obj.City && { City: SENSITIVE_STRING })), (obj.StateOrRegion && { StateOrRegion: SENSITIVE_STRING })), (obj.DistrictOrCounty && { DistrictOrCounty: SENSITIVE_STRING })), (obj.PostalCode && { PostalCode: SENSITIVE_STRING })), (obj.CountryCode && { CountryCode: SENSITIVE_STRING })), (obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING })), (obj.CompanyName && { CompanyName: SENSITIVE_STRING })), (obj.WebsiteUrl && { WebsiteUrl: SENSITIVE_STRING }))); };
81
+ export var GetContactInformationResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }))); };
82
+ export var PutContactInformationRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }))); };
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, 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, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { AccountServiceException as __BaseException } from "../models/AccountServiceException";
5
5
  import { AccessDeniedException, InternalServerException, ResourceNotFoundException, TooManyRequestsException, ValidationException, } from "../models/models_0";
6
6
  export var serializeAws_restJson1DeleteAlternateContactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -133,18 +133,18 @@ export var deserializeAws_restJson1DeleteAlternateContactCommand = function (out
133
133
  if (output.statusCode !== 200 && output.statusCode >= 300) {
134
134
  return [2, deserializeAws_restJson1DeleteAlternateContactCommandError(output, context)];
135
135
  }
136
- contents = {
136
+ contents = map({
137
137
  $metadata: deserializeMetadata(output),
138
- };
138
+ });
139
139
  return [4, collectBody(output.body, context)];
140
140
  case 1:
141
141
  _a.sent();
142
- return [2, Promise.resolve(contents)];
142
+ return [2, contents];
143
143
  }
144
144
  });
145
145
  }); };
146
146
  var deserializeAws_restJson1DeleteAlternateContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
147
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
147
+ var parsedOutput, _a, errorCode, _b, parsedBody;
148
148
  var _c;
149
149
  return __generator(this, function (_d) {
150
150
  switch (_d.label) {
@@ -181,14 +181,14 @@ var deserializeAws_restJson1DeleteAlternateContactCommandError = function (outpu
181
181
  case 11: throw _d.sent();
182
182
  case 12:
183
183
  parsedBody = parsedOutput.body;
184
- $metadata = deserializeMetadata(output);
185
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
186
- response = new __BaseException({
187
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
188
- $fault: "client",
189
- $metadata: $metadata,
184
+ throwDefaultError({
185
+ output: output,
186
+ parsedBody: parsedBody,
187
+ exceptionCtor: __BaseException,
188
+ errorCode: errorCode,
190
189
  });
191
- throw __decorateServiceException(response, parsedBody);
190
+ _d.label = 13;
191
+ case 13: return [2];
192
192
  }
193
193
  });
194
194
  }); };
@@ -200,24 +200,23 @@ export var deserializeAws_restJson1GetAlternateContactCommand = function (output
200
200
  if (output.statusCode !== 200 && output.statusCode >= 300) {
201
201
  return [2, deserializeAws_restJson1GetAlternateContactCommandError(output, context)];
202
202
  }
203
- contents = {
203
+ contents = map({
204
204
  $metadata: deserializeMetadata(output),
205
- AlternateContact: undefined,
206
- };
205
+ });
207
206
  _a = __expectNonNull;
208
207
  _b = __expectObject;
209
208
  return [4, parseBody(output.body, context)];
210
209
  case 1:
211
210
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
212
- if (data.AlternateContact !== undefined && data.AlternateContact !== null) {
211
+ if (data.AlternateContact != null) {
213
212
  contents.AlternateContact = deserializeAws_restJson1AlternateContact(data.AlternateContact, context);
214
213
  }
215
- return [2, Promise.resolve(contents)];
214
+ return [2, contents];
216
215
  }
217
216
  });
218
217
  }); };
219
218
  var deserializeAws_restJson1GetAlternateContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
220
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
219
+ var parsedOutput, _a, errorCode, _b, parsedBody;
221
220
  var _c;
222
221
  return __generator(this, function (_d) {
223
222
  switch (_d.label) {
@@ -254,14 +253,14 @@ var deserializeAws_restJson1GetAlternateContactCommandError = function (output,
254
253
  case 11: throw _d.sent();
255
254
  case 12:
256
255
  parsedBody = parsedOutput.body;
257
- $metadata = deserializeMetadata(output);
258
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
259
- response = new __BaseException({
260
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
261
- $fault: "client",
262
- $metadata: $metadata,
256
+ throwDefaultError({
257
+ output: output,
258
+ parsedBody: parsedBody,
259
+ exceptionCtor: __BaseException,
260
+ errorCode: errorCode,
263
261
  });
264
- throw __decorateServiceException(response, parsedBody);
262
+ _d.label = 13;
263
+ case 13: return [2];
265
264
  }
266
265
  });
267
266
  }); };
@@ -273,24 +272,23 @@ export var deserializeAws_restJson1GetContactInformationCommand = function (outp
273
272
  if (output.statusCode !== 200 && output.statusCode >= 300) {
274
273
  return [2, deserializeAws_restJson1GetContactInformationCommandError(output, context)];
275
274
  }
276
- contents = {
275
+ contents = map({
277
276
  $metadata: deserializeMetadata(output),
278
- ContactInformation: undefined,
279
- };
277
+ });
280
278
  _a = __expectNonNull;
281
279
  _b = __expectObject;
282
280
  return [4, parseBody(output.body, context)];
283
281
  case 1:
284
282
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
285
- if (data.ContactInformation !== undefined && data.ContactInformation !== null) {
283
+ if (data.ContactInformation != null) {
286
284
  contents.ContactInformation = deserializeAws_restJson1ContactInformation(data.ContactInformation, context);
287
285
  }
288
- return [2, Promise.resolve(contents)];
286
+ return [2, contents];
289
287
  }
290
288
  });
291
289
  }); };
292
290
  var deserializeAws_restJson1GetContactInformationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
293
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
291
+ var parsedOutput, _a, errorCode, _b, parsedBody;
294
292
  var _c;
295
293
  return __generator(this, function (_d) {
296
294
  switch (_d.label) {
@@ -327,14 +325,14 @@ var deserializeAws_restJson1GetContactInformationCommandError = function (output
327
325
  case 11: throw _d.sent();
328
326
  case 12:
329
327
  parsedBody = parsedOutput.body;
330
- $metadata = deserializeMetadata(output);
331
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
332
- response = new __BaseException({
333
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
334
- $fault: "client",
335
- $metadata: $metadata,
328
+ throwDefaultError({
329
+ output: output,
330
+ parsedBody: parsedBody,
331
+ exceptionCtor: __BaseException,
332
+ errorCode: errorCode,
336
333
  });
337
- throw __decorateServiceException(response, parsedBody);
334
+ _d.label = 13;
335
+ case 13: return [2];
338
336
  }
339
337
  });
340
338
  }); };
@@ -346,18 +344,18 @@ export var deserializeAws_restJson1PutAlternateContactCommand = function (output
346
344
  if (output.statusCode !== 200 && output.statusCode >= 300) {
347
345
  return [2, deserializeAws_restJson1PutAlternateContactCommandError(output, context)];
348
346
  }
349
- contents = {
347
+ contents = map({
350
348
  $metadata: deserializeMetadata(output),
351
- };
349
+ });
352
350
  return [4, collectBody(output.body, context)];
353
351
  case 1:
354
352
  _a.sent();
355
- return [2, Promise.resolve(contents)];
353
+ return [2, contents];
356
354
  }
357
355
  });
358
356
  }); };
359
357
  var deserializeAws_restJson1PutAlternateContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
360
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
358
+ var parsedOutput, _a, errorCode, _b, parsedBody;
361
359
  var _c;
362
360
  return __generator(this, function (_d) {
363
361
  switch (_d.label) {
@@ -390,14 +388,14 @@ var deserializeAws_restJson1PutAlternateContactCommandError = function (output,
390
388
  case 9: throw _d.sent();
391
389
  case 10:
392
390
  parsedBody = parsedOutput.body;
393
- $metadata = deserializeMetadata(output);
394
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
395
- response = new __BaseException({
396
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
397
- $fault: "client",
398
- $metadata: $metadata,
391
+ throwDefaultError({
392
+ output: output,
393
+ parsedBody: parsedBody,
394
+ exceptionCtor: __BaseException,
395
+ errorCode: errorCode,
399
396
  });
400
- throw __decorateServiceException(response, parsedBody);
397
+ _d.label = 11;
398
+ case 11: return [2];
401
399
  }
402
400
  });
403
401
  }); };
@@ -409,18 +407,18 @@ export var deserializeAws_restJson1PutContactInformationCommand = function (outp
409
407
  if (output.statusCode !== 200 && output.statusCode >= 300) {
410
408
  return [2, deserializeAws_restJson1PutContactInformationCommandError(output, context)];
411
409
  }
412
- contents = {
410
+ contents = map({
413
411
  $metadata: deserializeMetadata(output),
414
- };
412
+ });
415
413
  return [4, collectBody(output.body, context)];
416
414
  case 1:
417
415
  _a.sent();
418
- return [2, Promise.resolve(contents)];
416
+ return [2, contents];
419
417
  }
420
418
  });
421
419
  }); };
422
420
  var deserializeAws_restJson1PutContactInformationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
423
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
421
+ var parsedOutput, _a, errorCode, _b, parsedBody;
424
422
  var _c;
425
423
  return __generator(this, function (_d) {
426
424
  switch (_d.label) {
@@ -453,23 +451,24 @@ var deserializeAws_restJson1PutContactInformationCommandError = function (output
453
451
  case 9: throw _d.sent();
454
452
  case 10:
455
453
  parsedBody = parsedOutput.body;
456
- $metadata = deserializeMetadata(output);
457
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
458
- response = new __BaseException({
459
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
460
- $fault: "client",
461
- $metadata: $metadata,
454
+ throwDefaultError({
455
+ output: output,
456
+ parsedBody: parsedBody,
457
+ exceptionCtor: __BaseException,
458
+ errorCode: errorCode,
462
459
  });
463
- throw __decorateServiceException(response, parsedBody);
460
+ _d.label = 11;
461
+ case 11: return [2];
464
462
  }
465
463
  });
466
464
  }); };
465
+ var map = __map;
467
466
  var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
468
467
  var contents, data, exception;
469
468
  return __generator(this, function (_a) {
470
- contents = {};
469
+ contents = map({});
471
470
  data = parsedOutput.body;
472
- if (data.message !== undefined && data.message !== null) {
471
+ if (data.message != null) {
473
472
  contents.message = __expectString(data.message);
474
473
  }
475
474
  exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -479,9 +478,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
479
478
  var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
480
479
  var contents, data, exception;
481
480
  return __generator(this, function (_a) {
482
- contents = {};
481
+ contents = map({});
483
482
  data = parsedOutput.body;
484
- if (data.message !== undefined && data.message !== null) {
483
+ if (data.message != null) {
485
484
  contents.message = __expectString(data.message);
486
485
  }
487
486
  exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -491,9 +490,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
491
490
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
492
491
  var contents, data, exception;
493
492
  return __generator(this, function (_a) {
494
- contents = {};
493
+ contents = map({});
495
494
  data = parsedOutput.body;
496
- if (data.message !== undefined && data.message !== null) {
495
+ if (data.message != null) {
497
496
  contents.message = __expectString(data.message);
498
497
  }
499
498
  exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -503,9 +502,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
503
502
  var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
504
503
  var contents, data, exception;
505
504
  return __generator(this, function (_a) {
506
- contents = {};
505
+ contents = map({});
507
506
  data = parsedOutput.body;
508
- if (data.message !== undefined && data.message !== null) {
507
+ if (data.message != null) {
509
508
  contents.message = __expectString(data.message);
510
509
  }
511
510
  exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -515,9 +514,9 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
515
514
  var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
516
515
  var contents, data, exception;
517
516
  return __generator(this, function (_a) {
518
- contents = {};
517
+ contents = map({});
519
518
  data = parsedOutput.body;
520
- if (data.message !== undefined && data.message !== null) {
519
+ if (data.message != null) {
521
520
  contents.message = __expectString(data.message);
522
521
  }
523
522
  exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -44,12 +44,6 @@ export interface DeleteAlternateContactRequest {
44
44
  */
45
45
  AccountId?: string;
46
46
  }
47
- export declare namespace DeleteAlternateContactRequest {
48
- /**
49
- * @internal
50
- */
51
- const filterSensitiveLog: (obj: DeleteAlternateContactRequest) => any;
52
- }
53
47
  /**
54
48
  * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again
55
49
  * later.</p>
@@ -127,12 +121,6 @@ export interface GetAlternateContactRequest {
127
121
  */
128
122
  AccountId?: string;
129
123
  }
130
- export declare namespace GetAlternateContactRequest {
131
- /**
132
- * @internal
133
- */
134
- const filterSensitiveLog: (obj: GetAlternateContactRequest) => any;
135
- }
136
124
  /**
137
125
  * <p>A structure that contains the details of an alternate contact associated with an Amazon Web Services
138
126
  * account</p>
@@ -159,24 +147,12 @@ export interface AlternateContact {
159
147
  */
160
148
  AlternateContactType?: AlternateContactType | string;
161
149
  }
162
- export declare namespace AlternateContact {
163
- /**
164
- * @internal
165
- */
166
- const filterSensitiveLog: (obj: AlternateContact) => any;
167
- }
168
150
  export interface GetAlternateContactResponse {
169
151
  /**
170
152
  * <p>A structure that contains the details for the specified alternate contact.</p>
171
153
  */
172
154
  AlternateContact?: AlternateContact;
173
155
  }
174
- export declare namespace GetAlternateContactResponse {
175
- /**
176
- * @internal
177
- */
178
- const filterSensitiveLog: (obj: GetAlternateContactResponse) => any;
179
- }
180
156
  export interface PutAlternateContactRequest {
181
157
  /**
182
158
  * <p>Specifies a name for the alternate contact.</p>
@@ -220,12 +196,6 @@ export interface PutAlternateContactRequest {
220
196
  */
221
197
  AccountId?: string;
222
198
  }
223
- export declare namespace PutAlternateContactRequest {
224
- /**
225
- * @internal
226
- */
227
- const filterSensitiveLog: (obj: PutAlternateContactRequest) => any;
228
- }
229
199
  export interface GetContactInformationRequest {
230
200
  /**
231
201
  * <p>Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access
@@ -249,12 +219,6 @@ export interface GetContactInformationRequest {
249
219
  */
250
220
  AccountId?: string;
251
221
  }
252
- export declare namespace GetContactInformationRequest {
253
- /**
254
- * @internal
255
- */
256
- const filterSensitiveLog: (obj: GetContactInformationRequest) => any;
257
- }
258
222
  /**
259
223
  * <p>Contains the details of the primary contact information associated with an Amazon Web Services account.</p>
260
224
  */
@@ -308,24 +272,12 @@ export interface ContactInformation {
308
272
  */
309
273
  WebsiteUrl?: string;
310
274
  }
311
- export declare namespace ContactInformation {
312
- /**
313
- * @internal
314
- */
315
- const filterSensitiveLog: (obj: ContactInformation) => any;
316
- }
317
275
  export interface GetContactInformationResponse {
318
276
  /**
319
277
  * <p>Contains the details of the primary contact information associated with an Amazon Web Services account.</p>
320
278
  */
321
279
  ContactInformation?: ContactInformation;
322
280
  }
323
- export declare namespace GetContactInformationResponse {
324
- /**
325
- * @internal
326
- */
327
- const filterSensitiveLog: (obj: GetContactInformationResponse) => any;
328
- }
329
281
  export interface PutContactInformationRequest {
330
282
  /**
331
283
  * <p>Contains the details of the primary contact information associated with an Amazon Web Services account.</p>
@@ -353,9 +305,39 @@ export interface PutContactInformationRequest {
353
305
  */
354
306
  AccountId?: string;
355
307
  }
356
- export declare namespace PutContactInformationRequest {
357
- /**
358
- * @internal
359
- */
360
- const filterSensitiveLog: (obj: PutContactInformationRequest) => any;
361
- }
308
+ /**
309
+ * @internal
310
+ */
311
+ export declare const DeleteAlternateContactRequestFilterSensitiveLog: (obj: DeleteAlternateContactRequest) => any;
312
+ /**
313
+ * @internal
314
+ */
315
+ export declare const GetAlternateContactRequestFilterSensitiveLog: (obj: GetAlternateContactRequest) => any;
316
+ /**
317
+ * @internal
318
+ */
319
+ export declare const AlternateContactFilterSensitiveLog: (obj: AlternateContact) => any;
320
+ /**
321
+ * @internal
322
+ */
323
+ export declare const GetAlternateContactResponseFilterSensitiveLog: (obj: GetAlternateContactResponse) => any;
324
+ /**
325
+ * @internal
326
+ */
327
+ export declare const PutAlternateContactRequestFilterSensitiveLog: (obj: PutAlternateContactRequest) => any;
328
+ /**
329
+ * @internal
330
+ */
331
+ export declare const GetContactInformationRequestFilterSensitiveLog: (obj: GetContactInformationRequest) => any;
332
+ /**
333
+ * @internal
334
+ */
335
+ export declare const ContactInformationFilterSensitiveLog: (obj: ContactInformation) => any;
336
+ /**
337
+ * @internal
338
+ */
339
+ export declare const GetContactInformationResponseFilterSensitiveLog: (obj: GetContactInformationResponse) => any;
340
+ /**
341
+ * @internal
342
+ */
343
+ export declare const PutContactInformationRequestFilterSensitiveLog: (obj: PutContactInformationRequest) => any;
@@ -18,10 +18,6 @@ export interface DeleteAlternateContactRequest {
18
18
 
19
19
  AccountId?: string;
20
20
  }
21
- export declare namespace DeleteAlternateContactRequest {
22
-
23
- const filterSensitiveLog: (obj: DeleteAlternateContactRequest) => any;
24
- }
25
21
 
26
22
  export declare class InternalServerException extends __BaseException {
27
23
  readonly name: "InternalServerException";
@@ -60,10 +56,6 @@ export interface GetAlternateContactRequest {
60
56
 
61
57
  AccountId?: string;
62
58
  }
63
- export declare namespace GetAlternateContactRequest {
64
-
65
- const filterSensitiveLog: (obj: GetAlternateContactRequest) => any;
66
- }
67
59
 
68
60
  export interface AlternateContact {
69
61
 
@@ -77,18 +69,10 @@ export interface AlternateContact {
77
69
 
78
70
  AlternateContactType?: AlternateContactType | string;
79
71
  }
80
- export declare namespace AlternateContact {
81
-
82
- const filterSensitiveLog: (obj: AlternateContact) => any;
83
- }
84
72
  export interface GetAlternateContactResponse {
85
73
 
86
74
  AlternateContact?: AlternateContact;
87
75
  }
88
- export declare namespace GetAlternateContactResponse {
89
-
90
- const filterSensitiveLog: (obj: GetAlternateContactResponse) => any;
91
- }
92
76
  export interface PutAlternateContactRequest {
93
77
 
94
78
  Name: string | undefined;
@@ -103,18 +87,10 @@ export interface PutAlternateContactRequest {
103
87
 
104
88
  AccountId?: string;
105
89
  }
106
- export declare namespace PutAlternateContactRequest {
107
-
108
- const filterSensitiveLog: (obj: PutAlternateContactRequest) => any;
109
- }
110
90
  export interface GetContactInformationRequest {
111
91
 
112
92
  AccountId?: string;
113
93
  }
114
- export declare namespace GetContactInformationRequest {
115
-
116
- const filterSensitiveLog: (obj: GetContactInformationRequest) => any;
117
- }
118
94
 
119
95
  export interface ContactInformation {
120
96
 
@@ -142,25 +118,31 @@ export interface ContactInformation {
142
118
 
143
119
  WebsiteUrl?: string;
144
120
  }
145
- export declare namespace ContactInformation {
146
-
147
- const filterSensitiveLog: (obj: ContactInformation) => any;
148
- }
149
121
  export interface GetContactInformationResponse {
150
122
 
151
123
  ContactInformation?: ContactInformation;
152
124
  }
153
- export declare namespace GetContactInformationResponse {
154
-
155
- const filterSensitiveLog: (obj: GetContactInformationResponse) => any;
156
- }
157
125
  export interface PutContactInformationRequest {
158
126
 
159
127
  ContactInformation: ContactInformation | undefined;
160
128
 
161
129
  AccountId?: string;
162
130
  }
163
- export declare namespace PutContactInformationRequest {
164
-
165
- const filterSensitiveLog: (obj: PutContactInformationRequest) => any;
166
- }
131
+
132
+ export declare const DeleteAlternateContactRequestFilterSensitiveLog: (obj: DeleteAlternateContactRequest) => any;
133
+
134
+ export declare const GetAlternateContactRequestFilterSensitiveLog: (obj: GetAlternateContactRequest) => any;
135
+
136
+ export declare const AlternateContactFilterSensitiveLog: (obj: AlternateContact) => any;
137
+
138
+ export declare const GetAlternateContactResponseFilterSensitiveLog: (obj: GetAlternateContactResponse) => any;
139
+
140
+ export declare const PutAlternateContactRequestFilterSensitiveLog: (obj: PutAlternateContactRequest) => any;
141
+
142
+ export declare const GetContactInformationRequestFilterSensitiveLog: (obj: GetContactInformationRequest) => any;
143
+
144
+ export declare const ContactInformationFilterSensitiveLog: (obj: ContactInformation) => any;
145
+
146
+ export declare const GetContactInformationResponseFilterSensitiveLog: (obj: GetContactInformationResponse) => any;
147
+
148
+ export declare const PutContactInformationRequestFilterSensitiveLog: (obj: PutContactInformationRequest) => any;