Lightsail / Client / get_profile

get_profile

Lightsail.Client.get_profile()

Returns information about the profile of the Amazon Lightsail account that makes the request. The response includes the profile type and, for accounts enrolled in the Lightsail partner program, the partner membership details.

See also: AWS API Documentation

Request Syntax

response = client.get_profile()
Return type:

dict

Returns:

Response Syntax

{
    'profileType': 'Lightsailor'|'LightsailPartner',
    'partner': {
        'enrolledAt': datetime(2015, 1, 1),
        'tierName': 'Essential'|'Growth'|'Accelerate'|'Premier',
        'status': 'Active'|'Suspended'
    }
}

Response Structure

  • (dict) –

    • profileType (string) –

      The type of the profile.

      The following profile types are possible:

      • Lightsailor – The account is not enrolled in the Lightsail partner program.

      • LightsailPartner – The account is enrolled in the Lightsail partner program.

    • partner (dict) –

      An object that describes the partner membership of the account, such as the tier of the membership, its status, and when the account was enrolled.

      This parameter is returned only for accounts that have a profileType of LightsailPartner.

      • enrolledAt (datetime) –

        The timestamp when the account was enrolled in the Lightsail partner program.

      • tierName (string) –

        The tier of the partner membership.

      • status (string) –

        The status of the partner membership.

        The following statuses are possible:

        • Active – The membership is active, and the benefits of the current tier are available to the account.

        • Suspended – The membership is suspended, and the benefits of the tier are not available to the account.

Exceptions