@aws-sdk/client-account 3.987.0 → 3.989.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +34 -543
- package/dist-cjs/models/AccountServiceException.js +12 -0
- package/dist-cjs/models/errors.js +115 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +370 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +52 -46
- package/dist-types/schemas/schemas_0.d.ts +15 -8
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -8
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class AccountServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, AccountServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.AccountServiceException = AccountServiceException;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceUnavailableException = exports.ValidationException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const AccountServiceException_1 = require("./AccountServiceException");
|
|
5
|
+
class AccessDeniedException extends AccountServiceException_1.AccountServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
errorType;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "AccessDeniedException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
this.errorType = opts.errorType;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
20
|
+
class ConflictException extends AccountServiceException_1.AccountServiceException {
|
|
21
|
+
name = "ConflictException";
|
|
22
|
+
$fault = "client";
|
|
23
|
+
errorType;
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
super({
|
|
26
|
+
name: "ConflictException",
|
|
27
|
+
$fault: "client",
|
|
28
|
+
...opts,
|
|
29
|
+
});
|
|
30
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
31
|
+
this.errorType = opts.errorType;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.ConflictException = ConflictException;
|
|
35
|
+
class InternalServerException extends AccountServiceException_1.AccountServiceException {
|
|
36
|
+
name = "InternalServerException";
|
|
37
|
+
$fault = "server";
|
|
38
|
+
$retryable = {};
|
|
39
|
+
errorType;
|
|
40
|
+
constructor(opts) {
|
|
41
|
+
super({
|
|
42
|
+
name: "InternalServerException",
|
|
43
|
+
$fault: "server",
|
|
44
|
+
...opts,
|
|
45
|
+
});
|
|
46
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
47
|
+
this.errorType = opts.errorType;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.InternalServerException = InternalServerException;
|
|
51
|
+
class ResourceNotFoundException extends AccountServiceException_1.AccountServiceException {
|
|
52
|
+
name = "ResourceNotFoundException";
|
|
53
|
+
$fault = "client";
|
|
54
|
+
errorType;
|
|
55
|
+
constructor(opts) {
|
|
56
|
+
super({
|
|
57
|
+
name: "ResourceNotFoundException",
|
|
58
|
+
$fault: "client",
|
|
59
|
+
...opts,
|
|
60
|
+
});
|
|
61
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
62
|
+
this.errorType = opts.errorType;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
66
|
+
class TooManyRequestsException extends AccountServiceException_1.AccountServiceException {
|
|
67
|
+
name = "TooManyRequestsException";
|
|
68
|
+
$fault = "client";
|
|
69
|
+
$retryable = {
|
|
70
|
+
throttling: true,
|
|
71
|
+
};
|
|
72
|
+
errorType;
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "TooManyRequestsException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
80
|
+
this.errorType = opts.errorType;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
84
|
+
class ValidationException extends AccountServiceException_1.AccountServiceException {
|
|
85
|
+
name = "ValidationException";
|
|
86
|
+
$fault = "client";
|
|
87
|
+
reason;
|
|
88
|
+
fieldList;
|
|
89
|
+
constructor(opts) {
|
|
90
|
+
super({
|
|
91
|
+
name: "ValidationException",
|
|
92
|
+
$fault: "client",
|
|
93
|
+
...opts,
|
|
94
|
+
});
|
|
95
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
96
|
+
this.reason = opts.reason;
|
|
97
|
+
this.fieldList = opts.fieldList;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.ValidationException = ValidationException;
|
|
101
|
+
class ResourceUnavailableException extends AccountServiceException_1.AccountServiceException {
|
|
102
|
+
name = "ResourceUnavailableException";
|
|
103
|
+
$fault = "client";
|
|
104
|
+
errorType;
|
|
105
|
+
constructor(opts) {
|
|
106
|
+
super({
|
|
107
|
+
name: "ResourceUnavailableException",
|
|
108
|
+
$fault: "client",
|
|
109
|
+
...opts,
|
|
110
|
+
});
|
|
111
|
+
Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
|
|
112
|
+
this.errorType = opts.errorType;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.ResourceUnavailableException = ResourceUnavailableException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2021-02-01",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.account",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2021-02-01",
|
|
33
35
|
serviceTarget: "Account",
|
|
34
36
|
},
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutAlternateContact$ = exports.PutAccountName$ = exports.ListRegions$ = exports.GetRegionOptStatus$ = exports.GetPrimaryEmail$ = exports.GetGovCloudAccountInformation$ = exports.GetContactInformation$ = exports.GetAlternateContact$ = exports.GetAccountInformation$ = exports.EnableRegion$ = exports.DisableRegion$ = exports.DeleteAlternateContact$ = exports.AcceptPrimaryEmailUpdate$ = exports.ValidationExceptionField$ = exports.StartPrimaryEmailUpdateResponse$ = exports.StartPrimaryEmailUpdateRequest$ = exports.Region$ = exports.PutContactInformationRequest$ = exports.PutAlternateContactRequest$ = exports.PutAccountNameRequest$ = exports.ListRegionsResponse$ = exports.ListRegionsRequest$ = exports.GetRegionOptStatusResponse$ = exports.GetRegionOptStatusRequest$ = exports.GetPrimaryEmailResponse$ = exports.GetPrimaryEmailRequest$ = exports.GetGovCloudAccountInformationResponse$ = exports.GetGovCloudAccountInformationRequest$ = exports.GetContactInformationResponse$ = exports.GetContactInformationRequest$ = exports.GetAlternateContactResponse$ = exports.GetAlternateContactRequest$ = exports.GetAccountInformationResponse$ = exports.GetAccountInformationRequest$ = exports.EnableRegionRequest$ = exports.DisableRegionRequest$ = exports.DeleteAlternateContactRequest$ = exports.ContactInformation$ = exports.AlternateContact$ = exports.AcceptPrimaryEmailUpdateResponse$ = exports.AcceptPrimaryEmailUpdateRequest$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsException$ = exports.ResourceUnavailableException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.AccountServiceException$ = void 0;
|
|
4
|
+
exports.StartPrimaryEmailUpdate$ = exports.PutContactInformation$ = void 0;
|
|
5
|
+
const _AC = "AlternateContact";
|
|
6
|
+
const _ACD = "AccountCreatedDate";
|
|
7
|
+
const _ACT = "AlternateContactType";
|
|
8
|
+
const _ADE = "AccessDeniedException";
|
|
9
|
+
const _AI = "AccountId";
|
|
10
|
+
const _AL = "AddressLine";
|
|
11
|
+
const _ALd = "AddressLine1";
|
|
12
|
+
const _ALdd = "AddressLine2";
|
|
13
|
+
const _ALddr = "AddressLine3";
|
|
14
|
+
const _AN = "AccountName";
|
|
15
|
+
const _APEU = "AcceptPrimaryEmailUpdate";
|
|
16
|
+
const _APEUR = "AcceptPrimaryEmailUpdateRequest";
|
|
17
|
+
const _APEURc = "AcceptPrimaryEmailUpdateResponse";
|
|
18
|
+
const _AS = "AccountState";
|
|
19
|
+
const _C = "City";
|
|
20
|
+
const _CC = "CountryCode";
|
|
21
|
+
const _CE = "ConflictException";
|
|
22
|
+
const _CI = "ContactInformation";
|
|
23
|
+
const _CIPN = "ContactInformationPhoneNumber";
|
|
24
|
+
const _CN = "CompanyName";
|
|
25
|
+
const _DAC = "DeleteAlternateContact";
|
|
26
|
+
const _DACR = "DeleteAlternateContactRequest";
|
|
27
|
+
const _DOC = "DistrictOrCounty";
|
|
28
|
+
const _DR = "DisableRegion";
|
|
29
|
+
const _DRR = "DisableRegionRequest";
|
|
30
|
+
const _EA = "EmailAddress";
|
|
31
|
+
const _ER = "EnableRegion";
|
|
32
|
+
const _ERR = "EnableRegionRequest";
|
|
33
|
+
const _FN = "FullName";
|
|
34
|
+
const _GAC = "GetAlternateContact";
|
|
35
|
+
const _GACR = "GetAlternateContactRequest";
|
|
36
|
+
const _GACRe = "GetAlternateContactResponse";
|
|
37
|
+
const _GAI = "GetAccountInformation";
|
|
38
|
+
const _GAIR = "GetAccountInformationRequest";
|
|
39
|
+
const _GAIRe = "GetAccountInformationResponse";
|
|
40
|
+
const _GCAI = "GovCloudAccountId";
|
|
41
|
+
const _GCI = "GetContactInformation";
|
|
42
|
+
const _GCIR = "GetContactInformationRequest";
|
|
43
|
+
const _GCIRe = "GetContactInformationResponse";
|
|
44
|
+
const _GGCAI = "GetGovCloudAccountInformation";
|
|
45
|
+
const _GGCAIR = "GetGovCloudAccountInformationRequest";
|
|
46
|
+
const _GGCAIRe = "GetGovCloudAccountInformationResponse";
|
|
47
|
+
const _GPE = "GetPrimaryEmail";
|
|
48
|
+
const _GPER = "GetPrimaryEmailRequest";
|
|
49
|
+
const _GPERe = "GetPrimaryEmailResponse";
|
|
50
|
+
const _GROS = "GetRegionOptStatus";
|
|
51
|
+
const _GROSR = "GetRegionOptStatusRequest";
|
|
52
|
+
const _GROSRe = "GetRegionOptStatusResponse";
|
|
53
|
+
const _ISE = "InternalServerException";
|
|
54
|
+
const _LR = "ListRegions";
|
|
55
|
+
const _LRR = "ListRegionsRequest";
|
|
56
|
+
const _LRRi = "ListRegionsResponse";
|
|
57
|
+
const _MR = "MaxResults";
|
|
58
|
+
const _N = "Name";
|
|
59
|
+
const _NT = "NextToken";
|
|
60
|
+
const _O = "Otp";
|
|
61
|
+
const _PAC = "PutAlternateContact";
|
|
62
|
+
const _PACR = "PutAlternateContactRequest";
|
|
63
|
+
const _PAN = "PutAccountName";
|
|
64
|
+
const _PANR = "PutAccountNameRequest";
|
|
65
|
+
const _PC = "PostalCode";
|
|
66
|
+
const _PCI = "PutContactInformation";
|
|
67
|
+
const _PCIR = "PutContactInformationRequest";
|
|
68
|
+
const _PE = "PrimaryEmail";
|
|
69
|
+
const _PEA = "PrimaryEmailAddress";
|
|
70
|
+
const _PN = "PhoneNumber";
|
|
71
|
+
const _R = "Regions";
|
|
72
|
+
const _RN = "RegionName";
|
|
73
|
+
const _RNFE = "ResourceNotFoundException";
|
|
74
|
+
const _ROL = "RegionOptList";
|
|
75
|
+
const _ROS = "RegionOptStatus";
|
|
76
|
+
const _ROSC = "RegionOptStatusContains";
|
|
77
|
+
const _RUE = "ResourceUnavailableException";
|
|
78
|
+
const _Re = "Region";
|
|
79
|
+
const _S = "Status";
|
|
80
|
+
const _SAI = "StandardAccountId";
|
|
81
|
+
const _SOR = "StateOrRegion";
|
|
82
|
+
const _SPEU = "StartPrimaryEmailUpdate";
|
|
83
|
+
const _SPEUR = "StartPrimaryEmailUpdateRequest";
|
|
84
|
+
const _SPEURt = "StartPrimaryEmailUpdateResponse";
|
|
85
|
+
const _SS = "SensitiveString";
|
|
86
|
+
const _T = "Title";
|
|
87
|
+
const _TMRE = "TooManyRequestsException";
|
|
88
|
+
const _VE = "ValidationException";
|
|
89
|
+
const _VEF = "ValidationExceptionField";
|
|
90
|
+
const _VEFL = "ValidationExceptionFieldList";
|
|
91
|
+
const _WU = "WebsiteUrl";
|
|
92
|
+
const _c = "client";
|
|
93
|
+
const _e = "error";
|
|
94
|
+
const _eT = "errorType";
|
|
95
|
+
const _fL = "fieldList";
|
|
96
|
+
const _h = "http";
|
|
97
|
+
const _hE = "httpError";
|
|
98
|
+
const _hH = "httpHeader";
|
|
99
|
+
const _m = "message";
|
|
100
|
+
const _n = "name";
|
|
101
|
+
const _r = "reason";
|
|
102
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.account";
|
|
103
|
+
const _se = "server";
|
|
104
|
+
const _xaE = "x-amzn-ErrorType";
|
|
105
|
+
const n0 = "com.amazonaws.account";
|
|
106
|
+
const schema_1 = require("@smithy/core/schema");
|
|
107
|
+
const AccountServiceException_1 = require("../models/AccountServiceException");
|
|
108
|
+
const errors_1 = require("../models/errors");
|
|
109
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
110
|
+
exports.AccountServiceException$ = [-3, _s, "AccountServiceException", 0, [], []];
|
|
111
|
+
_s_registry.registerError(exports.AccountServiceException$, AccountServiceException_1.AccountServiceException);
|
|
112
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
113
|
+
exports.AccessDeniedException$ = [-3, n0, _ADE,
|
|
114
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
115
|
+
[_m, _eT],
|
|
116
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
117
|
+
];
|
|
118
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
119
|
+
exports.ConflictException$ = [-3, n0, _CE,
|
|
120
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
121
|
+
[_m, _eT],
|
|
122
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
123
|
+
];
|
|
124
|
+
n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
|
|
125
|
+
exports.InternalServerException$ = [-3, n0, _ISE,
|
|
126
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
127
|
+
[_m, _eT],
|
|
128
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
129
|
+
];
|
|
130
|
+
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
131
|
+
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
132
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
133
|
+
[_m, _eT],
|
|
134
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
135
|
+
];
|
|
136
|
+
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
137
|
+
exports.ResourceUnavailableException$ = [-3, n0, _RUE,
|
|
138
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
139
|
+
[_m, _eT],
|
|
140
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
141
|
+
];
|
|
142
|
+
n0_registry.registerError(exports.ResourceUnavailableException$, errors_1.ResourceUnavailableException);
|
|
143
|
+
exports.TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
144
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
145
|
+
[_m, _eT],
|
|
146
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
147
|
+
];
|
|
148
|
+
n0_registry.registerError(exports.TooManyRequestsException$, errors_1.TooManyRequestsException);
|
|
149
|
+
exports.ValidationException$ = [-3, n0, _VE,
|
|
150
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
151
|
+
[_m, _r, _fL],
|
|
152
|
+
[[() => SensitiveString, 0], 0, [() => ValidationExceptionFieldList, 0]], 1
|
|
153
|
+
];
|
|
154
|
+
n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
|
|
155
|
+
exports.errorTypeRegistries = [
|
|
156
|
+
_s_registry,
|
|
157
|
+
n0_registry,
|
|
158
|
+
];
|
|
159
|
+
var AccountName = [0, n0, _AN, 8, 0];
|
|
160
|
+
var AddressLine = [0, n0, _AL, 8, 0];
|
|
161
|
+
var City = [0, n0, _C, 8, 0];
|
|
162
|
+
var CompanyName = [0, n0, _CN, 8, 0];
|
|
163
|
+
var ContactInformationPhoneNumber = [0, n0, _CIPN, 8, 0];
|
|
164
|
+
var CountryCode = [0, n0, _CC, 8, 0];
|
|
165
|
+
var DistrictOrCounty = [0, n0, _DOC, 8, 0];
|
|
166
|
+
var EmailAddress = [0, n0, _EA, 8, 0];
|
|
167
|
+
var FullName = [0, n0, _FN, 8, 0];
|
|
168
|
+
var Name = [0, n0, _N, 8, 0];
|
|
169
|
+
var Otp = [0, n0, _O, 8, 0];
|
|
170
|
+
var PhoneNumber = [0, n0, _PN, 8, 0];
|
|
171
|
+
var PostalCode = [0, n0, _PC, 8, 0];
|
|
172
|
+
var PrimaryEmailAddress = [0, n0, _PEA, 8, 0];
|
|
173
|
+
var SensitiveString = [0, n0, _SS, 8, 0];
|
|
174
|
+
var StateOrRegion = [0, n0, _SOR, 8, 0];
|
|
175
|
+
var Title = [0, n0, _T, 8, 0];
|
|
176
|
+
var WebsiteUrl = [0, n0, _WU, 8, 0];
|
|
177
|
+
exports.AcceptPrimaryEmailUpdateRequest$ = [3, n0, _APEUR,
|
|
178
|
+
0,
|
|
179
|
+
[_AI, _PE, _O],
|
|
180
|
+
[0, [() => PrimaryEmailAddress, 0], [() => Otp, 0]], 3
|
|
181
|
+
];
|
|
182
|
+
exports.AcceptPrimaryEmailUpdateResponse$ = [3, n0, _APEURc,
|
|
183
|
+
0,
|
|
184
|
+
[_S],
|
|
185
|
+
[0]
|
|
186
|
+
];
|
|
187
|
+
exports.AlternateContact$ = [3, n0, _AC,
|
|
188
|
+
0,
|
|
189
|
+
[_N, _T, _EA, _PN, _ACT],
|
|
190
|
+
[[() => Name, 0], [() => Title, 0], [() => EmailAddress, 0], [() => PhoneNumber, 0], 0]
|
|
191
|
+
];
|
|
192
|
+
exports.ContactInformation$ = [3, n0, _CI,
|
|
193
|
+
0,
|
|
194
|
+
[_FN, _ALd, _C, _PC, _CC, _PN, _ALdd, _ALddr, _SOR, _DOC, _CN, _WU],
|
|
195
|
+
[[() => FullName, 0], [() => AddressLine, 0], [() => City, 0], [() => PostalCode, 0], [() => CountryCode, 0], [() => ContactInformationPhoneNumber, 0], [() => AddressLine, 0], [() => AddressLine, 0], [() => StateOrRegion, 0], [() => DistrictOrCounty, 0], [() => CompanyName, 0], [() => WebsiteUrl, 0]], 6
|
|
196
|
+
];
|
|
197
|
+
exports.DeleteAlternateContactRequest$ = [3, n0, _DACR,
|
|
198
|
+
0,
|
|
199
|
+
[_ACT, _AI],
|
|
200
|
+
[0, 0], 1
|
|
201
|
+
];
|
|
202
|
+
exports.DisableRegionRequest$ = [3, n0, _DRR,
|
|
203
|
+
0,
|
|
204
|
+
[_RN, _AI],
|
|
205
|
+
[0, 0], 1
|
|
206
|
+
];
|
|
207
|
+
exports.EnableRegionRequest$ = [3, n0, _ERR,
|
|
208
|
+
0,
|
|
209
|
+
[_RN, _AI],
|
|
210
|
+
[0, 0], 1
|
|
211
|
+
];
|
|
212
|
+
exports.GetAccountInformationRequest$ = [3, n0, _GAIR,
|
|
213
|
+
0,
|
|
214
|
+
[_AI],
|
|
215
|
+
[0]
|
|
216
|
+
];
|
|
217
|
+
exports.GetAccountInformationResponse$ = [3, n0, _GAIRe,
|
|
218
|
+
0,
|
|
219
|
+
[_AI, _AN, _ACD],
|
|
220
|
+
[0, [() => AccountName, 0], 5]
|
|
221
|
+
];
|
|
222
|
+
exports.GetAlternateContactRequest$ = [3, n0, _GACR,
|
|
223
|
+
0,
|
|
224
|
+
[_ACT, _AI],
|
|
225
|
+
[0, 0], 1
|
|
226
|
+
];
|
|
227
|
+
exports.GetAlternateContactResponse$ = [3, n0, _GACRe,
|
|
228
|
+
0,
|
|
229
|
+
[_AC],
|
|
230
|
+
[[() => exports.AlternateContact$, 0]]
|
|
231
|
+
];
|
|
232
|
+
exports.GetContactInformationRequest$ = [3, n0, _GCIR,
|
|
233
|
+
0,
|
|
234
|
+
[_AI],
|
|
235
|
+
[0]
|
|
236
|
+
];
|
|
237
|
+
exports.GetContactInformationResponse$ = [3, n0, _GCIRe,
|
|
238
|
+
0,
|
|
239
|
+
[_CI],
|
|
240
|
+
[[() => exports.ContactInformation$, 0]]
|
|
241
|
+
];
|
|
242
|
+
exports.GetGovCloudAccountInformationRequest$ = [3, n0, _GGCAIR,
|
|
243
|
+
0,
|
|
244
|
+
[_SAI],
|
|
245
|
+
[0]
|
|
246
|
+
];
|
|
247
|
+
exports.GetGovCloudAccountInformationResponse$ = [3, n0, _GGCAIRe,
|
|
248
|
+
0,
|
|
249
|
+
[_GCAI, _AS],
|
|
250
|
+
[0, 0], 2
|
|
251
|
+
];
|
|
252
|
+
exports.GetPrimaryEmailRequest$ = [3, n0, _GPER,
|
|
253
|
+
0,
|
|
254
|
+
[_AI],
|
|
255
|
+
[0], 1
|
|
256
|
+
];
|
|
257
|
+
exports.GetPrimaryEmailResponse$ = [3, n0, _GPERe,
|
|
258
|
+
0,
|
|
259
|
+
[_PE],
|
|
260
|
+
[[() => PrimaryEmailAddress, 0]]
|
|
261
|
+
];
|
|
262
|
+
exports.GetRegionOptStatusRequest$ = [3, n0, _GROSR,
|
|
263
|
+
0,
|
|
264
|
+
[_RN, _AI],
|
|
265
|
+
[0, 0], 1
|
|
266
|
+
];
|
|
267
|
+
exports.GetRegionOptStatusResponse$ = [3, n0, _GROSRe,
|
|
268
|
+
0,
|
|
269
|
+
[_RN, _ROS],
|
|
270
|
+
[0, 0]
|
|
271
|
+
];
|
|
272
|
+
exports.ListRegionsRequest$ = [3, n0, _LRR,
|
|
273
|
+
0,
|
|
274
|
+
[_AI, _MR, _NT, _ROSC],
|
|
275
|
+
[0, 1, 0, 64 | 0]
|
|
276
|
+
];
|
|
277
|
+
exports.ListRegionsResponse$ = [3, n0, _LRRi,
|
|
278
|
+
0,
|
|
279
|
+
[_NT, _R],
|
|
280
|
+
[0, () => RegionOptList]
|
|
281
|
+
];
|
|
282
|
+
exports.PutAccountNameRequest$ = [3, n0, _PANR,
|
|
283
|
+
0,
|
|
284
|
+
[_AN, _AI],
|
|
285
|
+
[[() => AccountName, 0], 0], 1
|
|
286
|
+
];
|
|
287
|
+
exports.PutAlternateContactRequest$ = [3, n0, _PACR,
|
|
288
|
+
0,
|
|
289
|
+
[_N, _T, _EA, _PN, _ACT, _AI],
|
|
290
|
+
[[() => Name, 0], [() => Title, 0], [() => EmailAddress, 0], [() => PhoneNumber, 0], 0, 0], 5
|
|
291
|
+
];
|
|
292
|
+
exports.PutContactInformationRequest$ = [3, n0, _PCIR,
|
|
293
|
+
0,
|
|
294
|
+
[_CI, _AI],
|
|
295
|
+
[[() => exports.ContactInformation$, 0], 0], 1
|
|
296
|
+
];
|
|
297
|
+
exports.Region$ = [3, n0, _Re,
|
|
298
|
+
0,
|
|
299
|
+
[_RN, _ROS],
|
|
300
|
+
[0, 0]
|
|
301
|
+
];
|
|
302
|
+
exports.StartPrimaryEmailUpdateRequest$ = [3, n0, _SPEUR,
|
|
303
|
+
0,
|
|
304
|
+
[_AI, _PE],
|
|
305
|
+
[0, [() => PrimaryEmailAddress, 0]], 2
|
|
306
|
+
];
|
|
307
|
+
exports.StartPrimaryEmailUpdateResponse$ = [3, n0, _SPEURt,
|
|
308
|
+
0,
|
|
309
|
+
[_S],
|
|
310
|
+
[0]
|
|
311
|
+
];
|
|
312
|
+
exports.ValidationExceptionField$ = [3, n0, _VEF,
|
|
313
|
+
0,
|
|
314
|
+
[_n, _m],
|
|
315
|
+
[0, [() => SensitiveString, 0]], 2
|
|
316
|
+
];
|
|
317
|
+
var __Unit = "unit";
|
|
318
|
+
var RegionOptList = [1, n0, _ROL,
|
|
319
|
+
0, () => exports.Region$
|
|
320
|
+
];
|
|
321
|
+
var RegionOptStatusList = 64 | 0;
|
|
322
|
+
var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
323
|
+
0, [() => exports.ValidationExceptionField$,
|
|
324
|
+
0]
|
|
325
|
+
];
|
|
326
|
+
exports.AcceptPrimaryEmailUpdate$ = [9, n0, _APEU,
|
|
327
|
+
{ [_h]: ["POST", "/acceptPrimaryEmailUpdate", 200] }, () => exports.AcceptPrimaryEmailUpdateRequest$, () => exports.AcceptPrimaryEmailUpdateResponse$
|
|
328
|
+
];
|
|
329
|
+
exports.DeleteAlternateContact$ = [9, n0, _DAC,
|
|
330
|
+
{ [_h]: ["POST", "/deleteAlternateContact", 200] }, () => exports.DeleteAlternateContactRequest$, () => __Unit
|
|
331
|
+
];
|
|
332
|
+
exports.DisableRegion$ = [9, n0, _DR,
|
|
333
|
+
{ [_h]: ["POST", "/disableRegion", 200] }, () => exports.DisableRegionRequest$, () => __Unit
|
|
334
|
+
];
|
|
335
|
+
exports.EnableRegion$ = [9, n0, _ER,
|
|
336
|
+
{ [_h]: ["POST", "/enableRegion", 200] }, () => exports.EnableRegionRequest$, () => __Unit
|
|
337
|
+
];
|
|
338
|
+
exports.GetAccountInformation$ = [9, n0, _GAI,
|
|
339
|
+
{ [_h]: ["POST", "/getAccountInformation", 200] }, () => exports.GetAccountInformationRequest$, () => exports.GetAccountInformationResponse$
|
|
340
|
+
];
|
|
341
|
+
exports.GetAlternateContact$ = [9, n0, _GAC,
|
|
342
|
+
{ [_h]: ["POST", "/getAlternateContact", 200] }, () => exports.GetAlternateContactRequest$, () => exports.GetAlternateContactResponse$
|
|
343
|
+
];
|
|
344
|
+
exports.GetContactInformation$ = [9, n0, _GCI,
|
|
345
|
+
{ [_h]: ["POST", "/getContactInformation", 200] }, () => exports.GetContactInformationRequest$, () => exports.GetContactInformationResponse$
|
|
346
|
+
];
|
|
347
|
+
exports.GetGovCloudAccountInformation$ = [9, n0, _GGCAI,
|
|
348
|
+
{ [_h]: ["POST", "/getGovCloudAccountInformation", 200] }, () => exports.GetGovCloudAccountInformationRequest$, () => exports.GetGovCloudAccountInformationResponse$
|
|
349
|
+
];
|
|
350
|
+
exports.GetPrimaryEmail$ = [9, n0, _GPE,
|
|
351
|
+
{ [_h]: ["POST", "/getPrimaryEmail", 200] }, () => exports.GetPrimaryEmailRequest$, () => exports.GetPrimaryEmailResponse$
|
|
352
|
+
];
|
|
353
|
+
exports.GetRegionOptStatus$ = [9, n0, _GROS,
|
|
354
|
+
{ [_h]: ["POST", "/getRegionOptStatus", 200] }, () => exports.GetRegionOptStatusRequest$, () => exports.GetRegionOptStatusResponse$
|
|
355
|
+
];
|
|
356
|
+
exports.ListRegions$ = [9, n0, _LR,
|
|
357
|
+
{ [_h]: ["POST", "/listRegions", 200] }, () => exports.ListRegionsRequest$, () => exports.ListRegionsResponse$
|
|
358
|
+
];
|
|
359
|
+
exports.PutAccountName$ = [9, n0, _PAN,
|
|
360
|
+
{ [_h]: ["POST", "/putAccountName", 200] }, () => exports.PutAccountNameRequest$, () => __Unit
|
|
361
|
+
];
|
|
362
|
+
exports.PutAlternateContact$ = [9, n0, _PAC,
|
|
363
|
+
{ [_h]: ["POST", "/putAlternateContact", 200] }, () => exports.PutAlternateContactRequest$, () => __Unit
|
|
364
|
+
];
|
|
365
|
+
exports.PutContactInformation$ = [9, n0, _PCI,
|
|
366
|
+
{ [_h]: ["POST", "/putContactInformation", 200] }, () => exports.PutContactInformationRequest$, () => __Unit
|
|
367
|
+
];
|
|
368
|
+
exports.StartPrimaryEmailUpdate$ = [9, n0, _SPEU,
|
|
369
|
+
{ [_h]: ["POST", "/startPrimaryEmailUpdate", 200] }, () => exports.StartPrimaryEmailUpdateRequest$, () => exports.StartPrimaryEmailUpdateResponse$
|
|
370
|
+
];
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultAccountHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2021-02-01",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.account",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
version: "2021-02-01",
|
|
30
32
|
serviceTarget: "Account",
|
|
31
33
|
},
|
|
@@ -95,13 +95,63 @@ const _hH = "httpHeader";
|
|
|
95
95
|
const _m = "message";
|
|
96
96
|
const _n = "name";
|
|
97
97
|
const _r = "reason";
|
|
98
|
-
const _s = "
|
|
99
|
-
const
|
|
98
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.account";
|
|
99
|
+
const _se = "server";
|
|
100
100
|
const _xaE = "x-amzn-ErrorType";
|
|
101
101
|
const n0 = "com.amazonaws.account";
|
|
102
102
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
103
103
|
import { AccountServiceException } from "../models/AccountServiceException";
|
|
104
104
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ResourceUnavailableException, TooManyRequestsException, ValidationException, } from "../models/errors";
|
|
105
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
106
|
+
export var AccountServiceException$ = [-3, _s, "AccountServiceException", 0, [], []];
|
|
107
|
+
_s_registry.registerError(AccountServiceException$, AccountServiceException);
|
|
108
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
109
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
110
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
111
|
+
[_m, _eT],
|
|
112
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
113
|
+
];
|
|
114
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
115
|
+
export var ConflictException$ = [-3, n0, _CE,
|
|
116
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
117
|
+
[_m, _eT],
|
|
118
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
119
|
+
];
|
|
120
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
121
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
122
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
123
|
+
[_m, _eT],
|
|
124
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
125
|
+
];
|
|
126
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
127
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
128
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
129
|
+
[_m, _eT],
|
|
130
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
131
|
+
];
|
|
132
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
133
|
+
export var ResourceUnavailableException$ = [-3, n0, _RUE,
|
|
134
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
135
|
+
[_m, _eT],
|
|
136
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
137
|
+
];
|
|
138
|
+
n0_registry.registerError(ResourceUnavailableException$, ResourceUnavailableException);
|
|
139
|
+
export var TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
140
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
141
|
+
[_m, _eT],
|
|
142
|
+
[0, [0, { [_hH]: _xaE }]], 1
|
|
143
|
+
];
|
|
144
|
+
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
145
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
146
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
147
|
+
[_m, _r, _fL],
|
|
148
|
+
[[() => SensitiveString, 0], 0, [() => ValidationExceptionFieldList, 0]], 1
|
|
149
|
+
];
|
|
150
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
151
|
+
export const errorTypeRegistries = [
|
|
152
|
+
_s_registry,
|
|
153
|
+
n0_registry,
|
|
154
|
+
];
|
|
105
155
|
var AccountName = [0, n0, _AN, 8, 0];
|
|
106
156
|
var AddressLine = [0, n0, _AL, 8, 0];
|
|
107
157
|
var City = [0, n0, _C, 8, 0];
|
|
@@ -130,23 +180,11 @@ export var AcceptPrimaryEmailUpdateResponse$ = [3, n0, _APEURc,
|
|
|
130
180
|
[_S],
|
|
131
181
|
[0]
|
|
132
182
|
];
|
|
133
|
-
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
134
|
-
{ [_e]: _c, [_hE]: 403 },
|
|
135
|
-
[_m, _eT],
|
|
136
|
-
[0, [0, { [_hH]: _xaE }]], 1
|
|
137
|
-
];
|
|
138
|
-
TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
139
183
|
export var AlternateContact$ = [3, n0, _AC,
|
|
140
184
|
0,
|
|
141
185
|
[_N, _T, _EA, _PN, _ACT],
|
|
142
186
|
[[() => Name, 0], [() => Title, 0], [() => EmailAddress, 0], [() => PhoneNumber, 0], 0]
|
|
143
187
|
];
|
|
144
|
-
export var ConflictException$ = [-3, n0, _CE,
|
|
145
|
-
{ [_e]: _c, [_hE]: 409 },
|
|
146
|
-
[_m, _eT],
|
|
147
|
-
[0, [0, { [_hH]: _xaE }]], 1
|
|
148
|
-
];
|
|
149
|
-
TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
|
|
150
188
|
export var ContactInformation$ = [3, n0, _CI,
|
|
151
189
|
0,
|
|
152
190
|
[_FN, _ALd, _C, _PC, _CC, _PN, _ALdd, _ALddr, _SOR, _DOC, _CN, _WU],
|
|
@@ -227,12 +265,6 @@ export var GetRegionOptStatusResponse$ = [3, n0, _GROSRe,
|
|
|
227
265
|
[_RN, _ROS],
|
|
228
266
|
[0, 0]
|
|
229
267
|
];
|
|
230
|
-
export var InternalServerException$ = [-3, n0, _ISE,
|
|
231
|
-
{ [_e]: _s, [_hE]: 500 },
|
|
232
|
-
[_m, _eT],
|
|
233
|
-
[0, [0, { [_hH]: _xaE }]], 1
|
|
234
|
-
];
|
|
235
|
-
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
236
268
|
export var ListRegionsRequest$ = [3, n0, _LRR,
|
|
237
269
|
0,
|
|
238
270
|
[_AI, _MR, _NT, _ROSC],
|
|
@@ -263,18 +295,6 @@ export var Region$ = [3, n0, _Re,
|
|
|
263
295
|
[_RN, _ROS],
|
|
264
296
|
[0, 0]
|
|
265
297
|
];
|
|
266
|
-
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
267
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
268
|
-
[_m, _eT],
|
|
269
|
-
[0, [0, { [_hH]: _xaE }]], 1
|
|
270
|
-
];
|
|
271
|
-
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
272
|
-
export var ResourceUnavailableException$ = [-3, n0, _RUE,
|
|
273
|
-
{ [_e]: _c, [_hE]: 424 },
|
|
274
|
-
[_m, _eT],
|
|
275
|
-
[0, [0, { [_hH]: _xaE }]], 1
|
|
276
|
-
];
|
|
277
|
-
TypeRegistry.for(n0).registerError(ResourceUnavailableException$, ResourceUnavailableException);
|
|
278
298
|
export var StartPrimaryEmailUpdateRequest$ = [3, n0, _SPEUR,
|
|
279
299
|
0,
|
|
280
300
|
[_AI, _PE],
|
|
@@ -285,26 +305,12 @@ export var StartPrimaryEmailUpdateResponse$ = [3, n0, _SPEURt,
|
|
|
285
305
|
[_S],
|
|
286
306
|
[0]
|
|
287
307
|
];
|
|
288
|
-
export var TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
289
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
290
|
-
[_m, _eT],
|
|
291
|
-
[0, [0, { [_hH]: _xaE }]], 1
|
|
292
|
-
];
|
|
293
|
-
TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
294
|
-
export var ValidationException$ = [-3, n0, _VE,
|
|
295
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
296
|
-
[_m, _r, _fL],
|
|
297
|
-
[[() => SensitiveString, 0], 0, [() => ValidationExceptionFieldList, 0]], 1
|
|
298
|
-
];
|
|
299
|
-
TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
300
308
|
export var ValidationExceptionField$ = [3, n0, _VEF,
|
|
301
309
|
0,
|
|
302
310
|
[_n, _m],
|
|
303
311
|
[0, [() => SensitiveString, 0]], 2
|
|
304
312
|
];
|
|
305
313
|
var __Unit = "unit";
|
|
306
|
-
export var AccountServiceException$ = [-3, _sm, "AccountServiceException", 0, [], []];
|
|
307
|
-
TypeRegistry.for(_sm).registerError(AccountServiceException$, AccountServiceException);
|
|
308
314
|
var RegionOptList = [1, n0, _ROL,
|
|
309
315
|
0, () => Region$
|
|
310
316
|
];
|