{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ground-station/json-schema/amazon-ground-station-describe-contact-response-schema.json",
  "title": "DescribeContactResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ground-station-contact-api-openapi.yml#/components/schemas/DescribeContactResponse",
  "type": "object",
  "properties": {
    "contactId": {
      "type": "string",
      "description": "UUID of a contact."
    },
    "missionProfileArn": {
      "type": "string",
      "description": "ARN of a mission profile."
    },
    "satelliteArn": {
      "type": "string",
      "description": "ARN of a satellite."
    },
    "startTime": {
      "type": "string",
      "description": "Start time of a contact in UTC."
    },
    "endTime": {
      "type": "string",
      "description": "End time of a contact in UTC."
    },
    "prePassStartTime": {
      "type": "string",
      "description": "Start time in UTC of the pre-pass period, at which you receive a CloudWatch event indicating an upcoming pass."
    },
    "postPassEndTime": {
      "type": "string",
      "description": "End time in UTC of the post-pass period, at which you receive a CloudWatch event indicating the pass has finished."
    },
    "groundStation": {
      "type": "string",
      "description": "Ground station for a contact."
    },
    "contactStatus": {
      "type": "string",
      "enum": [
        "SCHEDULING",
        "FAILED_TO_SCHEDULE",
        "SCHEDULED",
        "CANCELLED",
        "AWS_CANCELLED",
        "PREPASS",
        "PASS",
        "POSTPASS",
        "COMPLETED",
        "FAILED",
        "AVAILABLE",
        "CANCELLING",
        "AWS_FAILED"
      ],
      "description": "Status of a contact."
    },
    "errorMessage": {
      "type": "string",
      "description": "Error message for a contact."
    },
    "maximumElevation": {
      "$ref": "#/$defs/Elevation"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags assigned to a contact."
    },
    "region": {
      "type": "string",
      "description": "Region where the ReserveContact API was called to schedule this contact."
    },
    "dataflowList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataflowDetail"
      },
      "description": "List describing source and destination details for each dataflow edge."
    },
    "visibilityStartTime": {
      "type": "string",
      "description": "Projected time in UTC your satellite will rise above the receive mask. This time is based on the satellite's current active ephemeris for future contacts and the ephemeris that was active during contact execution for completed contacts."
    },
    "visibilityEndTime": {
      "type": "string",
      "description": "Projected time in UTC your satellite will set below the receive mask. This time is based on the satellite's current active ephemeris for future contacts and the ephemeris that was active during contact execution for completed contacts."
    },
    "trackingOverrides": {
      "$ref": "#/$defs/TrackingOverrides"
    },
    "ephemeris": {
      "$ref": "#/$defs/EphemerisResponseData"
    },
    "version": {
      "$ref": "#/$defs/ContactVersion"
    }
  },
  "$defs": {
    "AntennaDemodDecodeDetails": {
      "type": "object",
      "properties": {
        "outputNode": {
          "type": "string",
          "description": "Name of an antenna demod decode output node used in a contact."
        }
      }
    },
    "AwsGroundStationAgentEndpoint": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name string associated with AgentEndpoint. Used as a human-readable identifier for AgentEndpoint."
        },
        "egressAddress": {
          "$ref": "#/$defs/ConnectionDetails"
        },
        "ingressAddress": {
          "$ref": "#/$defs/RangedConnectionDetails"
        },
        "agentStatus": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "FAILED",
            "ACTIVE",
            "INACTIVE"
          ],
          "description": "The status of AgentEndpoint."
        },
        "auditResults": {
          "type": "string",
          "enum": [
            "HEALTHY",
            "UNHEALTHY"
          ],
          "description": "The results of the audit."
        }
      },
      "required": [
        "name",
        "egressAddress",
        "ingressAddress"
      ]
    },
    "AzElProgramTrackSettings": {
      "type": "object",
      "properties": {
        "ephemerisId": {
          "type": "string",
          "description": "Unique identifier of the azimuth elevation ephemeris."
        }
      },
      "required": [
        "ephemerisId"
      ]
    },
    "ConfigDetails": {
      "type": "object",
      "properties": {
        "endpointDetails": {
          "$ref": "#/$defs/EndpointDetails"
        },
        "antennaDemodDecodeDetails": {
          "$ref": "#/$defs/AntennaDemodDecodeDetails"
        },
        "s3RecordingDetails": {
          "$ref": "#/$defs/S3RecordingDetails"
        }
      },
      "description": "Exactly one member is set."
    },
    "ConnectionDetails": {
      "type": "object",
      "properties": {
        "socketAddress": {
          "$ref": "#/$defs/SocketAddress"
        },
        "mtu": {
          "type": "integer",
          "description": "Maximum transmission unit (MTU) size in bytes of a dataflow endpoint."
        }
      },
      "required": [
        "socketAddress"
      ]
    },
    "ContactVersion": {
      "type": "object",
      "properties": {
        "versionId": {
          "type": "integer",
          "description": "Version ID of a contact."
        },
        "created": {
          "type": "string",
          "description": "Time the contact version was created in UTC."
        },
        "activated": {
          "type": "string",
          "description": "Time the contact version was activated in UTC. A version is activated when it becomes the current active version of the contact."
        },
        "superseded": {
          "type": "string",
          "description": "Time the contact version was superseded in UTC. A version is superseded when a newer version becomes active."
        },
        "lastUpdated": {
          "type": "string",
          "description": "Time the contact version was last updated in UTC."
        },
        "status": {
          "type": "string",
          "enum": [
            "UPDATING",
            "ACTIVE",
            "SUPERSEDED",
            "FAILED_TO_UPDATE"
          ],
          "description": "Status of the contact version."
        },
        "failureCodes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "INTERNAL_ERROR",
              "INVALID_SATELLITE_ARN",
              "INVALID_UPDATE_CONTACT_REQUEST",
              "EPHEMERIS_NOT_FOUND",
              "EPHEMERIS_TIME_RANGE_INVALID",
              "EPHEMERIS_NOT_ENABLED",
              "SATELLITE_DOES_NOT_MATCH_EPHEMERIS",
              "NOT_ONBOARDED_TO_AZEL_EPHEMERIS",
              "AZEL_EPHEMERIS_NOT_FOUND",
              "AZEL_EPHEMERIS_WRONG_GROUND_STATION",
              "AZEL_EPHEMERIS_INVALID_STATUS",
              "AZEL_EPHEMERIS_TIME_RANGE_INVALID"
            ]
          },
          "description": "List of failure codes for the contact version."
        },
        "failureMessage": {
          "type": "string",
          "description": "Failure message for the contact version."
        }
      }
    },
    "DataflowDetail": {
      "type": "object",
      "properties": {
        "source": {
          "$ref": "#/$defs/Source"
        },
        "destination": {
          "$ref": "#/$defs/Destination"
        },
        "errorMessage": {
          "type": "string",
          "description": "Error message for a dataflow."
        }
      }
    },
    "DataflowEndpoint": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of a dataflow endpoint."
        },
        "address": {
          "$ref": "#/$defs/SocketAddress"
        },
        "status": {
          "type": "string",
          "enum": [
            "created",
            "creating",
            "deleted",
            "deleting",
            "failed"
          ],
          "description": "Status of a dataflow endpoint."
        },
        "mtu": {
          "type": "integer",
          "description": "Maximum transmission unit (MTU) size in bytes of a dataflow endpoint."
        }
      }
    },
    "Destination": {
      "type": "object",
      "properties": {
        "configType": {
          "type": "string",
          "enum": [
            "antenna-downlink",
            "antenna-downlink-demod-decode",
            "tracking",
            "dataflow-endpoint",
            "antenna-uplink",
            "uplink-echo",
            "s3-recording",
            "telemetry-sink"
          ],
          "description": "Type of a Config."
        },
        "configId": {
          "type": "string",
          "description": "UUID of a Config."
        },
        "configDetails": {
          "$ref": "#/$defs/ConfigDetails"
        },
        "dataflowDestinationRegion": {
          "type": "string",
          "description": "Region of a dataflow destination."
        }
      }
    },
    "DownlinkAwsGroundStationAgentEndpointDetails": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Downlink dataflow endpoint name"
        },
        "dataflowDetails": {
          "$ref": "#/$defs/DownlinkDataflowDetails"
        },
        "agentStatus": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "FAILED",
            "ACTIVE",
            "INACTIVE"
          ],
          "description": "Status of the agent associated with the downlink dataflow endpoint"
        },
        "auditResults": {
          "type": "string",
          "enum": [
            "HEALTHY",
            "UNHEALTHY"
          ],
          "description": "Health audit results for the downlink dataflow endpoint"
        }
      },
      "required": [
        "name",
        "dataflowDetails"
      ]
    },
    "DownlinkConnectionDetails": {
      "type": "object",
      "properties": {
        "agentIpAndPortAddress": {
          "$ref": "#/$defs/RangedConnectionDetails"
        },
        "egressAddressAndPort": {
          "$ref": "#/$defs/ConnectionDetails"
        }
      },
      "required": [
        "agentIpAndPortAddress",
        "egressAddressAndPort"
      ]
    },
    "DownlinkDataflowDetails": {
      "type": "object",
      "properties": {
        "agentConnectionDetails": {
          "$ref": "#/$defs/DownlinkConnectionDetails"
        }
      },
      "description": "Exactly one member is set."
    },
    "Elevation": {
      "type": "object",
      "properties": {
        "value": {
          "type": "number",
          "description": "Elevation angle value."
        },
        "unit": {
          "type": "string",
          "enum": [
            "DEGREE_ANGLE",
            "RADIAN"
          ],
          "description": "Elevation angle units."
        }
      },
      "required": [
        "value",
        "unit"
      ]
    },
    "EndpointDetails": {
      "type": "object",
      "properties": {
        "securityDetails": {
          "$ref": "#/$defs/SecurityDetails"
        },
        "endpoint": {
          "$ref": "#/$defs/DataflowEndpoint"
        },
        "awsGroundStationAgentEndpoint": {
          "$ref": "#/$defs/AwsGroundStationAgentEndpoint"
        },
        "uplinkAwsGroundStationAgentEndpoint": {
          "$ref": "#/$defs/UplinkAwsGroundStationAgentEndpointDetails"
        },
        "downlinkAwsGroundStationAgentEndpoint": {
          "$ref": "#/$defs/DownlinkAwsGroundStationAgentEndpointDetails"
        },
        "healthStatus": {
          "type": "string",
          "enum": [
            "HEALTHY",
            "UNHEALTHY"
          ],
          "description": "A dataflow endpoint health status. This field is ignored when calling CreateDataflowEndpointGroup."
        },
        "healthReasons": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "NO_REGISTERED_AGENT",
              "INVALID_IP_OWNERSHIP",
              "NOT_AUTHORIZED_TO_CREATE_SLR",
              "UNVERIFIED_IP_OWNERSHIP",
              "INITIALIZING_DATAPLANE",
              "DATAPLANE_FAILURE",
              "HEALTHY"
            ]
          },
          "description": "Health reasons for a dataflow endpoint. This field is ignored when calling CreateDataflowEndpointGroup."
        }
      }
    },
    "EphemerisResponseData": {
      "type": "object",
      "properties": {
        "ephemerisId": {
          "type": "string",
          "description": "Unique identifier of the ephemeris. Appears only for custom ephemerides."
        },
        "ephemerisType": {
          "type": "string",
          "enum": [
            "TLE",
            "OEM",
            "AZ_EL",
            "SERVICE_MANAGED"
          ],
          "description": "Type of ephemeris."
        }
      },
      "required": [
        "ephemerisType"
      ]
    },
    "IntegerRange": {
      "type": "object",
      "properties": {
        "minimum": {
          "type": "integer",
          "description": "A minimum value."
        },
        "maximum": {
          "type": "integer",
          "description": "A maximum value."
        }
      },
      "required": [
        "minimum",
        "maximum"
      ]
    },
    "OemProgramTrackSettings": {
      "type": "object",
      "properties": {
        "ephemerisId": {
          "type": "string",
          "description": "Unique identifier of the OEM ephemeris."
        }
      },
      "required": [
        "ephemerisId"
      ]
    },
    "ProgramTrackSettings": {
      "type": "object",
      "properties": {
        "azEl": {
          "$ref": "#/$defs/AzElProgramTrackSettings"
        },
        "oem": {
          "$ref": "#/$defs/OemProgramTrackSettings"
        },
        "tle": {
          "$ref": "#/$defs/TleProgramTrackSettings"
        }
      },
      "description": "Exactly one member is set."
    },
    "RangedConnectionDetails": {
      "type": "object",
      "properties": {
        "socketAddress": {
          "$ref": "#/$defs/RangedSocketAddress"
        },
        "mtu": {
          "type": "integer",
          "description": "Maximum transmission unit (MTU) size in bytes of a dataflow endpoint."
        }
      },
      "required": [
        "socketAddress"
      ]
    },
    "RangedSocketAddress": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "IPv4 socket address."
        },
        "portRange": {
          "$ref": "#/$defs/IntegerRange"
        }
      },
      "required": [
        "name",
        "portRange"
      ]
    },
    "S3RecordingDetails": {
      "type": "object",
      "properties": {
        "bucketArn": {
          "type": "string",
          "description": "ARN of the bucket used."
        },
        "keyTemplate": {
          "type": "string",
          "description": "Key template used for the S3 Recording Configuration"
        }
      }
    },
    "SecurityDetails": {
      "type": "object",
      "properties": {
        "subnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of subnets where AWS Ground Station places elastic network interfaces to send streams to your instances."
        },
        "securityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The security groups to attach to the elastic network interfaces."
        },
        "roleArn": {
          "type": "string",
          "description": "ARN to a role needed for connecting streams to your instances."
        }
      },
      "required": [
        "subnetIds",
        "securityGroupIds",
        "roleArn"
      ]
    },
    "SocketAddress": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of a socket address."
        },
        "port": {
          "type": "integer",
          "description": "Port of a socket address."
        }
      },
      "required": [
        "name",
        "port"
      ]
    },
    "Source": {
      "type": "object",
      "properties": {
        "configType": {
          "type": "string",
          "enum": [
            "antenna-downlink",
            "antenna-downlink-demod-decode",
            "tracking",
            "dataflow-endpoint",
            "antenna-uplink",
            "uplink-echo",
            "s3-recording",
            "telemetry-sink"
          ],
          "description": "Type of a Config."
        },
        "configId": {
          "type": "string",
          "description": "UUID of a Config."
        },
        "configDetails": {
          "$ref": "#/$defs/ConfigDetails"
        },
        "dataflowSourceRegion": {
          "type": "string",
          "description": "Region of a dataflow source."
        }
      }
    },
    "TleProgramTrackSettings": {
      "type": "object",
      "properties": {
        "ephemerisId": {
          "type": "string",
          "description": "Unique identifier of the TLE ephemeris."
        }
      },
      "required": [
        "ephemerisId"
      ]
    },
    "TrackingOverrides": {
      "type": "object",
      "properties": {
        "programTrackSettings": {
          "$ref": "#/$defs/ProgramTrackSettings"
        }
      }
    },
    "UplinkAwsGroundStationAgentEndpointDetails": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Uplink dataflow endpoint name"
        },
        "dataflowDetails": {
          "$ref": "#/$defs/UplinkDataflowDetails"
        },
        "agentStatus": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "FAILED",
            "ACTIVE",
            "INACTIVE"
          ],
          "description": "Status of the agent associated with the uplink dataflow endpoint"
        },
        "auditResults": {
          "type": "string",
          "enum": [
            "HEALTHY",
            "UNHEALTHY"
          ],
          "description": "Health audit results for the uplink dataflow endpoint"
        }
      },
      "required": [
        "name",
        "dataflowDetails"
      ]
    },
    "UplinkConnectionDetails": {
      "type": "object",
      "properties": {
        "ingressAddressAndPort": {
          "$ref": "#/$defs/ConnectionDetails"
        },
        "agentIpAndPortAddress": {
          "$ref": "#/$defs/RangedConnectionDetails"
        }
      },
      "required": [
        "ingressAddressAndPort",
        "agentIpAndPortAddress"
      ]
    },
    "UplinkDataflowDetails": {
      "type": "object",
      "properties": {
        "agentConnectionDetails": {
          "$ref": "#/$defs/UplinkConnectionDetails"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}