accept_primary_email_update
¶
accept_primary_email_update(
account_id: AccountId,
primary_email: PrimaryEmailAddress,
otp: Otp,
*,
config_overrides: Optional[AccountClientConfig] = None,
) -> AcceptPrimaryEmailUpdateResponse
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.
Parameters:
-
account_id(AccountId) –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. -
primary_email(PrimaryEmailAddress) –The new primary email address for use with the specified account. This must match the
PrimaryEmailfrom theStartPrimaryEmailUpdateAPI call. -
otp(Otp) –The OTP code sent to the
PrimaryEmailspecified on theStartPrimaryEmailUpdateAPI call.
Raises:
-
AccessDeniedException–The operation failed because the calling identity doesn't have the minimum required permissions.
-
ConflictException–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) or if you try to change an account’s root user email to an email address which is already in use.
-
InternalServerException–The operation failed because of an error internal to Amazon Web Services. Try your operation again later.
-
ResourceNotFoundException–The operation failed because it specified a resource that can't be found.
-
TooManyRequestsException–The operation failed because it was called too frequently and exceeded a throttle limit.
-
ValidationException–The operation failed because one of the input parameters was invalid.
-
UnknownServiceError–The service returned an error code this client does not model.