@aws-sdk/client-account 3.1075.0 → 3.1077.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 CHANGED
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultAccountHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AcceptPrimaryEmailUpdate$, DeleteAlternateContact$, DisableRegion$, EnableRegion$, GetAccountInformation$, GetAlternateContact$, GetContactInformation$, GetGovCloudAccountInformation$, GetPrimaryEmail$, GetRegionOptStatus$, ListRegions$, PutAccountName$, PutAlternateContact$, PutContactInformation$, StartPrimaryEmailUpdate$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { AccountServiceException } = require("./models/AccountServiceException");
18
- exports.AccountServiceException = AccountServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultAccountHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "account",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultAccountHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,609 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = { "authSchemes": [{ "name": "sigv4", "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, {}],
92
+ ["https://account-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://account-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://account.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://account.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class AccountServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, AccountServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class AccessDeniedException extends AccountServiceException {
141
+ name = "AccessDeniedException";
142
+ $fault = "client";
143
+ errorType;
144
+ constructor(opts) {
145
+ super({
146
+ name: "AccessDeniedException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
151
+ this.errorType = opts.errorType;
152
+ }
153
+ }
154
+ class ConflictException extends AccountServiceException {
155
+ name = "ConflictException";
156
+ $fault = "client";
157
+ errorType;
158
+ constructor(opts) {
159
+ super({
160
+ name: "ConflictException",
161
+ $fault: "client",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, ConflictException.prototype);
165
+ this.errorType = opts.errorType;
166
+ }
167
+ }
168
+ class InternalServerException extends AccountServiceException {
169
+ name = "InternalServerException";
170
+ $fault = "server";
171
+ $retryable = {};
172
+ errorType;
173
+ constructor(opts) {
174
+ super({
175
+ name: "InternalServerException",
176
+ $fault: "server",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, InternalServerException.prototype);
180
+ this.errorType = opts.errorType;
181
+ }
182
+ }
183
+ class ResourceNotFoundException extends AccountServiceException {
184
+ name = "ResourceNotFoundException";
185
+ $fault = "client";
186
+ errorType;
187
+ constructor(opts) {
188
+ super({
189
+ name: "ResourceNotFoundException",
190
+ $fault: "client",
191
+ ...opts,
192
+ });
193
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
194
+ this.errorType = opts.errorType;
195
+ }
196
+ }
197
+ class TooManyRequestsException extends AccountServiceException {
198
+ name = "TooManyRequestsException";
199
+ $fault = "client";
200
+ $retryable = {
201
+ throttling: true,
202
+ };
203
+ errorType;
204
+ constructor(opts) {
205
+ super({
206
+ name: "TooManyRequestsException",
207
+ $fault: "client",
208
+ ...opts,
209
+ });
210
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
211
+ this.errorType = opts.errorType;
212
+ }
213
+ }
214
+ class ValidationException extends AccountServiceException {
215
+ name = "ValidationException";
216
+ $fault = "client";
217
+ reason;
218
+ fieldList;
219
+ constructor(opts) {
220
+ super({
221
+ name: "ValidationException",
222
+ $fault: "client",
223
+ ...opts,
224
+ });
225
+ Object.setPrototypeOf(this, ValidationException.prototype);
226
+ this.reason = opts.reason;
227
+ this.fieldList = opts.fieldList;
228
+ }
229
+ }
230
+ class ResourceUnavailableException extends AccountServiceException {
231
+ name = "ResourceUnavailableException";
232
+ $fault = "client";
233
+ errorType;
234
+ constructor(opts) {
235
+ super({
236
+ name: "ResourceUnavailableException",
237
+ $fault: "client",
238
+ ...opts,
239
+ });
240
+ Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
241
+ this.errorType = opts.errorType;
242
+ }
243
+ }
244
+
245
+ const _AC = "AlternateContact";
246
+ const _ACD = "AccountCreatedDate";
247
+ const _ACT = "AlternateContactType";
248
+ const _ADE = "AccessDeniedException";
249
+ const _AI = "AccountId";
250
+ const _AL = "AddressLine";
251
+ const _ALd = "AddressLine1";
252
+ const _ALdd = "AddressLine2";
253
+ const _ALddr = "AddressLine3";
254
+ const _AN = "AccountName";
255
+ const _APEU = "AcceptPrimaryEmailUpdate";
256
+ const _APEUR = "AcceptPrimaryEmailUpdateRequest";
257
+ const _APEURc = "AcceptPrimaryEmailUpdateResponse";
258
+ const _AS = "AccountState";
259
+ const _C = "City";
260
+ const _CC = "CountryCode";
261
+ const _CE = "ConflictException";
262
+ const _CI = "ContactInformation";
263
+ const _CIPN = "ContactInformationPhoneNumber";
264
+ const _CN = "CompanyName";
265
+ const _DAC = "DeleteAlternateContact";
266
+ const _DACR = "DeleteAlternateContactRequest";
267
+ const _DOC = "DistrictOrCounty";
268
+ const _DR = "DisableRegion";
269
+ const _DRR = "DisableRegionRequest";
270
+ const _EA = "EmailAddress";
271
+ const _ER = "EnableRegion";
272
+ const _ERR = "EnableRegionRequest";
273
+ const _FN = "FullName";
274
+ const _GAC = "GetAlternateContact";
275
+ const _GACR = "GetAlternateContactRequest";
276
+ const _GACRe = "GetAlternateContactResponse";
277
+ const _GAI = "GetAccountInformation";
278
+ const _GAIR = "GetAccountInformationRequest";
279
+ const _GAIRe = "GetAccountInformationResponse";
280
+ const _GCAI = "GovCloudAccountId";
281
+ const _GCI = "GetContactInformation";
282
+ const _GCIR = "GetContactInformationRequest";
283
+ const _GCIRe = "GetContactInformationResponse";
284
+ const _GGCAI = "GetGovCloudAccountInformation";
285
+ const _GGCAIR = "GetGovCloudAccountInformationRequest";
286
+ const _GGCAIRe = "GetGovCloudAccountInformationResponse";
287
+ const _GPE = "GetPrimaryEmail";
288
+ const _GPER = "GetPrimaryEmailRequest";
289
+ const _GPERe = "GetPrimaryEmailResponse";
290
+ const _GROS = "GetRegionOptStatus";
291
+ const _GROSR = "GetRegionOptStatusRequest";
292
+ const _GROSRe = "GetRegionOptStatusResponse";
293
+ const _ISE = "InternalServerException";
294
+ const _LR = "ListRegions";
295
+ const _LRR = "ListRegionsRequest";
296
+ const _LRRi = "ListRegionsResponse";
297
+ const _MR = "MaxResults";
298
+ const _N = "Name";
299
+ const _NT = "NextToken";
300
+ const _O = "Otp";
301
+ const _PAC = "PutAlternateContact";
302
+ const _PACR = "PutAlternateContactRequest";
303
+ const _PAN = "PutAccountName";
304
+ const _PANR = "PutAccountNameRequest";
305
+ const _PC = "PostalCode";
306
+ const _PCI = "PutContactInformation";
307
+ const _PCIR = "PutContactInformationRequest";
308
+ const _PE = "PrimaryEmail";
309
+ const _PEA = "PrimaryEmailAddress";
310
+ const _PN = "PhoneNumber";
311
+ const _R = "Regions";
312
+ const _RN = "RegionName";
313
+ const _RNFE = "ResourceNotFoundException";
314
+ const _ROL = "RegionOptList";
315
+ const _ROS = "RegionOptStatus";
316
+ const _ROSC = "RegionOptStatusContains";
317
+ const _RUE = "ResourceUnavailableException";
318
+ const _Re = "Region";
319
+ const _S = "Status";
320
+ const _SAI = "StandardAccountId";
321
+ const _SOR = "StateOrRegion";
322
+ const _SPEU = "StartPrimaryEmailUpdate";
323
+ const _SPEUR = "StartPrimaryEmailUpdateRequest";
324
+ const _SPEURt = "StartPrimaryEmailUpdateResponse";
325
+ const _SS = "SensitiveString";
326
+ const _T = "Title";
327
+ const _TMRE = "TooManyRequestsException";
328
+ const _VE = "ValidationException";
329
+ const _VEF = "ValidationExceptionField";
330
+ const _VEFL = "ValidationExceptionFieldList";
331
+ const _WU = "WebsiteUrl";
332
+ const _c = "client";
333
+ const _e = "error";
334
+ const _eT = "errorType";
335
+ const _fL = "fieldList";
336
+ const _h = "http";
337
+ const _hE = "httpError";
338
+ const _hH = "httpHeader";
339
+ const _m = "message";
340
+ const _n = "name";
341
+ const _r = "reason";
342
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.account";
343
+ const _se = "server";
344
+ const _xaE = "x-amzn-ErrorType";
345
+ const n0 = "com.amazonaws.account";
346
+ const _s_registry = TypeRegistry.for(_s);
347
+ var AccountServiceException$ = [-3, _s, "AccountServiceException", 0, [], []];
348
+ _s_registry.registerError(AccountServiceException$, AccountServiceException);
349
+ const n0_registry = TypeRegistry.for(n0);
350
+ var AccessDeniedException$ = [-3, n0, _ADE,
351
+ { [_e]: _c, [_hE]: 403 },
352
+ [_m, _eT],
353
+ [0, [0, { [_hH]: _xaE }]], 1
354
+ ];
355
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
356
+ var ConflictException$ = [-3, n0, _CE,
357
+ { [_e]: _c, [_hE]: 409 },
358
+ [_m, _eT],
359
+ [0, [0, { [_hH]: _xaE }]], 1
360
+ ];
361
+ n0_registry.registerError(ConflictException$, ConflictException);
362
+ var InternalServerException$ = [-3, n0, _ISE,
363
+ { [_e]: _se, [_hE]: 500 },
364
+ [_m, _eT],
365
+ [0, [0, { [_hH]: _xaE }]], 1
366
+ ];
367
+ n0_registry.registerError(InternalServerException$, InternalServerException);
368
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
369
+ { [_e]: _c, [_hE]: 404 },
370
+ [_m, _eT],
371
+ [0, [0, { [_hH]: _xaE }]], 1
372
+ ];
373
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
374
+ var ResourceUnavailableException$ = [-3, n0, _RUE,
375
+ { [_e]: _c, [_hE]: 424 },
376
+ [_m, _eT],
377
+ [0, [0, { [_hH]: _xaE }]], 1
378
+ ];
379
+ n0_registry.registerError(ResourceUnavailableException$, ResourceUnavailableException);
380
+ var TooManyRequestsException$ = [-3, n0, _TMRE,
381
+ { [_e]: _c, [_hE]: 429 },
382
+ [_m, _eT],
383
+ [0, [0, { [_hH]: _xaE }]], 1
384
+ ];
385
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
386
+ var ValidationException$ = [-3, n0, _VE,
387
+ { [_e]: _c, [_hE]: 400 },
388
+ [_m, _r, _fL],
389
+ [[() => SensitiveString, 0], 0, [() => ValidationExceptionFieldList, 0]], 1
390
+ ];
391
+ n0_registry.registerError(ValidationException$, ValidationException);
392
+ const errorTypeRegistries = [
393
+ _s_registry,
394
+ n0_registry,
395
+ ];
396
+ var AccountName = [0, n0, _AN, 8, 0];
397
+ var AddressLine = [0, n0, _AL, 8, 0];
398
+ var City = [0, n0, _C, 8, 0];
399
+ var CompanyName = [0, n0, _CN, 8, 0];
400
+ var ContactInformationPhoneNumber = [0, n0, _CIPN, 8, 0];
401
+ var CountryCode = [0, n0, _CC, 8, 0];
402
+ var DistrictOrCounty = [0, n0, _DOC, 8, 0];
403
+ var EmailAddress = [0, n0, _EA, 8, 0];
404
+ var FullName = [0, n0, _FN, 8, 0];
405
+ var Name = [0, n0, _N, 8, 0];
406
+ var Otp = [0, n0, _O, 8, 0];
407
+ var PhoneNumber = [0, n0, _PN, 8, 0];
408
+ var PostalCode = [0, n0, _PC, 8, 0];
409
+ var PrimaryEmailAddress = [0, n0, _PEA, 8, 0];
410
+ var SensitiveString = [0, n0, _SS, 8, 0];
411
+ var StateOrRegion = [0, n0, _SOR, 8, 0];
412
+ var Title = [0, n0, _T, 8, 0];
413
+ var WebsiteUrl = [0, n0, _WU, 8, 0];
414
+ var AcceptPrimaryEmailUpdateRequest$ = [3, n0, _APEUR,
415
+ 0,
416
+ [_AI, _PE, _O],
417
+ [0, [() => PrimaryEmailAddress, 0], [() => Otp, 0]], 3
418
+ ];
419
+ var AcceptPrimaryEmailUpdateResponse$ = [3, n0, _APEURc,
420
+ 0,
421
+ [_S],
422
+ [0]
423
+ ];
424
+ var AlternateContact$ = [3, n0, _AC,
425
+ 0,
426
+ [_N, _T, _EA, _PN, _ACT],
427
+ [[() => Name, 0], [() => Title, 0], [() => EmailAddress, 0], [() => PhoneNumber, 0], 0]
428
+ ];
429
+ var ContactInformation$ = [3, n0, _CI,
430
+ 0,
431
+ [_FN, _ALd, _C, _PC, _CC, _PN, _ALdd, _ALddr, _SOR, _DOC, _CN, _WU],
432
+ [[() => 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
433
+ ];
434
+ var DeleteAlternateContactRequest$ = [3, n0, _DACR,
435
+ 0,
436
+ [_ACT, _AI],
437
+ [0, 0], 1
438
+ ];
439
+ var DisableRegionRequest$ = [3, n0, _DRR,
440
+ 0,
441
+ [_RN, _AI],
442
+ [0, 0], 1
443
+ ];
444
+ var EnableRegionRequest$ = [3, n0, _ERR,
445
+ 0,
446
+ [_RN, _AI],
447
+ [0, 0], 1
448
+ ];
449
+ var GetAccountInformationRequest$ = [3, n0, _GAIR,
450
+ 0,
451
+ [_AI],
452
+ [0]
453
+ ];
454
+ var GetAccountInformationResponse$ = [3, n0, _GAIRe,
455
+ 0,
456
+ [_AI, _AN, _ACD, _AS],
457
+ [0, [() => AccountName, 0], 5, 0]
458
+ ];
459
+ var GetAlternateContactRequest$ = [3, n0, _GACR,
460
+ 0,
461
+ [_ACT, _AI],
462
+ [0, 0], 1
463
+ ];
464
+ var GetAlternateContactResponse$ = [3, n0, _GACRe,
465
+ 0,
466
+ [_AC],
467
+ [[() => AlternateContact$, 0]]
468
+ ];
469
+ var GetContactInformationRequest$ = [3, n0, _GCIR,
470
+ 0,
471
+ [_AI],
472
+ [0]
473
+ ];
474
+ var GetContactInformationResponse$ = [3, n0, _GCIRe,
475
+ 0,
476
+ [_CI],
477
+ [[() => ContactInformation$, 0]]
478
+ ];
479
+ var GetGovCloudAccountInformationRequest$ = [3, n0, _GGCAIR,
480
+ 0,
481
+ [_SAI],
482
+ [0]
483
+ ];
484
+ var GetGovCloudAccountInformationResponse$ = [3, n0, _GGCAIRe,
485
+ 0,
486
+ [_GCAI, _AS],
487
+ [0, 0], 2
488
+ ];
489
+ var GetPrimaryEmailRequest$ = [3, n0, _GPER,
490
+ 0,
491
+ [_AI],
492
+ [0], 1
493
+ ];
494
+ var GetPrimaryEmailResponse$ = [3, n0, _GPERe,
495
+ 0,
496
+ [_PE],
497
+ [[() => PrimaryEmailAddress, 0]]
498
+ ];
499
+ var GetRegionOptStatusRequest$ = [3, n0, _GROSR,
500
+ 0,
501
+ [_RN, _AI],
502
+ [0, 0], 1
503
+ ];
504
+ var GetRegionOptStatusResponse$ = [3, n0, _GROSRe,
505
+ 0,
506
+ [_RN, _ROS],
507
+ [0, 0]
508
+ ];
509
+ var ListRegionsRequest$ = [3, n0, _LRR,
510
+ 0,
511
+ [_AI, _MR, _NT, _ROSC],
512
+ [0, 1, 0, 64 | 0]
513
+ ];
514
+ var ListRegionsResponse$ = [3, n0, _LRRi,
515
+ 0,
516
+ [_NT, _R],
517
+ [0, () => RegionOptList]
518
+ ];
519
+ var PutAccountNameRequest$ = [3, n0, _PANR,
520
+ 0,
521
+ [_AN, _AI],
522
+ [[() => AccountName, 0], 0], 1
523
+ ];
524
+ var PutAlternateContactRequest$ = [3, n0, _PACR,
525
+ 0,
526
+ [_N, _T, _EA, _PN, _ACT, _AI],
527
+ [[() => Name, 0], [() => Title, 0], [() => EmailAddress, 0], [() => PhoneNumber, 0], 0, 0], 5
528
+ ];
529
+ var PutContactInformationRequest$ = [3, n0, _PCIR,
530
+ 0,
531
+ [_CI, _AI],
532
+ [[() => ContactInformation$, 0], 0], 1
533
+ ];
534
+ var Region$ = [3, n0, _Re,
535
+ 0,
536
+ [_RN, _ROS],
537
+ [0, 0]
538
+ ];
539
+ var StartPrimaryEmailUpdateRequest$ = [3, n0, _SPEUR,
540
+ 0,
541
+ [_AI, _PE],
542
+ [0, [() => PrimaryEmailAddress, 0]], 2
543
+ ];
544
+ var StartPrimaryEmailUpdateResponse$ = [3, n0, _SPEURt,
545
+ 0,
546
+ [_S],
547
+ [0]
548
+ ];
549
+ var ValidationExceptionField$ = [3, n0, _VEF,
550
+ 0,
551
+ [_n, _m],
552
+ [0, [() => SensitiveString, 0]], 2
553
+ ];
554
+ var __Unit = "unit";
555
+ var RegionOptList = [1, n0, _ROL,
556
+ 0, () => Region$
557
+ ];
558
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
559
+ 0, [() => ValidationExceptionField$,
560
+ 0]
561
+ ];
562
+ var AcceptPrimaryEmailUpdate$ = [9, n0, _APEU,
563
+ { [_h]: ["POST", "/acceptPrimaryEmailUpdate", 200] }, () => AcceptPrimaryEmailUpdateRequest$, () => AcceptPrimaryEmailUpdateResponse$
564
+ ];
565
+ var DeleteAlternateContact$ = [9, n0, _DAC,
566
+ { [_h]: ["POST", "/deleteAlternateContact", 200] }, () => DeleteAlternateContactRequest$, () => __Unit
567
+ ];
568
+ var DisableRegion$ = [9, n0, _DR,
569
+ { [_h]: ["POST", "/disableRegion", 200] }, () => DisableRegionRequest$, () => __Unit
570
+ ];
571
+ var EnableRegion$ = [9, n0, _ER,
572
+ { [_h]: ["POST", "/enableRegion", 200] }, () => EnableRegionRequest$, () => __Unit
573
+ ];
574
+ var GetAccountInformation$ = [9, n0, _GAI,
575
+ { [_h]: ["POST", "/getAccountInformation", 200] }, () => GetAccountInformationRequest$, () => GetAccountInformationResponse$
576
+ ];
577
+ var GetAlternateContact$ = [9, n0, _GAC,
578
+ { [_h]: ["POST", "/getAlternateContact", 200] }, () => GetAlternateContactRequest$, () => GetAlternateContactResponse$
579
+ ];
580
+ var GetContactInformation$ = [9, n0, _GCI,
581
+ { [_h]: ["POST", "/getContactInformation", 200] }, () => GetContactInformationRequest$, () => GetContactInformationResponse$
582
+ ];
583
+ var GetGovCloudAccountInformation$ = [9, n0, _GGCAI,
584
+ { [_h]: ["POST", "/getGovCloudAccountInformation", 200] }, () => GetGovCloudAccountInformationRequest$, () => GetGovCloudAccountInformationResponse$
585
+ ];
586
+ var GetPrimaryEmail$ = [9, n0, _GPE,
587
+ { [_h]: ["POST", "/getPrimaryEmail", 200] }, () => GetPrimaryEmailRequest$, () => GetPrimaryEmailResponse$
588
+ ];
589
+ var GetRegionOptStatus$ = [9, n0, _GROS,
590
+ { [_h]: ["POST", "/getRegionOptStatus", 200] }, () => GetRegionOptStatusRequest$, () => GetRegionOptStatusResponse$
591
+ ];
592
+ var ListRegions$ = [9, n0, _LR,
593
+ { [_h]: ["POST", "/listRegions", 200] }, () => ListRegionsRequest$, () => ListRegionsResponse$
594
+ ];
595
+ var PutAccountName$ = [9, n0, _PAN,
596
+ { [_h]: ["POST", "/putAccountName", 200] }, () => PutAccountNameRequest$, () => __Unit
597
+ ];
598
+ var PutAlternateContact$ = [9, n0, _PAC,
599
+ { [_h]: ["POST", "/putAlternateContact", 200] }, () => PutAlternateContactRequest$, () => __Unit
600
+ ];
601
+ var PutContactInformation$ = [9, n0, _PCI,
602
+ { [_h]: ["POST", "/putContactInformation", 200] }, () => PutContactInformationRequest$, () => __Unit
603
+ ];
604
+ var StartPrimaryEmailUpdate$ = [9, n0, _SPEU,
605
+ { [_h]: ["POST", "/startPrimaryEmailUpdate", 200] }, () => StartPrimaryEmailUpdateRequest$, () => StartPrimaryEmailUpdateResponse$
606
+ ];
607
+
608
+ const getRuntimeConfig$1 = (config) => {
609
+ return {
610
+ apiVersion: "2021-02-01",
611
+ base64Decoder: config?.base64Decoder ?? fromBase64,
612
+ base64Encoder: config?.base64Encoder ?? toBase64,
613
+ disableHostPrefix: config?.disableHostPrefix ?? false,
614
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
615
+ extensions: config?.extensions ?? [],
616
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAccountHttpAuthSchemeProvider,
617
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
618
+ {
619
+ schemeId: "aws.auth#sigv4",
620
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
621
+ signer: new AwsSdkSigV4Signer(),
622
+ },
623
+ ],
624
+ logger: config?.logger ?? new NoOpLogger(),
625
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
626
+ protocolSettings: config?.protocolSettings ?? {
627
+ defaultNamespace: "com.amazonaws.account",
628
+ errorTypeRegistries,
629
+ version: "2021-02-01",
630
+ serviceTarget: "Account",
631
+ },
632
+ serviceId: config?.serviceId ?? "Account",
633
+ sha256: config?.sha256 ?? Sha256,
634
+ urlParser: config?.urlParser ?? parseUrl,
635
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
636
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
637
+ };
638
+ };
639
+
640
+ const getRuntimeConfig = (config) => {
641
+ emitWarningIfUnsupportedVersion(process.version);
642
+ const defaultsMode = resolveDefaultsModeConfig(config);
643
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
644
+ const clientSharedValues = getRuntimeConfig$1(config);
645
+ emitWarningIfUnsupportedVersion$1(process.version);
646
+ const loaderConfig = {
647
+ profile: config?.profile,
648
+ logger: clientSharedValues.logger,
649
+ };
650
+ return {
651
+ ...clientSharedValues,
652
+ ...config,
653
+ runtime: "node",
654
+ defaultsMode,
655
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
656
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
657
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
658
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
659
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
660
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
661
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
662
+ retryMode: config?.retryMode ??
663
+ loadConfig({
664
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
665
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
666
+ }, config),
667
+ streamCollector: config?.streamCollector ?? streamCollector,
668
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
669
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
670
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
671
+ };
672
+ };
673
+
34
674
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
675
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
676
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -350,27 +990,87 @@ const RegionOptStatus = {
350
990
  ENABLING: "ENABLING",
351
991
  };
352
992
 
993
+ exports.AcceptPrimaryEmailUpdate$ = AcceptPrimaryEmailUpdate$;
353
994
  exports.AcceptPrimaryEmailUpdateCommand = AcceptPrimaryEmailUpdateCommand;
995
+ exports.AcceptPrimaryEmailUpdateRequest$ = AcceptPrimaryEmailUpdateRequest$;
996
+ exports.AcceptPrimaryEmailUpdateResponse$ = AcceptPrimaryEmailUpdateResponse$;
997
+ exports.AccessDeniedException = AccessDeniedException;
998
+ exports.AccessDeniedException$ = AccessDeniedException$;
354
999
  exports.Account = Account;
355
1000
  exports.AccountClient = AccountClient;
1001
+ exports.AccountServiceException = AccountServiceException;
1002
+ exports.AccountServiceException$ = AccountServiceException$;
356
1003
  exports.AccountState = AccountState;
1004
+ exports.AlternateContact$ = AlternateContact$;
357
1005
  exports.AlternateContactType = AlternateContactType;
358
1006
  exports.AwsAccountState = AwsAccountState;
1007
+ exports.ConflictException = ConflictException;
1008
+ exports.ConflictException$ = ConflictException$;
1009
+ exports.ContactInformation$ = ContactInformation$;
1010
+ exports.DeleteAlternateContact$ = DeleteAlternateContact$;
359
1011
  exports.DeleteAlternateContactCommand = DeleteAlternateContactCommand;
1012
+ exports.DeleteAlternateContactRequest$ = DeleteAlternateContactRequest$;
1013
+ exports.DisableRegion$ = DisableRegion$;
360
1014
  exports.DisableRegionCommand = DisableRegionCommand;
1015
+ exports.DisableRegionRequest$ = DisableRegionRequest$;
1016
+ exports.EnableRegion$ = EnableRegion$;
361
1017
  exports.EnableRegionCommand = EnableRegionCommand;
1018
+ exports.EnableRegionRequest$ = EnableRegionRequest$;
1019
+ exports.GetAccountInformation$ = GetAccountInformation$;
362
1020
  exports.GetAccountInformationCommand = GetAccountInformationCommand;
1021
+ exports.GetAccountInformationRequest$ = GetAccountInformationRequest$;
1022
+ exports.GetAccountInformationResponse$ = GetAccountInformationResponse$;
1023
+ exports.GetAlternateContact$ = GetAlternateContact$;
363
1024
  exports.GetAlternateContactCommand = GetAlternateContactCommand;
1025
+ exports.GetAlternateContactRequest$ = GetAlternateContactRequest$;
1026
+ exports.GetAlternateContactResponse$ = GetAlternateContactResponse$;
1027
+ exports.GetContactInformation$ = GetContactInformation$;
364
1028
  exports.GetContactInformationCommand = GetContactInformationCommand;
1029
+ exports.GetContactInformationRequest$ = GetContactInformationRequest$;
1030
+ exports.GetContactInformationResponse$ = GetContactInformationResponse$;
1031
+ exports.GetGovCloudAccountInformation$ = GetGovCloudAccountInformation$;
365
1032
  exports.GetGovCloudAccountInformationCommand = GetGovCloudAccountInformationCommand;
1033
+ exports.GetGovCloudAccountInformationRequest$ = GetGovCloudAccountInformationRequest$;
1034
+ exports.GetGovCloudAccountInformationResponse$ = GetGovCloudAccountInformationResponse$;
1035
+ exports.GetPrimaryEmail$ = GetPrimaryEmail$;
366
1036
  exports.GetPrimaryEmailCommand = GetPrimaryEmailCommand;
1037
+ exports.GetPrimaryEmailRequest$ = GetPrimaryEmailRequest$;
1038
+ exports.GetPrimaryEmailResponse$ = GetPrimaryEmailResponse$;
1039
+ exports.GetRegionOptStatus$ = GetRegionOptStatus$;
367
1040
  exports.GetRegionOptStatusCommand = GetRegionOptStatusCommand;
1041
+ exports.GetRegionOptStatusRequest$ = GetRegionOptStatusRequest$;
1042
+ exports.GetRegionOptStatusResponse$ = GetRegionOptStatusResponse$;
1043
+ exports.InternalServerException = InternalServerException;
1044
+ exports.InternalServerException$ = InternalServerException$;
1045
+ exports.ListRegions$ = ListRegions$;
368
1046
  exports.ListRegionsCommand = ListRegionsCommand;
1047
+ exports.ListRegionsRequest$ = ListRegionsRequest$;
1048
+ exports.ListRegionsResponse$ = ListRegionsResponse$;
369
1049
  exports.PrimaryEmailUpdateStatus = PrimaryEmailUpdateStatus;
1050
+ exports.PutAccountName$ = PutAccountName$;
370
1051
  exports.PutAccountNameCommand = PutAccountNameCommand;
1052
+ exports.PutAccountNameRequest$ = PutAccountNameRequest$;
1053
+ exports.PutAlternateContact$ = PutAlternateContact$;
371
1054
  exports.PutAlternateContactCommand = PutAlternateContactCommand;
1055
+ exports.PutAlternateContactRequest$ = PutAlternateContactRequest$;
1056
+ exports.PutContactInformation$ = PutContactInformation$;
372
1057
  exports.PutContactInformationCommand = PutContactInformationCommand;
1058
+ exports.PutContactInformationRequest$ = PutContactInformationRequest$;
1059
+ exports.Region$ = Region$;
373
1060
  exports.RegionOptStatus = RegionOptStatus;
1061
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1062
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1063
+ exports.ResourceUnavailableException = ResourceUnavailableException;
1064
+ exports.ResourceUnavailableException$ = ResourceUnavailableException$;
1065
+ exports.StartPrimaryEmailUpdate$ = StartPrimaryEmailUpdate$;
374
1066
  exports.StartPrimaryEmailUpdateCommand = StartPrimaryEmailUpdateCommand;
1067
+ exports.StartPrimaryEmailUpdateRequest$ = StartPrimaryEmailUpdateRequest$;
1068
+ exports.StartPrimaryEmailUpdateResponse$ = StartPrimaryEmailUpdateResponse$;
1069
+ exports.TooManyRequestsException = TooManyRequestsException;
1070
+ exports.TooManyRequestsException$ = TooManyRequestsException$;
1071
+ exports.ValidationException = ValidationException;
1072
+ exports.ValidationException$ = ValidationException$;
1073
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
375
1074
  exports.ValidationExceptionReason = ValidationExceptionReason;
1075
+ exports.errorTypeRegistries = errorTypeRegistries;
376
1076
  exports.paginateListRegions = paginateListRegions;