{
  "$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-request-schema.json",
  "title": "CreateDataflowEndpointGroupRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ground-station-dataflow-endpoint-group-api-openapi.yml#/components/schemas/CreateDataflowEndpointGroupRequest",
  "type": "object",
  "properties": {
    "endpointDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EndpointDetails"
      },
      "description": "Endpoint details of each endpoint in the dataflow endpoint group. All dataflow endpoints within a single dataflow endpoint group must be of the same type. You cannot mix AWS Ground Station Agent endpoints with Dataflow endpoints in the same group. If your use case requires both types of endpoints, you must create separate dataflow endpoint groups for each type."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags of a dataflow endpoint group."
    },
    "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."
    }
  },
  "required": [
    "endpointDetails"
  ],
  "$defs": {
    "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"
      ]
    },
    "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"
      ]
    },
    "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."
        }
      }
    },
    "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."
    },
    "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."
        }
      }
    },
    "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"
      ]
    },
    "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"
      ]
    },
    "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."
    }
  }
}