AWS Account

2026/09/30 - AWS Account - 2 new 1 updated api methods

Changes  This release adds support for verifying an AWS account's primary contact phone number. SendPhoneNumberVerification sends a one-time code by SMS, VerifyPhoneNumber validates it, and GetContactInformation now returns the verification status.

VerifyPhoneNumber (new) Link ¶

Verifies the phone number in the primary contact information of an Amazon Web Services account by submitting the one-time passcode that SendPhoneNumberVerification sent to that phone number.

For complete details about how to use the primary contact operations, see Update the primary contact for your Amazon Web Services account.

See also: AWS API Documentation

Request Syntax

client.verify_phone_number(
    AccountId='string',
    Otp='string'
)
type AccountId:

string

param AccountId:

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.

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.

type Otp:

string

param Otp:

[REQUIRED]

The one-time passcode sent to the phone number in the primary contact information by the SendPhoneNumberVerification operation.

rtype:

dict

returns:

Response Syntax

{
    'Status': 'PENDING'|'VERIFIED'|'UNVERIFIED'|'NOT_SUPPORTED'
}

Response Structure

  • (dict) --

    • Status (string) --

      The verification status of the phone number in the primary contact information after the submitted one-time passcode is evaluated. Valid values:

      • PENDING – A one-time passcode has been sent and is waiting to be submitted.

      • VERIFIED – The phone number has been verified.

      • UNVERIFIED – The phone number has not been verified.

      • NOT_SUPPORTED – Phone number verification isn't available for this account.

SendPhoneNumberVerification (new) Link ¶

Sends a one-time passcode to the phone number in the primary contact information of an Amazon Web Services account. Use VerifyPhoneNumber to submit the passcode and complete the verification.

For complete details about how to use the primary contact operations, see Update the primary contact for your Amazon Web Services account.

See also: AWS API Documentation

Request Syntax

client.send_phone_number_verification(
    AccountId='string'
)
type AccountId:

string

param AccountId:

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.

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.

rtype:

dict

returns:

Response Syntax

{
    'Status': 'PENDING'|'VERIFIED'|'UNVERIFIED'|'NOT_SUPPORTED'
}

Response Structure

  • (dict) --

    • Status (string) --

      The verification status of the phone number in the primary contact information after the one-time passcode is sent. Valid values:

      • PENDING – A one-time passcode has been sent and is waiting to be submitted.

      • VERIFIED – The phone number has been verified.

      • UNVERIFIED – The phone number has not been verified.

      • NOT_SUPPORTED – Phone number verification isn't available for this account.

GetContactInformation (updated) Link ¶
Changes (response)
{'VerificationStatus': 'PENDING | VERIFIED | UNVERIFIED | NOT_SUPPORTED'}

Retrieves 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 contact for your Amazon Web Services account.

See also: AWS API Documentation

Request Syntax

client.get_contact_information(
    AccountId='string'
)
type AccountId:

string

param AccountId:

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 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.

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.

rtype:

dict

returns:

Response Syntax

{
    'ContactInformation': {
        'FullName': 'string',
        'AddressLine1': 'string',
        'AddressLine2': 'string',
        'AddressLine3': 'string',
        'City': 'string',
        'StateOrRegion': 'string',
        'DistrictOrCounty': 'string',
        'PostalCode': 'string',
        'CountryCode': 'string',
        'PhoneNumber': 'string',
        'CompanyName': 'string',
        'WebsiteUrl': 'string'
    },
    'VerificationStatus': 'PENDING'|'VERIFIED'|'UNVERIFIED'|'NOT_SUPPORTED'
}

Response Structure

  • (dict) --

    • ContactInformation (dict) --

      Contains the details of the primary contact information associated with an Amazon Web Services account.

      • FullName (string) --

        The full name of the primary contact address.

      • AddressLine1 (string) --

        The first line of the primary contact address.

      • AddressLine2 (string) --

        The second line of the primary contact address, if any.

      • AddressLine3 (string) --

        The third line of the primary contact address, if any.

      • City (string) --

        The city of the primary contact address.

      • StateOrRegion (string) --

        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.

      • DistrictOrCounty (string) --

        The district or county of the primary contact address, if any.

      • PostalCode (string) --

        The postal code of the primary contact address.

      • CountryCode (string) --

        The ISO-3166 two-letter country code for the primary contact address.

      • PhoneNumber (string) --

        The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.

      • CompanyName (string) --

        The name of the company associated with the primary contact information, if any.

      • WebsiteUrl (string) --

        The URL of the website associated with the primary contact information, if any.

    • VerificationStatus (string) --

      The verification status of the phone number in the primary contact information associated with an Amazon Web Services account. Valid values:

      • PENDING – A one-time passcode has been sent and is waiting to be submitted.

      • VERIFIED – The phone number has been verified.

      • UNVERIFIED – The phone number has not been verified.

      • NOT_SUPPORTED – Phone number verification isn't available for this account.