@aws-sdk/client-account 3.787.0 → 3.794.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 +16 -0
- package/dist-cjs/index.js +152 -5
- package/dist-es/Account.js +4 -0
- package/dist-es/commands/GetAccountInformationCommand.js +23 -0
- package/dist-es/commands/PutAccountNameCommand.js +23 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +18 -0
- package/dist-es/protocols/Aws_restJson1.js +71 -6
- package/dist-types/Account.d.ts +15 -0
- package/dist-types/AccountClient.d.ts +4 -2
- package/dist-types/commands/AcceptPrimaryEmailUpdateCommand.d.ts +5 -11
- package/dist-types/commands/DeleteAlternateContactCommand.d.ts +4 -15
- package/dist-types/commands/DisableRegionCommand.d.ts +5 -14
- package/dist-types/commands/EnableRegionCommand.d.ts +4 -9
- package/dist-types/commands/GetAccountInformationCommand.d.ts +86 -0
- package/dist-types/commands/GetAlternateContactCommand.d.ts +4 -15
- package/dist-types/commands/GetContactInformationCommand.d.ts +4 -9
- package/dist-types/commands/GetPrimaryEmailCommand.d.ts +3 -6
- package/dist-types/commands/GetRegionOptStatusCommand.d.ts +3 -6
- package/dist-types/commands/ListRegionsCommand.d.ts +4 -9
- package/dist-types/commands/PutAccountNameCommand.d.ts +83 -0
- package/dist-types/commands/PutAlternateContactCommand.d.ts +4 -15
- package/dist-types/commands/PutContactInformationCommand.d.ts +4 -9
- package/dist-types/commands/StartPrimaryEmailUpdateCommand.d.ts +5 -11
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +116 -278
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Account.d.ts +35 -0
- package/dist-types/ts3.4/AccountClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetAccountInformationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutAccountNameCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +23 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -234,6 +234,14 @@ EnableRegion
|
|
|
234
234
|
|
|
235
235
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/EnableRegionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/EnableRegionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/EnableRegionCommandOutput/)
|
|
236
236
|
|
|
237
|
+
</details>
|
|
238
|
+
<details>
|
|
239
|
+
<summary>
|
|
240
|
+
GetAccountInformation
|
|
241
|
+
</summary>
|
|
242
|
+
|
|
243
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/GetAccountInformationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetAccountInformationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetAccountInformationCommandOutput/)
|
|
244
|
+
|
|
237
245
|
</details>
|
|
238
246
|
<details>
|
|
239
247
|
<summary>
|
|
@@ -274,6 +282,14 @@ ListRegions
|
|
|
274
282
|
|
|
275
283
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/ListRegionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/ListRegionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/ListRegionsCommandOutput/)
|
|
276
284
|
|
|
285
|
+
</details>
|
|
286
|
+
<details>
|
|
287
|
+
<summary>
|
|
288
|
+
PutAccountName
|
|
289
|
+
</summary>
|
|
290
|
+
|
|
291
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/PutAccountNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/PutAccountNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/PutAccountNameCommandOutput/)
|
|
292
|
+
|
|
277
293
|
</details>
|
|
278
294
|
<details>
|
|
279
295
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -34,6 +34,8 @@ __export(index_exports, {
|
|
|
34
34
|
DeleteAlternateContactCommand: () => DeleteAlternateContactCommand,
|
|
35
35
|
DisableRegionCommand: () => DisableRegionCommand,
|
|
36
36
|
EnableRegionCommand: () => EnableRegionCommand,
|
|
37
|
+
GetAccountInformationCommand: () => GetAccountInformationCommand,
|
|
38
|
+
GetAccountInformationResponseFilterSensitiveLog: () => GetAccountInformationResponseFilterSensitiveLog,
|
|
37
39
|
GetAlternateContactCommand: () => GetAlternateContactCommand,
|
|
38
40
|
GetAlternateContactResponseFilterSensitiveLog: () => GetAlternateContactResponseFilterSensitiveLog,
|
|
39
41
|
GetContactInformationCommand: () => GetContactInformationCommand,
|
|
@@ -44,6 +46,8 @@ __export(index_exports, {
|
|
|
44
46
|
InternalServerException: () => InternalServerException,
|
|
45
47
|
ListRegionsCommand: () => ListRegionsCommand,
|
|
46
48
|
PrimaryEmailUpdateStatus: () => PrimaryEmailUpdateStatus,
|
|
49
|
+
PutAccountNameCommand: () => PutAccountNameCommand,
|
|
50
|
+
PutAccountNameRequestFilterSensitiveLog: () => PutAccountNameRequestFilterSensitiveLog,
|
|
47
51
|
PutAlternateContactCommand: () => PutAlternateContactCommand,
|
|
48
52
|
PutAlternateContactRequestFilterSensitiveLog: () => PutAlternateContactRequestFilterSensitiveLog,
|
|
49
53
|
PutContactInformationCommand: () => PutContactInformationCommand,
|
|
@@ -239,6 +243,11 @@ var AccessDeniedException = class _AccessDeniedException extends AccountServiceE
|
|
|
239
243
|
}
|
|
240
244
|
name = "AccessDeniedException";
|
|
241
245
|
$fault = "client";
|
|
246
|
+
/**
|
|
247
|
+
* <p>The value populated to the <code>x-amzn-ErrorType</code> response header by API Gateway.</p>
|
|
248
|
+
* @public
|
|
249
|
+
*/
|
|
250
|
+
errorType;
|
|
242
251
|
/**
|
|
243
252
|
* @internal
|
|
244
253
|
*/
|
|
@@ -249,6 +258,7 @@ var AccessDeniedException = class _AccessDeniedException extends AccountServiceE
|
|
|
249
258
|
...opts
|
|
250
259
|
});
|
|
251
260
|
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
261
|
+
this.errorType = opts.errorType;
|
|
252
262
|
}
|
|
253
263
|
};
|
|
254
264
|
var ConflictException = class _ConflictException extends AccountServiceException {
|
|
@@ -257,6 +267,11 @@ var ConflictException = class _ConflictException extends AccountServiceException
|
|
|
257
267
|
}
|
|
258
268
|
name = "ConflictException";
|
|
259
269
|
$fault = "client";
|
|
270
|
+
/**
|
|
271
|
+
* <p>The value populated to the <code>x-amzn-ErrorType</code> response header by API Gateway.</p>
|
|
272
|
+
* @public
|
|
273
|
+
*/
|
|
274
|
+
errorType;
|
|
260
275
|
/**
|
|
261
276
|
* @internal
|
|
262
277
|
*/
|
|
@@ -267,6 +282,7 @@ var ConflictException = class _ConflictException extends AccountServiceException
|
|
|
267
282
|
...opts
|
|
268
283
|
});
|
|
269
284
|
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
285
|
+
this.errorType = opts.errorType;
|
|
270
286
|
}
|
|
271
287
|
};
|
|
272
288
|
var InternalServerException = class _InternalServerException extends AccountServiceException {
|
|
@@ -276,6 +292,11 @@ var InternalServerException = class _InternalServerException extends AccountServ
|
|
|
276
292
|
name = "InternalServerException";
|
|
277
293
|
$fault = "server";
|
|
278
294
|
$retryable = {};
|
|
295
|
+
/**
|
|
296
|
+
* <p>The value populated to the <code>x-amzn-ErrorType</code> response header by API Gateway.</p>
|
|
297
|
+
* @public
|
|
298
|
+
*/
|
|
299
|
+
errorType;
|
|
279
300
|
/**
|
|
280
301
|
* @internal
|
|
281
302
|
*/
|
|
@@ -286,6 +307,7 @@ var InternalServerException = class _InternalServerException extends AccountServ
|
|
|
286
307
|
...opts
|
|
287
308
|
});
|
|
288
309
|
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
310
|
+
this.errorType = opts.errorType;
|
|
289
311
|
}
|
|
290
312
|
};
|
|
291
313
|
var ResourceNotFoundException = class _ResourceNotFoundException extends AccountServiceException {
|
|
@@ -294,6 +316,11 @@ var ResourceNotFoundException = class _ResourceNotFoundException extends Account
|
|
|
294
316
|
}
|
|
295
317
|
name = "ResourceNotFoundException";
|
|
296
318
|
$fault = "client";
|
|
319
|
+
/**
|
|
320
|
+
* <p>The value populated to the <code>x-amzn-ErrorType</code> response header by API Gateway.</p>
|
|
321
|
+
* @public
|
|
322
|
+
*/
|
|
323
|
+
errorType;
|
|
297
324
|
/**
|
|
298
325
|
* @internal
|
|
299
326
|
*/
|
|
@@ -304,6 +331,7 @@ var ResourceNotFoundException = class _ResourceNotFoundException extends Account
|
|
|
304
331
|
...opts
|
|
305
332
|
});
|
|
306
333
|
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
334
|
+
this.errorType = opts.errorType;
|
|
307
335
|
}
|
|
308
336
|
};
|
|
309
337
|
var TooManyRequestsException = class _TooManyRequestsException extends AccountServiceException {
|
|
@@ -315,6 +343,11 @@ var TooManyRequestsException = class _TooManyRequestsException extends AccountSe
|
|
|
315
343
|
$retryable = {
|
|
316
344
|
throttling: true
|
|
317
345
|
};
|
|
346
|
+
/**
|
|
347
|
+
* <p>The value populated to the <code>x-amzn-ErrorType</code> response header by API Gateway.</p>
|
|
348
|
+
* @public
|
|
349
|
+
*/
|
|
350
|
+
errorType;
|
|
318
351
|
/**
|
|
319
352
|
* @internal
|
|
320
353
|
*/
|
|
@@ -325,6 +358,7 @@ var TooManyRequestsException = class _TooManyRequestsException extends AccountSe
|
|
|
325
358
|
...opts
|
|
326
359
|
});
|
|
327
360
|
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
361
|
+
this.errorType = opts.errorType;
|
|
328
362
|
}
|
|
329
363
|
};
|
|
330
364
|
var ValidationExceptionReason = {
|
|
@@ -382,6 +416,14 @@ var ValidationExceptionFieldFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
|
|
|
382
416
|
...obj,
|
|
383
417
|
...obj.message && { message: import_smithy_client.SENSITIVE_STRING }
|
|
384
418
|
}), "ValidationExceptionFieldFilterSensitiveLog");
|
|
419
|
+
var GetAccountInformationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
420
|
+
...obj,
|
|
421
|
+
...obj.AccountName && { AccountName: import_smithy_client.SENSITIVE_STRING }
|
|
422
|
+
}), "GetAccountInformationResponseFilterSensitiveLog");
|
|
423
|
+
var PutAccountNameRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
424
|
+
...obj,
|
|
425
|
+
...obj.AccountName && { AccountName: import_smithy_client.SENSITIVE_STRING }
|
|
426
|
+
}), "PutAccountNameRequestFilterSensitiveLog");
|
|
385
427
|
var AlternateContactFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
386
428
|
...obj,
|
|
387
429
|
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -501,6 +543,21 @@ var se_EnableRegionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
501
543
|
b.m("POST").h(headers).b(body);
|
|
502
544
|
return b.build();
|
|
503
545
|
}, "se_EnableRegionCommand");
|
|
546
|
+
var se_GetAccountInformationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
547
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
548
|
+
const headers = {
|
|
549
|
+
"content-type": "application/json"
|
|
550
|
+
};
|
|
551
|
+
b.bp("/getAccountInformation");
|
|
552
|
+
let body;
|
|
553
|
+
body = JSON.stringify(
|
|
554
|
+
(0, import_smithy_client.take)(input, {
|
|
555
|
+
AccountId: []
|
|
556
|
+
})
|
|
557
|
+
);
|
|
558
|
+
b.m("POST").h(headers).b(body);
|
|
559
|
+
return b.build();
|
|
560
|
+
}, "se_GetAccountInformationCommand");
|
|
504
561
|
var se_GetAlternateContactCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
505
562
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
506
563
|
const headers = {
|
|
@@ -581,6 +638,22 @@ var se_ListRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
581
638
|
b.m("POST").h(headers).b(body);
|
|
582
639
|
return b.build();
|
|
583
640
|
}, "se_ListRegionsCommand");
|
|
641
|
+
var se_PutAccountNameCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
642
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
643
|
+
const headers = {
|
|
644
|
+
"content-type": "application/json"
|
|
645
|
+
};
|
|
646
|
+
b.bp("/putAccountName");
|
|
647
|
+
let body;
|
|
648
|
+
body = JSON.stringify(
|
|
649
|
+
(0, import_smithy_client.take)(input, {
|
|
650
|
+
AccountId: [],
|
|
651
|
+
AccountName: []
|
|
652
|
+
})
|
|
653
|
+
);
|
|
654
|
+
b.m("POST").h(headers).b(body);
|
|
655
|
+
return b.build();
|
|
656
|
+
}, "se_PutAccountNameCommand");
|
|
584
657
|
var se_PutAlternateContactCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
585
658
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
586
659
|
const headers = {
|
|
@@ -677,6 +750,22 @@ var de_EnableRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
677
750
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
678
751
|
return contents;
|
|
679
752
|
}, "de_EnableRegionCommand");
|
|
753
|
+
var de_GetAccountInformationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
754
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
+
return de_CommandError(output, context);
|
|
756
|
+
}
|
|
757
|
+
const contents = (0, import_smithy_client.map)({
|
|
758
|
+
$metadata: deserializeMetadata(output)
|
|
759
|
+
});
|
|
760
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
761
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
762
|
+
AccountCreatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "AccountCreatedDate"),
|
|
763
|
+
AccountId: import_smithy_client.expectString,
|
|
764
|
+
AccountName: import_smithy_client.expectString
|
|
765
|
+
});
|
|
766
|
+
Object.assign(contents, doc);
|
|
767
|
+
return contents;
|
|
768
|
+
}, "de_GetAccountInformationCommand");
|
|
680
769
|
var de_GetAlternateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
771
|
return de_CommandError(output, context);
|
|
@@ -749,6 +838,16 @@ var de_ListRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
749
838
|
Object.assign(contents, doc);
|
|
750
839
|
return contents;
|
|
751
840
|
}, "de_ListRegionsCommand");
|
|
841
|
+
var de_PutAccountNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
842
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
843
|
+
return de_CommandError(output, context);
|
|
844
|
+
}
|
|
845
|
+
const contents = (0, import_smithy_client.map)({
|
|
846
|
+
$metadata: deserializeMetadata(output)
|
|
847
|
+
});
|
|
848
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
849
|
+
return contents;
|
|
850
|
+
}, "de_PutAccountNameCommand");
|
|
752
851
|
var de_PutAlternateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
753
852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
853
|
return de_CommandError(output, context);
|
|
@@ -819,7 +918,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
819
918
|
}, "de_CommandError");
|
|
820
919
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(AccountServiceException);
|
|
821
920
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
822
|
-
const contents = (0, import_smithy_client.map)({
|
|
921
|
+
const contents = (0, import_smithy_client.map)({
|
|
922
|
+
[_eT]: [, parsedOutput.headers[_xae]]
|
|
923
|
+
});
|
|
823
924
|
const data = parsedOutput.body;
|
|
824
925
|
const doc = (0, import_smithy_client.take)(data, {
|
|
825
926
|
message: import_smithy_client.expectString
|
|
@@ -832,7 +933,9 @@ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, co
|
|
|
832
933
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
833
934
|
}, "de_AccessDeniedExceptionRes");
|
|
834
935
|
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
835
|
-
const contents = (0, import_smithy_client.map)({
|
|
936
|
+
const contents = (0, import_smithy_client.map)({
|
|
937
|
+
[_eT]: [, parsedOutput.headers[_xae]]
|
|
938
|
+
});
|
|
836
939
|
const data = parsedOutput.body;
|
|
837
940
|
const doc = (0, import_smithy_client.take)(data, {
|
|
838
941
|
message: import_smithy_client.expectString
|
|
@@ -845,7 +948,9 @@ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, contex
|
|
|
845
948
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
846
949
|
}, "de_ConflictExceptionRes");
|
|
847
950
|
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
848
|
-
const contents = (0, import_smithy_client.map)({
|
|
951
|
+
const contents = (0, import_smithy_client.map)({
|
|
952
|
+
[_eT]: [, parsedOutput.headers[_xae]]
|
|
953
|
+
});
|
|
849
954
|
const data = parsedOutput.body;
|
|
850
955
|
const doc = (0, import_smithy_client.take)(data, {
|
|
851
956
|
message: import_smithy_client.expectString
|
|
@@ -858,7 +963,9 @@ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput,
|
|
|
858
963
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
859
964
|
}, "de_InternalServerExceptionRes");
|
|
860
965
|
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
861
|
-
const contents = (0, import_smithy_client.map)({
|
|
966
|
+
const contents = (0, import_smithy_client.map)({
|
|
967
|
+
[_eT]: [, parsedOutput.headers[_xae]]
|
|
968
|
+
});
|
|
862
969
|
const data = parsedOutput.body;
|
|
863
970
|
const doc = (0, import_smithy_client.take)(data, {
|
|
864
971
|
message: import_smithy_client.expectString
|
|
@@ -871,7 +978,9 @@ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput
|
|
|
871
978
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
872
979
|
}, "de_ResourceNotFoundExceptionRes");
|
|
873
980
|
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
874
|
-
const contents = (0, import_smithy_client.map)({
|
|
981
|
+
const contents = (0, import_smithy_client.map)({
|
|
982
|
+
[_eT]: [, parsedOutput.headers[_xae]]
|
|
983
|
+
});
|
|
875
984
|
const data = parsedOutput.body;
|
|
876
985
|
const doc = (0, import_smithy_client.take)(data, {
|
|
877
986
|
message: import_smithy_client.expectString
|
|
@@ -904,6 +1013,8 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
904
1013
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
905
1014
|
cfId: output.headers["x-amz-cf-id"]
|
|
906
1015
|
}), "deserializeMetadata");
|
|
1016
|
+
var _eT = "errorType";
|
|
1017
|
+
var _xae = "x-amzn-errortype";
|
|
907
1018
|
|
|
908
1019
|
// src/commands/AcceptPrimaryEmailUpdateCommand.ts
|
|
909
1020
|
var AcceptPrimaryEmailUpdateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
@@ -962,6 +1073,21 @@ var EnableRegionCommand = class extends import_smithy_client.Command.classBuilde
|
|
|
962
1073
|
}
|
|
963
1074
|
};
|
|
964
1075
|
|
|
1076
|
+
// src/commands/GetAccountInformationCommand.ts
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
var GetAccountInformationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1081
|
+
return [
|
|
1082
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1083
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1084
|
+
];
|
|
1085
|
+
}).s("Account", "GetAccountInformation", {}).n("AccountClient", "GetAccountInformationCommand").f(void 0, GetAccountInformationResponseFilterSensitiveLog).ser(se_GetAccountInformationCommand).de(de_GetAccountInformationCommand).build() {
|
|
1086
|
+
static {
|
|
1087
|
+
__name(this, "GetAccountInformationCommand");
|
|
1088
|
+
}
|
|
1089
|
+
};
|
|
1090
|
+
|
|
965
1091
|
// src/commands/GetAlternateContactCommand.ts
|
|
966
1092
|
|
|
967
1093
|
|
|
@@ -1037,6 +1163,21 @@ var ListRegionsCommand = class extends import_smithy_client.Command.classBuilder
|
|
|
1037
1163
|
}
|
|
1038
1164
|
};
|
|
1039
1165
|
|
|
1166
|
+
// src/commands/PutAccountNameCommand.ts
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
var PutAccountNameCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1171
|
+
return [
|
|
1172
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1173
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1174
|
+
];
|
|
1175
|
+
}).s("Account", "PutAccountName", {}).n("AccountClient", "PutAccountNameCommand").f(PutAccountNameRequestFilterSensitiveLog, void 0).ser(se_PutAccountNameCommand).de(de_PutAccountNameCommand).build() {
|
|
1176
|
+
static {
|
|
1177
|
+
__name(this, "PutAccountNameCommand");
|
|
1178
|
+
}
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1040
1181
|
// src/commands/PutAlternateContactCommand.ts
|
|
1041
1182
|
|
|
1042
1183
|
|
|
@@ -1088,11 +1229,13 @@ var commands = {
|
|
|
1088
1229
|
DeleteAlternateContactCommand,
|
|
1089
1230
|
DisableRegionCommand,
|
|
1090
1231
|
EnableRegionCommand,
|
|
1232
|
+
GetAccountInformationCommand,
|
|
1091
1233
|
GetAlternateContactCommand,
|
|
1092
1234
|
GetContactInformationCommand,
|
|
1093
1235
|
GetPrimaryEmailCommand,
|
|
1094
1236
|
GetRegionOptStatusCommand,
|
|
1095
1237
|
ListRegionsCommand,
|
|
1238
|
+
PutAccountNameCommand,
|
|
1096
1239
|
PutAlternateContactCommand,
|
|
1097
1240
|
PutContactInformationCommand,
|
|
1098
1241
|
StartPrimaryEmailUpdateCommand
|
|
@@ -1119,11 +1262,13 @@ var paginateListRegions = (0, import_core.createPaginator)(AccountClient, ListRe
|
|
|
1119
1262
|
DeleteAlternateContactCommand,
|
|
1120
1263
|
DisableRegionCommand,
|
|
1121
1264
|
EnableRegionCommand,
|
|
1265
|
+
GetAccountInformationCommand,
|
|
1122
1266
|
GetAlternateContactCommand,
|
|
1123
1267
|
GetContactInformationCommand,
|
|
1124
1268
|
GetPrimaryEmailCommand,
|
|
1125
1269
|
GetRegionOptStatusCommand,
|
|
1126
1270
|
ListRegionsCommand,
|
|
1271
|
+
PutAccountNameCommand,
|
|
1127
1272
|
PutAlternateContactCommand,
|
|
1128
1273
|
PutContactInformationCommand,
|
|
1129
1274
|
StartPrimaryEmailUpdateCommand,
|
|
@@ -1140,6 +1285,8 @@ var paginateListRegions = (0, import_core.createPaginator)(AccountClient, ListRe
|
|
|
1140
1285
|
RegionOptStatus,
|
|
1141
1286
|
AcceptPrimaryEmailUpdateRequestFilterSensitiveLog,
|
|
1142
1287
|
ValidationExceptionFieldFilterSensitiveLog,
|
|
1288
|
+
GetAccountInformationResponseFilterSensitiveLog,
|
|
1289
|
+
PutAccountNameRequestFilterSensitiveLog,
|
|
1143
1290
|
AlternateContactFilterSensitiveLog,
|
|
1144
1291
|
GetAlternateContactResponseFilterSensitiveLog,
|
|
1145
1292
|
PutAlternateContactRequestFilterSensitiveLog,
|
package/dist-es/Account.js
CHANGED
|
@@ -4,11 +4,13 @@ import { AcceptPrimaryEmailUpdateCommand, } from "./commands/AcceptPrimaryEmailU
|
|
|
4
4
|
import { DeleteAlternateContactCommand, } from "./commands/DeleteAlternateContactCommand";
|
|
5
5
|
import { DisableRegionCommand, } from "./commands/DisableRegionCommand";
|
|
6
6
|
import { EnableRegionCommand, } from "./commands/EnableRegionCommand";
|
|
7
|
+
import { GetAccountInformationCommand, } from "./commands/GetAccountInformationCommand";
|
|
7
8
|
import { GetAlternateContactCommand, } from "./commands/GetAlternateContactCommand";
|
|
8
9
|
import { GetContactInformationCommand, } from "./commands/GetContactInformationCommand";
|
|
9
10
|
import { GetPrimaryEmailCommand, } from "./commands/GetPrimaryEmailCommand";
|
|
10
11
|
import { GetRegionOptStatusCommand, } from "./commands/GetRegionOptStatusCommand";
|
|
11
12
|
import { ListRegionsCommand } from "./commands/ListRegionsCommand";
|
|
13
|
+
import { PutAccountNameCommand, } from "./commands/PutAccountNameCommand";
|
|
12
14
|
import { PutAlternateContactCommand, } from "./commands/PutAlternateContactCommand";
|
|
13
15
|
import { PutContactInformationCommand, } from "./commands/PutContactInformationCommand";
|
|
14
16
|
import { StartPrimaryEmailUpdateCommand, } from "./commands/StartPrimaryEmailUpdateCommand";
|
|
@@ -17,11 +19,13 @@ const commands = {
|
|
|
17
19
|
DeleteAlternateContactCommand,
|
|
18
20
|
DisableRegionCommand,
|
|
19
21
|
EnableRegionCommand,
|
|
22
|
+
GetAccountInformationCommand,
|
|
20
23
|
GetAlternateContactCommand,
|
|
21
24
|
GetContactInformationCommand,
|
|
22
25
|
GetPrimaryEmailCommand,
|
|
23
26
|
GetRegionOptStatusCommand,
|
|
24
27
|
ListRegionsCommand,
|
|
28
|
+
PutAccountNameCommand,
|
|
25
29
|
PutAlternateContactCommand,
|
|
26
30
|
PutContactInformationCommand,
|
|
27
31
|
StartPrimaryEmailUpdateCommand,
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { GetAccountInformationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_GetAccountInformationCommand, se_GetAccountInformationCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class GetAccountInformationCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("Account", "GetAccountInformation", {})
|
|
18
|
+
.n("AccountClient", "GetAccountInformationCommand")
|
|
19
|
+
.f(void 0, GetAccountInformationResponseFilterSensitiveLog)
|
|
20
|
+
.ser(se_GetAccountInformationCommand)
|
|
21
|
+
.de(de_GetAccountInformationCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { PutAccountNameRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
|
+
import { de_PutAccountNameCommand, se_PutAccountNameCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class PutAccountNameCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("Account", "PutAccountName", {})
|
|
18
|
+
.n("AccountClient", "PutAccountNameCommand")
|
|
19
|
+
.f(PutAccountNameRequestFilterSensitiveLog, void 0)
|
|
20
|
+
.ser(se_PutAccountNameCommand)
|
|
21
|
+
.de(de_PutAccountNameCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -2,11 +2,13 @@ export * from "./AcceptPrimaryEmailUpdateCommand";
|
|
|
2
2
|
export * from "./DeleteAlternateContactCommand";
|
|
3
3
|
export * from "./DisableRegionCommand";
|
|
4
4
|
export * from "./EnableRegionCommand";
|
|
5
|
+
export * from "./GetAccountInformationCommand";
|
|
5
6
|
export * from "./GetAlternateContactCommand";
|
|
6
7
|
export * from "./GetContactInformationCommand";
|
|
7
8
|
export * from "./GetPrimaryEmailCommand";
|
|
8
9
|
export * from "./GetRegionOptStatusCommand";
|
|
9
10
|
export * from "./ListRegionsCommand";
|
|
11
|
+
export * from "./PutAccountNameCommand";
|
|
10
12
|
export * from "./PutAlternateContactCommand";
|
|
11
13
|
export * from "./PutContactInformationCommand";
|
|
12
14
|
export * from "./StartPrimaryEmailUpdateCommand";
|
|
@@ -7,6 +7,7 @@ export const PrimaryEmailUpdateStatus = {
|
|
|
7
7
|
export class AccessDeniedException extends __BaseException {
|
|
8
8
|
name = "AccessDeniedException";
|
|
9
9
|
$fault = "client";
|
|
10
|
+
errorType;
|
|
10
11
|
constructor(opts) {
|
|
11
12
|
super({
|
|
12
13
|
name: "AccessDeniedException",
|
|
@@ -14,11 +15,13 @@ export class AccessDeniedException extends __BaseException {
|
|
|
14
15
|
...opts,
|
|
15
16
|
});
|
|
16
17
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
18
|
+
this.errorType = opts.errorType;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
export class ConflictException extends __BaseException {
|
|
20
22
|
name = "ConflictException";
|
|
21
23
|
$fault = "client";
|
|
24
|
+
errorType;
|
|
22
25
|
constructor(opts) {
|
|
23
26
|
super({
|
|
24
27
|
name: "ConflictException",
|
|
@@ -26,12 +29,14 @@ export class ConflictException extends __BaseException {
|
|
|
26
29
|
...opts,
|
|
27
30
|
});
|
|
28
31
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
32
|
+
this.errorType = opts.errorType;
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
export class InternalServerException extends __BaseException {
|
|
32
36
|
name = "InternalServerException";
|
|
33
37
|
$fault = "server";
|
|
34
38
|
$retryable = {};
|
|
39
|
+
errorType;
|
|
35
40
|
constructor(opts) {
|
|
36
41
|
super({
|
|
37
42
|
name: "InternalServerException",
|
|
@@ -39,11 +44,13 @@ export class InternalServerException extends __BaseException {
|
|
|
39
44
|
...opts,
|
|
40
45
|
});
|
|
41
46
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
47
|
+
this.errorType = opts.errorType;
|
|
42
48
|
}
|
|
43
49
|
}
|
|
44
50
|
export class ResourceNotFoundException extends __BaseException {
|
|
45
51
|
name = "ResourceNotFoundException";
|
|
46
52
|
$fault = "client";
|
|
53
|
+
errorType;
|
|
47
54
|
constructor(opts) {
|
|
48
55
|
super({
|
|
49
56
|
name: "ResourceNotFoundException",
|
|
@@ -51,6 +58,7 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
51
58
|
...opts,
|
|
52
59
|
});
|
|
53
60
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
61
|
+
this.errorType = opts.errorType;
|
|
54
62
|
}
|
|
55
63
|
}
|
|
56
64
|
export class TooManyRequestsException extends __BaseException {
|
|
@@ -59,6 +67,7 @@ export class TooManyRequestsException extends __BaseException {
|
|
|
59
67
|
$retryable = {
|
|
60
68
|
throttling: true,
|
|
61
69
|
};
|
|
70
|
+
errorType;
|
|
62
71
|
constructor(opts) {
|
|
63
72
|
super({
|
|
64
73
|
name: "TooManyRequestsException",
|
|
@@ -66,6 +75,7 @@ export class TooManyRequestsException extends __BaseException {
|
|
|
66
75
|
...opts,
|
|
67
76
|
});
|
|
68
77
|
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
78
|
+
this.errorType = opts.errorType;
|
|
69
79
|
}
|
|
70
80
|
}
|
|
71
81
|
export const ValidationExceptionReason = {
|
|
@@ -109,6 +119,14 @@ export const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
|
|
|
109
119
|
...obj,
|
|
110
120
|
...(obj.message && { message: SENSITIVE_STRING }),
|
|
111
121
|
});
|
|
122
|
+
export const GetAccountInformationResponseFilterSensitiveLog = (obj) => ({
|
|
123
|
+
...obj,
|
|
124
|
+
...(obj.AccountName && { AccountName: SENSITIVE_STRING }),
|
|
125
|
+
});
|
|
126
|
+
export const PutAccountNameRequestFilterSensitiveLog = (obj) => ({
|
|
127
|
+
...obj,
|
|
128
|
+
...(obj.AccountName && { AccountName: SENSITIVE_STRING }),
|
|
129
|
+
});
|
|
112
130
|
export const AlternateContactFilterSensitiveLog = (obj) => ({
|
|
113
131
|
...obj,
|
|
114
132
|
...(obj.Name && { Name: SENSITIVE_STRING }),
|