@aws-sdk/client-account 3.946.0 → 3.948.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 +8 -0
- package/dist-cjs/index.js +62 -0
- package/dist-es/Account.js +2 -0
- package/dist-es/commands/GetGovCloudAccountInformationCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +6 -0
- package/dist-es/models/errors.js +14 -0
- package/dist-es/schemas/schemas_0.js +27 -1
- package/dist-types/Account.d.ts +8 -0
- package/dist-types/AccountClient.d.ts +3 -2
- package/dist-types/commands/DeleteAlternateContactCommand.d.ts +1 -1
- package/dist-types/commands/GetAlternateContactCommand.d.ts +1 -1
- package/dist-types/commands/GetContactInformationCommand.d.ts +1 -1
- package/dist-types/commands/GetGovCloudAccountInformationCommand.d.ts +93 -0
- package/dist-types/commands/PutAlternateContactCommand.d.ts +1 -1
- package/dist-types/commands/PutContactInformationCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +14 -0
- package/dist-types/models/errors.d.ts +17 -0
- package/dist-types/models/models_0.d.ts +32 -7
- package/dist-types/schemas/schemas_0.d.ts +4 -0
- package/dist-types/ts3.4/Account.d.ts +18 -0
- package/dist-types/ts3.4/AccountClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetGovCloudAccountInformationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +8 -0
- package/dist-types/ts3.4/models/errors.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +4 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -258,6 +258,14 @@ GetContactInformation
|
|
|
258
258
|
|
|
259
259
|
[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/)
|
|
260
260
|
|
|
261
|
+
</details>
|
|
262
|
+
<details>
|
|
263
|
+
<summary>
|
|
264
|
+
GetGovCloudAccountInformation
|
|
265
|
+
</summary>
|
|
266
|
+
|
|
267
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/GetGovCloudAccountInformationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetGovCloudAccountInformationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetGovCloudAccountInformationCommandOutput/)
|
|
268
|
+
|
|
261
269
|
</details>
|
|
262
270
|
<details>
|
|
263
271
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -207,6 +207,20 @@ let ValidationException$1 = class ValidationException extends AccountServiceExce
|
|
|
207
207
|
this.fieldList = opts.fieldList;
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
|
+
let ResourceUnavailableException$1 = class ResourceUnavailableException extends AccountServiceException$1 {
|
|
211
|
+
name = "ResourceUnavailableException";
|
|
212
|
+
$fault = "client";
|
|
213
|
+
errorType;
|
|
214
|
+
constructor(opts) {
|
|
215
|
+
super({
|
|
216
|
+
name: "ResourceUnavailableException",
|
|
217
|
+
$fault: "client",
|
|
218
|
+
...opts,
|
|
219
|
+
});
|
|
220
|
+
Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
|
|
221
|
+
this.errorType = opts.errorType;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
210
224
|
|
|
211
225
|
const _AC = "AlternateContact";
|
|
212
226
|
const _ACD = "AccountCreatedDate";
|
|
@@ -221,6 +235,7 @@ const _AN = "AccountName";
|
|
|
221
235
|
const _APEU = "AcceptPrimaryEmailUpdate";
|
|
222
236
|
const _APEUR = "AcceptPrimaryEmailUpdateRequest";
|
|
223
237
|
const _APEURc = "AcceptPrimaryEmailUpdateResponse";
|
|
238
|
+
const _AS = "AccountState";
|
|
224
239
|
const _C = "City";
|
|
225
240
|
const _CC = "CountryCode";
|
|
226
241
|
const _CE = "ConflictException";
|
|
@@ -242,9 +257,13 @@ const _GACRe = "GetAlternateContactResponse";
|
|
|
242
257
|
const _GAI = "GetAccountInformation";
|
|
243
258
|
const _GAIR = "GetAccountInformationRequest";
|
|
244
259
|
const _GAIRe = "GetAccountInformationResponse";
|
|
260
|
+
const _GCAI = "GovCloudAccountId";
|
|
245
261
|
const _GCI = "GetContactInformation";
|
|
246
262
|
const _GCIR = "GetContactInformationRequest";
|
|
247
263
|
const _GCIRe = "GetContactInformationResponse";
|
|
264
|
+
const _GGCAI = "GetGovCloudAccountInformation";
|
|
265
|
+
const _GGCAIR = "GetGovCloudAccountInformationRequest";
|
|
266
|
+
const _GGCAIRe = "GetGovCloudAccountInformationResponse";
|
|
248
267
|
const _GPE = "GetPrimaryEmail";
|
|
249
268
|
const _GPER = "GetPrimaryEmailRequest";
|
|
250
269
|
const _GPERe = "GetPrimaryEmailResponse";
|
|
@@ -275,8 +294,10 @@ const _RNFE = "ResourceNotFoundException";
|
|
|
275
294
|
const _ROL = "RegionOptList";
|
|
276
295
|
const _ROS = "RegionOptStatus";
|
|
277
296
|
const _ROSC = "RegionOptStatusContains";
|
|
297
|
+
const _RUE = "ResourceUnavailableException";
|
|
278
298
|
const _Re = "Region";
|
|
279
299
|
const _S = "Status";
|
|
300
|
+
const _SAI = "StandardAccountId";
|
|
280
301
|
const _SOR = "StateOrRegion";
|
|
281
302
|
const _SPEU = "StartPrimaryEmailUpdate";
|
|
282
303
|
const _SPEUR = "StartPrimaryEmailUpdateRequest";
|
|
@@ -406,6 +427,8 @@ var GetContactInformationResponse = [
|
|
|
406
427
|
[_CI],
|
|
407
428
|
[[() => ContactInformation, 0]],
|
|
408
429
|
];
|
|
430
|
+
var GetGovCloudAccountInformationRequest = [3, n0, _GGCAIR, 0, [_SAI], [0]];
|
|
431
|
+
var GetGovCloudAccountInformationResponse = [3, n0, _GGCAIRe, 0, [_GCAI, _AS], [0, 0]];
|
|
409
432
|
var GetPrimaryEmailRequest = [3, n0, _GPER, 0, [_AI], [0]];
|
|
410
433
|
var GetPrimaryEmailResponse = [3, n0, _GPERe, 0, [_PE], [[() => PrimaryEmailAddress, 0]]];
|
|
411
434
|
var GetRegionOptStatusRequest = [3, n0, _GROSR, 0, [_AI, _RN], [0, 0]];
|
|
@@ -448,6 +471,15 @@ var ResourceNotFoundException = [
|
|
|
448
471
|
[0, [0, { [_hH]: _xaE }]],
|
|
449
472
|
];
|
|
450
473
|
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
474
|
+
var ResourceUnavailableException = [
|
|
475
|
+
-3,
|
|
476
|
+
n0,
|
|
477
|
+
_RUE,
|
|
478
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
479
|
+
[_m, _eT],
|
|
480
|
+
[0, [0, { [_hH]: _xaE }]],
|
|
481
|
+
];
|
|
482
|
+
schema.TypeRegistry.for(n0).registerError(ResourceUnavailableException, ResourceUnavailableException$1);
|
|
451
483
|
var StartPrimaryEmailUpdateRequest = [
|
|
452
484
|
3,
|
|
453
485
|
n0,
|
|
@@ -544,6 +576,14 @@ var GetContactInformation = [
|
|
|
544
576
|
() => GetContactInformationRequest,
|
|
545
577
|
() => GetContactInformationResponse,
|
|
546
578
|
];
|
|
579
|
+
var GetGovCloudAccountInformation = [
|
|
580
|
+
9,
|
|
581
|
+
n0,
|
|
582
|
+
_GGCAI,
|
|
583
|
+
{ [_h]: ["POST", "/getGovCloudAccountInformation", 200] },
|
|
584
|
+
() => GetGovCloudAccountInformationRequest,
|
|
585
|
+
() => GetGovCloudAccountInformationResponse,
|
|
586
|
+
];
|
|
547
587
|
var GetPrimaryEmail = [
|
|
548
588
|
9,
|
|
549
589
|
n0,
|
|
@@ -685,6 +725,18 @@ class GetContactInformationCommand extends smithyClient.Command
|
|
|
685
725
|
.build() {
|
|
686
726
|
}
|
|
687
727
|
|
|
728
|
+
class GetGovCloudAccountInformationCommand extends smithyClient.Command
|
|
729
|
+
.classBuilder()
|
|
730
|
+
.ep(commonParams)
|
|
731
|
+
.m(function (Command, cs, config, o) {
|
|
732
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
733
|
+
})
|
|
734
|
+
.s("Account", "GetGovCloudAccountInformation", {})
|
|
735
|
+
.n("AccountClient", "GetGovCloudAccountInformationCommand")
|
|
736
|
+
.sc(GetGovCloudAccountInformation)
|
|
737
|
+
.build() {
|
|
738
|
+
}
|
|
739
|
+
|
|
688
740
|
class GetPrimaryEmailCommand extends smithyClient.Command
|
|
689
741
|
.classBuilder()
|
|
690
742
|
.ep(commonParams)
|
|
@@ -777,6 +829,7 @@ const commands = {
|
|
|
777
829
|
GetAccountInformationCommand,
|
|
778
830
|
GetAlternateContactCommand,
|
|
779
831
|
GetContactInformationCommand,
|
|
832
|
+
GetGovCloudAccountInformationCommand,
|
|
780
833
|
GetPrimaryEmailCommand,
|
|
781
834
|
GetRegionOptStatusCommand,
|
|
782
835
|
ListRegionsCommand,
|
|
@@ -804,6 +857,12 @@ const AlternateContactType = {
|
|
|
804
857
|
OPERATIONS: "OPERATIONS",
|
|
805
858
|
SECURITY: "SECURITY",
|
|
806
859
|
};
|
|
860
|
+
const AwsAccountState = {
|
|
861
|
+
ACTIVE: "ACTIVE",
|
|
862
|
+
CLOSED: "CLOSED",
|
|
863
|
+
PENDING_ACTIVATION: "PENDING_ACTIVATION",
|
|
864
|
+
SUSPENDED: "SUSPENDED",
|
|
865
|
+
};
|
|
807
866
|
const RegionOptStatus = {
|
|
808
867
|
DISABLED: "DISABLED",
|
|
809
868
|
DISABLING: "DISABLING",
|
|
@@ -826,6 +885,7 @@ exports.Account = Account;
|
|
|
826
885
|
exports.AccountClient = AccountClient;
|
|
827
886
|
exports.AccountServiceException = AccountServiceException$1;
|
|
828
887
|
exports.AlternateContactType = AlternateContactType;
|
|
888
|
+
exports.AwsAccountState = AwsAccountState;
|
|
829
889
|
exports.ConflictException = ConflictException$1;
|
|
830
890
|
exports.DeleteAlternateContactCommand = DeleteAlternateContactCommand;
|
|
831
891
|
exports.DisableRegionCommand = DisableRegionCommand;
|
|
@@ -833,6 +893,7 @@ exports.EnableRegionCommand = EnableRegionCommand;
|
|
|
833
893
|
exports.GetAccountInformationCommand = GetAccountInformationCommand;
|
|
834
894
|
exports.GetAlternateContactCommand = GetAlternateContactCommand;
|
|
835
895
|
exports.GetContactInformationCommand = GetContactInformationCommand;
|
|
896
|
+
exports.GetGovCloudAccountInformationCommand = GetGovCloudAccountInformationCommand;
|
|
836
897
|
exports.GetPrimaryEmailCommand = GetPrimaryEmailCommand;
|
|
837
898
|
exports.GetRegionOptStatusCommand = GetRegionOptStatusCommand;
|
|
838
899
|
exports.InternalServerException = InternalServerException$1;
|
|
@@ -843,6 +904,7 @@ exports.PutAlternateContactCommand = PutAlternateContactCommand;
|
|
|
843
904
|
exports.PutContactInformationCommand = PutContactInformationCommand;
|
|
844
905
|
exports.RegionOptStatus = RegionOptStatus;
|
|
845
906
|
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
907
|
+
exports.ResourceUnavailableException = ResourceUnavailableException$1;
|
|
846
908
|
exports.StartPrimaryEmailUpdateCommand = StartPrimaryEmailUpdateCommand;
|
|
847
909
|
exports.TooManyRequestsException = TooManyRequestsException$1;
|
|
848
910
|
exports.ValidationException = ValidationException$1;
|
package/dist-es/Account.js
CHANGED
|
@@ -7,6 +7,7 @@ import { EnableRegionCommand, } from "./commands/EnableRegionCommand";
|
|
|
7
7
|
import { GetAccountInformationCommand, } from "./commands/GetAccountInformationCommand";
|
|
8
8
|
import { GetAlternateContactCommand, } from "./commands/GetAlternateContactCommand";
|
|
9
9
|
import { GetContactInformationCommand, } from "./commands/GetContactInformationCommand";
|
|
10
|
+
import { GetGovCloudAccountInformationCommand, } from "./commands/GetGovCloudAccountInformationCommand";
|
|
10
11
|
import { GetPrimaryEmailCommand, } from "./commands/GetPrimaryEmailCommand";
|
|
11
12
|
import { GetRegionOptStatusCommand, } from "./commands/GetRegionOptStatusCommand";
|
|
12
13
|
import { ListRegionsCommand } from "./commands/ListRegionsCommand";
|
|
@@ -22,6 +23,7 @@ const commands = {
|
|
|
22
23
|
GetAccountInformationCommand,
|
|
23
24
|
GetAlternateContactCommand,
|
|
24
25
|
GetContactInformationCommand,
|
|
26
|
+
GetGovCloudAccountInformationCommand,
|
|
25
27
|
GetPrimaryEmailCommand,
|
|
26
28
|
GetRegionOptStatusCommand,
|
|
27
29
|
ListRegionsCommand,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetGovCloudAccountInformation } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetGovCloudAccountInformationCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Account", "GetGovCloudAccountInformation", {})
|
|
13
|
+
.n("AccountClient", "GetGovCloudAccountInformationCommand")
|
|
14
|
+
.sc(GetGovCloudAccountInformation)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./EnableRegionCommand";
|
|
|
5
5
|
export * from "./GetAccountInformationCommand";
|
|
6
6
|
export * from "./GetAlternateContactCommand";
|
|
7
7
|
export * from "./GetContactInformationCommand";
|
|
8
|
+
export * from "./GetGovCloudAccountInformationCommand";
|
|
8
9
|
export * from "./GetPrimaryEmailCommand";
|
|
9
10
|
export * from "./GetRegionOptStatusCommand";
|
|
10
11
|
export * from "./ListRegionsCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -11,6 +11,12 @@ export const AlternateContactType = {
|
|
|
11
11
|
OPERATIONS: "OPERATIONS",
|
|
12
12
|
SECURITY: "SECURITY",
|
|
13
13
|
};
|
|
14
|
+
export const AwsAccountState = {
|
|
15
|
+
ACTIVE: "ACTIVE",
|
|
16
|
+
CLOSED: "CLOSED",
|
|
17
|
+
PENDING_ACTIVATION: "PENDING_ACTIVATION",
|
|
18
|
+
SUSPENDED: "SUSPENDED",
|
|
19
|
+
};
|
|
14
20
|
export const RegionOptStatus = {
|
|
15
21
|
DISABLED: "DISABLED",
|
|
16
22
|
DISABLING: "DISABLING",
|
package/dist-es/models/errors.js
CHANGED
|
@@ -89,3 +89,17 @@ export class ValidationException extends __BaseException {
|
|
|
89
89
|
this.fieldList = opts.fieldList;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
+
export class ResourceUnavailableException extends __BaseException {
|
|
93
|
+
name = "ResourceUnavailableException";
|
|
94
|
+
$fault = "client";
|
|
95
|
+
errorType;
|
|
96
|
+
constructor(opts) {
|
|
97
|
+
super({
|
|
98
|
+
name: "ResourceUnavailableException",
|
|
99
|
+
$fault: "client",
|
|
100
|
+
...opts,
|
|
101
|
+
});
|
|
102
|
+
Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
|
|
103
|
+
this.errorType = opts.errorType;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -11,6 +11,7 @@ const _AN = "AccountName";
|
|
|
11
11
|
const _APEU = "AcceptPrimaryEmailUpdate";
|
|
12
12
|
const _APEUR = "AcceptPrimaryEmailUpdateRequest";
|
|
13
13
|
const _APEURc = "AcceptPrimaryEmailUpdateResponse";
|
|
14
|
+
const _AS = "AccountState";
|
|
14
15
|
const _C = "City";
|
|
15
16
|
const _CC = "CountryCode";
|
|
16
17
|
const _CE = "ConflictException";
|
|
@@ -32,9 +33,13 @@ const _GACRe = "GetAlternateContactResponse";
|
|
|
32
33
|
const _GAI = "GetAccountInformation";
|
|
33
34
|
const _GAIR = "GetAccountInformationRequest";
|
|
34
35
|
const _GAIRe = "GetAccountInformationResponse";
|
|
36
|
+
const _GCAI = "GovCloudAccountId";
|
|
35
37
|
const _GCI = "GetContactInformation";
|
|
36
38
|
const _GCIR = "GetContactInformationRequest";
|
|
37
39
|
const _GCIRe = "GetContactInformationResponse";
|
|
40
|
+
const _GGCAI = "GetGovCloudAccountInformation";
|
|
41
|
+
const _GGCAIR = "GetGovCloudAccountInformationRequest";
|
|
42
|
+
const _GGCAIRe = "GetGovCloudAccountInformationResponse";
|
|
38
43
|
const _GPE = "GetPrimaryEmail";
|
|
39
44
|
const _GPER = "GetPrimaryEmailRequest";
|
|
40
45
|
const _GPERe = "GetPrimaryEmailResponse";
|
|
@@ -65,8 +70,10 @@ const _RNFE = "ResourceNotFoundException";
|
|
|
65
70
|
const _ROL = "RegionOptList";
|
|
66
71
|
const _ROS = "RegionOptStatus";
|
|
67
72
|
const _ROSC = "RegionOptStatusContains";
|
|
73
|
+
const _RUE = "ResourceUnavailableException";
|
|
68
74
|
const _Re = "Region";
|
|
69
75
|
const _S = "Status";
|
|
76
|
+
const _SAI = "StandardAccountId";
|
|
70
77
|
const _SOR = "StateOrRegion";
|
|
71
78
|
const _SPEU = "StartPrimaryEmailUpdate";
|
|
72
79
|
const _SPEUR = "StartPrimaryEmailUpdateRequest";
|
|
@@ -94,7 +101,7 @@ const _xaE = "x-amzn-ErrorType";
|
|
|
94
101
|
const n0 = "com.amazonaws.account";
|
|
95
102
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
96
103
|
import { AccountServiceException as __AccountServiceException } from "../models/AccountServiceException";
|
|
97
|
-
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, TooManyRequestsException as __TooManyRequestsException, ValidationException as __ValidationException, } from "../models/errors";
|
|
104
|
+
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ResourceUnavailableException as __ResourceUnavailableException, TooManyRequestsException as __TooManyRequestsException, ValidationException as __ValidationException, } from "../models/errors";
|
|
98
105
|
export var AccountName = [0, n0, _AN, 8, 0];
|
|
99
106
|
export var AddressLine = [0, n0, _AL, 8, 0];
|
|
100
107
|
export var City = [0, n0, _C, 8, 0];
|
|
@@ -199,6 +206,8 @@ export var GetContactInformationResponse = [
|
|
|
199
206
|
[_CI],
|
|
200
207
|
[[() => ContactInformation, 0]],
|
|
201
208
|
];
|
|
209
|
+
export var GetGovCloudAccountInformationRequest = [3, n0, _GGCAIR, 0, [_SAI], [0]];
|
|
210
|
+
export var GetGovCloudAccountInformationResponse = [3, n0, _GGCAIRe, 0, [_GCAI, _AS], [0, 0]];
|
|
202
211
|
export var GetPrimaryEmailRequest = [3, n0, _GPER, 0, [_AI], [0]];
|
|
203
212
|
export var GetPrimaryEmailResponse = [3, n0, _GPERe, 0, [_PE], [[() => PrimaryEmailAddress, 0]]];
|
|
204
213
|
export var GetRegionOptStatusRequest = [3, n0, _GROSR, 0, [_AI, _RN], [0, 0]];
|
|
@@ -241,6 +250,15 @@ export var ResourceNotFoundException = [
|
|
|
241
250
|
[0, [0, { [_hH]: _xaE }]],
|
|
242
251
|
];
|
|
243
252
|
TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
|
|
253
|
+
export var ResourceUnavailableException = [
|
|
254
|
+
-3,
|
|
255
|
+
n0,
|
|
256
|
+
_RUE,
|
|
257
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
258
|
+
[_m, _eT],
|
|
259
|
+
[0, [0, { [_hH]: _xaE }]],
|
|
260
|
+
];
|
|
261
|
+
TypeRegistry.for(n0).registerError(ResourceUnavailableException, __ResourceUnavailableException);
|
|
244
262
|
export var StartPrimaryEmailUpdateRequest = [
|
|
245
263
|
3,
|
|
246
264
|
n0,
|
|
@@ -338,6 +356,14 @@ export var GetContactInformation = [
|
|
|
338
356
|
() => GetContactInformationRequest,
|
|
339
357
|
() => GetContactInformationResponse,
|
|
340
358
|
];
|
|
359
|
+
export var GetGovCloudAccountInformation = [
|
|
360
|
+
9,
|
|
361
|
+
n0,
|
|
362
|
+
_GGCAI,
|
|
363
|
+
{ [_h]: ["POST", "/getGovCloudAccountInformation", 200] },
|
|
364
|
+
() => GetGovCloudAccountInformationRequest,
|
|
365
|
+
() => GetGovCloudAccountInformationResponse,
|
|
366
|
+
];
|
|
341
367
|
export var GetPrimaryEmail = [
|
|
342
368
|
9,
|
|
343
369
|
n0,
|
package/dist-types/Account.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { EnableRegionCommandInput, EnableRegionCommandOutput } from "./commands/
|
|
|
7
7
|
import { GetAccountInformationCommandInput, GetAccountInformationCommandOutput } from "./commands/GetAccountInformationCommand";
|
|
8
8
|
import { GetAlternateContactCommandInput, GetAlternateContactCommandOutput } from "./commands/GetAlternateContactCommand";
|
|
9
9
|
import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "./commands/GetContactInformationCommand";
|
|
10
|
+
import { GetGovCloudAccountInformationCommandInput, GetGovCloudAccountInformationCommandOutput } from "./commands/GetGovCloudAccountInformationCommand";
|
|
10
11
|
import { GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput } from "./commands/GetPrimaryEmailCommand";
|
|
11
12
|
import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "./commands/GetRegionOptStatusCommand";
|
|
12
13
|
import { ListRegionsCommandInput, ListRegionsCommandOutput } from "./commands/ListRegionsCommand";
|
|
@@ -59,6 +60,13 @@ export interface Account {
|
|
|
59
60
|
getContactInformation(args: GetContactInformationCommandInput, options?: __HttpHandlerOptions): Promise<GetContactInformationCommandOutput>;
|
|
60
61
|
getContactInformation(args: GetContactInformationCommandInput, cb: (err: any, data?: GetContactInformationCommandOutput) => void): void;
|
|
61
62
|
getContactInformation(args: GetContactInformationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetContactInformationCommandOutput) => void): void;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link GetGovCloudAccountInformationCommand}
|
|
65
|
+
*/
|
|
66
|
+
getGovCloudAccountInformation(): Promise<GetGovCloudAccountInformationCommandOutput>;
|
|
67
|
+
getGovCloudAccountInformation(args: GetGovCloudAccountInformationCommandInput, options?: __HttpHandlerOptions): Promise<GetGovCloudAccountInformationCommandOutput>;
|
|
68
|
+
getGovCloudAccountInformation(args: GetGovCloudAccountInformationCommandInput, cb: (err: any, data?: GetGovCloudAccountInformationCommandOutput) => void): void;
|
|
69
|
+
getGovCloudAccountInformation(args: GetGovCloudAccountInformationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGovCloudAccountInformationCommandOutput) => void): void;
|
|
62
70
|
/**
|
|
63
71
|
* @see {@link GetPrimaryEmailCommand}
|
|
64
72
|
*/
|
|
@@ -14,6 +14,7 @@ import { EnableRegionCommandInput, EnableRegionCommandOutput } from "./commands/
|
|
|
14
14
|
import { GetAccountInformationCommandInput, GetAccountInformationCommandOutput } from "./commands/GetAccountInformationCommand";
|
|
15
15
|
import { GetAlternateContactCommandInput, GetAlternateContactCommandOutput } from "./commands/GetAlternateContactCommand";
|
|
16
16
|
import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "./commands/GetContactInformationCommand";
|
|
17
|
+
import { GetGovCloudAccountInformationCommandInput, GetGovCloudAccountInformationCommandOutput } from "./commands/GetGovCloudAccountInformationCommand";
|
|
17
18
|
import { GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput } from "./commands/GetPrimaryEmailCommand";
|
|
18
19
|
import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "./commands/GetRegionOptStatusCommand";
|
|
19
20
|
import { ListRegionsCommandInput, ListRegionsCommandOutput } from "./commands/ListRegionsCommand";
|
|
@@ -27,11 +28,11 @@ export { __Client };
|
|
|
27
28
|
/**
|
|
28
29
|
* @public
|
|
29
30
|
*/
|
|
30
|
-
export type ServiceInputTypes = AcceptPrimaryEmailUpdateCommandInput | DeleteAlternateContactCommandInput | DisableRegionCommandInput | EnableRegionCommandInput | GetAccountInformationCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | GetPrimaryEmailCommandInput | GetRegionOptStatusCommandInput | ListRegionsCommandInput | PutAccountNameCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput | StartPrimaryEmailUpdateCommandInput;
|
|
31
|
+
export type ServiceInputTypes = AcceptPrimaryEmailUpdateCommandInput | DeleteAlternateContactCommandInput | DisableRegionCommandInput | EnableRegionCommandInput | GetAccountInformationCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | GetGovCloudAccountInformationCommandInput | GetPrimaryEmailCommandInput | GetRegionOptStatusCommandInput | ListRegionsCommandInput | PutAccountNameCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput | StartPrimaryEmailUpdateCommandInput;
|
|
31
32
|
/**
|
|
32
33
|
* @public
|
|
33
34
|
*/
|
|
34
|
-
export type ServiceOutputTypes = AcceptPrimaryEmailUpdateCommandOutput | DeleteAlternateContactCommandOutput | DisableRegionCommandOutput | EnableRegionCommandOutput | GetAccountInformationCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | GetPrimaryEmailCommandOutput | GetRegionOptStatusCommandOutput | ListRegionsCommandOutput | PutAccountNameCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput | StartPrimaryEmailUpdateCommandOutput;
|
|
35
|
+
export type ServiceOutputTypes = AcceptPrimaryEmailUpdateCommandOutput | DeleteAlternateContactCommandOutput | DisableRegionCommandOutput | EnableRegionCommandOutput | GetAccountInformationCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | GetGovCloudAccountInformationCommandOutput | GetPrimaryEmailCommandOutput | GetRegionOptStatusCommandOutput | ListRegionsCommandOutput | PutAccountNameCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput | StartPrimaryEmailUpdateCommandOutput;
|
|
35
36
|
/**
|
|
36
37
|
* @public
|
|
37
38
|
*/
|
|
@@ -27,7 +27,7 @@ declare const DeleteAlternateContactCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Deletes the specified alternate contact from an Amazon Web Services account.</p> <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">
|
|
30
|
+
* <p>Deletes the specified alternate contact from an Amazon Web Services account.</p> <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-alternate.html">Update the alternate contacts for your Amazon Web Services account</a>.</p> <note> <p>Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enable trusted access for Amazon Web Services Account Management</a>.</p> </note>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const GetAlternateContactCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves the specified alternate contact attached to an Amazon Web Services account.</p> <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">
|
|
30
|
+
* <p>Retrieves the specified alternate contact attached to an Amazon Web Services account.</p> <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-alternate.html">Update the alternate contacts for your Amazon Web Services account</a>.</p> <note> <p>Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enable trusted access for Amazon Web Services Account Management</a>.</p> </note>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const GetContactInformationCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves the primary contact information of an Amazon Web Services account.</p> <p>For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update the primary
|
|
30
|
+
* <p>Retrieves the primary contact information of an Amazon Web Services account.</p> <p>For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-primary.html">Update the primary contact for your Amazon Web Services account</a>.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
|
|
4
|
+
import type { GetGovCloudAccountInformationRequest, GetGovCloudAccountInformationResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetGovCloudAccountInformationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetGovCloudAccountInformationCommandInput extends GetGovCloudAccountInformationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetGovCloudAccountInformationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetGovCloudAccountInformationCommandOutput extends GetGovCloudAccountInformationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetGovCloudAccountInformationCommand_base: {
|
|
25
|
+
new (input: GetGovCloudAccountInformationCommandInput): import("@smithy/smithy-client").CommandImpl<GetGovCloudAccountInformationCommandInput, GetGovCloudAccountInformationCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetGovCloudAccountInformationCommandInput]): import("@smithy/smithy-client").CommandImpl<GetGovCloudAccountInformationCommandInput, GetGovCloudAccountInformationCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves information about the GovCloud account linked to the specified standard account (if it exists) including the GovCloud account ID and state. To use this API, an IAM user or role must have the <code>account:GetGovCloudAccountInformation</code> IAM permission. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { AccountClient, GetGovCloudAccountInformationCommand } from "@aws-sdk/client-account"; // ES Modules import
|
|
35
|
+
* // const { AccountClient, GetGovCloudAccountInformationCommand } = require("@aws-sdk/client-account"); // CommonJS import
|
|
36
|
+
* // import type { AccountClientConfig } from "@aws-sdk/client-account";
|
|
37
|
+
* const config = {}; // type is AccountClientConfig
|
|
38
|
+
* const client = new AccountClient(config);
|
|
39
|
+
* const input = { // GetGovCloudAccountInformationRequest
|
|
40
|
+
* StandardAccountId: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetGovCloudAccountInformationCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetGovCloudAccountInformationResponse
|
|
45
|
+
* // GovCloudAccountId: "STRING_VALUE", // required
|
|
46
|
+
* // AccountState: "STRING_VALUE", // required
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param GetGovCloudAccountInformationCommandInput - {@link GetGovCloudAccountInformationCommandInput}
|
|
52
|
+
* @returns {@link GetGovCloudAccountInformationCommandOutput}
|
|
53
|
+
* @see {@link GetGovCloudAccountInformationCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link GetGovCloudAccountInformationCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
58
|
+
* <p>The operation failed because the calling identity doesn't have the minimum required permissions.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InternalServerException} (server fault)
|
|
61
|
+
* <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again later.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
64
|
+
* <p>The operation failed because it specified a resource that can't be found.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ResourceUnavailableException} (client fault)
|
|
67
|
+
* <p>The operation failed because it specified a resource that is not currently available.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
70
|
+
* <p>The operation failed because it was called too frequently and exceeded a throttle limit.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ValidationException} (client fault)
|
|
73
|
+
* <p>The operation failed because one of the input parameters was invalid.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AccountServiceException}
|
|
76
|
+
* <p>Base exception class for all service exceptions from Account service.</p>
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class GetGovCloudAccountInformationCommand extends GetGovCloudAccountInformationCommand_base {
|
|
82
|
+
/** @internal type navigation helper, not in runtime. */
|
|
83
|
+
protected static __types: {
|
|
84
|
+
api: {
|
|
85
|
+
input: GetGovCloudAccountInformationRequest;
|
|
86
|
+
output: GetGovCloudAccountInformationResponse;
|
|
87
|
+
};
|
|
88
|
+
sdk: {
|
|
89
|
+
input: GetGovCloudAccountInformationCommandInput;
|
|
90
|
+
output: GetGovCloudAccountInformationCommandOutput;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -27,7 +27,7 @@ declare const PutAlternateContactCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Modifies the specified alternate contact attached to an Amazon Web Services account.</p> <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">
|
|
30
|
+
* <p>Modifies the specified alternate contact attached to an Amazon Web Services account.</p> <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-alternate.html">Update the alternate contacts for your Amazon Web Services account</a>.</p> <note> <p>Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enable trusted access for Amazon Web Services Account Management</a>.</p> </note>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const PutContactInformationCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Updates the primary contact information of an Amazon Web Services account.</p> <p>For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update the primary
|
|
30
|
+
* <p>Updates the primary contact information of an Amazon Web Services account.</p> <p>For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-primary.html">Update the primary contact for your Amazon Web Services account</a>.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -5,6 +5,7 @@ export * from "./EnableRegionCommand";
|
|
|
5
5
|
export * from "./GetAccountInformationCommand";
|
|
6
6
|
export * from "./GetAlternateContactCommand";
|
|
7
7
|
export * from "./GetContactInformationCommand";
|
|
8
|
+
export * from "./GetGovCloudAccountInformationCommand";
|
|
8
9
|
export * from "./GetPrimaryEmailCommand";
|
|
9
10
|
export * from "./GetRegionOptStatusCommand";
|
|
10
11
|
export * from "./ListRegionsCommand";
|
|
@@ -35,6 +35,20 @@ export declare const AlternateContactType: {
|
|
|
35
35
|
* @public
|
|
36
36
|
*/
|
|
37
37
|
export type AlternateContactType = (typeof AlternateContactType)[keyof typeof AlternateContactType];
|
|
38
|
+
/**
|
|
39
|
+
* @public
|
|
40
|
+
* @enum
|
|
41
|
+
*/
|
|
42
|
+
export declare const AwsAccountState: {
|
|
43
|
+
readonly ACTIVE: "ACTIVE";
|
|
44
|
+
readonly CLOSED: "CLOSED";
|
|
45
|
+
readonly PENDING_ACTIVATION: "PENDING_ACTIVATION";
|
|
46
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export type AwsAccountState = (typeof AwsAccountState)[keyof typeof AwsAccountState];
|
|
38
52
|
/**
|
|
39
53
|
* @public
|
|
40
54
|
* @enum
|
|
@@ -113,3 +113,20 @@ export declare class ValidationException extends __BaseException {
|
|
|
113
113
|
*/
|
|
114
114
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
115
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* <p>The operation failed because it specified a resource that is not currently available.</p>
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
export declare class ResourceUnavailableException extends __BaseException {
|
|
121
|
+
readonly name: "ResourceUnavailableException";
|
|
122
|
+
readonly $fault: "client";
|
|
123
|
+
/**
|
|
124
|
+
* <p>The value populated to the <code>x-amzn-ErrorType</code> response header by API Gateway.</p>
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
errorType?: string | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
constructor(opts: __ExceptionOptionType<ResourceUnavailableException, __BaseException>);
|
|
132
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlternateContactType, PrimaryEmailUpdateStatus, RegionOptStatus } from "./enums";
|
|
1
|
+
import { AlternateContactType, AwsAccountState, PrimaryEmailUpdateStatus, RegionOptStatus } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
@@ -50,7 +50,7 @@ export interface ValidationExceptionField {
|
|
|
50
50
|
*/
|
|
51
51
|
export interface GetAccountInformationRequest {
|
|
52
52
|
/**
|
|
53
|
-
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/
|
|
53
|
+
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html">trusted access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin">delegated administrator</a> account assigned.</p> <note> <p>The management account can't specify its own <code>AccountId</code>; it must call the operation in standalone context by not including the <code>AccountId</code> parameter.</p> </note> <p>To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.</p>
|
|
54
54
|
* @public
|
|
55
55
|
*/
|
|
56
56
|
AccountId?: string | undefined;
|
|
@@ -85,7 +85,7 @@ export interface PutAccountNameRequest {
|
|
|
85
85
|
*/
|
|
86
86
|
AccountName: string | undefined;
|
|
87
87
|
/**
|
|
88
|
-
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/
|
|
88
|
+
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html">trusted access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin">delegated administrator</a> account assigned.</p> <note> <p>The management account can't specify its own <code>AccountId</code>; it must call the operation in standalone context by not including the <code>AccountId</code> parameter.</p> </note> <p>To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.</p>
|
|
89
89
|
* @public
|
|
90
90
|
*/
|
|
91
91
|
AccountId?: string | undefined;
|
|
@@ -100,7 +100,7 @@ export interface DeleteAlternateContactRequest {
|
|
|
100
100
|
*/
|
|
101
101
|
AlternateContactType: AlternateContactType | undefined;
|
|
102
102
|
/**
|
|
103
|
-
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/
|
|
103
|
+
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html">trusted access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin">delegated administrator</a> account assigned.</p> <note> <p>The management account can't specify its own <code>AccountId</code>; it must call the operation in standalone context by not including the <code>AccountId</code> parameter.</p> </note> <p>To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.</p>
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
106
|
AccountId?: string | undefined;
|
|
@@ -115,7 +115,7 @@ export interface GetAlternateContactRequest {
|
|
|
115
115
|
*/
|
|
116
116
|
AlternateContactType: AlternateContactType | undefined;
|
|
117
117
|
/**
|
|
118
|
-
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/
|
|
118
|
+
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html">trusted access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin">delegated administrator</a> account assigned.</p> <note> <p>The management account can't specify its own <code>AccountId</code>; it must call the operation in standalone context by not including the <code>AccountId</code> parameter.</p> </note> <p>To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.</p>
|
|
119
119
|
* @public
|
|
120
120
|
*/
|
|
121
121
|
AccountId?: string | undefined;
|
|
@@ -191,11 +191,36 @@ export interface PutAlternateContactRequest {
|
|
|
191
191
|
*/
|
|
192
192
|
AlternateContactType: AlternateContactType | undefined;
|
|
193
193
|
/**
|
|
194
|
-
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/
|
|
194
|
+
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html">trusted access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin">delegated administrator</a> account assigned.</p> <note> <p>The management account can't specify its own <code>AccountId</code>; it must call the operation in standalone context by not including the <code>AccountId</code> parameter.</p> </note> <p>To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.</p>
|
|
195
195
|
* @public
|
|
196
196
|
*/
|
|
197
197
|
AccountId?: string | undefined;
|
|
198
198
|
}
|
|
199
|
+
/**
|
|
200
|
+
* @public
|
|
201
|
+
*/
|
|
202
|
+
export interface GetGovCloudAccountInformationRequest {
|
|
203
|
+
/**
|
|
204
|
+
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html">trusted access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin">delegated administrator</a> account assigned.</p> <note> <p>The management account can't specify its own <code>AccountId</code>; it must call the operation in standalone context by not including the <code>AccountId</code> parameter.</p> </note> <p>To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.</p>
|
|
205
|
+
* @public
|
|
206
|
+
*/
|
|
207
|
+
StandardAccountId?: string | undefined;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
212
|
+
export interface GetGovCloudAccountInformationResponse {
|
|
213
|
+
/**
|
|
214
|
+
* <p>The 12-digit account ID number of the linked GovCloud account.</p>
|
|
215
|
+
* @public
|
|
216
|
+
*/
|
|
217
|
+
GovCloudAccountId: string | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* <p>The account state of the linked GovCloud account.</p>
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
AccountState: AwsAccountState | undefined;
|
|
223
|
+
}
|
|
199
224
|
/**
|
|
200
225
|
* @public
|
|
201
226
|
*/
|
|
@@ -292,7 +317,7 @@ export interface PutContactInformationRequest {
|
|
|
292
317
|
*/
|
|
293
318
|
ContactInformation: ContactInformation | undefined;
|
|
294
319
|
/**
|
|
295
|
-
* <p>Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access or modify with this operation. If you don't specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation. To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account. The specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/
|
|
320
|
+
* <p>Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access or modify with this operation. If you don't specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation. To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account. The specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html">trusted access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin">delegated administrator</a> account assigned.</p> <note> <p>The management account can't specify its own <code>AccountId</code>. It must call the operation in standalone context by not including the <code>AccountId</code> parameter.</p> </note> <p>To call this operation on an account that is not a member of an organization, don't specify this parameter. Instead, call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.</p>
|
|
296
321
|
* @public
|
|
297
322
|
*/
|
|
298
323
|
AccountId?: string | undefined;
|
|
@@ -32,6 +32,8 @@ export declare var GetAlternateContactRequest: StaticStructureSchema;
|
|
|
32
32
|
export declare var GetAlternateContactResponse: StaticStructureSchema;
|
|
33
33
|
export declare var GetContactInformationRequest: StaticStructureSchema;
|
|
34
34
|
export declare var GetContactInformationResponse: StaticStructureSchema;
|
|
35
|
+
export declare var GetGovCloudAccountInformationRequest: StaticStructureSchema;
|
|
36
|
+
export declare var GetGovCloudAccountInformationResponse: StaticStructureSchema;
|
|
35
37
|
export declare var GetPrimaryEmailRequest: StaticStructureSchema;
|
|
36
38
|
export declare var GetPrimaryEmailResponse: StaticStructureSchema;
|
|
37
39
|
export declare var GetRegionOptStatusRequest: StaticStructureSchema;
|
|
@@ -44,6 +46,7 @@ export declare var PutAlternateContactRequest: StaticStructureSchema;
|
|
|
44
46
|
export declare var PutContactInformationRequest: StaticStructureSchema;
|
|
45
47
|
export declare var Region: StaticStructureSchema;
|
|
46
48
|
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
49
|
+
export declare var ResourceUnavailableException: StaticErrorSchema;
|
|
47
50
|
export declare var StartPrimaryEmailUpdateRequest: StaticStructureSchema;
|
|
48
51
|
export declare var StartPrimaryEmailUpdateResponse: StaticStructureSchema;
|
|
49
52
|
export declare var TooManyRequestsException: StaticErrorSchema;
|
|
@@ -61,6 +64,7 @@ export declare var EnableRegion: StaticOperationSchema;
|
|
|
61
64
|
export declare var GetAccountInformation: StaticOperationSchema;
|
|
62
65
|
export declare var GetAlternateContact: StaticOperationSchema;
|
|
63
66
|
export declare var GetContactInformation: StaticOperationSchema;
|
|
67
|
+
export declare var GetGovCloudAccountInformation: StaticOperationSchema;
|
|
64
68
|
export declare var GetPrimaryEmail: StaticOperationSchema;
|
|
65
69
|
export declare var GetRegionOptStatus: StaticOperationSchema;
|
|
66
70
|
export declare var ListRegions: StaticOperationSchema;
|
|
@@ -28,6 +28,10 @@ import {
|
|
|
28
28
|
GetContactInformationCommandInput,
|
|
29
29
|
GetContactInformationCommandOutput,
|
|
30
30
|
} from "./commands/GetContactInformationCommand";
|
|
31
|
+
import {
|
|
32
|
+
GetGovCloudAccountInformationCommandInput,
|
|
33
|
+
GetGovCloudAccountInformationCommandOutput,
|
|
34
|
+
} from "./commands/GetGovCloudAccountInformationCommand";
|
|
31
35
|
import {
|
|
32
36
|
GetPrimaryEmailCommandInput,
|
|
33
37
|
GetPrimaryEmailCommandOutput,
|
|
@@ -150,6 +154,20 @@ export interface Account {
|
|
|
150
154
|
options: __HttpHandlerOptions,
|
|
151
155
|
cb: (err: any, data?: GetContactInformationCommandOutput) => void
|
|
152
156
|
): void;
|
|
157
|
+
getGovCloudAccountInformation(): Promise<GetGovCloudAccountInformationCommandOutput>;
|
|
158
|
+
getGovCloudAccountInformation(
|
|
159
|
+
args: GetGovCloudAccountInformationCommandInput,
|
|
160
|
+
options?: __HttpHandlerOptions
|
|
161
|
+
): Promise<GetGovCloudAccountInformationCommandOutput>;
|
|
162
|
+
getGovCloudAccountInformation(
|
|
163
|
+
args: GetGovCloudAccountInformationCommandInput,
|
|
164
|
+
cb: (err: any, data?: GetGovCloudAccountInformationCommandOutput) => void
|
|
165
|
+
): void;
|
|
166
|
+
getGovCloudAccountInformation(
|
|
167
|
+
args: GetGovCloudAccountInformationCommandInput,
|
|
168
|
+
options: __HttpHandlerOptions,
|
|
169
|
+
cb: (err: any, data?: GetGovCloudAccountInformationCommandOutput) => void
|
|
170
|
+
): void;
|
|
153
171
|
getPrimaryEmail(
|
|
154
172
|
args: GetPrimaryEmailCommandInput,
|
|
155
173
|
options?: __HttpHandlerOptions
|
|
@@ -76,6 +76,10 @@ import {
|
|
|
76
76
|
GetContactInformationCommandInput,
|
|
77
77
|
GetContactInformationCommandOutput,
|
|
78
78
|
} from "./commands/GetContactInformationCommand";
|
|
79
|
+
import {
|
|
80
|
+
GetGovCloudAccountInformationCommandInput,
|
|
81
|
+
GetGovCloudAccountInformationCommandOutput,
|
|
82
|
+
} from "./commands/GetGovCloudAccountInformationCommand";
|
|
79
83
|
import {
|
|
80
84
|
GetPrimaryEmailCommandInput,
|
|
81
85
|
GetPrimaryEmailCommandOutput,
|
|
@@ -119,6 +123,7 @@ export type ServiceInputTypes =
|
|
|
119
123
|
| GetAccountInformationCommandInput
|
|
120
124
|
| GetAlternateContactCommandInput
|
|
121
125
|
| GetContactInformationCommandInput
|
|
126
|
+
| GetGovCloudAccountInformationCommandInput
|
|
122
127
|
| GetPrimaryEmailCommandInput
|
|
123
128
|
| GetRegionOptStatusCommandInput
|
|
124
129
|
| ListRegionsCommandInput
|
|
@@ -134,6 +139,7 @@ export type ServiceOutputTypes =
|
|
|
134
139
|
| GetAccountInformationCommandOutput
|
|
135
140
|
| GetAlternateContactCommandOutput
|
|
136
141
|
| GetContactInformationCommandOutput
|
|
142
|
+
| GetGovCloudAccountInformationCommandOutput
|
|
137
143
|
| GetPrimaryEmailCommandOutput
|
|
138
144
|
| GetRegionOptStatusCommandOutput
|
|
139
145
|
| ListRegionsCommandOutput
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
AccountClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../AccountClient";
|
|
8
|
+
import {
|
|
9
|
+
GetGovCloudAccountInformationRequest,
|
|
10
|
+
GetGovCloudAccountInformationResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface GetGovCloudAccountInformationCommandInput
|
|
15
|
+
extends GetGovCloudAccountInformationRequest {}
|
|
16
|
+
export interface GetGovCloudAccountInformationCommandOutput
|
|
17
|
+
extends GetGovCloudAccountInformationResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const GetGovCloudAccountInformationCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: GetGovCloudAccountInformationCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
GetGovCloudAccountInformationCommandInput,
|
|
24
|
+
GetGovCloudAccountInformationCommandOutput,
|
|
25
|
+
AccountClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
...[input]: [] | [GetGovCloudAccountInformationCommandInput]
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
GetGovCloudAccountInformationCommandInput,
|
|
33
|
+
GetGovCloudAccountInformationCommandOutput,
|
|
34
|
+
AccountClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class GetGovCloudAccountInformationCommand extends GetGovCloudAccountInformationCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: GetGovCloudAccountInformationRequest;
|
|
44
|
+
output: GetGovCloudAccountInformationResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: GetGovCloudAccountInformationCommandInput;
|
|
48
|
+
output: GetGovCloudAccountInformationCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./EnableRegionCommand";
|
|
|
5
5
|
export * from "./GetAccountInformationCommand";
|
|
6
6
|
export * from "./GetAlternateContactCommand";
|
|
7
7
|
export * from "./GetContactInformationCommand";
|
|
8
|
+
export * from "./GetGovCloudAccountInformationCommand";
|
|
8
9
|
export * from "./GetPrimaryEmailCommand";
|
|
9
10
|
export * from "./GetRegionOptStatusCommand";
|
|
10
11
|
export * from "./ListRegionsCommand";
|
|
@@ -17,6 +17,14 @@ export declare const AlternateContactType: {
|
|
|
17
17
|
};
|
|
18
18
|
export type AlternateContactType =
|
|
19
19
|
(typeof AlternateContactType)[keyof typeof AlternateContactType];
|
|
20
|
+
export declare const AwsAccountState: {
|
|
21
|
+
readonly ACTIVE: "ACTIVE";
|
|
22
|
+
readonly CLOSED: "CLOSED";
|
|
23
|
+
readonly PENDING_ACTIVATION: "PENDING_ACTIVATION";
|
|
24
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
25
|
+
};
|
|
26
|
+
export type AwsAccountState =
|
|
27
|
+
(typeof AwsAccountState)[keyof typeof AwsAccountState];
|
|
20
28
|
export declare const RegionOptStatus: {
|
|
21
29
|
readonly DISABLED: "DISABLED";
|
|
22
30
|
readonly DISABLING: "DISABLING";
|
|
@@ -53,3 +53,11 @@ export declare class ValidationException extends __BaseException {
|
|
|
53
53
|
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
|
+
export declare class ResourceUnavailableException extends __BaseException {
|
|
57
|
+
readonly name: "ResourceUnavailableException";
|
|
58
|
+
readonly $fault: "client";
|
|
59
|
+
errorType?: string | undefined;
|
|
60
|
+
constructor(
|
|
61
|
+
opts: __ExceptionOptionType<ResourceUnavailableException, __BaseException>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AlternateContactType,
|
|
3
|
+
AwsAccountState,
|
|
3
4
|
PrimaryEmailUpdateStatus,
|
|
4
5
|
RegionOptStatus,
|
|
5
6
|
} from "./enums";
|
|
@@ -53,6 +54,13 @@ export interface PutAlternateContactRequest {
|
|
|
53
54
|
AlternateContactType: AlternateContactType | undefined;
|
|
54
55
|
AccountId?: string | undefined;
|
|
55
56
|
}
|
|
57
|
+
export interface GetGovCloudAccountInformationRequest {
|
|
58
|
+
StandardAccountId?: string | undefined;
|
|
59
|
+
}
|
|
60
|
+
export interface GetGovCloudAccountInformationResponse {
|
|
61
|
+
GovCloudAccountId: string | undefined;
|
|
62
|
+
AccountState: AwsAccountState | undefined;
|
|
63
|
+
}
|
|
56
64
|
export interface GetContactInformationRequest {
|
|
57
65
|
AccountId?: string | undefined;
|
|
58
66
|
}
|
|
@@ -38,6 +38,8 @@ export declare var GetAlternateContactRequest: StaticStructureSchema;
|
|
|
38
38
|
export declare var GetAlternateContactResponse: StaticStructureSchema;
|
|
39
39
|
export declare var GetContactInformationRequest: StaticStructureSchema;
|
|
40
40
|
export declare var GetContactInformationResponse: StaticStructureSchema;
|
|
41
|
+
export declare var GetGovCloudAccountInformationRequest: StaticStructureSchema;
|
|
42
|
+
export declare var GetGovCloudAccountInformationResponse: StaticStructureSchema;
|
|
41
43
|
export declare var GetPrimaryEmailRequest: StaticStructureSchema;
|
|
42
44
|
export declare var GetPrimaryEmailResponse: StaticStructureSchema;
|
|
43
45
|
export declare var GetRegionOptStatusRequest: StaticStructureSchema;
|
|
@@ -50,6 +52,7 @@ export declare var PutAlternateContactRequest: StaticStructureSchema;
|
|
|
50
52
|
export declare var PutContactInformationRequest: StaticStructureSchema;
|
|
51
53
|
export declare var Region: StaticStructureSchema;
|
|
52
54
|
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
55
|
+
export declare var ResourceUnavailableException: StaticErrorSchema;
|
|
53
56
|
export declare var StartPrimaryEmailUpdateRequest: StaticStructureSchema;
|
|
54
57
|
export declare var StartPrimaryEmailUpdateResponse: StaticStructureSchema;
|
|
55
58
|
export declare var TooManyRequestsException: StaticErrorSchema;
|
|
@@ -67,6 +70,7 @@ export declare var EnableRegion: StaticOperationSchema;
|
|
|
67
70
|
export declare var GetAccountInformation: StaticOperationSchema;
|
|
68
71
|
export declare var GetAlternateContact: StaticOperationSchema;
|
|
69
72
|
export declare var GetContactInformation: StaticOperationSchema;
|
|
73
|
+
export declare var GetGovCloudAccountInformation: StaticOperationSchema;
|
|
70
74
|
export declare var GetPrimaryEmail: StaticOperationSchema;
|
|
71
75
|
export declare var GetRegionOptStatus: StaticOperationSchema;
|
|
72
76
|
export declare var ListRegions: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-account",
|
|
3
3
|
"description": "AWS SDK for JavaScript Account Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.948.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-account",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/core": "3.947.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.948.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.936.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.936.0",
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.948.0",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.947.0",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "3.936.0",
|
|
31
31
|
"@aws-sdk/types": "3.936.0",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.936.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.936.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.947.0",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.3",
|
|
36
36
|
"@smithy/core": "^3.18.7",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.6",
|