@aws-sdk/client-account 3.1094.0 → 3.1096.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 CHANGED
@@ -244,6 +244,13 @@ GetPrimaryEmail
244
244
  </details>
245
245
  <details>
246
246
  <summary>
247
+ GetPrimaryEmailUpdateStatus
248
+ </summary>
249
+
250
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/GetPrimaryEmailUpdateStatusCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetPrimaryEmailUpdateStatusCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetPrimaryEmailUpdateStatusCommandOutput/)
251
+ </details>
252
+ <details>
253
+ <summary>
247
254
  GetRegionOptStatus
248
255
  </summary>
249
256
 
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1093.0";
72
+ var version = "3.1095.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -288,6 +288,9 @@ const _GGCAIRe = "GetGovCloudAccountInformationResponse";
288
288
  const _GPE = "GetPrimaryEmail";
289
289
  const _GPER = "GetPrimaryEmailRequest";
290
290
  const _GPERe = "GetPrimaryEmailResponse";
291
+ const _GPEUS = "GetPrimaryEmailUpdateStatus";
292
+ const _GPEUSR = "GetPrimaryEmailUpdateStatusRequest";
293
+ const _GPEUSRe = "GetPrimaryEmailUpdateStatusResponse";
291
294
  const _GROS = "GetRegionOptStatus";
292
295
  const _GROSR = "GetRegionOptStatusRequest";
293
296
  const _GROSRe = "GetRegionOptStatusResponse";
@@ -326,6 +329,7 @@ const _SPEURt = "StartPrimaryEmailUpdateResponse";
326
329
  const _SS = "SensitiveString";
327
330
  const _T = "Title";
328
331
  const _TMRE = "TooManyRequestsException";
332
+ const _UA = "UpdatedAt";
329
333
  const _VE = "ValidationException";
330
334
  const _VEF = "ValidationExceptionField";
331
335
  const _VEFL = "ValidationExceptionFieldList";
@@ -497,6 +501,16 @@ var GetPrimaryEmailResponse$ = [3, n0, _GPERe,
497
501
  [_PE],
498
502
  [[() => PrimaryEmailAddress, 0]]
499
503
  ];
504
+ var GetPrimaryEmailUpdateStatusRequest$ = [3, n0, _GPEUSR,
505
+ 0,
506
+ [_AI],
507
+ [0]
508
+ ];
509
+ var GetPrimaryEmailUpdateStatusResponse$ = [3, n0, _GPEUSRe,
510
+ 0,
511
+ [_S, _UA],
512
+ [0, 4], 1
513
+ ];
500
514
  var GetRegionOptStatusRequest$ = [3, n0, _GROSR,
501
515
  0,
502
516
  [_RN, _AI],
@@ -587,6 +601,9 @@ var GetGovCloudAccountInformation$ = [9, n0, _GGCAI,
587
601
  var GetPrimaryEmail$ = [9, n0, _GPE,
588
602
  { [_h]: ["POST", "/getPrimaryEmail", 200] }, () => GetPrimaryEmailRequest$, () => GetPrimaryEmailResponse$
589
603
  ];
604
+ var GetPrimaryEmailUpdateStatus$ = [9, n0, _GPEUS,
605
+ { [_h]: ["POST", "/getPrimaryEmailUpdateStatus", 200] }, () => GetPrimaryEmailUpdateStatusRequest$, () => GetPrimaryEmailUpdateStatusResponse$
606
+ ];
590
607
  var GetRegionOptStatus$ = [9, n0, _GROS,
591
608
  { [_h]: ["POST", "/getRegionOptStatus", 200] }, () => GetRegionOptStatusRequest$, () => GetRegionOptStatusResponse$
592
609
  ];
@@ -783,6 +800,9 @@ class GetGovCloudAccountInformationCommand extends command(_ep0, _mw0, "GetGovCl
783
800
  class GetPrimaryEmailCommand extends command(_ep0, _mw0, "GetPrimaryEmail", GetPrimaryEmail$) {
784
801
  }
785
802
 
803
+ class GetPrimaryEmailUpdateStatusCommand extends command(_ep0, _mw0, "GetPrimaryEmailUpdateStatus", GetPrimaryEmailUpdateStatus$) {
804
+ }
805
+
786
806
  class GetRegionOptStatusCommand extends command(_ep0, _mw0, "GetRegionOptStatus", GetRegionOptStatus$) {
787
807
  }
788
808
 
@@ -813,6 +833,7 @@ const commands = {
813
833
  GetContactInformationCommand,
814
834
  GetGovCloudAccountInformationCommand,
815
835
  GetPrimaryEmailCommand,
836
+ GetPrimaryEmailUpdateStatusCommand,
816
837
  GetRegionOptStatusCommand,
817
838
  ListRegionsCommand,
818
839
  PutAccountNameCommand,
@@ -829,6 +850,8 @@ createAggregatedClient(commands, Account, { paginators });
829
850
 
830
851
  const PrimaryEmailUpdateStatus = {
831
852
  ACCEPTED: "ACCEPTED",
853
+ COMPLETED: "COMPLETED",
854
+ FAILED: "FAILED",
832
855
  PENDING: "PENDING",
833
856
  };
834
857
  const ValidationExceptionReason = {
@@ -906,6 +929,10 @@ exports.GetPrimaryEmail$ = GetPrimaryEmail$;
906
929
  exports.GetPrimaryEmailCommand = GetPrimaryEmailCommand;
907
930
  exports.GetPrimaryEmailRequest$ = GetPrimaryEmailRequest$;
908
931
  exports.GetPrimaryEmailResponse$ = GetPrimaryEmailResponse$;
932
+ exports.GetPrimaryEmailUpdateStatus$ = GetPrimaryEmailUpdateStatus$;
933
+ exports.GetPrimaryEmailUpdateStatusCommand = GetPrimaryEmailUpdateStatusCommand;
934
+ exports.GetPrimaryEmailUpdateStatusRequest$ = GetPrimaryEmailUpdateStatusRequest$;
935
+ exports.GetPrimaryEmailUpdateStatusResponse$ = GetPrimaryEmailUpdateStatusResponse$;
909
936
  exports.GetRegionOptStatus$ = GetRegionOptStatus$;
910
937
  exports.GetRegionOptStatusCommand = GetRegionOptStatusCommand;
911
938
  exports.GetRegionOptStatusRequest$ = GetRegionOptStatusRequest$;
@@ -9,6 +9,7 @@ import { GetAlternateContactCommand, } from "./commands/GetAlternateContactComma
9
9
  import { GetContactInformationCommand, } from "./commands/GetContactInformationCommand";
10
10
  import { GetGovCloudAccountInformationCommand, } from "./commands/GetGovCloudAccountInformationCommand";
11
11
  import { GetPrimaryEmailCommand, } from "./commands/GetPrimaryEmailCommand";
12
+ import { GetPrimaryEmailUpdateStatusCommand, } from "./commands/GetPrimaryEmailUpdateStatusCommand";
12
13
  import { GetRegionOptStatusCommand, } from "./commands/GetRegionOptStatusCommand";
13
14
  import { ListRegionsCommand, } from "./commands/ListRegionsCommand";
14
15
  import { PutAccountNameCommand, } from "./commands/PutAccountNameCommand";
@@ -26,6 +27,7 @@ const commands = {
26
27
  GetContactInformationCommand,
27
28
  GetGovCloudAccountInformationCommand,
28
29
  GetPrimaryEmailCommand,
30
+ GetPrimaryEmailUpdateStatusCommand,
29
31
  GetRegionOptStatusCommand,
30
32
  ListRegionsCommand,
31
33
  PutAccountNameCommand,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetPrimaryEmailUpdateStatus$ } from "../schemas/schemas_0";
3
+ export class GetPrimaryEmailUpdateStatusCommand extends command(_ep0, _mw0, "GetPrimaryEmailUpdateStatus", GetPrimaryEmailUpdateStatus$) {
4
+ }
@@ -7,6 +7,7 @@ export * from "./GetAlternateContactCommand";
7
7
  export * from "./GetContactInformationCommand";
8
8
  export * from "./GetGovCloudAccountInformationCommand";
9
9
  export * from "./GetPrimaryEmailCommand";
10
+ export * from "./GetPrimaryEmailUpdateStatusCommand";
10
11
  export * from "./GetRegionOptStatusCommand";
11
12
  export * from "./ListRegionsCommand";
12
13
  export * from "./PutAccountNameCommand";
@@ -1,5 +1,7 @@
1
1
  export const PrimaryEmailUpdateStatus = {
2
2
  ACCEPTED: "ACCEPTED",
3
+ COMPLETED: "COMPLETED",
4
+ FAILED: "FAILED",
3
5
  PENDING: "PENDING",
4
6
  };
5
7
  export const ValidationExceptionReason = {
@@ -43,6 +43,9 @@ const _GGCAIRe = "GetGovCloudAccountInformationResponse";
43
43
  const _GPE = "GetPrimaryEmail";
44
44
  const _GPER = "GetPrimaryEmailRequest";
45
45
  const _GPERe = "GetPrimaryEmailResponse";
46
+ const _GPEUS = "GetPrimaryEmailUpdateStatus";
47
+ const _GPEUSR = "GetPrimaryEmailUpdateStatusRequest";
48
+ const _GPEUSRe = "GetPrimaryEmailUpdateStatusResponse";
46
49
  const _GROS = "GetRegionOptStatus";
47
50
  const _GROSR = "GetRegionOptStatusRequest";
48
51
  const _GROSRe = "GetRegionOptStatusResponse";
@@ -81,6 +84,7 @@ const _SPEURt = "StartPrimaryEmailUpdateResponse";
81
84
  const _SS = "SensitiveString";
82
85
  const _T = "Title";
83
86
  const _TMRE = "TooManyRequestsException";
87
+ const _UA = "UpdatedAt";
84
88
  const _VE = "ValidationException";
85
89
  const _VEF = "ValidationExceptionField";
86
90
  const _VEFL = "ValidationExceptionFieldList";
@@ -255,6 +259,16 @@ export var GetPrimaryEmailResponse$ = [3, n0, _GPERe,
255
259
  [_PE],
256
260
  [[() => PrimaryEmailAddress, 0]]
257
261
  ];
262
+ export var GetPrimaryEmailUpdateStatusRequest$ = [3, n0, _GPEUSR,
263
+ 0,
264
+ [_AI],
265
+ [0]
266
+ ];
267
+ export var GetPrimaryEmailUpdateStatusResponse$ = [3, n0, _GPEUSRe,
268
+ 0,
269
+ [_S, _UA],
270
+ [0, 4], 1
271
+ ];
258
272
  export var GetRegionOptStatusRequest$ = [3, n0, _GROSR,
259
273
  0,
260
274
  [_RN, _AI],
@@ -346,6 +360,9 @@ export var GetGovCloudAccountInformation$ = [9, n0, _GGCAI,
346
360
  export var GetPrimaryEmail$ = [9, n0, _GPE,
347
361
  { [_h]: ["POST", "/getPrimaryEmail", 200] }, () => GetPrimaryEmailRequest$, () => GetPrimaryEmailResponse$
348
362
  ];
363
+ export var GetPrimaryEmailUpdateStatus$ = [9, n0, _GPEUS,
364
+ { [_h]: ["POST", "/getPrimaryEmailUpdateStatus", 200] }, () => GetPrimaryEmailUpdateStatusRequest$, () => GetPrimaryEmailUpdateStatusResponse$
365
+ ];
349
366
  export var GetRegionOptStatus$ = [9, n0, _GROS,
350
367
  { [_h]: ["POST", "/getRegionOptStatus", 200] }, () => GetRegionOptStatusRequest$, () => GetRegionOptStatusResponse$
351
368
  ];
@@ -9,6 +9,7 @@ import { type GetAlternateContactCommandInput, type GetAlternateContactCommandOu
9
9
  import { type GetContactInformationCommandInput, type GetContactInformationCommandOutput } from "./commands/GetContactInformationCommand";
10
10
  import { type GetGovCloudAccountInformationCommandInput, type GetGovCloudAccountInformationCommandOutput } from "./commands/GetGovCloudAccountInformationCommand";
11
11
  import { type GetPrimaryEmailCommandInput, type GetPrimaryEmailCommandOutput } from "./commands/GetPrimaryEmailCommand";
12
+ import { type GetPrimaryEmailUpdateStatusCommandInput, type GetPrimaryEmailUpdateStatusCommandOutput } from "./commands/GetPrimaryEmailUpdateStatusCommand";
12
13
  import { type GetRegionOptStatusCommandInput, type GetRegionOptStatusCommandOutput } from "./commands/GetRegionOptStatusCommand";
13
14
  import { type ListRegionsCommandInput, type ListRegionsCommandOutput } from "./commands/ListRegionsCommand";
14
15
  import { type PutAccountNameCommandInput, type PutAccountNameCommandOutput } from "./commands/PutAccountNameCommand";
@@ -73,6 +74,13 @@ export interface Account {
73
74
  getPrimaryEmail(args: GetPrimaryEmailCommandInput, options?: __HttpHandlerOptions): Promise<GetPrimaryEmailCommandOutput>;
74
75
  getPrimaryEmail(args: GetPrimaryEmailCommandInput, cb: (err: any, data?: GetPrimaryEmailCommandOutput) => void): void;
75
76
  getPrimaryEmail(args: GetPrimaryEmailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPrimaryEmailCommandOutput) => void): void;
77
+ /**
78
+ * @see {@link GetPrimaryEmailUpdateStatusCommand}
79
+ */
80
+ getPrimaryEmailUpdateStatus(): Promise<GetPrimaryEmailUpdateStatusCommandOutput>;
81
+ getPrimaryEmailUpdateStatus(args: GetPrimaryEmailUpdateStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetPrimaryEmailUpdateStatusCommandOutput>;
82
+ getPrimaryEmailUpdateStatus(args: GetPrimaryEmailUpdateStatusCommandInput, cb: (err: any, data?: GetPrimaryEmailUpdateStatusCommandOutput) => void): void;
83
+ getPrimaryEmailUpdateStatus(args: GetPrimaryEmailUpdateStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPrimaryEmailUpdateStatusCommandOutput) => void): void;
76
84
  /**
77
85
  * @see {@link GetRegionOptStatusCommand}
78
86
  */
@@ -15,6 +15,7 @@ import type { GetAlternateContactCommandInput, GetAlternateContactCommandOutput
15
15
  import type { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "./commands/GetContactInformationCommand";
16
16
  import type { GetGovCloudAccountInformationCommandInput, GetGovCloudAccountInformationCommandOutput } from "./commands/GetGovCloudAccountInformationCommand";
17
17
  import type { GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput } from "./commands/GetPrimaryEmailCommand";
18
+ import type { GetPrimaryEmailUpdateStatusCommandInput, GetPrimaryEmailUpdateStatusCommandOutput } from "./commands/GetPrimaryEmailUpdateStatusCommand";
18
19
  import type { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "./commands/GetRegionOptStatusCommand";
19
20
  import type { ListRegionsCommandInput, ListRegionsCommandOutput } from "./commands/ListRegionsCommand";
20
21
  import type { PutAccountNameCommandInput, PutAccountNameCommandOutput } from "./commands/PutAccountNameCommand";
@@ -27,11 +28,11 @@ export { __Client };
27
28
  /**
28
29
  * @public
29
30
  */
30
- export type ServiceInputTypes = AcceptPrimaryEmailUpdateCommandInput | DeleteAlternateContactCommandInput | DisableRegionCommandInput | EnableRegionCommandInput | GetAccountInformationCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | GetGovCloudAccountInformationCommandInput | GetPrimaryEmailCommandInput | GetRegionOptStatusCommandInput | ListRegionsCommandInput | PutAccountNameCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput | StartPrimaryEmailUpdateCommandInput;
31
+ export type ServiceInputTypes = AcceptPrimaryEmailUpdateCommandInput | DeleteAlternateContactCommandInput | DisableRegionCommandInput | EnableRegionCommandInput | GetAccountInformationCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | GetGovCloudAccountInformationCommandInput | GetPrimaryEmailCommandInput | GetPrimaryEmailUpdateStatusCommandInput | GetRegionOptStatusCommandInput | ListRegionsCommandInput | PutAccountNameCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput | StartPrimaryEmailUpdateCommandInput;
31
32
  /**
32
33
  * @public
33
34
  */
34
- export type ServiceOutputTypes = AcceptPrimaryEmailUpdateCommandOutput | DeleteAlternateContactCommandOutput | DisableRegionCommandOutput | EnableRegionCommandOutput | GetAccountInformationCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | GetGovCloudAccountInformationCommandOutput | GetPrimaryEmailCommandOutput | GetRegionOptStatusCommandOutput | ListRegionsCommandOutput | PutAccountNameCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput | StartPrimaryEmailUpdateCommandOutput;
35
+ export type ServiceOutputTypes = AcceptPrimaryEmailUpdateCommandOutput | DeleteAlternateContactCommandOutput | DisableRegionCommandOutput | EnableRegionCommandOutput | GetAccountInformationCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | GetGovCloudAccountInformationCommandOutput | GetPrimaryEmailCommandOutput | GetPrimaryEmailUpdateStatusCommandOutput | GetRegionOptStatusCommandOutput | ListRegionsCommandOutput | PutAccountNameCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput | StartPrimaryEmailUpdateCommandOutput;
35
36
  /**
36
37
  * @public
37
38
  */
@@ -0,0 +1,87 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { GetPrimaryEmailUpdateStatusRequest, GetPrimaryEmailUpdateStatusResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link GetPrimaryEmailUpdateStatusCommand}.
11
+ */
12
+ export interface GetPrimaryEmailUpdateStatusCommandInput extends GetPrimaryEmailUpdateStatusRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link GetPrimaryEmailUpdateStatusCommand}.
18
+ */
19
+ export interface GetPrimaryEmailUpdateStatusCommandOutput extends GetPrimaryEmailUpdateStatusResponse, __MetadataBearer {
20
+ }
21
+ declare const GetPrimaryEmailUpdateStatusCommand_base: {
22
+ new (input: GetPrimaryEmailUpdateStatusCommandInput): import("@smithy/core/client").CommandImpl<GetPrimaryEmailUpdateStatusCommandInput, GetPrimaryEmailUpdateStatusCommandOutput, import("..").AccountClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [GetPrimaryEmailUpdateStatusCommandInput]): import("@smithy/core/client").CommandImpl<GetPrimaryEmailUpdateStatusCommandInput, GetPrimaryEmailUpdateStatusCommandOutput, import("..").AccountClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Retrieves the status of the most recent primary email update for the specified account. For complete details about how to update the primary email address, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-root-user-email.html">Update the primary email address for your AWS account</a>.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { AccountClient, GetPrimaryEmailUpdateStatusCommand } from "@aws-sdk/client-account"; // ES Modules import
32
+ * // const { AccountClient, GetPrimaryEmailUpdateStatusCommand } = require("@aws-sdk/client-account"); // CommonJS import
33
+ * // import type { AccountClientConfig } from "@aws-sdk/client-account";
34
+ * const config = {}; // type is AccountClientConfig
35
+ * const client = new AccountClient(config);
36
+ * const input = { // GetPrimaryEmailUpdateStatusRequest
37
+ * AccountId: "STRING_VALUE",
38
+ * };
39
+ * const command = new GetPrimaryEmailUpdateStatusCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // GetPrimaryEmailUpdateStatusResponse
42
+ * // Status: "STRING_VALUE", // required
43
+ * // UpdatedAt: new Date("TIMESTAMP"),
44
+ * // };
45
+ *
46
+ * ```
47
+ *
48
+ * @param GetPrimaryEmailUpdateStatusCommandInput - {@link GetPrimaryEmailUpdateStatusCommandInput}
49
+ * @returns {@link GetPrimaryEmailUpdateStatusCommandOutput}
50
+ * @see {@link GetPrimaryEmailUpdateStatusCommandInput} for command's `input` shape.
51
+ * @see {@link GetPrimaryEmailUpdateStatusCommandOutput} for command's `response` shape.
52
+ * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>The operation failed because the calling identity doesn't have the minimum required permissions.</p>
56
+ *
57
+ * @throws {@link InternalServerException} (server fault)
58
+ * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again later.</p>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <p>The operation failed because it specified a resource that can't be found.</p>
62
+ *
63
+ * @throws {@link TooManyRequestsException} (client fault)
64
+ * <p>The operation failed because it was called too frequently and exceeded a throttle limit.</p>
65
+ *
66
+ * @throws {@link ValidationException} (client fault)
67
+ * <p>The operation failed because one of the input parameters was invalid.</p>
68
+ *
69
+ * @throws {@link AccountServiceException}
70
+ * <p>Base exception class for all service exceptions from Account service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class GetPrimaryEmailUpdateStatusCommand extends GetPrimaryEmailUpdateStatusCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: GetPrimaryEmailUpdateStatusRequest;
80
+ output: GetPrimaryEmailUpdateStatusResponse;
81
+ };
82
+ sdk: {
83
+ input: GetPrimaryEmailUpdateStatusCommandInput;
84
+ output: GetPrimaryEmailUpdateStatusCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -7,6 +7,7 @@ export * from "./GetAlternateContactCommand";
7
7
  export * from "./GetContactInformationCommand";
8
8
  export * from "./GetGovCloudAccountInformationCommand";
9
9
  export * from "./GetPrimaryEmailCommand";
10
+ export * from "./GetPrimaryEmailUpdateStatusCommand";
10
11
  export * from "./GetRegionOptStatusCommand";
11
12
  export * from "./ListRegionsCommand";
12
13
  export * from "./PutAccountNameCommand";
@@ -4,6 +4,8 @@
4
4
  */
5
5
  export declare const PrimaryEmailUpdateStatus: {
6
6
  readonly ACCEPTED: "ACCEPTED";
7
+ readonly COMPLETED: "COMPLETED";
8
+ readonly FAILED: "FAILED";
7
9
  readonly PENDING: "PENDING";
8
10
  };
9
11
  /**
@@ -347,6 +347,31 @@ export interface GetPrimaryEmailResponse {
347
347
  */
348
348
  PrimaryEmail?: string | undefined;
349
349
  }
350
+ /**
351
+ * @public
352
+ */
353
+ export interface GetPrimaryEmailUpdateStatusRequest {
354
+ /**
355
+ * <p>Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access or modify with this 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/orgs_integrate_services.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 admin</a> account assigned.</p> <p>This operation can only be called from the management account or the delegated administrator account of an organization for a member account.</p> <note> <p>The management account can't specify its own <code>AccountId</code>.</p> </note>
356
+ * @public
357
+ */
358
+ AccountId?: string | undefined;
359
+ }
360
+ /**
361
+ * @public
362
+ */
363
+ export interface GetPrimaryEmailUpdateStatusResponse {
364
+ /**
365
+ * <p>The status of the most recent primary email update request.</p>
366
+ * @public
367
+ */
368
+ Status: PrimaryEmailUpdateStatus | undefined;
369
+ /**
370
+ * <p>The date and time that the most recent primary email update status was last changed.</p>
371
+ * @public
372
+ */
373
+ UpdatedAt?: Date | undefined;
374
+ }
350
375
  /**
351
376
  * @public
352
377
  */
@@ -42,6 +42,7 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
42
42
  logger?: import("@smithy/types").Logger;
43
43
  }) => import("@smithy/types").EndpointV2;
44
44
  tls?: boolean;
45
+ ignoreConfiguredEndpointUrls?: boolean;
45
46
  serviceConfiguredEndpoint?: never;
46
47
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
47
48
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
@@ -52,4 +53,5 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
52
53
  systemClockOffset?: number;
53
54
  signingRegion?: string;
54
55
  signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
56
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
55
57
  };
@@ -43,6 +43,7 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
43
43
  logger?: import("@smithy/types").Logger;
44
44
  }) => import("@smithy/types").EndpointV2;
45
45
  tls?: boolean;
46
+ ignoreConfiguredEndpointUrls?: boolean;
46
47
  serviceConfiguredEndpoint?: never;
47
48
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
48
49
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AccountHttpAuthSchemeProvider;
@@ -52,4 +53,5 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
52
53
  systemClockOffset?: number;
53
54
  signingRegion?: string;
54
55
  signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
56
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
55
57
  };
@@ -41,6 +41,7 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
41
41
  logger?: import("@smithy/types").Logger;
42
42
  }) => import("@smithy/types").EndpointV2;
43
43
  tls?: boolean;
44
+ ignoreConfiguredEndpointUrls?: boolean;
44
45
  serviceConfiguredEndpoint?: never;
45
46
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
46
47
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
@@ -51,4 +52,5 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
51
52
  systemClockOffset?: number;
52
53
  signingRegion?: string;
53
54
  signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
55
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
54
56
  };
@@ -31,6 +31,8 @@ export declare var GetGovCloudAccountInformationRequest$: StaticStructureSchema;
31
31
  export declare var GetGovCloudAccountInformationResponse$: StaticStructureSchema;
32
32
  export declare var GetPrimaryEmailRequest$: StaticStructureSchema;
33
33
  export declare var GetPrimaryEmailResponse$: StaticStructureSchema;
34
+ export declare var GetPrimaryEmailUpdateStatusRequest$: StaticStructureSchema;
35
+ export declare var GetPrimaryEmailUpdateStatusResponse$: StaticStructureSchema;
34
36
  export declare var GetRegionOptStatusRequest$: StaticStructureSchema;
35
37
  export declare var GetRegionOptStatusResponse$: StaticStructureSchema;
36
38
  export declare var ListRegionsRequest$: StaticStructureSchema;
@@ -51,6 +53,7 @@ export declare var GetAlternateContact$: StaticOperationSchema;
51
53
  export declare var GetContactInformation$: StaticOperationSchema;
52
54
  export declare var GetGovCloudAccountInformation$: StaticOperationSchema;
53
55
  export declare var GetPrimaryEmail$: StaticOperationSchema;
56
+ export declare var GetPrimaryEmailUpdateStatus$: StaticOperationSchema;
54
57
  export declare var GetRegionOptStatus$: StaticOperationSchema;
55
58
  export declare var ListRegions$: StaticOperationSchema;
56
59
  export declare var PutAccountName$: StaticOperationSchema;
@@ -40,6 +40,10 @@ import {
40
40
  GetPrimaryEmailCommandInput,
41
41
  GetPrimaryEmailCommandOutput,
42
42
  } from "./commands/GetPrimaryEmailCommand";
43
+ import {
44
+ GetPrimaryEmailUpdateStatusCommandInput,
45
+ GetPrimaryEmailUpdateStatusCommandOutput,
46
+ } from "./commands/GetPrimaryEmailUpdateStatusCommand";
43
47
  import {
44
48
  GetRegionOptStatusCommandInput,
45
49
  GetRegionOptStatusCommandOutput,
@@ -182,6 +186,20 @@ export interface Account {
182
186
  options: __HttpHandlerOptions,
183
187
  cb: (err: any, data?: GetPrimaryEmailCommandOutput) => void,
184
188
  ): void;
189
+ getPrimaryEmailUpdateStatus(): Promise<GetPrimaryEmailUpdateStatusCommandOutput>;
190
+ getPrimaryEmailUpdateStatus(
191
+ args: GetPrimaryEmailUpdateStatusCommandInput,
192
+ options?: __HttpHandlerOptions,
193
+ ): Promise<GetPrimaryEmailUpdateStatusCommandOutput>;
194
+ getPrimaryEmailUpdateStatus(
195
+ args: GetPrimaryEmailUpdateStatusCommandInput,
196
+ cb: (err: any, data?: GetPrimaryEmailUpdateStatusCommandOutput) => void,
197
+ ): void;
198
+ getPrimaryEmailUpdateStatus(
199
+ args: GetPrimaryEmailUpdateStatusCommandInput,
200
+ options: __HttpHandlerOptions,
201
+ cb: (err: any, data?: GetPrimaryEmailUpdateStatusCommandOutput) => void,
202
+ ): void;
185
203
  getRegionOptStatus(
186
204
  args: GetRegionOptStatusCommandInput,
187
205
  options?: __HttpHandlerOptions,
@@ -69,6 +69,10 @@ import {
69
69
  GetPrimaryEmailCommandInput,
70
70
  GetPrimaryEmailCommandOutput,
71
71
  } from "./commands/GetPrimaryEmailCommand";
72
+ import {
73
+ GetPrimaryEmailUpdateStatusCommandInput,
74
+ GetPrimaryEmailUpdateStatusCommandOutput,
75
+ } from "./commands/GetPrimaryEmailUpdateStatusCommand";
72
76
  import {
73
77
  GetRegionOptStatusCommandInput,
74
78
  GetRegionOptStatusCommandOutput,
@@ -107,6 +111,7 @@ export type ServiceInputTypes =
107
111
  | GetContactInformationCommandInput
108
112
  | GetGovCloudAccountInformationCommandInput
109
113
  | GetPrimaryEmailCommandInput
114
+ | GetPrimaryEmailUpdateStatusCommandInput
110
115
  | GetRegionOptStatusCommandInput
111
116
  | ListRegionsCommandInput
112
117
  | PutAccountNameCommandInput
@@ -123,6 +128,7 @@ export type ServiceOutputTypes =
123
128
  | GetContactInformationCommandOutput
124
129
  | GetGovCloudAccountInformationCommandOutput
125
130
  | GetPrimaryEmailCommandOutput
131
+ | GetPrimaryEmailUpdateStatusCommandOutput
126
132
  | GetRegionOptStatusCommandOutput
127
133
  | ListRegionsCommandOutput
128
134
  | PutAccountNameCommandOutput
@@ -0,0 +1,42 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ GetPrimaryEmailUpdateStatusRequest,
4
+ GetPrimaryEmailUpdateStatusResponse,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface GetPrimaryEmailUpdateStatusCommandInput extends GetPrimaryEmailUpdateStatusRequest {}
8
+ export interface GetPrimaryEmailUpdateStatusCommandOutput
9
+ extends GetPrimaryEmailUpdateStatusResponse, __MetadataBearer {}
10
+ declare const GetPrimaryEmailUpdateStatusCommand_base: {
11
+ new (
12
+ input: GetPrimaryEmailUpdateStatusCommandInput,
13
+ ): import("@smithy/core/client").CommandImpl<
14
+ GetPrimaryEmailUpdateStatusCommandInput,
15
+ GetPrimaryEmailUpdateStatusCommandOutput,
16
+ import("..").AccountClientResolvedConfig,
17
+ import("..").ServiceInputTypes,
18
+ import("..").ServiceOutputTypes
19
+ >;
20
+ new (
21
+ ...[input]: [] | [GetPrimaryEmailUpdateStatusCommandInput]
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ GetPrimaryEmailUpdateStatusCommandInput,
24
+ GetPrimaryEmailUpdateStatusCommandOutput,
25
+ import("..").AccountClientResolvedConfig,
26
+ import("..").ServiceInputTypes,
27
+ import("..").ServiceOutputTypes
28
+ >;
29
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
+ };
31
+ export declare class GetPrimaryEmailUpdateStatusCommand extends GetPrimaryEmailUpdateStatusCommand_base {
32
+ protected static __types: {
33
+ api: {
34
+ input: GetPrimaryEmailUpdateStatusRequest;
35
+ output: GetPrimaryEmailUpdateStatusResponse;
36
+ };
37
+ sdk: {
38
+ input: GetPrimaryEmailUpdateStatusCommandInput;
39
+ output: GetPrimaryEmailUpdateStatusCommandOutput;
40
+ };
41
+ };
42
+ }
@@ -7,6 +7,7 @@ export * from "./GetAlternateContactCommand";
7
7
  export * from "./GetContactInformationCommand";
8
8
  export * from "./GetGovCloudAccountInformationCommand";
9
9
  export * from "./GetPrimaryEmailCommand";
10
+ export * from "./GetPrimaryEmailUpdateStatusCommand";
10
11
  export * from "./GetRegionOptStatusCommand";
11
12
  export * from "./ListRegionsCommand";
12
13
  export * from "./PutAccountNameCommand";
@@ -1,5 +1,7 @@
1
1
  export declare const PrimaryEmailUpdateStatus: {
2
2
  readonly ACCEPTED: "ACCEPTED";
3
+ readonly COMPLETED: "COMPLETED";
4
+ readonly FAILED: "FAILED";
3
5
  readonly PENDING: "PENDING";
4
6
  };
5
7
  export type PrimaryEmailUpdateStatus =
@@ -93,6 +93,13 @@ export interface GetPrimaryEmailRequest {
93
93
  export interface GetPrimaryEmailResponse {
94
94
  PrimaryEmail?: string | undefined;
95
95
  }
96
+ export interface GetPrimaryEmailUpdateStatusRequest {
97
+ AccountId?: string | undefined;
98
+ }
99
+ export interface GetPrimaryEmailUpdateStatusResponse {
100
+ Status: PrimaryEmailUpdateStatus | undefined;
101
+ UpdatedAt?: Date | undefined;
102
+ }
96
103
  export interface StartPrimaryEmailUpdateRequest {
97
104
  AccountId: string | undefined;
98
105
  PrimaryEmail: string | undefined;
@@ -71,6 +71,7 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
71
71
  },
72
72
  ) => import("@smithy/types").EndpointV2;
73
73
  tls?: boolean;
74
+ ignoreConfiguredEndpointUrls?: boolean;
74
75
  serviceConfiguredEndpoint?: never;
75
76
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
76
77
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
@@ -90,4 +91,5 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
90
91
  options: import("@smithy/signature-v4").SignatureV4Init &
91
92
  import("@smithy/signature-v4").SignatureV4CryptoInit,
92
93
  ) => import("@smithy/types").RequestSigner;
94
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
93
95
  };
@@ -72,6 +72,7 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
72
72
  },
73
73
  ) => import("@smithy/types").EndpointV2;
74
74
  tls?: boolean;
75
+ ignoreConfiguredEndpointUrls?: boolean;
75
76
  serviceConfiguredEndpoint?: never;
76
77
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
77
78
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AccountHttpAuthSchemeProvider;
@@ -90,4 +91,5 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
90
91
  options: import("@smithy/signature-v4").SignatureV4Init &
91
92
  import("@smithy/signature-v4").SignatureV4CryptoInit,
92
93
  ) => import("@smithy/types").RequestSigner;
94
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
93
95
  };
@@ -75,6 +75,7 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
75
75
  },
76
76
  ) => import("@smithy/types").EndpointV2;
77
77
  tls?: boolean;
78
+ ignoreConfiguredEndpointUrls?: boolean;
78
79
  serviceConfiguredEndpoint?: never;
79
80
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
80
81
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
@@ -94,4 +95,5 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
94
95
  options: import("@smithy/signature-v4").SignatureV4Init &
95
96
  import("@smithy/signature-v4").SignatureV4CryptoInit,
96
97
  ) => import("@smithy/types").RequestSigner;
98
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
97
99
  };
@@ -26,6 +26,8 @@ export declare var GetGovCloudAccountInformationRequest$: StaticStructureSchema;
26
26
  export declare var GetGovCloudAccountInformationResponse$: StaticStructureSchema;
27
27
  export declare var GetPrimaryEmailRequest$: StaticStructureSchema;
28
28
  export declare var GetPrimaryEmailResponse$: StaticStructureSchema;
29
+ export declare var GetPrimaryEmailUpdateStatusRequest$: StaticStructureSchema;
30
+ export declare var GetPrimaryEmailUpdateStatusResponse$: StaticStructureSchema;
29
31
  export declare var GetRegionOptStatusRequest$: StaticStructureSchema;
30
32
  export declare var GetRegionOptStatusResponse$: StaticStructureSchema;
31
33
  export declare var ListRegionsRequest$: StaticStructureSchema;
@@ -46,6 +48,7 @@ export declare var GetAlternateContact$: StaticOperationSchema;
46
48
  export declare var GetContactInformation$: StaticOperationSchema;
47
49
  export declare var GetGovCloudAccountInformation$: StaticOperationSchema;
48
50
  export declare var GetPrimaryEmail$: StaticOperationSchema;
51
+ export declare var GetPrimaryEmailUpdateStatus$: StaticOperationSchema;
49
52
  export declare var GetRegionOptStatus$: StaticOperationSchema;
50
53
  export declare var ListRegions$: StaticOperationSchema;
51
54
  export declare var PutAccountName$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-account",
3
- "version": "3.1094.0",
3
+ "version": "3.1096.0",
4
4
  "description": "AWS SDK for JavaScript Account Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-account",
6
6
  "license": "Apache-2.0",
@@ -46,12 +46,12 @@
46
46
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.976.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.71",
49
+ "@aws-sdk/core": "^3.977.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.73",
51
51
  "@aws-sdk/types": "^3.974.2",
52
- "@smithy/core": "^3.29.4",
53
- "@smithy/fetch-http-handler": "^5.6.6",
54
- "@smithy/node-http-handler": "^4.9.6",
52
+ "@smithy/core": "^3.29.8",
53
+ "@smithy/fetch-http-handler": "^5.6.10",
54
+ "@smithy/node-http-handler": "^4.9.10",
55
55
  "@smithy/types": "^4.16.1",
56
56
  "tslib": "^2.6.2"
57
57
  },