{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-batch-get-destination-endpoint-response-schema.json",
  "title": "BatchGetDestinationEndpointResponse",
  "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/BatchGetDestinationEndpointResponse",
  "type": "object",
  "properties": {
    "DestinationEndpoints": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DestinationEndpoint"
      },
      "description": "The destination endpoints that MediaConnect successfully retrieved."
    },
    "Errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchGetDestinationEndpointError"
      },
      "description": "The errors for any destination endpoints that MediaConnect couldn't retrieve."
    }
  },
  "required": [
    "DestinationEndpoints",
    "Errors"
  ],
  "$defs": {
    "AutomaticEndpointEncryptionConfiguration": {
      "type": "object",
      "properties": {}
    },
    "BatchGetDestinationEndpointError": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the destination 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"
      ]
    },
    "DestinationEndpoint": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the destination endpoint."
        },
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the destination endpoint."
        },
        "Id": {
          "type": "string",
          "description": "The unique identifier of the destination endpoint."
        },
        "Description": {
          "type": "string",
          "description": "The description of the destination endpoint."
        },
        "RegionName": {
          "type": "string",
          "description": "The name of the Amazon Web Services Region in which the destination endpoint is located."
        },
        "AvailabilityZone": {
          "type": "string",
          "description": "The Availability Zone in which the destination endpoint is located."
        },
        "AvailabilityZoneId": {
          "type": "string",
          "description": "The ID of the Availability Zone in which the destination endpoint is located."
        },
        "CreatedAt": {
          "type": "string",
          "description": "The date and time when the destination endpoint was created."
        },
        "UpdatedAt": {
          "type": "string",
          "description": "The date and time when the destination endpoint was last updated."
        },
        "LifecycleManagement": {
          "type": "string",
          "enum": [
            "MANAGED",
            "UNMANAGED"
          ],
          "description": "The entity that manages the lifecycle of the destination endpoint."
        },
        "Messages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DestinationEndpointMessage"
          },
          "description": "The status messages for the destination endpoint."
        },
        "DestinationType": {
          "type": "string",
          "enum": [
            "STANDARD",
            "ROUTER_INPUT"
          ],
          "description": "The type of the destination endpoint. Valid values include the following: STANDARD – A destination endpoint that represents an external destination over a standard protocol, such as RTP, RIST, or SRT. ROUTER_INPUT – A destination endpoint that represents a router input."
        },
        "Configuration": {
          "$ref": "#/$defs/DestinationEndpointConfiguration"
        },
        "ResourceShareOwnership": {
          "type": "string",
          "enum": [
            "OWNED",
            "CONSUMED"
          ],
          "description": "Indicates whether this account owns the destination 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 destination endpoint. Valid values include the following: REGISTERED – The destination endpoint is registered and ready to use. REGISTERING – MediaConnect is registering the destination endpoint. DEREGISTERING – MediaConnect is deregistering the destination endpoint. REGISTRATION_FAILED – MediaConnect couldn't register the destination endpoint."
        },
        "ConnectionDetails": {
          "$ref": "#/$defs/DestinationEndpointConnectionDetails"
        },
        "ConnectionState": {
          "type": "string",
          "enum": [
            "CONNECTED",
            "DISCONNECTED",
            "CONNECTING",
            "DISCONNECTING"
          ],
          "description": "The connection state of the destination endpoint. Valid values include the following: CONNECTED – The destination endpoint is connected to a source endpoint. DISCONNECTED – The destination endpoint isn't connected to a source endpoint. CONNECTING – The destination endpoint is connecting to a source endpoint. DISCONNECTING – The destination endpoint is disconnecting from a source endpoint."
        },
        "ConnectedSource": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the source endpoint that is connected to the destination endpoint."
        },
        "DecryptionType": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER",
            "AUTOMATIC"
          ],
          "description": "The type of decryption used for the destination endpoint connection."
        },
        "DecryptionConfiguration": {
          "$ref": "#/$defs/EndpointEncryptionConfiguration"
        },
        "AssociatedResourceDetails": {
          "$ref": "#/$defs/DestinationEndpointAssociatedResourceDetails"
        },
        "Tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags associated with the destination endpoint. Each tag is a key-value pair."
        }
      },
      "required": [
        "Name",
        "Arn",
        "Id",
        "Description",
        "RegionName",
        "CreatedAt",
        "UpdatedAt",
        "LifecycleManagement",
        "Messages",
        "DestinationType",
        "Configuration",
        "ResourceShareOwnership",
        "ResourceShareDetails",
        "RegistrationState",
        "ConnectionState",
        "AssociatedResourceDetails",
        "Tags"
      ]
    },
    "DestinationEndpointAssociatedResourceDetails": {
      "type": "object",
      "properties": {
        "Standard": {
          "$ref": "#/$defs/StandardDestinationEndpointAssociatedResourceDetails"
        },
        "RouterInput": {
          "$ref": "#/$defs/RouterInputDestinationEndpointAssociatedResourceDetails"
        }
      },
      "description": "Exactly one member is set."
    },
    "DestinationEndpointConfiguration": {
      "type": "object",
      "properties": {
        "Standard": {
          "$ref": "#/$defs/StandardDestinationEndpointConfiguration"
        },
        "RouterInput": {
          "$ref": "#/$defs/RouterInputDestinationEndpointConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "DestinationEndpointConnectionDetails": {
      "type": "object",
      "properties": {
        "Standard": {
          "$ref": "#/$defs/StandardDestinationEndpointConnectionDetails"
        },
        "RouterInput": {
          "$ref": "#/$defs/RouterInputDestinationEndpointConnectionDetails"
        }
      },
      "description": "Exactly one member is set."
    },
    "DestinationEndpointMessage": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "description": "The message code."
        },
        "Message": {
          "type": "string",
          "description": "The message text."
        }
      },
      "required": [
        "Code",
        "Message"
      ]
    },
    "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"
      ]
    },
    "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"
      ]
    },
    "ResourceShareDetails": {
      "type": "object",
      "properties": {
        "Owned": {
          "$ref": "#/$defs/OwnedResourceShareDetails"
        },
        "Consumed": {
          "$ref": "#/$defs/ConsumedResourceShareDetails"
        }
      },
      "description": "Exactly one member is set."
    },
    "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"
      ]
    },
    "RouterInputDestinationEndpointAssociatedResourceDetails": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the router input."
        },
        "MaximumBitrate": {
          "type": "integer",
          "description": "The maximum bitrate of the router input, in bits per second."
        },
        "State": {
          "type": "string",
          "enum": [
            "CREATING",
            "STANDBY",
            "STARTING",
            "ACTIVE",
            "STOPPING",
            "DELETING",
            "UPDATING",
            "ERROR",
            "RECOVERING",
            "MIGRATING"
          ],
          "description": "The state of the router input."
        },
        "Messages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouterInputMessage"
          },
          "description": "The status messages for the router input."
        }
      },
      "required": [
        "Name",
        "MaximumBitrate",
        "State",
        "Messages"
      ]
    },
    "RouterInputDestinationEndpointConfiguration": {
      "type": "object",
      "properties": {
        "RouterInputArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the router input that the destination endpoint represents."
        }
      },
      "required": [
        "RouterInputArn"
      ]
    },
    "RouterInputDestinationEndpointConnectionDetails": {
      "type": "object",
      "properties": {
        "SourceEncryptionType": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER",
            "AUTOMATIC"
          ],
          "description": "The type of encryption that the source uses for the connection."
        },
        "SourceEncryptionConfiguration": {
          "$ref": "#/$defs/EndpointEncryptionConfiguration"
        },
        "SourceEndpointType": {
          "type": "string",
          "enum": [
            "STANDARD",
            "ROUTER_OUTPUT"
          ],
          "description": "The type of the connected source endpoint."
        }
      }
    },
    "RouterInputMessage": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "description": "The code associated with the router input message."
        },
        "Message": {
          "type": "string",
          "description": "The message text associated with the router input message."
        }
      },
      "required": [
        "Code",
        "Message"
      ]
    },
    "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"
      ]
    },
    "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"
      ]
    },
    "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"
      ]
    },
    "StandardDestinationEndpointAssociatedResourceDetails": {
      "type": "object",
      "properties": {}
    },
    "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"
      ]
    },
    "StandardDestinationEndpointConnectionDetails": {
      "type": "object",
      "properties": {
        "SourceIpAddress": {
          "type": "string",
          "description": "The IP address of the source that is connected to the destination endpoint."
        },
        "SourceListenerPort": {
          "type": "integer",
          "description": "The port on which the source listens for the connection."
        },
        "SourceEncryptionType": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER",
            "AUTOMATIC"
          ],
          "description": "The type of encryption that the source uses for the connection."
        },
        "SourceEncryptionConfiguration": {
          "$ref": "#/$defs/EndpointEncryptionConfiguration"
        },
        "SourceEndpointType": {
          "type": "string",
          "enum": [
            "STANDARD",
            "ROUTER_OUTPUT"
          ],
          "description": "The type of the connected source endpoint."
        }
      }
    },
    "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"
      ]
    }
  }
}