put_alternate_contact
¶
put_alternate_contact(
name: Name,
title: Title,
email_address: EmailAddress,
phone_number: PhoneNumber,
alternate_contact_type: AlternateContactType,
*,
config_overrides: Optional[AccountClientConfig] = None,
account_id: Optional[AccountId] = None,
) -> None
Modifies the specified alternate contact attached to an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Update the alternate contacts for your Amazon Web Services account.
Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enable trusted access for Amazon Web Services Account Management.
Parameters:
-
name(Name) –Specifies a name for the alternate contact.
-
title(Title) –Specifies a title for the alternate contact.
-
email_address(EmailAddress) –Specifies an email address for the alternate contact.
-
phone_number(PhoneNumber) –Specifies a phone number for the alternate contact.
-
alternate_contact_type(AlternateContactType) –Specifies which alternate contact you want to create or update.
-
account_id(Optional[AccountId], default:None) –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 administrator account assigned.
The management account can't specify its own
AccountId; it must call the operation in standalone context by not including theAccountIdparameter.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.
Raises:
-
AccessDeniedException–The operation failed because the calling identity doesn't have the minimum required permissions.
-
InternalServerException–The operation failed because of an error internal to Amazon Web Services. Try your operation again later.
-
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.