@@ -465,3 +465,123 @@ class WaitClusterResponse(CallToolResult):
465465 cluster_id : str = Field (..., description = 'ID of the cluster' )
466466 state : str = Field (..., description = 'Current state of the cluster' )
467467 operation : str = Field (default = 'wait' , description = 'Operation performed' )
468+
469+
470+ # Response models for EMR Serverless Operations
471+
472+
473+ class CreateApplicationResponse (CallToolResult ):
474+ """Response model for create EMR Serverless application operation."""
475+
476+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
477+ content : List [Content ] = Field (..., description = 'Content of the response' )
478+ application_id : str = Field (..., description = 'ID of the created application' )
479+ name : str = Field (..., description = 'Name of the created application' )
480+ arn : str = Field (..., description = 'ARN of the created application' )
481+ operation : str = Field (default = 'create-application' , description = 'Operation performed' )
482+
483+
484+ class GetApplicationResponse (CallToolResult ):
485+ """Response model for get EMR Serverless application operation."""
486+
487+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
488+ content : List [Content ] = Field (..., description = 'Content of the response' )
489+ application : Dict [str , Any ] = Field (..., description = 'Application details' )
490+ operation : str = Field (default = 'get-application' , description = 'Operation performed' )
491+
492+
493+ class UpdateApplicationResponse (CallToolResult ):
494+ """Response model for update EMR Serverless application operation."""
495+
496+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
497+ content : List [Content ] = Field (..., description = 'Content of the response' )
498+ application : Dict [str , Any ] = Field (..., description = 'Updated application details' )
499+ operation : str = Field (default = 'update-application' , description = 'Operation performed' )
500+
501+
502+ class DeleteApplicationResponse (CallToolResult ):
503+ """Response model for delete EMR Serverless application operation."""
504+
505+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
506+ content : List [Content ] = Field (..., description = 'Content of the response' )
507+ application_id : str = Field (..., description = 'ID of the deleted application' )
508+ operation : str = Field (default = 'delete-application' , description = 'Operation performed' )
509+
510+
511+ class ListApplicationsResponse (CallToolResult ):
512+ """Response model for list EMR Serverless applications operation."""
513+
514+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
515+ content : List [Content ] = Field (..., description = 'Content of the response' )
516+ applications : List [Dict [str , Any ]] = Field (..., description = 'List of applications' )
517+ count : int = Field (..., description = 'Number of applications found' )
518+ next_token : Optional [str ] = Field (None , description = 'Token for pagination' )
519+ operation : str = Field (default = 'list-applications' , description = 'Operation performed' )
520+
521+
522+ class StartApplicationResponse (CallToolResult ):
523+ """Response model for start EMR Serverless application operation."""
524+
525+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
526+ content : List [Content ] = Field (..., description = 'Content of the response' )
527+ application_id : str = Field (..., description = 'ID of the started application' )
528+ operation : str = Field (default = 'start-application' , description = 'Operation performed' )
529+
530+
531+ class StopApplicationResponse (CallToolResult ):
532+ """Response model for stop EMR Serverless application operation."""
533+
534+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
535+ content : List [Content ] = Field (..., description = 'Content of the response' )
536+ application_id : str = Field (..., description = 'ID of the stopped application' )
537+ operation : str = Field (default = 'stop-application' , description = 'Operation performed' )
538+
539+
540+ class StartJobRunResponse (CallToolResult ):
541+ """Response model for start EMR Serverless job run operation."""
542+
543+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
544+ content : List [Content ] = Field (..., description = 'Content of the response' )
545+ application_id : str = Field (..., description = 'ID of the application' )
546+ job_run_id : str = Field (..., description = 'ID of the started job run' )
547+ arn : str = Field (..., description = 'ARN of the job run' )
548+ operation : str = Field (default = 'start-job-run' , description = 'Operation performed' )
549+
550+
551+ class GetJobRunResponse (CallToolResult ):
552+ """Response model for get EMR Serverless job run operation."""
553+
554+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
555+ content : List [Content ] = Field (..., description = 'Content of the response' )
556+ job_run : Dict [str , Any ] = Field (..., description = 'Job run details' )
557+ operation : str = Field (default = 'get-job-run' , description = 'Operation performed' )
558+
559+
560+ class CancelJobRunResponse (CallToolResult ):
561+ """Response model for cancel EMR Serverless job run operation."""
562+
563+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
564+ content : List [Content ] = Field (..., description = 'Content of the response' )
565+ application_id : str = Field (..., description = 'ID of the application' )
566+ job_run_id : str = Field (..., description = 'ID of the cancelled job run' )
567+ operation : str = Field (default = 'cancel-job-run' , description = 'Operation performed' )
568+
569+
570+ class ListJobRunsResponse (CallToolResult ):
571+ """Response model for list EMR Serverless job runs operation."""
572+
573+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
574+ content : List [Content ] = Field (..., description = 'Content of the response' )
575+ job_runs : List [Dict [str , Any ]] = Field (..., description = 'List of job runs' )
576+ count : int = Field (..., description = 'Number of job runs found' )
577+ next_token : Optional [str ] = Field (None , description = 'Token for pagination' )
578+ operation : str = Field (default = 'list-job-runs' , description = 'Operation performed' )
579+
580+
581+ class GetDashboardForJobRunResponse (CallToolResult ):
582+ """Response model for get dashboard for EMR Serverless job run operation."""
583+
584+ isError : bool = Field (default = False , description = 'Whether the operation resulted in an error' )
585+ content : List [Content ] = Field (..., description = 'Content of the response' )
586+ url : str = Field (..., description = 'Dashboard URL for the job run' )
587+ operation : str = Field (default = 'get-dashboard-for-job-run' , description = 'Operation performed' )
0 commit comments