diff --git a/clients/client-account/README.md b/clients/client-account/README.md
index 6072f6592cafa..67b7e4557ea40 100644
--- a/clients/client-account/README.md
+++ b/clients/client-account/README.md
@@ -203,6 +203,14 @@ see LICENSE for more information.
## Client Commands (Operations List)
+ Accepts the request that originated from StartPrimaryEmailUpdate to update the primary email address (also known
+ * as the root user email address) for the specified account. The operation failed because the calling identity doesn't have the minimum required
+ * permissions. The request could not be processed because of a conflict in the current status of the
+ * resource. For example, this happens if you try to enable a Region that is currently being disabled
+ * (in a status of DISABLING). The operation failed because of an error internal to Amazon Web Services. Try your operation again
+ * later. The operation failed because it specified a resource that can't be found. The operation failed because it was called too frequently and exceeded a throttle
+ * limit. The operation failed because one of the input parameters was invalid. Base exception class for all service exceptions from Account service. Disables (opts-out) a particular Region for an account. The act of disabling a Region will remove all IAM access to any resources that
+ * reside in that Region. Retrieves the primary email address for the specified account. The operation failed because the calling identity doesn't have the minimum required
+ * permissions. The operation failed because of an error internal to Amazon Web Services. Try your operation again
+ * later. The operation failed because it specified a resource that can't be found. The operation failed because it was called too frequently and exceeded a throttle
+ * limit. The operation failed because one of the input parameters was invalid. Base exception class for all service exceptions from Account service. Updates the primary contact information of an Amazon Web Services account. For complete details about how to use the primary contact operations, see Update
- * the primary and alternate contact information.
+AcceptPrimaryEmailUpdate
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/AcceptPrimaryEmailUpdateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/AcceptPrimaryEmailUpdateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/AcceptPrimaryEmailUpdateCommandOutput/)
+
+
DeleteAlternateContact
@@ -242,6 +250,14 @@ GetContactInformation
[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/)
+
+GetPrimaryEmail
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/GetPrimaryEmailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetPrimaryEmailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetPrimaryEmailCommandOutput/)
+
@@ -275,3 +291,11 @@ PutContactInformation
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/PutContactInformationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/PutContactInformationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/PutContactInformationCommandOutput/)
+StartPrimaryEmailUpdate
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/StartPrimaryEmailUpdateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/StartPrimaryEmailUpdateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/StartPrimaryEmailUpdateCommandOutput/)
+
+
Starts the process to update the primary email address for the specified + * account.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { AccountClient, StartPrimaryEmailUpdateCommand } from "@aws-sdk/client-account"; // ES Modules import + * // const { AccountClient, StartPrimaryEmailUpdateCommand } = require("@aws-sdk/client-account"); // CommonJS import + * const client = new AccountClient(config); + * const input = { // StartPrimaryEmailUpdateRequest + * AccountId: "STRING_VALUE", // required + * PrimaryEmail: "STRING_VALUE", // required + * }; + * const command = new StartPrimaryEmailUpdateCommand(input); + * const response = await client.send(command); + * // { // StartPrimaryEmailUpdateResponse + * // Status: "STRING_VALUE", + * // }; + * + * ``` + * + * @param StartPrimaryEmailUpdateCommandInput - {@link StartPrimaryEmailUpdateCommandInput} + * @returns {@link StartPrimaryEmailUpdateCommandOutput} + * @see {@link StartPrimaryEmailUpdateCommandInput} for command's `input` shape. + * @see {@link StartPrimaryEmailUpdateCommandOutput} for command's `response` shape. + * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *The operation failed because the calling identity doesn't have the minimum required + * permissions.
+ * + * @throws {@link ConflictException} (client fault) + *The request could not be processed because of a conflict in the current status of the + * resource. For example, this happens if you try to enable a Region that is currently being disabled + * (in a status of DISABLING).
+ * + * @throws {@link InternalServerException} (server fault) + *The operation failed because of an error internal to Amazon Web Services. Try your operation again + * later.
+ * + * @throws {@link ResourceNotFoundException} (client fault) + *The operation failed because it specified a resource that can't be found.
+ * + * @throws {@link TooManyRequestsException} (client fault) + *The operation failed because it was called too frequently and exceeded a throttle + * limit.
+ * + * @throws {@link ValidationException} (client fault) + *The operation failed because one of the input parameters was invalid.
+ * + * @throws {@link AccountServiceException} + *Base exception class for all service exceptions from Account service.
+ * + * @public + */ +export class StartPrimaryEmailUpdateCommand extends $Command + .classBuilder< + StartPrimaryEmailUpdateCommandInput, + StartPrimaryEmailUpdateCommandOutput, + AccountClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: AccountClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("Account", "StartPrimaryEmailUpdate", {}) + .n("AccountClient", "StartPrimaryEmailUpdateCommand") + .f(StartPrimaryEmailUpdateRequestFilterSensitiveLog, void 0) + .ser(se_StartPrimaryEmailUpdateCommand) + .de(de_StartPrimaryEmailUpdateCommand) + .build() {} diff --git a/clients/client-account/src/commands/index.ts b/clients/client-account/src/commands/index.ts index cee45e165a392..fb15aa39ef2c1 100644 --- a/clients/client-account/src/commands/index.ts +++ b/clients/client-account/src/commands/index.ts @@ -1,10 +1,13 @@ // smithy-typescript generated code +export * from "./AcceptPrimaryEmailUpdateCommand"; export * from "./DeleteAlternateContactCommand"; export * from "./DisableRegionCommand"; export * from "./EnableRegionCommand"; export * from "./GetAlternateContactCommand"; export * from "./GetContactInformationCommand"; +export * from "./GetPrimaryEmailCommand"; export * from "./GetRegionOptStatusCommand"; export * from "./ListRegionsCommand"; export * from "./PutAlternateContactCommand"; export * from "./PutContactInformationCommand"; +export * from "./StartPrimaryEmailUpdateCommand"; diff --git a/clients/client-account/src/models/models_0.ts b/clients/client-account/src/models/models_0.ts index 72d4e22b58a9c..95ea08382c245 100644 --- a/clients/client-account/src/models/models_0.ts +++ b/clients/client-account/src/models/models_0.ts @@ -4,73 +4,110 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from " import { AccountServiceException as __BaseException } from "./AccountServiceException"; /** - *The operation failed because the calling identity doesn't have the minimum required - * permissions.
* @public */ -export class AccessDeniedException extends __BaseException { - readonly name: "AccessDeniedException" = "AccessDeniedException"; - readonly $fault: "client" = "client"; +export interface AcceptPrimaryEmailUpdateRequest { /** - * @internal + *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 organization's + * management account or a delegated administrator account. The specified + * account ID must be a member account in the same organization. The organization must have + * all features + * enabled, and the organization must have trusted access enabled + * for the Account Management service, and optionally a delegated admin account + * assigned.
+ *This operation can only be called from the management account or the delegated + * administrator account of an organization for a member account.
+ *The management account can't specify its own AccountId
.
The new primary email address for use with the specified account. This must
+ * match the PrimaryEmail
from the StartPrimaryEmailUpdate
API
+ * call.
The OTP code sent to the PrimaryEmail
specified on the
+ * StartPrimaryEmailUpdate
API call.
Specifies which of the alternate contacts to delete.
+ *Retrieves the status of the accepted primary email update request.
* @public */ - AlternateContactType: AlternateContactType | undefined; + Status?: PrimaryEmailUpdateStatus; +} +/** + *The operation failed because the calling identity doesn't have the minimum required + * permissions.
+ * @public + */ +export class AccessDeniedException extends __BaseException { + readonly name: "AccessDeniedException" = "AccessDeniedException"; + readonly $fault: "client" = "client"; /** - *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 do not 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 organization's management account or a delegated administrator account, and - * the specified account ID must be a member account in the same organization. The - * organization must have all features - * enabled, and the organization must have trusted access enabled for the - * Account Management service, and optionally a delegated admin account - * assigned.
- *The management account can't specify its own AccountId
; it must call
- * the operation in standalone context by not including the AccountId
- * parameter.
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.
- * @public + * @internal */ - AccountId?: string; + constructor(opts: __ExceptionOptionTypeThe request could not be processed because of a conflict in the current status of the + * resource. For example, this happens if you try to enable a Region that is currently being disabled + * (in a status of DISABLING).
+ * @public + */ +export class ConflictException extends __BaseException { + readonly name: "ConflictException" = "ConflictException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionTypeSpecifies which of the alternate contacts to delete.
+ * @public + */ + AlternateContactType: AlternateContactType | undefined; + + /** + *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 do not 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 organization's management account or a delegated administrator account, and + * the specified account ID must be a member account in the same organization. The + * organization must have all features + * enabled, and the organization must have trusted access enabled for the + * Account Management service, and optionally a delegated admin account + * assigned.
+ *The management account can't specify its own AccountId
; it must call
+ * the operation in standalone context by not including the AccountId
+ * parameter.
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.
+ * @public + */ + AccountId?: string; +} + /** * @public */ @@ -352,10 +438,10 @@ export interface GetContactInformationRequest { /** *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 organization's + * Amazon Web Services account of the identity used to call the operation. To use this + * parameter, the caller must be an identity in the organization's * management account or a delegated administrator account. The specified - * account ID must also be a member account in the same organization. The organization must have + * account ID must be a member account in the same organization. The organization must have * all features * enabled, and the organization must have trusted access enabled * for the Account Management service, and optionally a delegated admin account @@ -366,15 +452,16 @@ export interface GetContactInformationRequest { * parameter.
* *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.
+ * specify this parameter. Instead, call the operation using an identity belonging to the + * account whose contacts you wish to retrieve or modify. * @public */ AccountId?: string; } /** - *Contains the details of the primary contact information associated with an Amazon Web Services account.
+ *Contains the details of the primary contact information associated with an + * Amazon Web Services account.
* @public */ export interface ContactInformation { @@ -409,7 +496,11 @@ export interface ContactInformation { City: string | undefined; /** - *The state or region of the primary contact address. This field is required in selected countries.
+ *The state or region of the primary contact address. If the mailing address is within the United States (US), the
+ * value in this field can be either a two character state code (for example, NJ
) or the full state name
+ * (for example, New Jersey
). This field is required in the following countries: US
,
+ * CA
, GB
, DE
, JP
, IN
,
+ * and BR
.
The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.
+ *The phone number of the primary contact information. The number will be validated and, + * in some countries, checked for activation.
* @public */ PhoneNumber: string | undefined; /** - *The name of the company associated with the primary contact information, if any.
+ *The name of the company associated with the primary contact information, if + * any.
* @public */ CompanyName?: string; @@ -456,7 +549,8 @@ export interface ContactInformation { */ export interface GetContactInformationResponse { /** - *Contains the details of the primary contact information associated with an Amazon Web Services account.
+ *Contains the details of the primary contact information associated with an + * Amazon Web Services account.
* @public */ ContactInformation?: ContactInformation; @@ -467,7 +561,8 @@ export interface GetContactInformationResponse { */ export interface PutContactInformationRequest { /** - *Contains the details of the primary contact information associated with an Amazon Web Services account.
+ *Contains the details of the primary contact information associated with an + * Amazon Web Services account.
* @public */ ContactInformation: ContactInformation | undefined; @@ -475,11 +570,11 @@ export interface PutContactInformationRequest { /** *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 organization's + * Amazon Web Services account of the identity used to call the operation. To use this + * parameter, the caller must be an identity in the organization's * management account or a delegated administrator account. The specified - * account ID must also be a member account in the same organization. The organization must have - * all features + * account ID must be a member account in the same organization. The organization must have + * all features * enabled, and the organization must have trusted access enabled * for the Account Management service, and optionally a delegated admin account * assigned.
@@ -489,33 +584,89 @@ export interface PutContactInformationRequest { * parameter. * *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.
+ * specify this parameter. Instead, call the operation using an identity belonging to the + * account whose contacts you wish to retrieve or modify. * @public */ AccountId?: string; } /** - *The request could not be processed because of a conflict in the current status of the - * resource. For example, this happens if you try to enable a Region that is currently being disabled - * (in a status of DISABLING).
* @public */ -export class ConflictException extends __BaseException { - readonly name: "ConflictException" = "ConflictException"; - readonly $fault: "client" = "client"; +export interface GetPrimaryEmailRequest { /** - * @internal + *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 organization's + * management account or a delegated administrator account. The specified + * account ID must be a member account in the same organization. The organization must have + * all features + * enabled, and the organization must have trusted access enabled + * for the Account Management service, and optionally a delegated admin account + * assigned.
+ *This operation can only be called from the management account or the delegated + * administrator account of an organization for a member account.
+ *The management account can't specify its own AccountId
.
Retrieves the primary email address associated with the specified + * account.
+ * @public + */ + PrimaryEmail?: string; +} + +/** + * @public + */ +export interface StartPrimaryEmailUpdateRequest { + /** + *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 organization's + * management account or a delegated administrator account. The specified + * account ID must be a member account in the same organization. The organization must have + * all features + * enabled, and the organization must have trusted access enabled + * for the Account Management service, and optionally a delegated admin account + * assigned.
+ *This operation can only be called from the management account or the delegated + * administrator account of an organization for a member account.
+ *The management account can't specify its own AccountId
.
The new primary email address (also known as the root user email address) to + * use in the specified account.
+ * @public + */ + PrimaryEmail: string | undefined; +} + +/** + * @public + */ +export interface StartPrimaryEmailUpdateResponse { + /** + *The status of the primary email update request.
+ * @public + */ + Status?: PrimaryEmailUpdateStatus; } /** @@ -525,11 +676,11 @@ export interface DisableRegionRequest { /** *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 organization's + * Amazon Web Services account of the identity used to call the operation. To use this + * parameter, the caller must be an identity in the organization's * management account or a delegated administrator account. The specified - * account ID must also be a member account in the same organization. The organization must - * have all features + * account ID must be a member account in the same organization. The organization must have + * all features * enabled, and the organization must have trusted access enabled * for the Account Management service, and optionally a delegated admin account * assigned.
@@ -546,11 +697,11 @@ export interface DisableRegionRequest { AccountId?: string; /** - *Specifies the Region-code for a given Region name (for example, af-south-1
). When
- * you disable a Region, Amazon Web Services performs actions to deactivate that Region in your account, such
- * as destroying IAM resources in the Region. This process takes a few minutes for most
- * accounts, but this can take several hours. You cannot enable the Region until the
- * disabling process is fully completed.
Specifies the Region-code for a given Region name (for example,
+ * af-south-1
). When you disable a Region, Amazon Web Services performs actions to
+ * deactivate that Region in your account, such as destroying IAM resources in the Region.
+ * This process takes a few minutes for most accounts, but this can take several hours. You
+ * cannot enable the Region until the disabling process is fully completed.
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 organization's + * Amazon Web Services account of the identity used to call the operation. To use this + * parameter, the caller must be an identity in the organization's * management account or a delegated administrator account. The specified - * account ID must also be a member account in the same organization. The organization must - * have all features + * account ID must be a member account in the same organization. The organization must have + * all features * enabled, and the organization must have trusted access enabled * for the Account Management service, and optionally a delegated admin account * assigned.
@@ -584,12 +735,12 @@ export interface EnableRegionRequest { AccountId?: string; /** - *Specifies the Region-code for a given Region name (for example, af-south-1
). When
- * you enable a Region, Amazon Web Services performs actions to prepare your account in that Region, such
- * as distributing your IAM resources to the Region. This process takes a few minutes for
- * most accounts, but it can take several hours. You cannot use the Region until this
- * process is complete. Furthermore, you cannot disable the Region until the enabling
- * process is fully completed.
Specifies the Region-code for a given Region name (for example,
+ * af-south-1
). When you enable a Region, Amazon Web Services performs actions to
+ * prepare your account in that Region, such as distributing your IAM resources to the
+ * Region. This process takes a few minutes for most accounts, but it can take several
+ * hours. You cannot use the Region until this process is complete. Furthermore, you cannot
+ * disable the Region until the enabling process is fully completed.
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 organization's + * Amazon Web Services account of the identity used to call the operation. To use this + * parameter, the caller must be an identity in the organization's * management account or a delegated administrator account. The specified - * account ID must also be a member account in the same organization. The organization must - * have all features + * account ID must be a member account in the same organization. The organization must have + * all features * enabled, and the organization must have trusted access enabled * for the Account Management service, and optionally a delegated admin account * assigned.
@@ -623,8 +774,9 @@ export interface GetRegionOptStatusRequest { AccountId?: string; /** - *Specifies the Region-code for a given Region name (for example, af-south-1
). This
- * function will return the status of whatever Region you pass into this parameter.
Specifies the Region-code for a given Region name (for example,
+ * af-south-1
). This function will return the status of whatever Region
+ * you pass into this parameter.
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 organization's + * Amazon Web Services account of the identity used to call the operation. To use this + * parameter, the caller must be an identity in the organization's * management account or a delegated administrator account. The specified - * account ID must also be a member account in the same organization. The organization must - * have all features + * account ID must be a member account in the same organization. The organization must have + * all features * enabled, and the organization must have trusted access enabled * for the Account Management service, and optionally a delegated admin account * assigned.
@@ -735,8 +887,8 @@ export interface Region { RegionName?: string; /** - *One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling, - * Enabled_By_Default).
+ *One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, + * Disabling, Enabled_By_Default).
* @public */ RegionOptStatus?: RegionOptStatus; @@ -762,6 +914,15 @@ export interface ListRegionsResponse { Regions?: Region[]; } +/** + * @internal + */ +export const AcceptPrimaryEmailUpdateRequestFilterSensitiveLog = (obj: AcceptPrimaryEmailUpdateRequest): any => ({ + ...obj, + ...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }), + ...(obj.Otp && { Otp: SENSITIVE_STRING }), +}); + /** * @internal */ @@ -834,3 +995,19 @@ export const PutContactInformationRequestFilterSensitiveLog = (obj: PutContactIn ...obj, ...(obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }), }); + +/** + * @internal + */ +export const GetPrimaryEmailResponseFilterSensitiveLog = (obj: GetPrimaryEmailResponse): any => ({ + ...obj, + ...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const StartPrimaryEmailUpdateRequestFilterSensitiveLog = (obj: StartPrimaryEmailUpdateRequest): any => ({ + ...obj, + ...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }), +}); diff --git a/clients/client-account/src/protocols/Aws_restJson1.ts b/clients/client-account/src/protocols/Aws_restJson1.ts index 1d51ed20f8615..a4cd57620874c 100644 --- a/clients/client-account/src/protocols/Aws_restJson1.ts +++ b/clients/client-account/src/protocols/Aws_restJson1.ts @@ -19,6 +19,10 @@ import { SerdeContext as __SerdeContext, } from "@smithy/types"; +import { + AcceptPrimaryEmailUpdateCommandInput, + AcceptPrimaryEmailUpdateCommandOutput, +} from "../commands/AcceptPrimaryEmailUpdateCommand"; import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput, @@ -33,6 +37,7 @@ import { GetContactInformationCommandInput, GetContactInformationCommandOutput, } from "../commands/GetContactInformationCommand"; +import { GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput } from "../commands/GetPrimaryEmailCommand"; import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "../commands/GetRegionOptStatusCommand"; import { ListRegionsCommandInput, ListRegionsCommandOutput } from "../commands/ListRegionsCommand"; import { @@ -43,6 +48,10 @@ import { PutContactInformationCommandInput, PutContactInformationCommandOutput, } from "../commands/PutContactInformationCommand"; +import { + StartPrimaryEmailUpdateCommandInput, + StartPrimaryEmailUpdateCommandOutput, +} from "../commands/StartPrimaryEmailUpdateCommand"; import { AccountServiceException as __BaseException } from "../models/AccountServiceException"; import { AccessDeniedException, @@ -55,6 +64,30 @@ import { ValidationException, } from "../models/models_0"; +/** + * serializeAws_restJson1AcceptPrimaryEmailUpdateCommand + */ +export const se_AcceptPrimaryEmailUpdateCommand = async ( + input: AcceptPrimaryEmailUpdateCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/acceptPrimaryEmailUpdate"); + let body: any; + body = JSON.stringify( + take(input, { + AccountId: [], + Otp: [], + PrimaryEmail: [], + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1DeleteAlternateContactCommand */ @@ -169,6 +202,28 @@ export const se_GetContactInformationCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1GetPrimaryEmailCommand + */ +export const se_GetPrimaryEmailCommand = async ( + input: GetPrimaryEmailCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/getPrimaryEmail"); + let body: any; + body = JSON.stringify( + take(input, { + AccountId: [], + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1GetRegionOptStatusCommand */ @@ -267,6 +322,50 @@ export const se_PutContactInformationCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1StartPrimaryEmailUpdateCommand + */ +export const se_StartPrimaryEmailUpdateCommand = async ( + input: StartPrimaryEmailUpdateCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/startPrimaryEmailUpdate"); + let body: any; + body = JSON.stringify( + take(input, { + AccountId: [], + PrimaryEmail: [], + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + +/** + * deserializeAws_restJson1AcceptPrimaryEmailUpdateCommand + */ +export const de_AcceptPrimaryEmailUpdateCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): PromiseAccepts the request that originated from StartPrimaryEmailUpdate to update the primary email address (also known\n as the root user email address) for the specified account.
", + "smithy.api#http": { + "uri": "/acceptPrimaryEmailUpdate", + "method": "POST", + "code": 200 + } + } + }, + "com.amazonaws.account#AcceptPrimaryEmailUpdateRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.account#AccountId", + "traits": { + "smithy.api#documentation": "Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. To use this parameter, the caller must be an identity in\n the organization's\n management account or a delegated administrator account. The specified\n account ID must be a member account in the same organization. The organization must have\n all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThis operation can only be called from the management account or the delegated\n administrator account of an organization for a member account.
\nThe management account can't specify its own AccountId
.
The new primary email address for use with the specified account. This must\n match the PrimaryEmail
from the StartPrimaryEmailUpdate
API\n call.
The OTP code sent to the PrimaryEmail
specified on the\n StartPrimaryEmailUpdate
API call.
Retrieves the status of the accepted primary email update request.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.account#AccessDeniedException": { "type": "structure", "members": { @@ -27,6 +107,9 @@ { "target": "com.amazonaws.account#ContactInformationResource" }, + { + "target": "com.amazonaws.account#PrimaryEmailResource" + }, { "target": "com.amazonaws.account#RegionOptResource" } @@ -1014,7 +1097,7 @@ "StateOrRegion": { "target": "com.amazonaws.account#StateOrRegion", "traits": { - "smithy.api#documentation": "The state or region of the primary contact address. This field is required in selected countries.
" + "smithy.api#documentation": "The state or region of the primary contact address. If the mailing address is within the United States (US), the\n value in this field can be either a two character state code (for example, NJ
) or the full state name\n (for example, New Jersey
). This field is required in the following countries: US
,\n CA
, GB
, DE
, JP
, IN
,\n and BR
.
The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.
", + "smithy.api#documentation": "The phone number of the primary contact information. The number will be validated and,\n in some countries, checked for activation.
", "smithy.api#required": {} } }, "CompanyName": { "target": "com.amazonaws.account#CompanyName", "traits": { - "smithy.api#documentation": "The name of the company associated with the primary contact information, if any.
" + "smithy.api#documentation": "The name of the company associated with the primary contact information, if\n any.
" } }, "WebsiteUrl": { @@ -1058,7 +1141,7 @@ } }, "traits": { - "smithy.api#documentation": "Contains the details of the primary contact information associated with an Amazon Web Services account.
" + "smithy.api#documentation": "Contains the details of the primary contact information associated with an\n Amazon Web Services account.
" } }, "com.amazonaws.account#ContactInformationPhoneNumber": { @@ -1178,7 +1261,7 @@ } ], "traits": { - "smithy.api#documentation": "Disables (opts-out) a particular Region for an account.
", + "smithy.api#documentation": "Disables (opts-out) a particular Region for an account.
\nThe act of disabling a Region will remove all IAM access to any resources that\n reside in that Region.
\nSpecifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this parameter, the\n caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must also be a member account in the same organization. The organization must\n have all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to the\n account whose contacts you wish to retrieve or modify.
" + "smithy.api#documentation": "Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this\n parameter, the caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must be a member account in the same organization. The organization must have\n all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to the\n account whose contacts you wish to retrieve or modify.
" } }, "RegionName": { "target": "com.amazonaws.account#RegionName", "traits": { - "smithy.api#documentation": "Specifies the Region-code for a given Region name (for example, af-south-1
). When\n you disable a Region, Amazon Web Services performs actions to deactivate that Region in your account, such\n as destroying IAM resources in the Region. This process takes a few minutes for most\n accounts, but this can take several hours. You cannot enable the Region until the\n disabling process is fully completed.
Specifies the Region-code for a given Region name (for example,\n af-south-1
). When you disable a Region, Amazon Web Services performs actions to\n deactivate that Region in your account, such as destroying IAM resources in the Region.\n This process takes a few minutes for most accounts, but this can take several hours. You\n cannot enable the Region until the disabling process is fully completed.
Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this parameter, the\n caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must also be a member account in the same organization. The organization must\n have all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to the\n account whose contacts you wish to retrieve or modify.
" + "smithy.api#documentation": "Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this\n parameter, the caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must be a member account in the same organization. The organization must have\n all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to the\n account whose contacts you wish to retrieve or modify.
" } }, "RegionName": { "target": "com.amazonaws.account#RegionName", "traits": { - "smithy.api#documentation": "Specifies the Region-code for a given Region name (for example, af-south-1
). When\n you enable a Region, Amazon Web Services performs actions to prepare your account in that Region, such\n as distributing your IAM resources to the Region. This process takes a few minutes for\n most accounts, but it can take several hours. You cannot use the Region until this\n process is complete. Furthermore, you cannot disable the Region until the enabling\n process is fully completed.
Specifies the Region-code for a given Region name (for example,\n af-south-1
). When you enable a Region, Amazon Web Services performs actions to\n prepare your account in that Region, such as distributing your IAM resources to the\n Region. This process takes a few minutes for most accounts, but it can take several\n hours. You cannot use the Region until this process is complete. Furthermore, you cannot\n disable the Region until the enabling process is fully completed.
Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this parameter, the\n caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must also be a member account in the same organization. The organization must have\n all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to\n the account whose contacts you wish to retrieve or modify.
" + "smithy.api#documentation": "Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this\n parameter, the caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must be a member account in the same organization. The organization must have\n all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to the\n account whose contacts you wish to retrieve or modify.
" } } }, @@ -1420,7 +1503,72 @@ "ContactInformation": { "target": "com.amazonaws.account#ContactInformation", "traits": { - "smithy.api#documentation": "Contains the details of the primary contact information associated with an Amazon Web Services account.
" + "smithy.api#documentation": "Contains the details of the primary contact information associated with an\n Amazon Web Services account.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.account#GetPrimaryEmail": { + "type": "operation", + "input": { + "target": "com.amazonaws.account#GetPrimaryEmailRequest" + }, + "output": { + "target": "com.amazonaws.account#GetPrimaryEmailResponse" + }, + "errors": [ + { + "target": "com.amazonaws.account#AccessDeniedException" + }, + { + "target": "com.amazonaws.account#InternalServerException" + }, + { + "target": "com.amazonaws.account#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.account#TooManyRequestsException" + }, + { + "target": "com.amazonaws.account#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves the primary email address for the specified account.
", + "smithy.api#http": { + "uri": "/getPrimaryEmail", + "method": "POST", + "code": 200 + }, + "smithy.api#readonly": {}, + "smithy.api#suppress": ["HttpMethodSemantics"] + } + }, + "com.amazonaws.account#GetPrimaryEmailRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.account#AccountId", + "traits": { + "smithy.api#documentation": "Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. To use this parameter, the caller must be an identity in\n the organization's\n management account or a delegated administrator account. The specified\n account ID must be a member account in the same organization. The organization must have\n all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThis operation can only be called from the management account or the delegated\n administrator account of an organization for a member account.
\nThe management account can't specify its own AccountId
.
Retrieves the primary email address associated with the specified\n account.
" } } }, @@ -1467,13 +1615,13 @@ "AccountId": { "target": "com.amazonaws.account#AccountId", "traits": { - "smithy.api#documentation": "Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this parameter, the\n caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must also be a member account in the same organization. The organization must\n have all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to the\n account whose contacts you wish to retrieve or modify.
" + "smithy.api#documentation": "Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this\n parameter, the caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must be a member account in the same organization. The organization must have\n all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to the\n account whose contacts you wish to retrieve or modify.
" } }, "RegionName": { "target": "com.amazonaws.account#RegionName", "traits": { - "smithy.api#documentation": "Specifies the Region-code for a given Region name (for example, af-south-1
). This\n function will return the status of whatever Region you pass into this parameter.
Specifies the Region-code for a given Region name (for example,\n af-south-1
). This function will return the status of whatever Region\n you pass into this parameter.
Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this parameter, the\n caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must also be a member account in the same organization. The organization must\n have all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to the\n account whose contacts you wish to retrieve or modify.
" + "smithy.api#documentation": "Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this\n parameter, the caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must be a member account in the same organization. The organization must have\n all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to the\n account whose contacts you wish to retrieve or modify.
" } }, "MaxResults": { @@ -1627,6 +1775,13 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.account#Otp": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[a-zA-Z0-9]{6}$", + "smithy.api#sensitive": {} + } + }, "com.amazonaws.account#PhoneNumber": { "type": "string", "traits": { @@ -1648,6 +1803,50 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.account#PrimaryEmailAddress": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 5, + "max": 64 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.account#PrimaryEmailResource": { + "type": "resource", + "operations": [ + { + "target": "com.amazonaws.account#AcceptPrimaryEmailUpdate" + }, + { + "target": "com.amazonaws.account#GetPrimaryEmail" + }, + { + "target": "com.amazonaws.account#StartPrimaryEmailUpdate" + } + ], + "traits": { + "aws.api#arn": { + "template": "PrimaryEmail" + } + } + }, + "com.amazonaws.account#PrimaryEmailUpdateStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "PENDING", + "name": "PENDING" + }, + { + "value": "ACCEPTED", + "name": "ACCEPTED" + } + ] + } + }, "com.amazonaws.account#PutAlternateContact": { "type": "operation", "input": { @@ -1752,7 +1951,7 @@ } ], "traits": { - "smithy.api#documentation": "Updates the primary contact information of an Amazon Web Services account.
\nFor complete details about how to use the primary contact operations, see Update\n the primary and alternate contact information.
", + "smithy.api#documentation": "Updates the primary contact information of an Amazon Web Services account.
\nFor complete details about how to use the primary contact operations, see Update\n the primary and alternate contact information.
", "smithy.api#http": { "uri": "/putContactInformation", "method": "POST", @@ -1767,14 +1966,14 @@ "ContactInformation": { "target": "com.amazonaws.account#ContactInformation", "traits": { - "smithy.api#documentation": "Contains the details of the primary contact information associated with an Amazon Web Services account.
", + "smithy.api#documentation": "Contains the details of the primary contact information associated with an\n Amazon Web Services account.
", "smithy.api#required": {} } }, "AccountId": { "target": "com.amazonaws.account#AccountId", "traits": { - "smithy.api#documentation": "Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this parameter, the\n caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must also be a member account in the same organization. The organization must have\n all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to\n the account whose contacts you wish to retrieve or modify.
" + "smithy.api#documentation": "Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. If you don't specify this parameter, it defaults to the\n Amazon Web Services account of the identity used to call the operation. To use this\n parameter, the caller must be an identity in the organization's\n management account or a delegated administrator account. The specified\n account ID must be a member account in the same organization. The organization must have\n all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThe management account can't specify its own AccountId
. It must call\n the operation in standalone context by not including the AccountId
\n parameter.
To call this operation on an account that is not a member of an organization, don't\n specify this parameter. Instead, call the operation using an identity belonging to the\n account whose contacts you wish to retrieve or modify.
" } } }, @@ -1794,7 +1993,7 @@ "RegionOptStatus": { "target": "com.amazonaws.account#RegionOptStatus", "traits": { - "smithy.api#documentation": "One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling,\n Enabled_By_Default).
" + "smithy.api#documentation": "One of potential statuses a Region can undergo (Enabled, Enabling, Disabled,\n Disabling, Enabled_By_Default).
" } } }, @@ -1894,6 +2093,79 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.account#StartPrimaryEmailUpdate": { + "type": "operation", + "input": { + "target": "com.amazonaws.account#StartPrimaryEmailUpdateRequest" + }, + "output": { + "target": "com.amazonaws.account#StartPrimaryEmailUpdateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.account#AccessDeniedException" + }, + { + "target": "com.amazonaws.account#ConflictException" + }, + { + "target": "com.amazonaws.account#InternalServerException" + }, + { + "target": "com.amazonaws.account#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.account#TooManyRequestsException" + }, + { + "target": "com.amazonaws.account#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Starts the process to update the primary email address for the specified\n account.
", + "smithy.api#http": { + "uri": "/startPrimaryEmailUpdate", + "method": "POST", + "code": 200 + } + } + }, + "com.amazonaws.account#StartPrimaryEmailUpdateRequest": { + "type": "structure", + "members": { + "AccountId": { + "target": "com.amazonaws.account#AccountId", + "traits": { + "smithy.api#documentation": "Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access\n or modify with this operation. To use this parameter, the caller must be an identity in\n the organization's\n management account or a delegated administrator account. The specified\n account ID must be a member account in the same organization. The organization must have\n all features\n enabled, and the organization must have trusted access enabled\n for the Account Management service, and optionally a delegated admin account\n assigned.
\nThis operation can only be called from the management account or the delegated\n administrator account of an organization for a member account.
\nThe management account can't specify its own AccountId
.
The new primary email address (also known as the root user email address) to\n use in the specified account.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.account#StartPrimaryEmailUpdateResponse": { + "type": "structure", + "members": { + "Status": { + "target": "com.amazonaws.account#PrimaryEmailUpdateStatus", + "traits": { + "smithy.api#documentation": "The status of the primary email update request.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.account#StateOrRegion": { "type": "string", "traits": {