{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-register-source-endpoint-request-schema.json",
  "title": "RegisterSourceEndpointRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediaconnect-sourceendpoint-api-openapi.yml#/components/schemas/RegisterSourceEndpointRequest",
  "type": "object",
  "properties": {
    "RegionName": {
      "type": "string",
      "description": "The name of the Amazon Web Services Region in which to register the source endpoint. Defaults to the current region if not specified."
    },
    "Description": {
      "type": "string",
      "description": "A description to help you identify the source endpoint."
    },
    "Configuration": {
      "$ref": "#/$defs/SourceEndpointConfiguration"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to apply to the source 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": {
    "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"
      ]
    },
    "PublicSourceEndpointNetworkingConfiguration": {
      "type": "object",
      "properties": {
        "SourceAllowRules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PublicSourceEndpointNetworkingConfigurationAllowRule"
          },
          "description": "The rules that specify which CIDR blocks can connect to the source endpoint. You can specify up to 10 rules."
        }
      },
      "required": [
        "SourceAllowRules"
      ]
    },
    "PublicSourceEndpointNetworkingConfigurationAllowRule": {
      "type": "object",
      "properties": {
        "Cidr": {
          "type": "string",
          "description": "The CIDR block that is allowed to connect to the source endpoint, in CIDR notation."
        }
      },
      "required": [
        "Cidr"
      ]
    },
    "RistStandardSourceEndpointConfiguration": {
      "type": "object",
      "properties": {
        "DestinationIngestPort": {
          "type": "integer",
          "description": "The port on the destination that receives the content. The valid range is 3000 to 30000."
        },
        "RecoveryLatencyMilliseconds": {
          "type": "integer",
          "description": "The amount of time, in milliseconds, that the source endpoint allows for recovering lost packets. The valid range is 10 to 10000."
        }
      },
      "required": [
        "DestinationIngestPort",
        "RecoveryLatencyMilliseconds"
      ]
    },
    "RouterOutputSourceEndpointConfiguration": {
      "type": "object",
      "properties": {
        "RouterOutputArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the router output that the source endpoint represents."
        }
      },
      "required": [
        "RouterOutputArn"
      ]
    },
    "RtpStandardSourceEndpointConfiguration": {
      "type": "object",
      "properties": {
        "DestinationIngestPort": {
          "type": "integer",
          "description": "The port on the destination that receives the content. The valid range is 3000 to 30000."
        },
        "ForwardErrorCorrectionState": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether forward error correction (FEC) is enabled for the source endpoint."
        }
      },
      "required": [
        "DestinationIngestPort",
        "ForwardErrorCorrectionState"
      ]
    },
    "SourceEndpointConfiguration": {
      "type": "object",
      "properties": {
        "Standard": {
          "$ref": "#/$defs/StandardSourceEndpointConfiguration"
        },
        "RouterOutput": {
          "$ref": "#/$defs/RouterOutputSourceEndpointConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "SrtCallerStandardSourceEndpointConfiguration": {
      "type": "object",
      "properties": {
        "DestinationIngestPort": {
          "type": "integer",
          "description": "The port on which the destination 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": [
        "DestinationIngestPort",
        "MinimumLatencyMilliseconds"
      ]
    },
    "SrtListenerStandardSourceEndpointConfiguration": {
      "type": "object",
      "properties": {
        "SourceListenerPort": {
          "type": "integer",
          "description": "The port that the source endpoint listens on for incoming connections. The valid range is 1024 to 65535."
        },
        "SourceAddress": {
          "type": "string",
          "description": "The IP address that the source endpoint listens on for incoming connections."
        },
        "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": [
        "SourceListenerPort",
        "SourceAddress",
        "MinimumLatencyMilliseconds"
      ]
    },
    "StandardSourceEndpointConfiguration": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the source endpoint."
        },
        "SourceNetworkingConfiguration": {
          "$ref": "#/$defs/StandardSourceEndpointNetworkingConfiguration"
        },
        "ProtocolConfiguration": {
          "$ref": "#/$defs/StandardSourceEndpointProtocolConfiguration"
        },
        "SourceNetworkingType": {
          "type": "string",
          "enum": [
            "PUBLIC",
            "VPC"
          ],
          "description": "The networking type of the source endpoint. Valid values include the following: PUBLIC – The source endpoint is publicly accessible. VPC – The source endpoint is in a virtual private cloud (VPC)."
        },
        "Protocol": {
          "type": "string",
          "enum": [
            "RTP",
            "RIST",
            "SRT_CALLER",
            "SRT_LISTENER"
          ],
          "description": "The protocol used by the source 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",
        "SourceNetworkingConfiguration",
        "ProtocolConfiguration"
      ]
    },
    "StandardSourceEndpointNetworkingConfiguration": {
      "type": "object",
      "properties": {
        "Public": {
          "$ref": "#/$defs/PublicSourceEndpointNetworkingConfiguration"
        },
        "Vpc": {
          "$ref": "#/$defs/VpcSourceEndpointNetworkingConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "StandardSourceEndpointProtocolConfiguration": {
      "type": "object",
      "properties": {
        "Rist": {
          "$ref": "#/$defs/RistStandardSourceEndpointConfiguration"
        },
        "SrtListener": {
          "$ref": "#/$defs/SrtListenerStandardSourceEndpointConfiguration"
        },
        "SrtCaller": {
          "$ref": "#/$defs/SrtCallerStandardSourceEndpointConfiguration"
        },
        "Rtp": {
          "$ref": "#/$defs/RtpStandardSourceEndpointConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "VpcSourceEndpointNetworkingConfiguration": {
      "type": "object",
      "properties": {
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of the security groups to associate with the source endpoint. You can specify from 1 to 5 security groups."
        },
        "SubnetId": {
          "type": "string",
          "description": "The ID of the subnet to use for the source endpoint."
        }
      },
      "required": [
        "SecurityGroupIds",
        "SubnetId"
      ]
    }
  }
}