{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-application-migration-service/json-schema/amazon-application-migration-service-source-server-schema.json",
  "title": "SourceServer",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-application-migration-service-operations-api-openapi.yml#/components/schemas/SourceServer",
  "type": "object",
  "properties": {
    "sourceServerID": {
      "type": "string",
      "description": "Source server ID."
    },
    "arn": {
      "type": "string",
      "description": "Source server ARN."
    },
    "isArchived": {
      "type": "boolean",
      "description": "Source server archived status."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Source server Tags."
    },
    "launchedInstance": {
      "$ref": "#/$defs/LaunchedInstance"
    },
    "dataReplicationInfo": {
      "$ref": "#/$defs/DataReplicationInfo"
    },
    "lifeCycle": {
      "$ref": "#/$defs/LifeCycle"
    },
    "sourceProperties": {
      "$ref": "#/$defs/SourceProperties"
    },
    "replicationType": {
      "type": "string",
      "description": "Source server replication type."
    },
    "vcenterClientID": {
      "type": "string",
      "description": "Source server vCenter client id."
    },
    "applicationID": {
      "type": "string",
      "description": "Source server application ID."
    },
    "userProvidedID": {
      "type": "string",
      "description": "Source server user provided ID."
    },
    "fqdnForActionFramework": {
      "type": "string",
      "description": "Source server fqdn for action framework."
    },
    "connectorAction": {
      "$ref": "#/$defs/SourceServerConnectorAction"
    }
  },
  "$defs": {
    "CPU": {
      "type": "object",
      "properties": {
        "cores": {
          "type": "integer",
          "description": "The number of CPU cores on the source server."
        },
        "modelName": {
          "type": "string",
          "description": "The source server's CPU model name."
        }
      }
    },
    "DataReplicationError": {
      "type": "object",
      "properties": {
        "error": {
          "type": "string",
          "description": "Error in data replication."
        },
        "rawError": {
          "type": "string",
          "description": "Error in data replication."
        }
      }
    },
    "DataReplicationInfo": {
      "type": "object",
      "properties": {
        "lagDuration": {
          "type": "string",
          "description": "Request to query data replication lag duration."
        },
        "etaDateTime": {
          "type": "string",
          "description": "Request to query the time when data replication will be complete."
        },
        "replicatedDisks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DataReplicationInfoReplicatedDisk"
          },
          "description": "Request to query disks replicated."
        },
        "dataReplicationState": {
          "type": "string",
          "description": "Request to query the data replication state."
        },
        "dataReplicationInitiation": {
          "$ref": "#/$defs/DataReplicationInitiation"
        },
        "dataReplicationError": {
          "$ref": "#/$defs/DataReplicationError"
        },
        "lastSnapshotDateTime": {
          "type": "string",
          "description": "Request to query data replication last snapshot time."
        },
        "replicatorId": {
          "type": "string",
          "description": "Replication server instance ID."
        }
      }
    },
    "DataReplicationInfoReplicatedDisk": {
      "type": "object",
      "properties": {
        "deviceName": {
          "type": "string",
          "description": "Request to query device name."
        },
        "totalStorageBytes": {
          "type": "integer",
          "description": "Request to query total amount of data replicated in bytes."
        },
        "replicatedStorageBytes": {
          "type": "integer",
          "description": "Request to query amount of data replicated in bytes."
        },
        "rescannedStorageBytes": {
          "type": "integer",
          "description": "Request to query amount of data rescanned in bytes."
        },
        "backloggedStorageBytes": {
          "type": "integer",
          "description": "Request to query data replication backlog size in bytes."
        }
      }
    },
    "DataReplicationInitiation": {
      "type": "object",
      "properties": {
        "startDateTime": {
          "type": "string",
          "description": "Request to query data initiation start date and time."
        },
        "nextAttemptDateTime": {
          "type": "string",
          "description": "Request to query next data initiation date and time."
        },
        "steps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DataReplicationInitiationStep"
          },
          "description": "Request to query data initiation steps."
        }
      }
    },
    "DataReplicationInitiationStep": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Request to query data initiation step name."
        },
        "status": {
          "type": "string",
          "description": "Request to query data initiation status."
        }
      }
    },
    "Disk": {
      "type": "object",
      "properties": {
        "deviceName": {
          "type": "string",
          "description": "The disk or device name."
        },
        "bytes": {
          "type": "integer",
          "description": "The amount of storage on the disk in bytes."
        }
      }
    },
    "IdentificationHints": {
      "type": "object",
      "properties": {
        "fqdn": {
          "type": "string",
          "description": "FQDN address identification hint."
        },
        "hostname": {
          "type": "string",
          "description": "Hostname identification hint."
        },
        "vmWareUuid": {
          "type": "string",
          "description": "vmWare UUID identification hint."
        },
        "awsInstanceID": {
          "type": "string",
          "description": "AWS Instance ID identification hint."
        },
        "vmPath": {
          "type": "string",
          "description": "vCenter VM path identification hint."
        }
      }
    },
    "LastKnownCheck": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Last known check type."
        },
        "name": {
          "type": "string",
          "description": "Last known check name."
        },
        "status": {
          "type": "string",
          "description": "Last known check status."
        },
        "error": {
          "type": "string",
          "description": "Last known check error."
        },
        "checkedAt": {
          "type": "string",
          "description": "Last known check timestamp."
        }
      }
    },
    "LaunchedInstance": {
      "type": "object",
      "properties": {
        "ec2InstanceID": {
          "type": "string",
          "description": "Launched instance EC2 ID."
        },
        "jobID": {
          "type": "string",
          "description": "Launched instance Job ID."
        },
        "firstBoot": {
          "type": "string",
          "description": "Launched instance first boot."
        },
        "lastKnownChecks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LastKnownCheck"
          },
          "description": "Launched instance last known checks."
        },
        "lastKnownFsxChecksStatus": {
          "type": "string",
          "description": "Launched instance last known FSx checks status."
        }
      }
    },
    "LifeCycle": {
      "type": "object",
      "properties": {
        "addedToServiceDateTime": {
          "type": "string",
          "description": "Lifecycle added to service date and time."
        },
        "firstByteDateTime": {
          "type": "string",
          "description": "Lifecycle replication initiation date and time."
        },
        "elapsedReplicationDuration": {
          "type": "string",
          "description": "Lifecycle elapsed time and duration."
        },
        "lastSeenByServiceDateTime": {
          "type": "string",
          "description": "Lifecycle last seen date and time."
        },
        "lastTest": {
          "$ref": "#/$defs/LifeCycleLastTest"
        },
        "lastCutover": {
          "$ref": "#/$defs/LifeCycleLastCutover"
        },
        "state": {
          "type": "string",
          "description": "Lifecycle state."
        }
      }
    },
    "LifeCycleLastCutover": {
      "type": "object",
      "properties": {
        "initiated": {
          "$ref": "#/$defs/LifeCycleLastCutoverInitiated"
        },
        "reverted": {
          "$ref": "#/$defs/LifeCycleLastCutoverReverted"
        },
        "finalized": {
          "$ref": "#/$defs/LifeCycleLastCutoverFinalized"
        }
      }
    },
    "LifeCycleLastCutoverFinalized": {
      "type": "object",
      "properties": {
        "apiCallDateTime": {
          "type": "string",
          "description": "Lifecycle Cutover finalized date and time."
        }
      }
    },
    "LifeCycleLastCutoverInitiated": {
      "type": "object",
      "properties": {
        "apiCallDateTime": {
          "type": "string"
        },
        "jobID": {
          "type": "string",
          "description": "Lifecycle last Cutover initiated by Job ID."
        }
      }
    },
    "LifeCycleLastCutoverReverted": {
      "type": "object",
      "properties": {
        "apiCallDateTime": {
          "type": "string",
          "description": "Lifecycle last Cutover reverted API call date time."
        }
      }
    },
    "LifeCycleLastTest": {
      "type": "object",
      "properties": {
        "initiated": {
          "$ref": "#/$defs/LifeCycleLastTestInitiated"
        },
        "reverted": {
          "$ref": "#/$defs/LifeCycleLastTestReverted"
        },
        "finalized": {
          "$ref": "#/$defs/LifeCycleLastTestFinalized"
        }
      }
    },
    "LifeCycleLastTestFinalized": {
      "type": "object",
      "properties": {
        "apiCallDateTime": {
          "type": "string",
          "description": "Lifecycle Test finalized API call date and time."
        }
      }
    },
    "LifeCycleLastTestInitiated": {
      "type": "object",
      "properties": {
        "apiCallDateTime": {
          "type": "string",
          "description": "Lifecycle last Test initiated API call date and time."
        },
        "jobID": {
          "type": "string",
          "description": "Lifecycle last Test initiated Job ID."
        }
      }
    },
    "LifeCycleLastTestReverted": {
      "type": "object",
      "properties": {
        "apiCallDateTime": {
          "type": "string",
          "description": "Lifecycle last Test reverted API call date and time."
        }
      }
    },
    "NetworkInterface": {
      "type": "object",
      "properties": {
        "macAddress": {
          "type": "string",
          "description": "Network interface Mac address."
        },
        "ips": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Network interface IPs."
        },
        "isPrimary": {
          "type": "boolean",
          "description": "Network interface primary IP."
        }
      }
    },
    "OS": {
      "type": "object",
      "properties": {
        "fullString": {
          "type": "string",
          "description": "OS full string."
        }
      }
    },
    "SourceProperties": {
      "type": "object",
      "properties": {
        "lastUpdatedDateTime": {
          "type": "string",
          "description": "Source server last update date and time."
        },
        "recommendedInstanceType": {
          "type": "string",
          "description": "Source server recommended instance type."
        },
        "identificationHints": {
          "$ref": "#/$defs/IdentificationHints"
        },
        "networkInterfaces": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NetworkInterface"
          },
          "description": "Source server network interfaces."
        },
        "disks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Disk"
          },
          "description": "Source Server disks."
        },
        "cpus": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CPU"
          },
          "description": "Source Server CPUs."
        },
        "ramBytes": {
          "type": "integer",
          "description": "Source server RAM in bytes."
        },
        "os": {
          "$ref": "#/$defs/OS"
        }
      }
    },
    "SourceServerConnectorAction": {
      "type": "object",
      "properties": {
        "credentialsSecretArn": {
          "type": "string",
          "description": "Source Server connector action credentials secret arn."
        },
        "connectorArn": {
          "type": "string",
          "description": "Source Server connector action connector arn."
        }
      }
    }
  }
}