{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-batch-get-source-endpoint-response-schema.json",
  "title": "BatchGetSourceEndpointResponse",
  "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/BatchGetSourceEndpointResponse",
  "type": "object",
  "properties": {
    "SourceEndpoints": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SourceEndpoint"
      },
      "description": "The source endpoints that MediaConnect successfully retrieved."
    },
    "Errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchGetSourceEndpointError"
      },
      "description": "The errors for any source endpoints that MediaConnect couldn't retrieve."
    }
  },
  "required": [
    "SourceEndpoints",
    "Errors"
  ],
  "$defs": {
    "AutomaticEndpointEncryptionConfiguration": {
      "type": "object",
      "properties": {}
    },
    "BatchGetSourceEndpointError": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the source endpoint that MediaConnect couldn't retrieve."
        },
        "Code": {
          "type": "string",
          "description": "The error code."
        },
        "Message": {
          "type": "string",
          "description": "A description of the error."
        }
      },
      "required": [
        "Arn",
        "Code",
        "Message"
      ]
    },
    "ConsumedResourceShareDetails": {
      "type": "object",
      "properties": {
        "OwnerAccountId": {
          "type": "string",
          "description": "The ID of the Amazon Web Services account that owns the shared endpoint."
        }
      },
      "required": [
        "OwnerAccountId"
      ]
    },
    "EndpointEncryptionConfiguration": {
      "type": "object",
      "properties": {
        "SecretsManager": {
          "$ref": "#/$defs/SecretsManagerEndpointEncryptionConfiguration"
        },
        "Automatic": {
          "$ref": "#/$defs/AutomaticEndpointEncryptionConfiguration"
        }
      },
      "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"
      ]
    },
    "OwnedResourceShareDetails": {
      "type": "object",
      "properties": {
        "ShareState": {
          "type": "string",
          "enum": [
            "SHARED",
            "UNSHARED"
          ],
          "description": "The sharing state of the endpoint. Valid values include the following: SHARED – The endpoint is shared with one or more accounts. UNSHARED – The endpoint is not shared with other accounts."
        }
      },
      "required": [
        "ShareState"
      ]
    },
    "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"
      ]
    },
    "ResourceShareDetails": {
      "type": "object",
      "properties": {
        "Owned": {
          "$ref": "#/$defs/OwnedResourceShareDetails"
        },
        "Consumed": {
          "$ref": "#/$defs/ConsumedResourceShareDetails"
        }
      },
      "description": "Exactly one member is set."
    },
    "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"
      ]
    },
    "RouterOutputMessage": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "description": "The code associated with the router output message."
        },
        "Message": {
          "type": "string",
          "description": "The message text associated with the router output message."
        }
      },
      "required": [
        "Code",
        "Message"
      ]
    },
    "RouterOutputSourceEndpointAssociatedResourceDetails": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the router output."
        },
        "MaximumBitrate": {
          "type": "integer",
          "description": "The maximum bitrate of the router output, in bits per second."
        },
        "State": {
          "type": "string",
          "enum": [
            "CREATING",
            "STANDBY",
            "STARTING",
            "ACTIVE",
            "STOPPING",
            "DELETING",
            "UPDATING",
            "ERROR",
            "RECOVERING",
            "MIGRATING"
          ],
          "description": "The state of the router output."
        },
        "Messages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouterOutputMessage"
          },
          "description": "The status messages for the router output."
        }
      },
      "required": [
        "Name",
        "MaximumBitrate",
        "State",
        "Messages"
      ]
    },
    "RouterOutputSourceEndpointConfiguration": {
      "type": "object",
      "properties": {
        "RouterOutputArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the router output that the source endpoint represents."
        }
      },
      "required": [
        "RouterOutputArn"
      ]
    },
    "RouterOutputSourceEndpointConnectionDetails": {
      "type": "object",
      "properties": {
        "DestinationDecryptionType": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER",
            "AUTOMATIC"
          ],
          "description": "The type of decryption that the destination uses for the connection."
        },
        "DestinationDecryptionConfiguration": {
          "$ref": "#/$defs/EndpointEncryptionConfiguration"
        },
        "DestinationEndpointType": {
          "type": "string",
          "enum": [
            "STANDARD",
            "ROUTER_INPUT"
          ],
          "description": "The type of the connected destination endpoint."
        }
      }
    },
    "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"
      ]
    },
    "SecretsManagerEndpointEncryptionConfiguration": {
      "type": "object",
      "properties": {
        "EncryptionSecretType": {
          "type": "string",
          "enum": [
            "AES_128_KEY",
            "AES_192_KEY",
            "AES_256_KEY",
            "SRT_PASSPHRASE"
          ],
          "description": "The type of secret used to encrypt the connection. Valid values include the following: AES_128_KEY – A 128-bit AES encryption key. AES_192_KEY – A 192-bit AES encryption key. AES_256_KEY – A 256-bit AES encryption key. SRT_PASSPHRASE – An SRT passphrase."
        },
        "EncryptionSecret": {
          "$ref": "#/$defs/EndpointEncryptionSecretConfiguration"
        }
      },
      "required": [
        "EncryptionSecret"
      ]
    },
    "SourceEndpoint": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the source endpoint."
        },
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the source endpoint."
        },
        "Id": {
          "type": "string",
          "description": "The unique identifier of the source endpoint."
        },
        "Description": {
          "type": "string",
          "description": "The description of the source endpoint."
        },
        "RegionName": {
          "type": "string",
          "description": "The name of the Amazon Web Services Region in which the source endpoint is located."
        },
        "AvailabilityZone": {
          "type": "string",
          "description": "The Availability Zone in which the source endpoint is located."
        },
        "AvailabilityZoneId": {
          "type": "string",
          "description": "The ID of the Availability Zone in which the source endpoint is located."
        },
        "CreatedAt": {
          "type": "string",
          "description": "The date and time when the source endpoint was created."
        },
        "UpdatedAt": {
          "type": "string",
          "description": "The date and time when the source endpoint was last updated."
        },
        "LifecycleManagement": {
          "type": "string",
          "enum": [
            "MANAGED",
            "UNMANAGED"
          ],
          "description": "The entity that manages the lifecycle of the source endpoint."
        },
        "Messages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SourceEndpointMessage"
          },
          "description": "The status messages for the source endpoint."
        },
        "SourceType": {
          "type": "string",
          "enum": [
            "STANDARD",
            "ROUTER_OUTPUT"
          ],
          "description": "The type of the source endpoint. Valid values include the following: STANDARD – A source endpoint that represents an external source over a standard protocol, such as RTP, RIST, or SRT. ROUTER_OUTPUT – A source endpoint that represents a router output."
        },
        "Configuration": {
          "$ref": "#/$defs/SourceEndpointConfiguration"
        },
        "ResourceShareOwnership": {
          "type": "string",
          "enum": [
            "OWNED",
            "CONSUMED"
          ],
          "description": "Indicates whether this account owns the source endpoint or consumes it from another account through RAM."
        },
        "ResourceShareDetails": {
          "$ref": "#/$defs/ResourceShareDetails"
        },
        "RegistrationState": {
          "type": "string",
          "enum": [
            "REGISTERED",
            "REGISTERING",
            "DEREGISTERING",
            "REGISTRATION_FAILED"
          ],
          "description": "The registration state of the source endpoint. Valid values include the following: REGISTERED – The source endpoint is registered and ready to use. REGISTERING – MediaConnect is registering the source endpoint. DEREGISTERING – MediaConnect is deregistering the source endpoint. REGISTRATION_FAILED – MediaConnect couldn't register the source endpoint."
        },
        "ConnectionState": {
          "type": "string",
          "enum": [
            "CONNECTED",
            "DISCONNECTED",
            "CONNECTING",
            "DISCONNECTING"
          ],
          "description": "The connection state of the source endpoint. Valid values include the following: CONNECTED – The source endpoint is connected to a destination endpoint. DISCONNECTED – The source endpoint isn't connected to a destination endpoint. CONNECTING – The source endpoint is connecting to a destination endpoint. DISCONNECTING – The source endpoint is disconnecting from a destination endpoint."
        },
        "ConnectionDetails": {
          "$ref": "#/$defs/SourceEndpointConnectionDetails"
        },
        "ConnectedDestinations": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Resource Names (ARNs) of the destination endpoints that are connected to the source endpoint."
        },
        "EncryptionType": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER",
            "AUTOMATIC"
          ],
          "description": "The type of encryption used for the source endpoint connection."
        },
        "EncryptionConfiguration": {
          "$ref": "#/$defs/EndpointEncryptionConfiguration"
        },
        "AssociatedResourceDetails": {
          "$ref": "#/$defs/SourceEndpointAssociatedResourceDetails"
        },
        "Tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags associated with the source endpoint. Each tag is a key-value pair."
        }
      },
      "required": [
        "Name",
        "Arn",
        "Id",
        "Description",
        "RegionName",
        "CreatedAt",
        "UpdatedAt",
        "LifecycleManagement",
        "Messages",
        "SourceType",
        "Configuration",
        "ResourceShareOwnership",
        "ResourceShareDetails",
        "RegistrationState",
        "ConnectionState",
        "ConnectedDestinations",
        "AssociatedResourceDetails",
        "Tags"
      ]
    },
    "SourceEndpointAssociatedResourceDetails": {
      "type": "object",
      "properties": {
        "Standard": {
          "$ref": "#/$defs/StandardSourceEndpointAssociatedResourceDetails"
        },
        "RouterOutput": {
          "$ref": "#/$defs/RouterOutputSourceEndpointAssociatedResourceDetails"
        }
      },
      "description": "Exactly one member is set."
    },
    "SourceEndpointConfiguration": {
      "type": "object",
      "properties": {
        "Standard": {
          "$ref": "#/$defs/StandardSourceEndpointConfiguration"
        },
        "RouterOutput": {
          "$ref": "#/$defs/RouterOutputSourceEndpointConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "SourceEndpointConnectionDetails": {
      "type": "object",
      "properties": {
        "Standard": {
          "$ref": "#/$defs/StandardSourceEndpointConnectionDetails"
        },
        "RouterOutput": {
          "$ref": "#/$defs/RouterOutputSourceEndpointConnectionDetails"
        }
      },
      "description": "Exactly one member is set."
    },
    "SourceEndpointMessage": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "description": "The message code."
        },
        "Message": {
          "type": "string",
          "description": "The message text."
        }
      },
      "required": [
        "Code",
        "Message"
      ]
    },
    "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"
      ]
    },
    "StandardSourceEndpointAssociatedResourceDetails": {
      "type": "object",
      "properties": {}
    },
    "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"
      ]
    },
    "StandardSourceEndpointConnectionDetails": {
      "type": "object",
      "properties": {
        "DestinationIpAddress": {
          "type": "string",
          "description": "The IP address of the destination that receives the content."
        },
        "DestinationIngestPort": {
          "type": "integer",
          "description": "The port on the destination that receives the content."
        },
        "DestinationDecryptionType": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER",
            "AUTOMATIC"
          ],
          "description": "The type of decryption that the destination uses for the connection."
        },
        "DestinationDecryptionConfiguration": {
          "$ref": "#/$defs/EndpointEncryptionConfiguration"
        },
        "DestinationEndpointType": {
          "type": "string",
          "enum": [
            "STANDARD",
            "ROUTER_INPUT"
          ],
          "description": "The type of the connected destination endpoint."
        }
      }
    },
    "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"
      ]
    }
  }
}