{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-emr/json-schema/amazon-emr-list-managed-endpoints-response-schema.json",
  "title": "ListManagedEndpointsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-emr-endpoints-api-openapi.yml#/components/schemas/ListManagedEndpointsResponse",
  "type": "object",
  "properties": {
    "endpoints": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Endpoint"
      },
      "description": "The managed endpoints to be listed."
    },
    "nextToken": {
      "type": "string",
      "description": "The token for the next set of endpoints to return."
    }
  },
  "$defs": {
    "Certificate": {
      "type": "object",
      "properties": {
        "certificateArn": {
          "type": "string",
          "description": "The ARN of the certificate generated for managed endpoint."
        },
        "certificateData": {
          "type": "string",
          "description": "The base64 encoded PEM certificate data generated for managed endpoint."
        }
      }
    },
    "CloudWatchMonitoringConfiguration": {
      "type": "object",
      "properties": {
        "logGroupName": {
          "type": "string",
          "description": "The name of the log group for log publishing."
        },
        "logStreamNamePrefix": {
          "type": "string",
          "description": "The specified name prefix for log streams."
        }
      },
      "required": [
        "logGroupName"
      ]
    },
    "ConfigurationOverrides": {
      "type": "object",
      "properties": {
        "applicationConfiguration": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EmrContainersConfiguration"
          },
          "description": "The configurations for the application running by the job run."
        },
        "monitoringConfiguration": {
          "$ref": "#/$defs/EmrContainersMonitoringConfiguration"
        }
      }
    },
    "ContainerLogRotationConfiguration": {
      "type": "object",
      "properties": {
        "rotationSize": {
          "type": "string",
          "description": "The file size at which to rotate logs. Minimum of 2KB, Maximum of 2GB."
        },
        "maxFilesToKeep": {
          "type": "integer",
          "description": "The number of files to keep in container after rotation."
        }
      },
      "required": [
        "rotationSize",
        "maxFilesToKeep"
      ]
    },
    "EmrContainersConfiguration": {
      "type": "object",
      "properties": {
        "classification": {
          "type": "string",
          "description": "The classification within a configuration."
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A set of properties specified within a configuration classification."
        },
        "configurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EmrContainersConfiguration"
          },
          "description": "A list of additional configurations to apply within a configuration object."
        }
      },
      "required": [
        "classification"
      ]
    },
    "EmrContainersMonitoringConfiguration": {
      "type": "object",
      "properties": {
        "managedLogs": {
          "$ref": "#/$defs/ManagedLogs"
        },
        "persistentAppUI": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Monitoring configurations for the persistent application UI."
        },
        "cloudWatchMonitoringConfiguration": {
          "$ref": "#/$defs/CloudWatchMonitoringConfiguration"
        },
        "s3MonitoringConfiguration": {
          "$ref": "#/$defs/EmrContainersS3MonitoringConfiguration"
        },
        "containerLogRotationConfiguration": {
          "$ref": "#/$defs/ContainerLogRotationConfiguration"
        }
      }
    },
    "EmrContainersS3MonitoringConfiguration": {
      "type": "object",
      "properties": {
        "logUri": {
          "type": "string",
          "description": "Amazon S3 destination URI for log publishing."
        },
        "encryptionKeyArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the encryption key for logs."
        }
      },
      "required": [
        "logUri"
      ]
    },
    "Endpoint": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the endpoint."
        },
        "name": {
          "type": "string",
          "description": "The name of the endpoint."
        },
        "arn": {
          "type": "string",
          "description": "The ARN of the endpoint."
        },
        "virtualClusterId": {
          "type": "string",
          "description": "The ID of the endpoint's virtual cluster."
        },
        "type": {
          "type": "string",
          "description": "The type of the endpoint."
        },
        "state": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "TERMINATING",
            "TERMINATED",
            "TERMINATED_WITH_ERRORS"
          ],
          "description": "The state of the endpoint."
        },
        "releaseLabel": {
          "type": "string",
          "description": "The EMR release version to be used for the endpoint."
        },
        "executionRoleArn": {
          "type": "string",
          "description": "The execution role ARN of the endpoint."
        },
        "certificateArn": {
          "type": "string",
          "description": "The certificate ARN of the endpoint. This field is under deprecation and will be removed in future."
        },
        "certificateAuthority": {
          "$ref": "#/$defs/Certificate"
        },
        "configurationOverrides": {
          "$ref": "#/$defs/ConfigurationOverrides"
        },
        "serverUrl": {
          "type": "string",
          "description": "The server URL of the endpoint."
        },
        "authProxyUrl": {
          "type": "string",
          "description": "The authentication proxy URL of the endpoint."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the endpoint was created."
        },
        "securityGroup": {
          "type": "string",
          "description": "The security group configuration of the endpoint."
        },
        "subnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The subnet IDs of the endpoint."
        },
        "stateDetails": {
          "type": "string",
          "description": "Additional details of the endpoint state."
        },
        "failureReason": {
          "type": "string",
          "enum": [
            "INTERNAL_ERROR",
            "USER_ERROR",
            "VALIDATION_ERROR",
            "CLUSTER_UNAVAILABLE"
          ],
          "description": "The reasons why the endpoint has failed."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags of the endpoint."
        }
      }
    },
    "ManagedLogs": {
      "type": "object",
      "properties": {
        "allowAWSToRetainLogs": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Determines whether Amazon Web Services can retain logs."
        },
        "encryptionKeyArn": {
          "type": "string",
          "description": "The Amazon resource name (ARN) of the encryption key for logs."
        }
      }
    }
  }
}