@aws-sdk/client-account 3.1038.0 → 3.1039.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
@@ -327,6 +327,12 @@ const ValidationExceptionReason = {
327
327
  FIELD_VALIDATION_FAILED: "fieldValidationFailed",
328
328
  INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget",
329
329
  };
330
+ const AccountState = {
331
+ ACTIVE: "ACTIVE",
332
+ CLOSED: "CLOSED",
333
+ PENDING_ACTIVATION: "PENDING_ACTIVATION",
334
+ SUSPENDED: "SUSPENDED",
335
+ };
330
336
  const AlternateContactType = {
331
337
  BILLING: "BILLING",
332
338
  OPERATIONS: "OPERATIONS",
@@ -352,6 +358,7 @@ exports.AccountServiceException = AccountServiceException.AccountServiceExceptio
352
358
  exports.AcceptPrimaryEmailUpdateCommand = AcceptPrimaryEmailUpdateCommand;
353
359
  exports.Account = Account;
354
360
  exports.AccountClient = AccountClient;
361
+ exports.AccountState = AccountState;
355
362
  exports.AlternateContactType = AlternateContactType;
356
363
  exports.AwsAccountState = AwsAccountState;
357
364
  exports.DeleteAlternateContactCommand = DeleteAlternateContactCommand;
@@ -216,8 +216,8 @@ exports.GetAccountInformationRequest$ = [3, n0, _GAIR,
216
216
  ];
217
217
  exports.GetAccountInformationResponse$ = [3, n0, _GAIRe,
218
218
  0,
219
- [_AI, _AN, _ACD],
220
- [0, [() => AccountName, 0], 5]
219
+ [_AI, _AN, _ACD, _AS],
220
+ [0, [() => AccountName, 0], 5, 0]
221
221
  ];
222
222
  exports.GetAlternateContactRequest$ = [3, n0, _GACR,
223
223
  0,
@@ -6,6 +6,12 @@ export const ValidationExceptionReason = {
6
6
  FIELD_VALIDATION_FAILED: "fieldValidationFailed",
7
7
  INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget",
8
8
  };
9
+ export const AccountState = {
10
+ ACTIVE: "ACTIVE",
11
+ CLOSED: "CLOSED",
12
+ PENDING_ACTIVATION: "PENDING_ACTIVATION",
13
+ SUSPENDED: "SUSPENDED",
14
+ };
9
15
  export const AlternateContactType = {
10
16
  BILLING: "BILLING",
11
17
  OPERATIONS: "OPERATIONS",
@@ -212,8 +212,8 @@ export var GetAccountInformationRequest$ = [3, n0, _GAIR,
212
212
  ];
213
213
  export var GetAccountInformationResponse$ = [3, n0, _GAIRe,
214
214
  0,
215
- [_AI, _AN, _ACD],
216
- [0, [() => AccountName, 0], 5]
215
+ [_AI, _AN, _ACD, _AS],
216
+ [0, [() => AccountName, 0], 5, 0]
217
217
  ];
218
218
  export var GetAlternateContactRequest$ = [3, n0, _GACR,
219
219
  0,
@@ -27,7 +27,7 @@ declare const GetAccountInformationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Retrieves information about the specified account including its account name, account ID, and account creation date and time. To use this API, an IAM user or role must have the <code>account:GetAccountInformation</code> IAM permission. </p>
30
+ * <p>Retrieves information about the specified account including its account name, account ID, account creation date and time, and account state. To use this API, an IAM user or role must have the <code>account:GetAccountInformation</code> IAM permission. </p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -45,6 +45,7 @@ declare const GetAccountInformationCommand_base: {
45
45
  * // AccountId: "STRING_VALUE",
46
46
  * // AccountName: "STRING_VALUE",
47
47
  * // AccountCreatedDate: new Date("TIMESTAMP"),
48
+ * // AccountState: "STRING_VALUE",
48
49
  * // };
49
50
  *
50
51
  * ```
@@ -22,6 +22,20 @@ export declare const ValidationExceptionReason: {
22
22
  * @public
23
23
  */
24
24
  export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
25
+ /**
26
+ * @public
27
+ * @enum
28
+ */
29
+ export declare const AccountState: {
30
+ readonly ACTIVE: "ACTIVE";
31
+ readonly CLOSED: "CLOSED";
32
+ readonly PENDING_ACTIVATION: "PENDING_ACTIVATION";
33
+ readonly SUSPENDED: "SUSPENDED";
34
+ };
35
+ /**
36
+ * @public
37
+ */
38
+ export type AccountState = (typeof AccountState)[keyof typeof AccountState];
25
39
  /**
26
40
  * @public
27
41
  * @enum
@@ -1,4 +1,4 @@
1
- import type { AlternateContactType, AwsAccountState, PrimaryEmailUpdateStatus, RegionOptStatus } from "./enums";
1
+ import type { AccountState, AlternateContactType, AwsAccountState, PrimaryEmailUpdateStatus, RegionOptStatus } from "./enums";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -74,6 +74,11 @@ export interface GetAccountInformationResponse {
74
74
  * @public
75
75
  */
76
76
  AccountCreatedDate?: Date | undefined;
77
+ /**
78
+ * <p>The state of the account. Each account state represents a specific phase in the account lifecycle. Use this information to manage account access, automate workflows, or trigger actions based on account state changes.</p> <p>Valid values: <code>PENDING_ACTIVATION | ACTIVE | SUSPENDED | CLOSED</code> </p>
79
+ * @public
80
+ */
81
+ AccountState?: AccountState | undefined;
77
82
  }
78
83
  /**
79
84
  * @public
@@ -10,6 +10,13 @@ export declare const ValidationExceptionReason: {
10
10
  };
11
11
  export type ValidationExceptionReason =
12
12
  (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
13
+ export declare const AccountState: {
14
+ readonly ACTIVE: "ACTIVE";
15
+ readonly CLOSED: "CLOSED";
16
+ readonly PENDING_ACTIVATION: "PENDING_ACTIVATION";
17
+ readonly SUSPENDED: "SUSPENDED";
18
+ };
19
+ export type AccountState = (typeof AccountState)[keyof typeof AccountState];
13
20
  export declare const AlternateContactType: {
14
21
  readonly BILLING: "BILLING";
15
22
  readonly OPERATIONS: "OPERATIONS";
@@ -1,4 +1,5 @@
1
1
  import {
2
+ AccountState,
2
3
  AlternateContactType,
3
4
  AwsAccountState,
4
5
  PrimaryEmailUpdateStatus,
@@ -23,6 +24,7 @@ export interface GetAccountInformationResponse {
23
24
  AccountId?: string | undefined;
24
25
  AccountName?: string | undefined;
25
26
  AccountCreatedDate?: Date | undefined;
27
+ AccountState?: AccountState | undefined;
26
28
  }
27
29
  export interface PutAccountNameRequest {
28
30
  AccountName: string | 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.1038.0",
4
+ "version": "3.1039.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
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.974.6",
25
- "@aws-sdk/credential-provider-node": "^3.972.37",
24
+ "@aws-sdk/core": "^3.974.7",
25
+ "@aws-sdk/credential-provider-node": "^3.972.38",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.10",
27
27
  "@aws-sdk/middleware-logger": "^3.972.10",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
29
- "@aws-sdk/middleware-user-agent": "^3.972.36",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.37",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.13",
31
31
  "@aws-sdk/types": "^3.973.8",
32
32
  "@aws-sdk/util-endpoints": "^3.996.8",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
34
- "@aws-sdk/util-user-agent-node": "^3.973.22",
34
+ "@aws-sdk/util-user-agent-node": "^3.973.23",
35
35
  "@smithy/config-resolver": "^4.4.17",
36
36
  "@smithy/core": "^3.23.17",
37
37
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -39,7 +39,7 @@
39
39
  "@smithy/invalid-dependency": "^4.2.14",
40
40
  "@smithy/middleware-content-length": "^4.2.14",
41
41
  "@smithy/middleware-endpoint": "^4.4.32",
42
- "@smithy/middleware-retry": "^4.5.6",
42
+ "@smithy/middleware-retry": "^4.5.7",
43
43
  "@smithy/middleware-serde": "^4.2.20",
44
44
  "@smithy/middleware-stack": "^4.2.14",
45
45
  "@smithy/node-config-provider": "^4.3.14",
@@ -55,7 +55,7 @@
55
55
  "@smithy/util-defaults-mode-node": "^4.2.54",
56
56
  "@smithy/util-endpoints": "^3.4.2",
57
57
  "@smithy/util-middleware": "^4.2.14",
58
- "@smithy/util-retry": "^4.3.5",
58
+ "@smithy/util-retry": "^4.3.6",
59
59
  "@smithy/util-utf8": "^4.2.2",
60
60
  "tslib": "^2.6.2"
61
61
  },