{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-get-setup-history-result-schema.json",
  "title": "GetSetupHistoryResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-setup-api-openapi.yml#/components/schemas/GetSetupHistoryResult",
  "type": "object",
  "properties": {
    "setupHistory": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SetupHistory"
      },
      "description": "The historical information that's returned."
    },
    "nextPageToken": {
      "type": "string",
      "description": "The token to advance to the next page of results from your request. A next page token is not returned if there are no more results to display. To get the next page of results, perform another GetSetupHistory request and specify the next page token using the pageToken parameter."
    }
  },
  "$defs": {
    "ResourceLocation": {
      "type": "object",
      "properties": {
        "availabilityZone": {
          "type": "string",
          "description": "The Availability Zone. Follows the format us-east-2a (case-sensitive)."
        },
        "regionName": {
          "type": "string",
          "enum": [
            "us-east-1",
            "us-east-2",
            "us-west-1",
            "us-west-2",
            "eu-west-1",
            "eu-west-2",
            "eu-west-3",
            "eu-central-1",
            "eu-north-1",
            "eu-south-2",
            "ca-central-1",
            "ap-east-1",
            "ap-south-1",
            "ap-southeast-1",
            "ap-southeast-2",
            "ap-northeast-1",
            "ap-northeast-2",
            "ap-southeast-3",
            "ap-southeast-5",
            "sa-east-1"
          ],
          "description": "The Amazon Web Services Region name."
        }
      }
    },
    "SetupExecutionDetails": {
      "type": "object",
      "properties": {
        "command": {
          "type": "string",
          "description": "The command that was executed."
        },
        "dateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp for when the request was run."
        },
        "name": {
          "type": "string",
          "description": "The name of the target resource."
        },
        "status": {
          "type": "string",
          "enum": [
            "succeeded",
            "failed",
            "inProgress"
          ],
          "description": "The status of the SetupInstanceHttps request."
        },
        "standardError": {
          "type": "string",
          "description": "The text written by the command to stderr."
        },
        "standardOutput": {
          "type": "string",
          "description": "The text written by the command to stdout."
        },
        "version": {
          "type": "string",
          "description": "The current version of the script.."
        }
      }
    },
    "SetupHistory": {
      "type": "object",
      "properties": {
        "operationId": {
          "type": "string",
          "description": "A GUID that's used to identify the operation."
        },
        "request": {
          "$ref": "#/$defs/SetupRequest"
        },
        "resource": {
          "$ref": "#/$defs/SetupHistoryResource"
        },
        "executionDetails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SetupExecutionDetails"
          },
          "description": "Describes the full details of the request."
        },
        "status": {
          "type": "string",
          "enum": [
            "succeeded",
            "failed",
            "inProgress"
          ],
          "description": "The status of the request."
        }
      }
    },
    "SetupHistoryResource": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the Lightsail resource."
        },
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Lightsail resource."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp for when the resource was created."
        },
        "location": {
          "$ref": "#/$defs/ResourceLocation"
        },
        "resourceType": {
          "type": "string",
          "enum": [
            "ContainerService",
            "Instance",
            "StaticIp",
            "KeyPair",
            "InstanceSnapshot",
            "Domain",
            "PeeredVpc",
            "LoadBalancer",
            "LoadBalancerTlsCertificate",
            "Disk",
            "DiskSnapshot",
            "RelationalDatabase",
            "RelationalDatabaseSnapshot",
            "ExportSnapshotRecord",
            "CloudFormationStackRecord",
            "Alarm",
            "ContactMethod",
            "Distribution",
            "Certificate",
            "Bucket"
          ],
          "description": "The Lightsail resource type. For example, Instance."
        }
      }
    },
    "SetupRequest": {
      "type": "object",
      "properties": {
        "instanceName": {
          "type": "string",
          "description": "The name of the Lightsail instance."
        },
        "domainNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The name of the domain and subdomains that the SSL/TLS certificate secures."
        },
        "certificateProvider": {
          "type": "string",
          "enum": [
            "LetsEncrypt"
          ],
          "description": "The Certificate Authority (CA) that issues the SSL/TLS certificate."
        }
      }
    }
  }
}