@aws-sdk/client-account 3.590.0 → 3.596.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/README.md +24 -0
- package/dist-cjs/index.js +204 -41
- package/dist-es/Account.js +6 -0
- package/dist-es/commands/AcceptPrimaryEmailUpdateCommand.js +25 -0
- package/dist-es/commands/GetPrimaryEmailCommand.js +25 -0
- package/dist-es/commands/StartPrimaryEmailUpdateCommand.js +25 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +34 -17
- package/dist-es/protocols/Aws_restJson1.js +87 -3
- package/dist-types/Account.d.ts +21 -0
- package/dist-types/AccountClient.d.ts +5 -2
- package/dist-types/commands/AcceptPrimaryEmailUpdateCommand.d.ts +86 -0
- package/dist-types/commands/DeleteAlternateContactCommand.d.ts +2 -1
- package/dist-types/commands/DisableRegionCommand.d.ts +6 -1
- package/dist-types/commands/EnableRegionCommand.d.ts +2 -1
- package/dist-types/commands/GetAlternateContactCommand.d.ts +2 -1
- package/dist-types/commands/GetContactInformationCommand.d.ts +2 -1
- package/dist-types/commands/GetPrimaryEmailCommand.d.ts +78 -0
- package/dist-types/commands/GetRegionOptStatusCommand.d.ts +2 -1
- package/dist-types/commands/ListRegionsCommand.d.ts +2 -1
- package/dist-types/commands/PutAlternateContactCommand.d.ts +2 -1
- package/dist-types/commands/PutContactInformationCommand.d.ts +3 -2
- package/dist-types/commands/StartPrimaryEmailUpdateCommand.d.ts +85 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +2 -2
- package/dist-types/models/AccountServiceException.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +244 -91
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/Account.d.ts +51 -0
- package/dist-types/ts3.4/AccountClient.d.ts +20 -2
- package/dist-types/ts3.4/commands/AcceptPrimaryEmailUpdateCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteAlternateContactCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DisableRegionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/EnableRegionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetAlternateContactCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetContactInformationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetPrimaryEmailCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetRegionOptStatusCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListRegionsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutAlternateContactCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutContactInformationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/StartPrimaryEmailUpdateCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/AccountServiceException.d.ts +2 -1
- package/dist-types/ts3.4/models/models_0.d.ts +50 -14
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -203,6 +203,14 @@ see LICENSE for more information.
|
|
|
203
203
|
|
|
204
204
|
## Client Commands (Operations List)
|
|
205
205
|
|
|
206
|
+
<details>
|
|
207
|
+
<summary>
|
|
208
|
+
AcceptPrimaryEmailUpdate
|
|
209
|
+
</summary>
|
|
210
|
+
|
|
211
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/AcceptPrimaryEmailUpdateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/AcceptPrimaryEmailUpdateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/AcceptPrimaryEmailUpdateCommandOutput/)
|
|
212
|
+
|
|
213
|
+
</details>
|
|
206
214
|
<details>
|
|
207
215
|
<summary>
|
|
208
216
|
DeleteAlternateContact
|
|
@@ -242,6 +250,14 @@ GetContactInformation
|
|
|
242
250
|
|
|
243
251
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/GetContactInformationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetContactInformationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetContactInformationCommandOutput/)
|
|
244
252
|
|
|
253
|
+
</details>
|
|
254
|
+
<details>
|
|
255
|
+
<summary>
|
|
256
|
+
GetPrimaryEmail
|
|
257
|
+
</summary>
|
|
258
|
+
|
|
259
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/GetPrimaryEmailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetPrimaryEmailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetPrimaryEmailCommandOutput/)
|
|
260
|
+
|
|
245
261
|
</details>
|
|
246
262
|
<details>
|
|
247
263
|
<summary>
|
|
@@ -275,3 +291,11 @@ PutContactInformation
|
|
|
275
291
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/PutContactInformationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/PutContactInformationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/PutContactInformationCommandOutput/)
|
|
276
292
|
|
|
277
293
|
</details>
|
|
294
|
+
<details>
|
|
295
|
+
<summary>
|
|
296
|
+
StartPrimaryEmailUpdate
|
|
297
|
+
</summary>
|
|
298
|
+
|
|
299
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/StartPrimaryEmailUpdateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/StartPrimaryEmailUpdateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/StartPrimaryEmailUpdateCommandOutput/)
|
|
300
|
+
|
|
301
|
+
</details>
|
package/dist-cjs/index.js
CHANGED
|
@@ -21,6 +21,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/index.ts
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
|
+
AcceptPrimaryEmailUpdateCommand: () => AcceptPrimaryEmailUpdateCommand,
|
|
25
|
+
AcceptPrimaryEmailUpdateRequestFilterSensitiveLog: () => AcceptPrimaryEmailUpdateRequestFilterSensitiveLog,
|
|
24
26
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
27
|
Account: () => Account,
|
|
26
28
|
AccountClient: () => AccountClient,
|
|
@@ -36,15 +38,20 @@ __export(src_exports, {
|
|
|
36
38
|
GetAlternateContactResponseFilterSensitiveLog: () => GetAlternateContactResponseFilterSensitiveLog,
|
|
37
39
|
GetContactInformationCommand: () => GetContactInformationCommand,
|
|
38
40
|
GetContactInformationResponseFilterSensitiveLog: () => GetContactInformationResponseFilterSensitiveLog,
|
|
41
|
+
GetPrimaryEmailCommand: () => GetPrimaryEmailCommand,
|
|
42
|
+
GetPrimaryEmailResponseFilterSensitiveLog: () => GetPrimaryEmailResponseFilterSensitiveLog,
|
|
39
43
|
GetRegionOptStatusCommand: () => GetRegionOptStatusCommand,
|
|
40
44
|
InternalServerException: () => InternalServerException,
|
|
41
45
|
ListRegionsCommand: () => ListRegionsCommand,
|
|
46
|
+
PrimaryEmailUpdateStatus: () => PrimaryEmailUpdateStatus,
|
|
42
47
|
PutAlternateContactCommand: () => PutAlternateContactCommand,
|
|
43
48
|
PutAlternateContactRequestFilterSensitiveLog: () => PutAlternateContactRequestFilterSensitiveLog,
|
|
44
49
|
PutContactInformationCommand: () => PutContactInformationCommand,
|
|
45
50
|
PutContactInformationRequestFilterSensitiveLog: () => PutContactInformationRequestFilterSensitiveLog,
|
|
46
51
|
RegionOptStatus: () => RegionOptStatus,
|
|
47
52
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
53
|
+
StartPrimaryEmailUpdateCommand: () => StartPrimaryEmailUpdateCommand,
|
|
54
|
+
StartPrimaryEmailUpdateRequestFilterSensitiveLog: () => StartPrimaryEmailUpdateRequestFilterSensitiveLog,
|
|
48
55
|
TooManyRequestsException: () => TooManyRequestsException,
|
|
49
56
|
ValidationException: () => ValidationException,
|
|
50
57
|
ValidationExceptionFieldFilterSensitiveLog: () => ValidationExceptionFieldFilterSensitiveLog,
|
|
@@ -200,15 +207,12 @@ var AccountClient = _AccountClient;
|
|
|
200
207
|
// src/Account.ts
|
|
201
208
|
|
|
202
209
|
|
|
203
|
-
// src/commands/
|
|
210
|
+
// src/commands/AcceptPrimaryEmailUpdateCommand.ts
|
|
204
211
|
|
|
205
212
|
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
206
213
|
|
|
207
|
-
var import_types = require("@smithy/types");
|
|
208
|
-
|
|
209
|
-
// src/protocols/Aws_restJson1.ts
|
|
210
|
-
var import_core2 = require("@aws-sdk/core");
|
|
211
214
|
|
|
215
|
+
// src/models/models_0.ts
|
|
212
216
|
|
|
213
217
|
|
|
214
218
|
// src/models/AccountServiceException.ts
|
|
@@ -226,7 +230,10 @@ __name(_AccountServiceException, "AccountServiceException");
|
|
|
226
230
|
var AccountServiceException = _AccountServiceException;
|
|
227
231
|
|
|
228
232
|
// src/models/models_0.ts
|
|
229
|
-
|
|
233
|
+
var PrimaryEmailUpdateStatus = {
|
|
234
|
+
ACCEPTED: "ACCEPTED",
|
|
235
|
+
PENDING: "PENDING"
|
|
236
|
+
};
|
|
230
237
|
var _AccessDeniedException = class _AccessDeniedException extends AccountServiceException {
|
|
231
238
|
/**
|
|
232
239
|
* @internal
|
|
@@ -244,11 +251,23 @@ var _AccessDeniedException = class _AccessDeniedException extends AccountService
|
|
|
244
251
|
};
|
|
245
252
|
__name(_AccessDeniedException, "AccessDeniedException");
|
|
246
253
|
var AccessDeniedException = _AccessDeniedException;
|
|
247
|
-
var
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
254
|
+
var _ConflictException = class _ConflictException extends AccountServiceException {
|
|
255
|
+
/**
|
|
256
|
+
* @internal
|
|
257
|
+
*/
|
|
258
|
+
constructor(opts) {
|
|
259
|
+
super({
|
|
260
|
+
name: "ConflictException",
|
|
261
|
+
$fault: "client",
|
|
262
|
+
...opts
|
|
263
|
+
});
|
|
264
|
+
this.name = "ConflictException";
|
|
265
|
+
this.$fault = "client";
|
|
266
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
267
|
+
}
|
|
251
268
|
};
|
|
269
|
+
__name(_ConflictException, "ConflictException");
|
|
270
|
+
var ConflictException = _ConflictException;
|
|
252
271
|
var _InternalServerException = class _InternalServerException extends AccountServiceException {
|
|
253
272
|
/**
|
|
254
273
|
* @internal
|
|
@@ -327,23 +346,11 @@ var _ValidationException = class _ValidationException extends AccountServiceExce
|
|
|
327
346
|
};
|
|
328
347
|
__name(_ValidationException, "ValidationException");
|
|
329
348
|
var ValidationException = _ValidationException;
|
|
330
|
-
var
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
constructor(opts) {
|
|
335
|
-
super({
|
|
336
|
-
name: "ConflictException",
|
|
337
|
-
$fault: "client",
|
|
338
|
-
...opts
|
|
339
|
-
});
|
|
340
|
-
this.name = "ConflictException";
|
|
341
|
-
this.$fault = "client";
|
|
342
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
343
|
-
}
|
|
349
|
+
var AlternateContactType = {
|
|
350
|
+
BILLING: "BILLING",
|
|
351
|
+
OPERATIONS: "OPERATIONS",
|
|
352
|
+
SECURITY: "SECURITY"
|
|
344
353
|
};
|
|
345
|
-
__name(_ConflictException, "ConflictException");
|
|
346
|
-
var ConflictException = _ConflictException;
|
|
347
354
|
var RegionOptStatus = {
|
|
348
355
|
DISABLED: "DISABLED",
|
|
349
356
|
DISABLING: "DISABLING",
|
|
@@ -351,6 +358,11 @@ var RegionOptStatus = {
|
|
|
351
358
|
ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT",
|
|
352
359
|
ENABLING: "ENABLING"
|
|
353
360
|
};
|
|
361
|
+
var AcceptPrimaryEmailUpdateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
362
|
+
...obj,
|
|
363
|
+
...obj.PrimaryEmail && { PrimaryEmail: import_smithy_client.SENSITIVE_STRING },
|
|
364
|
+
...obj.Otp && { Otp: import_smithy_client.SENSITIVE_STRING }
|
|
365
|
+
}), "AcceptPrimaryEmailUpdateRequestFilterSensitiveLog");
|
|
354
366
|
var ValidationExceptionFieldFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
355
367
|
...obj,
|
|
356
368
|
...obj.message && { message: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -396,8 +408,36 @@ var PutContactInformationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj
|
|
|
396
408
|
...obj,
|
|
397
409
|
...obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }
|
|
398
410
|
}), "PutContactInformationRequestFilterSensitiveLog");
|
|
411
|
+
var GetPrimaryEmailResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
412
|
+
...obj,
|
|
413
|
+
...obj.PrimaryEmail && { PrimaryEmail: import_smithy_client.SENSITIVE_STRING }
|
|
414
|
+
}), "GetPrimaryEmailResponseFilterSensitiveLog");
|
|
415
|
+
var StartPrimaryEmailUpdateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
416
|
+
...obj,
|
|
417
|
+
...obj.PrimaryEmail && { PrimaryEmail: import_smithy_client.SENSITIVE_STRING }
|
|
418
|
+
}), "StartPrimaryEmailUpdateRequestFilterSensitiveLog");
|
|
399
419
|
|
|
400
420
|
// src/protocols/Aws_restJson1.ts
|
|
421
|
+
var import_core2 = require("@aws-sdk/core");
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
var se_AcceptPrimaryEmailUpdateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
425
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
426
|
+
const headers = {
|
|
427
|
+
"content-type": "application/json"
|
|
428
|
+
};
|
|
429
|
+
b.bp("/acceptPrimaryEmailUpdate");
|
|
430
|
+
let body;
|
|
431
|
+
body = JSON.stringify(
|
|
432
|
+
(0, import_smithy_client.take)(input, {
|
|
433
|
+
AccountId: [],
|
|
434
|
+
Otp: [],
|
|
435
|
+
PrimaryEmail: []
|
|
436
|
+
})
|
|
437
|
+
);
|
|
438
|
+
b.m("POST").h(headers).b(body);
|
|
439
|
+
return b.build();
|
|
440
|
+
}, "se_AcceptPrimaryEmailUpdateCommand");
|
|
401
441
|
var se_DeleteAlternateContactCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
402
442
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
403
443
|
const headers = {
|
|
@@ -477,6 +517,21 @@ var se_GetContactInformationCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
477
517
|
b.m("POST").h(headers).b(body);
|
|
478
518
|
return b.build();
|
|
479
519
|
}, "se_GetContactInformationCommand");
|
|
520
|
+
var se_GetPrimaryEmailCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
521
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
522
|
+
const headers = {
|
|
523
|
+
"content-type": "application/json"
|
|
524
|
+
};
|
|
525
|
+
b.bp("/getPrimaryEmail");
|
|
526
|
+
let body;
|
|
527
|
+
body = JSON.stringify(
|
|
528
|
+
(0, import_smithy_client.take)(input, {
|
|
529
|
+
AccountId: []
|
|
530
|
+
})
|
|
531
|
+
);
|
|
532
|
+
b.m("POST").h(headers).b(body);
|
|
533
|
+
return b.build();
|
|
534
|
+
}, "se_GetPrimaryEmailCommand");
|
|
480
535
|
var se_GetRegionOptStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
481
536
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
482
537
|
const headers = {
|
|
@@ -547,6 +602,36 @@ var se_PutContactInformationCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
547
602
|
b.m("POST").h(headers).b(body);
|
|
548
603
|
return b.build();
|
|
549
604
|
}, "se_PutContactInformationCommand");
|
|
605
|
+
var se_StartPrimaryEmailUpdateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
606
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
607
|
+
const headers = {
|
|
608
|
+
"content-type": "application/json"
|
|
609
|
+
};
|
|
610
|
+
b.bp("/startPrimaryEmailUpdate");
|
|
611
|
+
let body;
|
|
612
|
+
body = JSON.stringify(
|
|
613
|
+
(0, import_smithy_client.take)(input, {
|
|
614
|
+
AccountId: [],
|
|
615
|
+
PrimaryEmail: []
|
|
616
|
+
})
|
|
617
|
+
);
|
|
618
|
+
b.m("POST").h(headers).b(body);
|
|
619
|
+
return b.build();
|
|
620
|
+
}, "se_StartPrimaryEmailUpdateCommand");
|
|
621
|
+
var de_AcceptPrimaryEmailUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
622
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
623
|
+
return de_CommandError(output, context);
|
|
624
|
+
}
|
|
625
|
+
const contents = (0, import_smithy_client.map)({
|
|
626
|
+
$metadata: deserializeMetadata(output)
|
|
627
|
+
});
|
|
628
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
629
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
630
|
+
Status: import_smithy_client.expectString
|
|
631
|
+
});
|
|
632
|
+
Object.assign(contents, doc);
|
|
633
|
+
return contents;
|
|
634
|
+
}, "de_AcceptPrimaryEmailUpdateCommand");
|
|
550
635
|
var de_DeleteAlternateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
551
636
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
552
637
|
return de_CommandError(output, context);
|
|
@@ -605,6 +690,20 @@ var de_GetContactInformationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
605
690
|
Object.assign(contents, doc);
|
|
606
691
|
return contents;
|
|
607
692
|
}, "de_GetContactInformationCommand");
|
|
693
|
+
var de_GetPrimaryEmailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
694
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
695
|
+
return de_CommandError(output, context);
|
|
696
|
+
}
|
|
697
|
+
const contents = (0, import_smithy_client.map)({
|
|
698
|
+
$metadata: deserializeMetadata(output)
|
|
699
|
+
});
|
|
700
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
701
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
702
|
+
PrimaryEmail: import_smithy_client.expectString
|
|
703
|
+
});
|
|
704
|
+
Object.assign(contents, doc);
|
|
705
|
+
return contents;
|
|
706
|
+
}, "de_GetPrimaryEmailCommand");
|
|
608
707
|
var de_GetRegionOptStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
609
708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
610
709
|
return de_CommandError(output, context);
|
|
@@ -655,6 +754,20 @@ var de_PutContactInformationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
655
754
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
656
755
|
return contents;
|
|
657
756
|
}, "de_PutContactInformationCommand");
|
|
757
|
+
var de_StartPrimaryEmailUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
758
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
759
|
+
return de_CommandError(output, context);
|
|
760
|
+
}
|
|
761
|
+
const contents = (0, import_smithy_client.map)({
|
|
762
|
+
$metadata: deserializeMetadata(output)
|
|
763
|
+
});
|
|
764
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
765
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
766
|
+
Status: import_smithy_client.expectString
|
|
767
|
+
});
|
|
768
|
+
Object.assign(contents, doc);
|
|
769
|
+
return contents;
|
|
770
|
+
}, "de_StartPrimaryEmailUpdateCommand");
|
|
658
771
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
659
772
|
const parsedOutput = {
|
|
660
773
|
...output,
|
|
@@ -665,6 +778,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
665
778
|
case "AccessDeniedException":
|
|
666
779
|
case "com.amazonaws.account#AccessDeniedException":
|
|
667
780
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
781
|
+
case "ConflictException":
|
|
782
|
+
case "com.amazonaws.account#ConflictException":
|
|
783
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
668
784
|
case "InternalServerException":
|
|
669
785
|
case "com.amazonaws.account#InternalServerException":
|
|
670
786
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -677,9 +793,6 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
677
793
|
case "ValidationException":
|
|
678
794
|
case "com.amazonaws.account#ValidationException":
|
|
679
795
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
680
|
-
case "ConflictException":
|
|
681
|
-
case "com.amazonaws.account#ConflictException":
|
|
682
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
683
796
|
default:
|
|
684
797
|
const parsedBody = parsedOutput.body;
|
|
685
798
|
return throwDefaultError({
|
|
@@ -777,7 +890,23 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
777
890
|
cfId: output.headers["x-amz-cf-id"]
|
|
778
891
|
}), "deserializeMetadata");
|
|
779
892
|
|
|
893
|
+
// src/commands/AcceptPrimaryEmailUpdateCommand.ts
|
|
894
|
+
var _AcceptPrimaryEmailUpdateCommand = class _AcceptPrimaryEmailUpdateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
895
|
+
...commonParams
|
|
896
|
+
}).m(function(Command, cs, config, o) {
|
|
897
|
+
return [
|
|
898
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
899
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
900
|
+
];
|
|
901
|
+
}).s("Account", "AcceptPrimaryEmailUpdate", {}).n("AccountClient", "AcceptPrimaryEmailUpdateCommand").f(AcceptPrimaryEmailUpdateRequestFilterSensitiveLog, void 0).ser(se_AcceptPrimaryEmailUpdateCommand).de(de_AcceptPrimaryEmailUpdateCommand).build() {
|
|
902
|
+
};
|
|
903
|
+
__name(_AcceptPrimaryEmailUpdateCommand, "AcceptPrimaryEmailUpdateCommand");
|
|
904
|
+
var AcceptPrimaryEmailUpdateCommand = _AcceptPrimaryEmailUpdateCommand;
|
|
905
|
+
|
|
780
906
|
// src/commands/DeleteAlternateContactCommand.ts
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
781
910
|
var _DeleteAlternateContactCommand = class _DeleteAlternateContactCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
782
911
|
...commonParams
|
|
783
912
|
}).m(function(Command, cs, config, o) {
|
|
@@ -794,7 +923,6 @@ var DeleteAlternateContactCommand = _DeleteAlternateContactCommand;
|
|
|
794
923
|
|
|
795
924
|
|
|
796
925
|
|
|
797
|
-
|
|
798
926
|
var _DisableRegionCommand = class _DisableRegionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
799
927
|
...commonParams
|
|
800
928
|
}).m(function(Command, cs, config, o) {
|
|
@@ -811,7 +939,6 @@ var DisableRegionCommand = _DisableRegionCommand;
|
|
|
811
939
|
|
|
812
940
|
|
|
813
941
|
|
|
814
|
-
|
|
815
942
|
var _EnableRegionCommand = class _EnableRegionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
816
943
|
...commonParams
|
|
817
944
|
}).m(function(Command, cs, config, o) {
|
|
@@ -828,7 +955,6 @@ var EnableRegionCommand = _EnableRegionCommand;
|
|
|
828
955
|
|
|
829
956
|
|
|
830
957
|
|
|
831
|
-
|
|
832
958
|
var _GetAlternateContactCommand = class _GetAlternateContactCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
833
959
|
...commonParams
|
|
834
960
|
}).m(function(Command, cs, config, o) {
|
|
@@ -845,7 +971,6 @@ var GetAlternateContactCommand = _GetAlternateContactCommand;
|
|
|
845
971
|
|
|
846
972
|
|
|
847
973
|
|
|
848
|
-
|
|
849
974
|
var _GetContactInformationCommand = class _GetContactInformationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
850
975
|
...commonParams
|
|
851
976
|
}).m(function(Command, cs, config, o) {
|
|
@@ -858,10 +983,25 @@ var _GetContactInformationCommand = class _GetContactInformationCommand extends
|
|
|
858
983
|
__name(_GetContactInformationCommand, "GetContactInformationCommand");
|
|
859
984
|
var GetContactInformationCommand = _GetContactInformationCommand;
|
|
860
985
|
|
|
861
|
-
// src/commands/
|
|
986
|
+
// src/commands/GetPrimaryEmailCommand.ts
|
|
862
987
|
|
|
863
988
|
|
|
864
989
|
|
|
990
|
+
var _GetPrimaryEmailCommand = class _GetPrimaryEmailCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
991
|
+
...commonParams
|
|
992
|
+
}).m(function(Command, cs, config, o) {
|
|
993
|
+
return [
|
|
994
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
995
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
996
|
+
];
|
|
997
|
+
}).s("Account", "GetPrimaryEmail", {}).n("AccountClient", "GetPrimaryEmailCommand").f(void 0, GetPrimaryEmailResponseFilterSensitiveLog).ser(se_GetPrimaryEmailCommand).de(de_GetPrimaryEmailCommand).build() {
|
|
998
|
+
};
|
|
999
|
+
__name(_GetPrimaryEmailCommand, "GetPrimaryEmailCommand");
|
|
1000
|
+
var GetPrimaryEmailCommand = _GetPrimaryEmailCommand;
|
|
1001
|
+
|
|
1002
|
+
// src/commands/GetRegionOptStatusCommand.ts
|
|
1003
|
+
|
|
1004
|
+
|
|
865
1005
|
|
|
866
1006
|
var _GetRegionOptStatusCommand = class _GetRegionOptStatusCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
867
1007
|
...commonParams
|
|
@@ -879,7 +1019,6 @@ var GetRegionOptStatusCommand = _GetRegionOptStatusCommand;
|
|
|
879
1019
|
|
|
880
1020
|
|
|
881
1021
|
|
|
882
|
-
|
|
883
1022
|
var _ListRegionsCommand = class _ListRegionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
884
1023
|
...commonParams
|
|
885
1024
|
}).m(function(Command, cs, config, o) {
|
|
@@ -896,7 +1035,6 @@ var ListRegionsCommand = _ListRegionsCommand;
|
|
|
896
1035
|
|
|
897
1036
|
|
|
898
1037
|
|
|
899
|
-
|
|
900
1038
|
var _PutAlternateContactCommand = class _PutAlternateContactCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
901
1039
|
...commonParams
|
|
902
1040
|
}).m(function(Command, cs, config, o) {
|
|
@@ -913,7 +1051,6 @@ var PutAlternateContactCommand = _PutAlternateContactCommand;
|
|
|
913
1051
|
|
|
914
1052
|
|
|
915
1053
|
|
|
916
|
-
|
|
917
1054
|
var _PutContactInformationCommand = class _PutContactInformationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
918
1055
|
...commonParams
|
|
919
1056
|
}).m(function(Command, cs, config, o) {
|
|
@@ -926,17 +1063,36 @@ var _PutContactInformationCommand = class _PutContactInformationCommand extends
|
|
|
926
1063
|
__name(_PutContactInformationCommand, "PutContactInformationCommand");
|
|
927
1064
|
var PutContactInformationCommand = _PutContactInformationCommand;
|
|
928
1065
|
|
|
1066
|
+
// src/commands/StartPrimaryEmailUpdateCommand.ts
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
var _StartPrimaryEmailUpdateCommand = class _StartPrimaryEmailUpdateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1071
|
+
...commonParams
|
|
1072
|
+
}).m(function(Command, cs, config, o) {
|
|
1073
|
+
return [
|
|
1074
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1075
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1076
|
+
];
|
|
1077
|
+
}).s("Account", "StartPrimaryEmailUpdate", {}).n("AccountClient", "StartPrimaryEmailUpdateCommand").f(StartPrimaryEmailUpdateRequestFilterSensitiveLog, void 0).ser(se_StartPrimaryEmailUpdateCommand).de(de_StartPrimaryEmailUpdateCommand).build() {
|
|
1078
|
+
};
|
|
1079
|
+
__name(_StartPrimaryEmailUpdateCommand, "StartPrimaryEmailUpdateCommand");
|
|
1080
|
+
var StartPrimaryEmailUpdateCommand = _StartPrimaryEmailUpdateCommand;
|
|
1081
|
+
|
|
929
1082
|
// src/Account.ts
|
|
930
1083
|
var commands = {
|
|
1084
|
+
AcceptPrimaryEmailUpdateCommand,
|
|
931
1085
|
DeleteAlternateContactCommand,
|
|
932
1086
|
DisableRegionCommand,
|
|
933
1087
|
EnableRegionCommand,
|
|
934
1088
|
GetAlternateContactCommand,
|
|
935
1089
|
GetContactInformationCommand,
|
|
1090
|
+
GetPrimaryEmailCommand,
|
|
936
1091
|
GetRegionOptStatusCommand,
|
|
937
1092
|
ListRegionsCommand,
|
|
938
1093
|
PutAlternateContactCommand,
|
|
939
|
-
PutContactInformationCommand
|
|
1094
|
+
PutContactInformationCommand,
|
|
1095
|
+
StartPrimaryEmailUpdateCommand
|
|
940
1096
|
};
|
|
941
1097
|
var _Account = class _Account extends AccountClient {
|
|
942
1098
|
};
|
|
@@ -955,31 +1111,38 @@ var paginateListRegions = (0, import_core.createPaginator)(AccountClient, ListRe
|
|
|
955
1111
|
AccountClient,
|
|
956
1112
|
Account,
|
|
957
1113
|
$Command,
|
|
1114
|
+
AcceptPrimaryEmailUpdateCommand,
|
|
958
1115
|
DeleteAlternateContactCommand,
|
|
959
1116
|
DisableRegionCommand,
|
|
960
1117
|
EnableRegionCommand,
|
|
961
1118
|
GetAlternateContactCommand,
|
|
962
1119
|
GetContactInformationCommand,
|
|
1120
|
+
GetPrimaryEmailCommand,
|
|
963
1121
|
GetRegionOptStatusCommand,
|
|
964
1122
|
ListRegionsCommand,
|
|
965
1123
|
PutAlternateContactCommand,
|
|
966
1124
|
PutContactInformationCommand,
|
|
1125
|
+
StartPrimaryEmailUpdateCommand,
|
|
967
1126
|
paginateListRegions,
|
|
1127
|
+
PrimaryEmailUpdateStatus,
|
|
968
1128
|
AccessDeniedException,
|
|
969
|
-
|
|
1129
|
+
ConflictException,
|
|
970
1130
|
InternalServerException,
|
|
971
1131
|
ResourceNotFoundException,
|
|
972
1132
|
TooManyRequestsException,
|
|
973
1133
|
ValidationExceptionReason,
|
|
974
1134
|
ValidationException,
|
|
975
|
-
|
|
1135
|
+
AlternateContactType,
|
|
976
1136
|
RegionOptStatus,
|
|
1137
|
+
AcceptPrimaryEmailUpdateRequestFilterSensitiveLog,
|
|
977
1138
|
ValidationExceptionFieldFilterSensitiveLog,
|
|
978
1139
|
AlternateContactFilterSensitiveLog,
|
|
979
1140
|
GetAlternateContactResponseFilterSensitiveLog,
|
|
980
1141
|
PutAlternateContactRequestFilterSensitiveLog,
|
|
981
1142
|
ContactInformationFilterSensitiveLog,
|
|
982
1143
|
GetContactInformationResponseFilterSensitiveLog,
|
|
983
|
-
PutContactInformationRequestFilterSensitiveLog
|
|
1144
|
+
PutContactInformationRequestFilterSensitiveLog,
|
|
1145
|
+
GetPrimaryEmailResponseFilterSensitiveLog,
|
|
1146
|
+
StartPrimaryEmailUpdateRequestFilterSensitiveLog
|
|
984
1147
|
});
|
|
985
1148
|
|
package/dist-es/Account.js
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { AccountClient } from "./AccountClient";
|
|
3
|
+
import { AcceptPrimaryEmailUpdateCommand, } from "./commands/AcceptPrimaryEmailUpdateCommand";
|
|
3
4
|
import { DeleteAlternateContactCommand, } from "./commands/DeleteAlternateContactCommand";
|
|
4
5
|
import { DisableRegionCommand, } from "./commands/DisableRegionCommand";
|
|
5
6
|
import { EnableRegionCommand, } from "./commands/EnableRegionCommand";
|
|
6
7
|
import { GetAlternateContactCommand, } from "./commands/GetAlternateContactCommand";
|
|
7
8
|
import { GetContactInformationCommand, } from "./commands/GetContactInformationCommand";
|
|
9
|
+
import { GetPrimaryEmailCommand, } from "./commands/GetPrimaryEmailCommand";
|
|
8
10
|
import { GetRegionOptStatusCommand, } from "./commands/GetRegionOptStatusCommand";
|
|
9
11
|
import { ListRegionsCommand } from "./commands/ListRegionsCommand";
|
|
10
12
|
import { PutAlternateContactCommand, } from "./commands/PutAlternateContactCommand";
|
|
11
13
|
import { PutContactInformationCommand, } from "./commands/PutContactInformationCommand";
|
|
14
|
+
import { StartPrimaryEmailUpdateCommand, } from "./commands/StartPrimaryEmailUpdateCommand";
|
|
12
15
|
const commands = {
|
|
16
|
+
AcceptPrimaryEmailUpdateCommand,
|
|
13
17
|
DeleteAlternateContactCommand,
|
|
14
18
|
DisableRegionCommand,
|
|
15
19
|
EnableRegionCommand,
|
|
16
20
|
GetAlternateContactCommand,
|
|
17
21
|
GetContactInformationCommand,
|
|
22
|
+
GetPrimaryEmailCommand,
|
|
18
23
|
GetRegionOptStatusCommand,
|
|
19
24
|
ListRegionsCommand,
|
|
20
25
|
PutAlternateContactCommand,
|
|
21
26
|
PutContactInformationCommand,
|
|
27
|
+
StartPrimaryEmailUpdateCommand,
|
|
22
28
|
};
|
|
23
29
|
export class Account extends AccountClient {
|
|
24
30
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { AcceptPrimaryEmailUpdateRequestFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_AcceptPrimaryEmailUpdateCommand, se_AcceptPrimaryEmailUpdateCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class AcceptPrimaryEmailUpdateCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("Account", "AcceptPrimaryEmailUpdate", {})
|
|
20
|
+
.n("AccountClient", "AcceptPrimaryEmailUpdateCommand")
|
|
21
|
+
.f(AcceptPrimaryEmailUpdateRequestFilterSensitiveLog, void 0)
|
|
22
|
+
.ser(se_AcceptPrimaryEmailUpdateCommand)
|
|
23
|
+
.de(de_AcceptPrimaryEmailUpdateCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { GetPrimaryEmailResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_GetPrimaryEmailCommand, se_GetPrimaryEmailCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class GetPrimaryEmailCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("Account", "GetPrimaryEmail", {})
|
|
20
|
+
.n("AccountClient", "GetPrimaryEmailCommand")
|
|
21
|
+
.f(void 0, GetPrimaryEmailResponseFilterSensitiveLog)
|
|
22
|
+
.ser(se_GetPrimaryEmailCommand)
|
|
23
|
+
.de(de_GetPrimaryEmailCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { StartPrimaryEmailUpdateRequestFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_StartPrimaryEmailUpdateCommand, se_StartPrimaryEmailUpdateCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class StartPrimaryEmailUpdateCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("Account", "StartPrimaryEmailUpdate", {})
|
|
20
|
+
.n("AccountClient", "StartPrimaryEmailUpdateCommand")
|
|
21
|
+
.f(StartPrimaryEmailUpdateRequestFilterSensitiveLog, void 0)
|
|
22
|
+
.ser(se_StartPrimaryEmailUpdateCommand)
|
|
23
|
+
.de(de_StartPrimaryEmailUpdateCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
export * from "./AcceptPrimaryEmailUpdateCommand";
|
|
1
2
|
export * from "./DeleteAlternateContactCommand";
|
|
2
3
|
export * from "./DisableRegionCommand";
|
|
3
4
|
export * from "./EnableRegionCommand";
|
|
4
5
|
export * from "./GetAlternateContactCommand";
|
|
5
6
|
export * from "./GetContactInformationCommand";
|
|
7
|
+
export * from "./GetPrimaryEmailCommand";
|
|
6
8
|
export * from "./GetRegionOptStatusCommand";
|
|
7
9
|
export * from "./ListRegionsCommand";
|
|
8
10
|
export * from "./PutAlternateContactCommand";
|
|
9
11
|
export * from "./PutContactInformationCommand";
|
|
12
|
+
export * from "./StartPrimaryEmailUpdateCommand";
|