{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-get-cloud-formation-stack-records-result-schema.json",
  "title": "GetCloudFormationStackRecordsResult",
  "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/GetCloudFormationStackRecordsResult",
  "type": "object",
  "properties": {
    "cloudFormationStackRecords": {
      "allOf": [
        {
          "$ref": "#/$defs/CloudFormationStackRecordList"
        }
      ],
      "description": "A list of objects describing the CloudFormation stack records."
    },
    "nextPageToken": {
      "allOf": [
        {
          "$ref": "#/$defs/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 GetCloudFormationStackRecords request and specify the next page token using the pageToken parameter."
    }
  },
  "$defs": {
    "CloudFormationStackRecord": {
      "type": "object",
      "properties": {
        "name": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceName"
            }
          ],
          "description": "The name of the CloudFormation stack record. It starts with CloudFormationStackRecord followed by a GUID."
        },
        "arn": {
          "allOf": [
            {
              "$ref": "#/$defs/NonEmptyString"
            }
          ],
          "description": "The Amazon Resource Name (ARN) of the CloudFormation stack record."
        },
        "createdAt": {
          "allOf": [
            {
              "$ref": "#/$defs/IsoDate"
            }
          ],
          "description": "The date when the CloudFormation stack record was created."
        },
        "location": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceLocation"
            }
          ],
          "description": "A list of objects describing the Availability Zone and Amazon Web Services Region of the CloudFormation stack record."
        },
        "resourceType": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceType"
            }
          ],
          "description": "The Lightsail resource type ( CloudFormationStackRecord )."
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/$defs/RecordState"
            }
          ],
          "description": "The current state of the CloudFormation stack record."
        },
        "sourceInfo": {
          "allOf": [
            {
              "$ref": "#/$defs/CloudFormationStackRecordSourceInfoList"
            }
          ],
          "description": "A list of objects describing the source of the CloudFormation stack record."
        },
        "destinationInfo": {
          "allOf": [
            {
              "$ref": "#/$defs/DestinationInfo"
            }
          ],
          "description": "A list of objects describing the destination service, which is AWS CloudFormation, and the Amazon Resource Name (ARN) of the AWS CloudFormation stack."
        }
      },
      "description": "Describes a CloudFormation stack record created as a result of the create cloud formation stack action. A CloudFormation stack record provides information about the AWS CloudFormation stack used to create a new Amazon Elastic Compute Cloud instance from an exported Lightsail instance snapshot."
    },
    "CloudFormationStackRecordList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CloudFormationStackRecord"
      }
    },
    "CloudFormationStackRecordSourceInfo": {
      "type": "object",
      "properties": {
        "resourceType": {
          "allOf": [
            {
              "$ref": "#/$defs/CloudFormationStackRecordSourceType"
            }
          ],
          "description": "The Lightsail resource type ( ExportSnapshotRecord )."
        },
        "name": {
          "allOf": [
            {
              "$ref": "#/$defs/NonEmptyString"
            }
          ],
          "description": "The name of the record."
        },
        "arn": {
          "allOf": [
            {
              "$ref": "#/$defs/NonEmptyString"
            }
          ],
          "description": "The Amazon Resource Name (ARN) of the export snapshot record."
        }
      },
      "description": "Describes the source of a CloudFormation stack record (i.e., the export snapshot record)."
    },
    "CloudFormationStackRecordSourceInfoList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CloudFormationStackRecordSourceInfo"
      }
    },
    "CloudFormationStackRecordSourceType": {
      "type": "string",
      "enum": [
        "ExportSnapshotRecord"
      ]
    },
    "DestinationInfo": {
      "type": "object",
      "properties": {
        "id": {
          "allOf": [
            {
              "$ref": "#/$defs/NonEmptyString"
            }
          ],
          "description": "The ID of the resource created at the destination."
        },
        "service": {
          "allOf": [
            {
              "$ref": "#/$defs/NonEmptyString"
            }
          ],
          "description": "The destination service of the record."
        }
      },
      "description": "Describes the destination of a record."
    },
    "IsoDate": {
      "type": "string",
      "format": "date-time"
    },
    "NonEmptyString": {
      "type": "string",
      "pattern": "\\S"
    },
    "RecordState": {
      "type": "string",
      "enum": [
        "Started",
        "Succeeded",
        "Failed"
      ]
    },
    "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"
      ]
    },
    "ResourceLocation": {
      "type": "object",
      "properties": {
        "availabilityZone": {
          "allOf": [
            {
              "$ref": "#/$defs/string"
            }
          ],
          "description": "The Availability Zone. Follows the format us-east-2a (case-sensitive)."
        },
        "regionName": {
          "allOf": [
            {
              "$ref": "#/$defs/RegionName"
            }
          ],
          "description": "The Amazon Web Services Region name."
        }
      },
      "description": "Describes the resource location."
    },
    "ResourceName": {
      "type": "string",
      "pattern": "^\\w[\\w\\-]*\\w$"
    },
    "ResourceType": {
      "type": "string",
      "enum": [
        "ContainerService",
        "Instance",
        "StaticIp",
        "KeyPair",
        "InstanceSnapshot",
        "Domain",
        "PeeredVpc",
        "LoadBalancer",
        "LoadBalancerTlsCertificate",
        "Disk",
        "DiskSnapshot",
        "RelationalDatabase",
        "RelationalDatabaseSnapshot",
        "ExportSnapshotRecord",
        "CloudFormationStackRecord",
        "Alarm",
        "ContactMethod",
        "Distribution",
        "Certificate",
        "Bucket"
      ]
    },
    "string": {
      "type": "string"
    }
  }
}