@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSEMRServerlessClient extends AmazonWebServiceClient implements AWSEMRServerless
Amazon EMR Serverless is a new deployment option for Amazon EMR. Amazon EMR Serverless provides a serverless runtime environment that simplifies running analytics applications using the latest open source frameworks such as Apache Spark and Apache Hive. With Amazon EMR Serverless, you don’t have to configure, optimize, secure, or operate clusters to run applications with these frameworks.
The API reference to Amazon EMR Serverless is emr-serverless. The emr-serverless prefix is
used in the following scenarios:
It is the prefix in the CLI commands for Amazon EMR Serverless. For example,
aws emr-serverless start-job-run.
It is the prefix before IAM policy actions for Amazon EMR Serverless. For example,
"Action": ["emr-serverless:StartJobRun"]. For more information, see Policy actions for Amazon EMR Serverless.
It is the prefix used in Amazon EMR Serverless service endpoints. For example,
emr-serverless.us-east-2.amazonaws.com.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AWSEMRServerlessClientBuilder |
builder() |
CancelJobRunResult |
cancelJobRun(CancelJobRunRequest request)
Cancels a job run.
|
CreateApplicationResult |
createApplication(CreateApplicationRequest request)
Creates an application.
|
DeleteApplicationResult |
deleteApplication(DeleteApplicationRequest request)
Deletes an application.
|
GetApplicationResult |
getApplication(GetApplicationRequest request)
Displays detailed information about a specified application.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetDashboardForJobRunResult |
getDashboardForJobRun(GetDashboardForJobRunRequest request)
Creates and returns a URL that you can use to access the application UIs for a job run.
|
GetJobRunResult |
getJobRun(GetJobRunRequest request)
Displays detailed information about a job run.
|
ListApplicationsResult |
listApplications(ListApplicationsRequest request)
Lists applications based on a set of parameters.
|
ListJobRunAttemptsResult |
listJobRunAttempts(ListJobRunAttemptsRequest request)
Lists all attempt of a job run.
|
ListJobRunsResult |
listJobRuns(ListJobRunsRequest request)
Lists job runs based on a set of parameters.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Lists the tags assigned to the resources.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
StartApplicationResult |
startApplication(StartApplicationRequest request)
Starts a specified application and initializes initial capacity if configured.
|
StartJobRunResult |
startJobRun(StartJobRunRequest request)
Starts a job run.
|
StopApplicationResult |
stopApplication(StopApplicationRequest request)
Stops a specified application and releases initial capacity if configured.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Assigns tags to resources.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes tags from resources.
|
UpdateApplicationResult |
updateApplication(UpdateApplicationRequest request)
Updates a specified application.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetpublic static AWSEMRServerlessClientBuilder builder()
public CancelJobRunResult cancelJobRun(CancelJobRunRequest request)
Cancels a job run.
cancelJobRun in interface AWSEMRServerlesscancelJobRunRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.public CreateApplicationResult createApplication(CreateApplicationRequest request)
Creates an application.
createApplication in interface AWSEMRServerlesscreateApplicationRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.ConflictException - The request could not be processed because of conflict in the current state of the resource.public DeleteApplicationResult deleteApplication(DeleteApplicationRequest request)
Deletes an application. An application has to be in a stopped or created state in order to be deleted.
deleteApplication in interface AWSEMRServerlessdeleteApplicationRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.public GetApplicationResult getApplication(GetApplicationRequest request)
Displays detailed information about a specified application.
getApplication in interface AWSEMRServerlessgetApplicationRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.public GetDashboardForJobRunResult getDashboardForJobRun(GetDashboardForJobRunRequest request)
Creates and returns a URL that you can use to access the application UIs for a job run.
For jobs in a running state, the application UI is a live user interface such as the Spark or Tez web UI. For completed jobs, the application UI is a persistent application user interface such as the Spark History Server or persistent Tez UI.
The URL is valid for one hour after you generate it. To access the application UI after that hour elapses, you must invoke the API again to generate a new URL.
getDashboardForJobRun in interface AWSEMRServerlessgetDashboardForJobRunRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.public GetJobRunResult getJobRun(GetJobRunRequest request)
Displays detailed information about a job run.
getJobRun in interface AWSEMRServerlessgetJobRunRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.public ListApplicationsResult listApplications(ListApplicationsRequest request)
Lists applications based on a set of parameters.
listApplications in interface AWSEMRServerlesslistApplicationsRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.InternalServerException - Request processing failed because of an error or failure with the service.public ListJobRunAttemptsResult listJobRunAttempts(ListJobRunAttemptsRequest request)
Lists all attempt of a job run.
listJobRunAttempts in interface AWSEMRServerlesslistJobRunAttemptsRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.public ListJobRunsResult listJobRuns(ListJobRunsRequest request)
Lists job runs based on a set of parameters.
listJobRuns in interface AWSEMRServerlesslistJobRunsRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.InternalServerException - Request processing failed because of an error or failure with the service.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists the tags assigned to the resources.
listTagsForResource in interface AWSEMRServerlesslistTagsForResourceRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.public StartApplicationResult startApplication(StartApplicationRequest request)
Starts a specified application and initializes initial capacity if configured.
startApplication in interface AWSEMRServerlessstartApplicationRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.ServiceQuotaExceededException - The maximum number of resources per account has been reached.public StartJobRunResult startJobRun(StartJobRunRequest request)
Starts a job run.
startJobRun in interface AWSEMRServerlessstartJobRunRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.ConflictException - The request could not be processed because of conflict in the current state of the resource.public StopApplicationResult stopApplication(StopApplicationRequest request)
Stops a specified application and releases initial capacity if configured. All scheduled and running jobs must be completed or cancelled before stopping an application.
stopApplication in interface AWSEMRServerlessstopApplicationRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.public TagResourceResult tagResource(TagResourceRequest request)
Assigns tags to resources. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value, both of which you define. Tags enable you to categorize your Amazon Web Services resources by attributes such as purpose, owner, or environment. When you have many resources of the same type, you can quickly identify a specific resource based on the tags you've assigned to it.
tagResource in interface AWSEMRServerlesstagResourceRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes tags from resources.
untagResource in interface AWSEMRServerlessuntagResourceRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.public UpdateApplicationResult updateApplication(UpdateApplicationRequest request)
Updates a specified application. An application has to be in a stopped or created state in order to be updated.
updateApplication in interface AWSEMRServerlessupdateApplicationRequest - ValidationException - The input fails to satisfy the constraints specified by an Amazon Web Services service.ResourceNotFoundException - The specified resource was not found.InternalServerException - Request processing failed because of an error or failure with the service.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AWSEMRServerlessrequest - The originally executed requestpublic void shutdown()
AmazonWebServiceClientshutdown in interface AWSEMRServerlessshutdown in class AmazonWebServiceClient