@aws-sdk/client-account 3.936.0 → 3.939.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -877,6 +877,27 @@ smithyClient.createAggregatedClient(commands, Account);
877
877
 
878
878
  const paginateListRegions = core.createPaginator(AccountClient, ListRegionsCommand, "NextToken", "NextToken", "MaxResults");
879
879
 
880
+ const PrimaryEmailUpdateStatus = {
881
+ ACCEPTED: "ACCEPTED",
882
+ PENDING: "PENDING",
883
+ };
884
+ const ValidationExceptionReason = {
885
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
886
+ INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget",
887
+ };
888
+ const AlternateContactType = {
889
+ BILLING: "BILLING",
890
+ OPERATIONS: "OPERATIONS",
891
+ SECURITY: "SECURITY",
892
+ };
893
+ const RegionOptStatus = {
894
+ DISABLED: "DISABLED",
895
+ DISABLING: "DISABLING",
896
+ ENABLED: "ENABLED",
897
+ ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT",
898
+ ENABLING: "ENABLING",
899
+ };
900
+
880
901
  Object.defineProperty(exports, "$Command", {
881
902
  enumerable: true,
882
903
  get: function () { return smithyClient.Command; }
@@ -890,6 +911,7 @@ exports.AccessDeniedException = AccessDeniedException$1;
890
911
  exports.Account = Account;
891
912
  exports.AccountClient = AccountClient;
892
913
  exports.AccountServiceException = AccountServiceException$1;
914
+ exports.AlternateContactType = AlternateContactType;
893
915
  exports.ConflictException = ConflictException$1;
894
916
  exports.DeleteAlternateContactCommand = DeleteAlternateContactCommand;
895
917
  exports.DisableRegionCommand = DisableRegionCommand;
@@ -901,11 +923,14 @@ exports.GetPrimaryEmailCommand = GetPrimaryEmailCommand;
901
923
  exports.GetRegionOptStatusCommand = GetRegionOptStatusCommand;
902
924
  exports.InternalServerException = InternalServerException$1;
903
925
  exports.ListRegionsCommand = ListRegionsCommand;
926
+ exports.PrimaryEmailUpdateStatus = PrimaryEmailUpdateStatus;
904
927
  exports.PutAccountNameCommand = PutAccountNameCommand;
905
928
  exports.PutAlternateContactCommand = PutAlternateContactCommand;
906
929
  exports.PutContactInformationCommand = PutContactInformationCommand;
930
+ exports.RegionOptStatus = RegionOptStatus;
907
931
  exports.ResourceNotFoundException = ResourceNotFoundException$1;
908
932
  exports.StartPrimaryEmailUpdateCommand = StartPrimaryEmailUpdateCommand;
909
933
  exports.TooManyRequestsException = TooManyRequestsException$1;
910
934
  exports.ValidationException = ValidationException$1;
935
+ exports.ValidationExceptionReason = ValidationExceptionReason;
911
936
  exports.paginateListRegions = paginateListRegions;
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./AccountClient";
2
2
  export * from "./Account";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
+ export * from "./models/enums";
5
6
  export * from "./models/errors";
6
7
  export { AccountServiceException } from "./models/AccountServiceException";
@@ -0,0 +1,20 @@
1
+ export const PrimaryEmailUpdateStatus = {
2
+ ACCEPTED: "ACCEPTED",
3
+ PENDING: "PENDING",
4
+ };
5
+ export const ValidationExceptionReason = {
6
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
7
+ INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget",
8
+ };
9
+ export const AlternateContactType = {
10
+ BILLING: "BILLING",
11
+ OPERATIONS: "OPERATIONS",
12
+ SECURITY: "SECURITY",
13
+ };
14
+ export const RegionOptStatus = {
15
+ DISABLED: "DISABLED",
16
+ DISABLING: "DISABLING",
17
+ ENABLED: "ENABLED",
18
+ ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT",
19
+ ENABLING: "ENABLING",
20
+ };
@@ -1,20 +1 @@
1
- export const PrimaryEmailUpdateStatus = {
2
- ACCEPTED: "ACCEPTED",
3
- PENDING: "PENDING",
4
- };
5
- export const ValidationExceptionReason = {
6
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
7
- INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget",
8
- };
9
- export const AlternateContactType = {
10
- BILLING: "BILLING",
11
- OPERATIONS: "OPERATIONS",
12
- SECURITY: "SECURITY",
13
- };
14
- export const RegionOptStatus = {
15
- DISABLED: "DISABLED",
16
- DISABLING: "DISABLING",
17
- ENABLED: "ENABLED",
18
- ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT",
19
- ENABLING: "ENABLING",
20
- };
1
+ export {};
@@ -10,6 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { AccountExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
+ export * from "./models/enums";
13
14
  export * from "./models/errors";
14
15
  export type * from "./models/models_0";
15
16
  export { AccountServiceException } from "./models/AccountServiceException";
@@ -0,0 +1,52 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const PrimaryEmailUpdateStatus: {
6
+ readonly ACCEPTED: "ACCEPTED";
7
+ readonly PENDING: "PENDING";
8
+ };
9
+ /**
10
+ * @public
11
+ */
12
+ export type PrimaryEmailUpdateStatus = (typeof PrimaryEmailUpdateStatus)[keyof typeof PrimaryEmailUpdateStatus];
13
+ /**
14
+ * @public
15
+ * @enum
16
+ */
17
+ export declare const ValidationExceptionReason: {
18
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
19
+ readonly INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget";
20
+ };
21
+ /**
22
+ * @public
23
+ */
24
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
25
+ /**
26
+ * @public
27
+ * @enum
28
+ */
29
+ export declare const AlternateContactType: {
30
+ readonly BILLING: "BILLING";
31
+ readonly OPERATIONS: "OPERATIONS";
32
+ readonly SECURITY: "SECURITY";
33
+ };
34
+ /**
35
+ * @public
36
+ */
37
+ export type AlternateContactType = (typeof AlternateContactType)[keyof typeof AlternateContactType];
38
+ /**
39
+ * @public
40
+ * @enum
41
+ */
42
+ export declare const RegionOptStatus: {
43
+ readonly DISABLED: "DISABLED";
44
+ readonly DISABLING: "DISABLING";
45
+ readonly ENABLED: "ENABLED";
46
+ readonly ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT";
47
+ readonly ENABLING: "ENABLING";
48
+ };
49
+ /**
50
+ * @public
51
+ */
52
+ export type RegionOptStatus = (typeof RegionOptStatus)[keyof typeof RegionOptStatus];
@@ -1,6 +1,7 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { AccountServiceException as __BaseException } from "./AccountServiceException";
3
- import { ValidationExceptionField, ValidationExceptionReason } from "./models_0";
3
+ import { ValidationExceptionReason } from "./enums";
4
+ import { ValidationExceptionField } from "./models_0";
4
5
  /**
5
6
  * <p>The operation failed because the calling identity doesn't have the minimum required permissions.</p>
6
7
  * @public
@@ -1,3 +1,4 @@
1
+ import { AlternateContactType, PrimaryEmailUpdateStatus, RegionOptStatus } from "./enums";
1
2
  /**
2
3
  * @public
3
4
  */
@@ -18,18 +19,6 @@ export interface AcceptPrimaryEmailUpdateRequest {
18
19
  */
19
20
  Otp: string | undefined;
20
21
  }
21
- /**
22
- * @public
23
- * @enum
24
- */
25
- export declare const PrimaryEmailUpdateStatus: {
26
- readonly ACCEPTED: "ACCEPTED";
27
- readonly PENDING: "PENDING";
28
- };
29
- /**
30
- * @public
31
- */
32
- export type PrimaryEmailUpdateStatus = (typeof PrimaryEmailUpdateStatus)[keyof typeof PrimaryEmailUpdateStatus];
33
22
  /**
34
23
  * @public
35
24
  */
@@ -56,18 +45,6 @@ export interface ValidationExceptionField {
56
45
  */
57
46
  message: string | undefined;
58
47
  }
59
- /**
60
- * @public
61
- * @enum
62
- */
63
- export declare const ValidationExceptionReason: {
64
- readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
65
- readonly INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget";
66
- };
67
- /**
68
- * @public
69
- */
70
- export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
71
48
  /**
72
49
  * @public
73
50
  */
@@ -113,19 +90,6 @@ export interface PutAccountNameRequest {
113
90
  */
114
91
  AccountId?: string | undefined;
115
92
  }
116
- /**
117
- * @public
118
- * @enum
119
- */
120
- export declare const AlternateContactType: {
121
- readonly BILLING: "BILLING";
122
- readonly OPERATIONS: "OPERATIONS";
123
- readonly SECURITY: "SECURITY";
124
- };
125
- /**
126
- * @public
127
- */
128
- export type AlternateContactType = (typeof AlternateContactType)[keyof typeof AlternateContactType];
129
93
  /**
130
94
  * @public
131
95
  */
@@ -423,21 +387,6 @@ export interface GetRegionOptStatusRequest {
423
387
  */
424
388
  RegionName: string | undefined;
425
389
  }
426
- /**
427
- * @public
428
- * @enum
429
- */
430
- export declare const RegionOptStatus: {
431
- readonly DISABLED: "DISABLED";
432
- readonly DISABLING: "DISABLING";
433
- readonly ENABLED: "ENABLED";
434
- readonly ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT";
435
- readonly ENABLING: "ENABLING";
436
- };
437
- /**
438
- * @public
439
- */
440
- export type RegionOptStatus = (typeof RegionOptStatus)[keyof typeof RegionOptStatus];
441
390
  /**
442
391
  * @public
443
392
  */
@@ -5,6 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { AccountExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
+ export * from "./models/enums";
8
9
  export * from "./models/errors";
9
10
  export * from "./models/models_0";
10
11
  export { AccountServiceException } from "./models/AccountServiceException";
@@ -0,0 +1,28 @@
1
+ export declare const PrimaryEmailUpdateStatus: {
2
+ readonly ACCEPTED: "ACCEPTED";
3
+ readonly PENDING: "PENDING";
4
+ };
5
+ export type PrimaryEmailUpdateStatus =
6
+ (typeof PrimaryEmailUpdateStatus)[keyof typeof PrimaryEmailUpdateStatus];
7
+ export declare const ValidationExceptionReason: {
8
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
9
+ readonly INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget";
10
+ };
11
+ export type ValidationExceptionReason =
12
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
13
+ export declare const AlternateContactType: {
14
+ readonly BILLING: "BILLING";
15
+ readonly OPERATIONS: "OPERATIONS";
16
+ readonly SECURITY: "SECURITY";
17
+ };
18
+ export type AlternateContactType =
19
+ (typeof AlternateContactType)[keyof typeof AlternateContactType];
20
+ export declare const RegionOptStatus: {
21
+ readonly DISABLED: "DISABLED";
22
+ readonly DISABLING: "DISABLING";
23
+ readonly ENABLED: "ENABLED";
24
+ readonly ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT";
25
+ readonly ENABLING: "ENABLING";
26
+ };
27
+ export type RegionOptStatus =
28
+ (typeof RegionOptStatus)[keyof typeof RegionOptStatus];
@@ -1,9 +1,7 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { AccountServiceException as __BaseException } from "./AccountServiceException";
3
- import {
4
- ValidationExceptionField,
5
- ValidationExceptionReason,
6
- } from "./models_0";
3
+ import { ValidationExceptionReason } from "./enums";
4
+ import { ValidationExceptionField } from "./models_0";
7
5
  export declare class AccessDeniedException extends __BaseException {
8
6
  readonly name: "AccessDeniedException";
9
7
  readonly $fault: "client";
@@ -1,14 +1,13 @@
1
+ import {
2
+ AlternateContactType,
3
+ PrimaryEmailUpdateStatus,
4
+ RegionOptStatus,
5
+ } from "./enums";
1
6
  export interface AcceptPrimaryEmailUpdateRequest {
2
7
  AccountId: string | undefined;
3
8
  PrimaryEmail: string | undefined;
4
9
  Otp: string | undefined;
5
10
  }
6
- export declare const PrimaryEmailUpdateStatus: {
7
- readonly ACCEPTED: "ACCEPTED";
8
- readonly PENDING: "PENDING";
9
- };
10
- export type PrimaryEmailUpdateStatus =
11
- (typeof PrimaryEmailUpdateStatus)[keyof typeof PrimaryEmailUpdateStatus];
12
11
  export interface AcceptPrimaryEmailUpdateResponse {
13
12
  Status?: PrimaryEmailUpdateStatus | undefined;
14
13
  }
@@ -16,12 +15,6 @@ export interface ValidationExceptionField {
16
15
  name: string | undefined;
17
16
  message: string | undefined;
18
17
  }
19
- export declare const ValidationExceptionReason: {
20
- readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
21
- readonly INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget";
22
- };
23
- export type ValidationExceptionReason =
24
- (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
25
18
  export interface GetAccountInformationRequest {
26
19
  AccountId?: string | undefined;
27
20
  }
@@ -34,13 +27,6 @@ export interface PutAccountNameRequest {
34
27
  AccountName: string | undefined;
35
28
  AccountId?: string | undefined;
36
29
  }
37
- export declare const AlternateContactType: {
38
- readonly BILLING: "BILLING";
39
- readonly OPERATIONS: "OPERATIONS";
40
- readonly SECURITY: "SECURITY";
41
- };
42
- export type AlternateContactType =
43
- (typeof AlternateContactType)[keyof typeof AlternateContactType];
44
30
  export interface DeleteAlternateContactRequest {
45
31
  AlternateContactType: AlternateContactType | undefined;
46
32
  AccountId?: string | undefined;
@@ -116,15 +102,6 @@ export interface GetRegionOptStatusRequest {
116
102
  AccountId?: string | undefined;
117
103
  RegionName: string | undefined;
118
104
  }
119
- export declare const RegionOptStatus: {
120
- readonly DISABLED: "DISABLED";
121
- readonly DISABLING: "DISABLING";
122
- readonly ENABLED: "ENABLED";
123
- readonly ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT";
124
- readonly ENABLING: "ENABLING";
125
- };
126
- export type RegionOptStatus =
127
- (typeof RegionOptStatus)[keyof typeof RegionOptStatus];
128
105
  export interface GetRegionOptStatusResponse {
129
106
  RegionName?: string | undefined;
130
107
  RegionOptStatus?: RegionOptStatus | undefined;
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.936.0",
4
+ "version": "3.939.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,7 +21,7 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.936.0",
24
- "@aws-sdk/credential-provider-node": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.939.0",
25
25
  "@aws-sdk/middleware-host-header": "3.936.0",
26
26
  "@aws-sdk/middleware-logger": "3.936.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.936.0",