{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-register-destination-endpoint-request-schema.json",
  "title": "RegisterDestinationEndpointRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediaconnect-destinationendpoint-api-openapi.yml#/components/schemas/RegisterDestinationEndpointRequest",
  "type": "object",
  "properties": {
    "Description": {
      "type": "string",
      "description": "A description to help you identify the destination endpoint."
    },
    "Configuration": {
      "$ref": "#/$defs/DestinationEndpointConfiguration"
    },
    "RegionName": {
      "type": "string",
      "description": "The name of the Amazon Web Services Region in which to register the destination endpoint. Defaults to the current region if not specified."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to apply to the destination endpoint. Each tag is a key-value pair."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If this token matches a previous request, the service ignores the request, but does not return an error."
    }
  },
  "required": [
    "Configuration"
  ],
  "$defs": {
    "DestinationEndpointConfiguration": {
      "type": "object",
      "properties": {
        "Standard": {
          "$ref": "#/$defs/StandardDestinationEndpointConfiguration"
        },
        "RouterInput": {
          "$ref": "#/$defs/RouterInputDestinationEndpointConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "EndpointEncryptionSecretConfiguration": {
      "type": "object",
      "properties": {
        "SecretArn": {
          "type": "string",
          "description": "The ARN of the Secrets Manager secret that holds the key or passphrase. The secret must be encrypted with a customer managed Amazon Web Services KMS key that is enabled and symmetric; it cannot use the Amazon Web Services managed key aws/secretsmanager. The secret must be in the same Amazon Web Services account and Region as the endpoint."
        }
      },
      "required": [
        "SecretArn"
      ]
    },
    "PublicDestinationEndpointNetworkingConfiguration": {
      "type": "object",
      "properties": {
        "DestinationAllowRules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PublicDestinationEndpointNetworkingConfigurationAllowRule"
          },
          "description": "The rules that specify which CIDR blocks can connect to the destination endpoint. You can specify up to 10 rules."
        }
      },
      "required": [
        "DestinationAllowRules"
      ]
    },
    "PublicDestinationEndpointNetworkingConfigurationAllowRule": {
      "type": "object",
      "properties": {
        "Cidr": {
          "type": "string",
          "description": "The CIDR block that is allowed to connect to the destination endpoint, in CIDR notation."
        }
      },
      "required": [
        "Cidr"
      ]
    },
    "RistStandardDestinationEndpointConfiguration": {
      "type": "object",
      "properties": {
        "DestinationAddress": {
          "type": "string",
          "description": "The IP address on which the destination endpoint receives content."
        },
        "DestinationIngestPort": {
          "type": "integer",
          "description": "The port on which the destination endpoint receives content. The valid range is 1024 to 65531."
        }
      },
      "required": [
        "DestinationAddress",
        "DestinationIngestPort"
      ]
    },
    "RouterInputDestinationEndpointConfiguration": {
      "type": "object",
      "properties": {
        "RouterInputArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the router input that the destination endpoint represents."
        }
      },
      "required": [
        "RouterInputArn"
      ]
    },
    "RtpStandardDestinationEndpointConfiguration": {
      "type": "object",
      "properties": {
        "DestinationAddress": {
          "type": "string",
          "description": "The IP address on which the destination endpoint receives content."
        },
        "DestinationIngestPort": {
          "type": "integer",
          "description": "The port on which the destination endpoint receives content. The valid range is 1024 to 65531."
        },
        "ForwardErrorCorrectionState": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether forward error correction (FEC) is enabled for the destination endpoint."
        }
      },
      "required": [
        "DestinationAddress",
        "DestinationIngestPort",
        "ForwardErrorCorrectionState"
      ]
    },
    "SrtCallerStandardDestinationEndpointConfiguration": {
      "type": "object",
      "properties": {
        "SourceListenerPort": {
          "type": "integer",
          "description": "The port on which the source listens for the connection. The valid range is 3000 to 30000."
        },
        "MinimumLatencyMilliseconds": {
          "type": "integer",
          "description": "The minimum latency, in milliseconds, for the SRT connection. The valid range is 10 to 10000."
        },
        "EncryptionPassphrase": {
          "$ref": "#/$defs/EndpointEncryptionSecretConfiguration"
        }
      },
      "required": [
        "SourceListenerPort",
        "MinimumLatencyMilliseconds"
      ]
    },
    "SrtListenerStandardDestinationEndpointConfiguration": {
      "type": "object",
      "properties": {
        "DestinationAddress": {
          "type": "string",
          "description": "The IP address on which the destination endpoint listens for incoming connections."
        },
        "DestinationIngestPort": {
          "type": "integer",
          "description": "The port on which the destination endpoint listens for incoming connections. The valid range is 0 to 65531."
        },
        "MinimumLatencyMilliseconds": {
          "type": "integer",
          "description": "The minimum latency, in milliseconds, for the SRT connection. The valid range is 10 to 10000."
        },
        "StreamId": {
          "type": "string",
          "description": "The stream ID that identifies the content for the SRT connection."
        },
        "EncryptionPassphrase": {
          "$ref": "#/$defs/EndpointEncryptionSecretConfiguration"
        }
      },
      "required": [
        "DestinationAddress",
        "DestinationIngestPort",
        "MinimumLatencyMilliseconds"
      ]
    },
    "StandardDestinationEndpointConfiguration": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the destination endpoint."
        },
        "DestinationNetworkingConfiguration": {
          "$ref": "#/$defs/StandardDestinationEndpointNetworkingConfiguration"
        },
        "ProtocolConfiguration": {
          "$ref": "#/$defs/StandardDestinationEndpointProtocolConfiguration"
        },
        "DestinationNetworkingType": {
          "type": "string",
          "enum": [
            "PUBLIC",
            "VPC"
          ],
          "description": "The networking type of the destination endpoint. Valid values include the following: PUBLIC – The destination endpoint is publicly accessible. VPC – The destination endpoint is in a virtual private cloud (VPC)."
        },
        "Protocol": {
          "type": "string",
          "enum": [
            "RTP",
            "RIST",
            "SRT_CALLER",
            "SRT_LISTENER"
          ],
          "description": "The protocol used by the destination endpoint. Valid values include the following: RTP – Real-time Transport Protocol. RIST – Reliable Internet Stream Transport. SRT_CALLER – Secure Reliable Transport (SRT) in caller mode. SRT_LISTENER – Secure Reliable Transport (SRT) in listener mode."
        }
      },
      "required": [
        "Name",
        "DestinationNetworkingConfiguration",
        "ProtocolConfiguration"
      ]
    },
    "StandardDestinationEndpointNetworkingConfiguration": {
      "type": "object",
      "properties": {
        "Public": {
          "$ref": "#/$defs/PublicDestinationEndpointNetworkingConfiguration"
        },
        "Vpc": {
          "$ref": "#/$defs/VpcDestinationEndpointNetworkingConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "StandardDestinationEndpointProtocolConfiguration": {
      "type": "object",
      "properties": {
        "Rist": {
          "$ref": "#/$defs/RistStandardDestinationEndpointConfiguration"
        },
        "SrtListener": {
          "$ref": "#/$defs/SrtListenerStandardDestinationEndpointConfiguration"
        },
        "SrtCaller": {
          "$ref": "#/$defs/SrtCallerStandardDestinationEndpointConfiguration"
        },
        "Rtp": {
          "$ref": "#/$defs/RtpStandardDestinationEndpointConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "VpcDestinationEndpointNetworkingConfiguration": {
      "type": "object",
      "properties": {
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of the security groups to associate with the destination endpoint. You can specify from 1 to 5 security groups."
        },
        "SubnetId": {
          "type": "string",
          "description": "The ID of the subnet to use for the destination endpoint."
        }
      },
      "required": [
        "SecurityGroupIds",
        "SubnetId"
      ]
    }
  }
}