{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-get-auto-snapshots-result-schema.json",
  "title": "GetAutoSnapshotsResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-snapshots-api-openapi.yml#/components/schemas/GetAutoSnapshotsResult",
  "type": "object",
  "properties": {
    "resourceName": {
      "type": "string",
      "description": "The name of the source instance or disk for the automatic snapshots."
    },
    "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 resource type of the automatic snapshot. The possible values are Instance, and Disk."
    },
    "autoSnapshots": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AutoSnapshotDetails"
      },
      "description": "An array of objects that describe the automatic snapshots that are available for the specified source instance or disk."
    }
  },
  "$defs": {
    "AttachedDisk": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "description": "The path of the disk (/dev/xvdf)."
        },
        "sizeInGb": {
          "type": "integer",
          "description": "The size of the disk in GB."
        }
      }
    },
    "AutoSnapshotDetails": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "description": "The date of the automatic snapshot in YYYY-MM-DD format."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the automatic snapshot was created."
        },
        "status": {
          "type": "string",
          "enum": [
            "Success",
            "Failed",
            "InProgress",
            "NotFound"
          ],
          "description": "The status of the automatic snapshot."
        },
        "fromAttachedDisks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AttachedDisk"
          },
          "description": "An array of objects that describe the block storage disks attached to the instance when the automatic snapshot was created."
        }
      }
    }
  }
}