start_primary_email_update
async
¶
start_primary_email_update(
account_id: AccountId,
primary_email: PrimaryEmailAddress,
*,
config_overrides: Optional[AsyncAccountClientConfig] = None,
) -> StartPrimaryEmailUpdateResponse
Starts the process to update the primary 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 (also known as the root user email address) to use in the specified account.
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.
Source code in docs_src/capo_account/_services/async_account.py
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 | |