@aws-sdk/client-account 3.183.0 → 3.185.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,122 +1,82 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
3
  import { AccountServiceException as __BaseException } from "./AccountServiceException";
3
- export class AccessDeniedException extends __BaseException {
4
- constructor(opts) {
5
- super({
6
- name: "AccessDeniedException",
7
- $fault: "client",
8
- ...opts,
9
- });
10
- this.name = "AccessDeniedException";
11
- this.$fault = "client";
12
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
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;
13
12
  }
14
- }
13
+ return AccessDeniedException;
14
+ }(__BaseException));
15
+ export { AccessDeniedException };
15
16
  export var AlternateContactType;
16
17
  (function (AlternateContactType) {
17
18
  AlternateContactType["BILLING"] = "BILLING";
18
19
  AlternateContactType["OPERATIONS"] = "OPERATIONS";
19
20
  AlternateContactType["SECURITY"] = "SECURITY";
20
21
  })(AlternateContactType || (AlternateContactType = {}));
21
- export class InternalServerException extends __BaseException {
22
- constructor(opts) {
23
- super({
24
- name: "InternalServerException",
25
- $fault: "server",
26
- ...opts,
27
- });
28
- this.name = "InternalServerException";
29
- this.$fault = "server";
30
- this.$retryable = {};
31
- Object.setPrototypeOf(this, InternalServerException.prototype);
22
+ var InternalServerException = (function (_super) {
23
+ __extends(InternalServerException, _super);
24
+ function InternalServerException(opts) {
25
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
26
+ _this.name = "InternalServerException";
27
+ _this.$fault = "server";
28
+ _this.$retryable = {};
29
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
30
+ return _this;
32
31
  }
33
- }
34
- export class ResourceNotFoundException extends __BaseException {
35
- constructor(opts) {
36
- super({
37
- name: "ResourceNotFoundException",
38
- $fault: "client",
39
- ...opts,
40
- });
41
- this.name = "ResourceNotFoundException";
42
- this.$fault = "client";
43
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
32
+ return InternalServerException;
33
+ }(__BaseException));
34
+ export { InternalServerException };
35
+ var ResourceNotFoundException = (function (_super) {
36
+ __extends(ResourceNotFoundException, _super);
37
+ function ResourceNotFoundException(opts) {
38
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
39
+ _this.name = "ResourceNotFoundException";
40
+ _this.$fault = "client";
41
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
42
+ return _this;
44
43
  }
45
- }
46
- export class TooManyRequestsException extends __BaseException {
47
- constructor(opts) {
48
- super({
49
- name: "TooManyRequestsException",
50
- $fault: "client",
51
- ...opts,
52
- });
53
- this.name = "TooManyRequestsException";
54
- this.$fault = "client";
55
- this.$retryable = {
44
+ return ResourceNotFoundException;
45
+ }(__BaseException));
46
+ export { ResourceNotFoundException };
47
+ var TooManyRequestsException = (function (_super) {
48
+ __extends(TooManyRequestsException, _super);
49
+ function TooManyRequestsException(opts) {
50
+ var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
51
+ _this.name = "TooManyRequestsException";
52
+ _this.$fault = "client";
53
+ _this.$retryable = {
56
54
  throttling: true,
57
55
  };
58
- Object.setPrototypeOf(this, TooManyRequestsException.prototype);
56
+ Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
57
+ return _this;
59
58
  }
60
- }
61
- export class ValidationException extends __BaseException {
62
- constructor(opts) {
63
- super({
64
- name: "ValidationException",
65
- $fault: "client",
66
- ...opts,
67
- });
68
- this.name = "ValidationException";
69
- this.$fault = "client";
70
- Object.setPrototypeOf(this, ValidationException.prototype);
59
+ return TooManyRequestsException;
60
+ }(__BaseException));
61
+ export { TooManyRequestsException };
62
+ var ValidationException = (function (_super) {
63
+ __extends(ValidationException, _super);
64
+ function ValidationException(opts) {
65
+ var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
66
+ _this.name = "ValidationException";
67
+ _this.$fault = "client";
68
+ Object.setPrototypeOf(_this, ValidationException.prototype);
69
+ return _this;
71
70
  }
72
- }
73
- export const DeleteAlternateContactRequestFilterSensitiveLog = (obj) => ({
74
- ...obj,
75
- });
76
- export const GetAlternateContactRequestFilterSensitiveLog = (obj) => ({
77
- ...obj,
78
- });
79
- export const AlternateContactFilterSensitiveLog = (obj) => ({
80
- ...obj,
81
- ...(obj.Name && { Name: SENSITIVE_STRING }),
82
- ...(obj.Title && { Title: SENSITIVE_STRING }),
83
- ...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
84
- ...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
85
- });
86
- export const GetAlternateContactResponseFilterSensitiveLog = (obj) => ({
87
- ...obj,
88
- ...(obj.AlternateContact && { AlternateContact: AlternateContactFilterSensitiveLog(obj.AlternateContact) }),
89
- });
90
- export const PutAlternateContactRequestFilterSensitiveLog = (obj) => ({
91
- ...obj,
92
- ...(obj.Name && { Name: SENSITIVE_STRING }),
93
- ...(obj.Title && { Title: SENSITIVE_STRING }),
94
- ...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
95
- ...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
96
- });
97
- export const GetContactInformationRequestFilterSensitiveLog = (obj) => ({
98
- ...obj,
99
- });
100
- export const ContactInformationFilterSensitiveLog = (obj) => ({
101
- ...obj,
102
- ...(obj.FullName && { FullName: SENSITIVE_STRING }),
103
- ...(obj.AddressLine1 && { AddressLine1: SENSITIVE_STRING }),
104
- ...(obj.AddressLine2 && { AddressLine2: SENSITIVE_STRING }),
105
- ...(obj.AddressLine3 && { AddressLine3: SENSITIVE_STRING }),
106
- ...(obj.City && { City: SENSITIVE_STRING }),
107
- ...(obj.StateOrRegion && { StateOrRegion: SENSITIVE_STRING }),
108
- ...(obj.DistrictOrCounty && { DistrictOrCounty: SENSITIVE_STRING }),
109
- ...(obj.PostalCode && { PostalCode: SENSITIVE_STRING }),
110
- ...(obj.CountryCode && { CountryCode: SENSITIVE_STRING }),
111
- ...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
112
- ...(obj.CompanyName && { CompanyName: SENSITIVE_STRING }),
113
- ...(obj.WebsiteUrl && { WebsiteUrl: SENSITIVE_STRING }),
114
- });
115
- export const GetContactInformationResponseFilterSensitiveLog = (obj) => ({
116
- ...obj,
117
- ...(obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }),
118
- });
119
- export const PutContactInformationRequestFilterSensitiveLog = (obj) => ({
120
- ...obj,
121
- ...(obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }),
122
- });
71
+ return ValidationException;
72
+ }(__BaseException));
73
+ export { ValidationException };
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) }))); };