{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-get-profile-result-schema.json",
  "title": "GetProfileResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-account-api-openapi.yml#/components/schemas/GetProfileResult",
  "type": "object",
  "properties": {
    "profileType": {
      "allOf": [
        {
          "$ref": "#/$defs/ProfileType"
        }
      ],
      "description": "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": {
      "allOf": [
        {
          "$ref": "#/$defs/PartnerInfo"
        }
      ],
      "description": "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 ."
    }
  },
  "required": [
    "profileType"
  ],
  "$defs": {
    "IsoDate": {
      "type": "string",
      "format": "date-time"
    },
    "PartnerInfo": {
      "type": "object",
      "properties": {
        "enrolledAt": {
          "allOf": [
            {
              "$ref": "#/$defs/IsoDate"
            }
          ],
          "description": "The timestamp when the account was enrolled in the Lightsail partner program."
        },
        "tierName": {
          "allOf": [
            {
              "$ref": "#/$defs/TierName"
            }
          ],
          "description": "The tier of the partner membership."
        },
        "status": {
          "allOf": [
            {
              "$ref": "#/$defs/PartnerStatus"
            }
          ],
          "description": "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."
        }
      },
      "required": [
        "enrolledAt",
        "status"
      ],
      "description": "An object that contains information about the Lightsail partner program membership of an Amazon Lightsail account."
    },
    "PartnerStatus": {
      "type": "string",
      "enum": [
        "Active",
        "Suspended"
      ]
    },
    "ProfileType": {
      "type": "string",
      "enum": [
        "Lightsailor",
        "LightsailPartner"
      ]
    },
    "TierName": {
      "type": "string",
      "enum": [
        "Essential",
        "Growth",
        "Accelerate",
        "Premier"
      ]
    }
  }
}