{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-eventbridge/json-schema/amazon-eventbridge-update-endpoint-response-schema.json",
  "title": "UpdateEndpointResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-eventbridge-endpoint-api-openapi.yml#/components/schemas/UpdateEndpointResponse",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name of the endpoint you updated in this request."
    },
    "Arn": {
      "type": "string",
      "description": "The ARN of the endpoint you updated in this request."
    },
    "RoutingConfig": {
      "$ref": "#/$defs/RoutingConfig"
    },
    "ReplicationConfig": {
      "$ref": "#/$defs/ReplicationConfig"
    },
    "EventBuses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EndpointEventBus"
      },
      "description": "The event buses used for replication for the endpoint you updated in this request."
    },
    "RoleArn": {
      "type": "string",
      "description": "The ARN of the role used by event replication for the endpoint you updated in this request."
    },
    "EndpointId": {
      "type": "string",
      "description": "The ID of the endpoint you updated in this request."
    },
    "EndpointUrl": {
      "type": "string",
      "description": "The URL of the endpoint you updated in this request."
    },
    "State": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "CREATING",
        "UPDATING",
        "DELETING",
        "CREATE_FAILED",
        "UPDATE_FAILED",
        "DELETE_FAILED"
      ],
      "description": "The state of the endpoint you updated in this request."
    }
  },
  "$defs": {
    "EndpointEventBus": {
      "type": "object",
      "properties": {
        "EventBusArn": {
          "type": "string",
          "description": "The ARN of the event bus the endpoint is associated with."
        }
      },
      "required": [
        "EventBusArn"
      ]
    },
    "FailoverConfig": {
      "type": "object",
      "properties": {
        "Primary": {
          "$ref": "#/$defs/Primary"
        },
        "Secondary": {
          "$ref": "#/$defs/Secondary"
        }
      },
      "required": [
        "Primary",
        "Secondary"
      ]
    },
    "Primary": {
      "type": "object",
      "properties": {
        "HealthCheck": {
          "type": "string",
          "description": "The ARN of the health check used by the endpoint to determine whether failover is triggered."
        }
      },
      "required": [
        "HealthCheck"
      ]
    },
    "ReplicationConfig": {
      "type": "object",
      "properties": {
        "State": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The state of event replication."
        }
      }
    },
    "RoutingConfig": {
      "type": "object",
      "properties": {
        "FailoverConfig": {
          "$ref": "#/$defs/FailoverConfig"
        }
      },
      "required": [
        "FailoverConfig"
      ]
    },
    "Secondary": {
      "type": "object",
      "properties": {
        "Route": {
          "type": "string",
          "description": "Defines the secondary Region."
        }
      },
      "required": [
        "Route"
      ]
    }
  }
}