{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ground-station/json-schema/amazon-ground-station-create-dataflow-endpoint-group-v2-request-schema.json",
  "title": "CreateDataflowEndpointGroupV2Request",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ground-station-operations-api-openapi.yml#/components/schemas/CreateDataflowEndpointGroupV2Request",
  "type": "object",
  "properties": {
    "endpoints": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CreateEndpointDetails"
      },
      "description": "Dataflow endpoint group's endpoint definitions"
    },
    "contactPrePassDurationSeconds": {
      "type": "integer",
      "description": "Amount of time, in seconds, before a contact starts that the Ground Station Dataflow Endpoint Group will be in a PREPASS state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the Dataflow Endpoint Group enters and exits the PREPASS state."
    },
    "contactPostPassDurationSeconds": {
      "type": "integer",
      "description": "Amount of time, in seconds, after a contact ends that the Ground Station Dataflow Endpoint Group will be in a POSTPASS state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the Dataflow Endpoint Group enters and exits the POSTPASS state."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags of a V2 dataflow endpoint group."
    }
  },
  "required": [
    "endpoints"
  ],
  "$defs": {
    "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"
      ]
    },
    "CreateEndpointDetails": {
      "type": "object",
      "properties": {
        "uplinkAwsGroundStationAgentEndpoint": {
          "$ref": "#/$defs/UplinkAwsGroundStationAgentEndpoint"
        },
        "downlinkAwsGroundStationAgentEndpoint": {
          "$ref": "#/$defs/DownlinkAwsGroundStationAgentEndpoint"
        }
      },
      "description": "Exactly one member is set."
    },
    "DownlinkAwsGroundStationAgentEndpoint": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Downlink dataflow endpoint name"
        },
        "dataflowDetails": {
          "$ref": "#/$defs/DownlinkDataflowDetails"
        }
      },
      "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."
    },
    "IntegerRange": {
      "type": "object",
      "properties": {
        "minimum": {
          "type": "integer",
          "description": "A minimum value."
        },
        "maximum": {
          "type": "integer",
          "description": "A maximum value."
        }
      },
      "required": [
        "minimum",
        "maximum"
      ]
    },
    "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"
      ]
    },
    "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"
      ]
    },
    "UplinkAwsGroundStationAgentEndpoint": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Uplink dataflow endpoint name"
        },
        "dataflowDetails": {
          "$ref": "#/$defs/UplinkDataflowDetails"
        }
      },
      "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."
    }
  }
}