@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSEMRServerlessAsyncClient extends AWSEMRServerlessClient implements AWSEMRServerlessAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Amazon EMR Serverless is a new deployment option for Amazon EMR. 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 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_METRIC
ENDPOINT_PREFIX
builder, cancelJobRun, createApplication, deleteApplication, getApplication, getCachedResponseMetadata, getJobRun, listApplications, listJobRuns, listTagsForResource, startApplication, startJobRun, stopApplication, tagResource, untagResource, updateApplication
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelJobRun, createApplication, deleteApplication, getApplication, getCachedResponseMetadata, getJobRun, listApplications, listJobRuns, listTagsForResource, startApplication, startJobRun, stopApplication, tagResource, untagResource, updateApplication
public static AWSEMRServerlessAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CancelJobRunResult> cancelJobRunAsync(CancelJobRunRequest request)
AWSEMRServerlessAsync
Cancels a job run.
cancelJobRunAsync
in interface AWSEMRServerlessAsync
public Future<CancelJobRunResult> cancelJobRunAsync(CancelJobRunRequest request, AsyncHandler<CancelJobRunRequest,CancelJobRunResult> asyncHandler)
AWSEMRServerlessAsync
Cancels a job run.
cancelJobRunAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateApplicationResult> createApplicationAsync(CreateApplicationRequest request)
AWSEMRServerlessAsync
Creates an application.
createApplicationAsync
in interface AWSEMRServerlessAsync
public Future<CreateApplicationResult> createApplicationAsync(CreateApplicationRequest request, AsyncHandler<CreateApplicationRequest,CreateApplicationResult> asyncHandler)
AWSEMRServerlessAsync
Creates an application.
createApplicationAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteApplicationResult> deleteApplicationAsync(DeleteApplicationRequest request)
AWSEMRServerlessAsync
Deletes an application. An application has to be in a stopped or created state in order to be deleted.
deleteApplicationAsync
in interface AWSEMRServerlessAsync
public Future<DeleteApplicationResult> deleteApplicationAsync(DeleteApplicationRequest request, AsyncHandler<DeleteApplicationRequest,DeleteApplicationResult> asyncHandler)
AWSEMRServerlessAsync
Deletes an application. An application has to be in a stopped or created state in order to be deleted.
deleteApplicationAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetApplicationResult> getApplicationAsync(GetApplicationRequest request)
AWSEMRServerlessAsync
Displays detailed information about a specified application.
getApplicationAsync
in interface AWSEMRServerlessAsync
public Future<GetApplicationResult> getApplicationAsync(GetApplicationRequest request, AsyncHandler<GetApplicationRequest,GetApplicationResult> asyncHandler)
AWSEMRServerlessAsync
Displays detailed information about a specified application.
getApplicationAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetJobRunResult> getJobRunAsync(GetJobRunRequest request)
AWSEMRServerlessAsync
Displays detailed information about a job run.
getJobRunAsync
in interface AWSEMRServerlessAsync
public Future<GetJobRunResult> getJobRunAsync(GetJobRunRequest request, AsyncHandler<GetJobRunRequest,GetJobRunResult> asyncHandler)
AWSEMRServerlessAsync
Displays detailed information about a job run.
getJobRunAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListApplicationsResult> listApplicationsAsync(ListApplicationsRequest request)
AWSEMRServerlessAsync
Lists applications based on a set of parameters.
listApplicationsAsync
in interface AWSEMRServerlessAsync
public Future<ListApplicationsResult> listApplicationsAsync(ListApplicationsRequest request, AsyncHandler<ListApplicationsRequest,ListApplicationsResult> asyncHandler)
AWSEMRServerlessAsync
Lists applications based on a set of parameters.
listApplicationsAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListJobRunsResult> listJobRunsAsync(ListJobRunsRequest request)
AWSEMRServerlessAsync
Lists job runs based on a set of parameters.
listJobRunsAsync
in interface AWSEMRServerlessAsync
public Future<ListJobRunsResult> listJobRunsAsync(ListJobRunsRequest request, AsyncHandler<ListJobRunsRequest,ListJobRunsResult> asyncHandler)
AWSEMRServerlessAsync
Lists job runs based on a set of parameters.
listJobRunsAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSEMRServerlessAsync
Lists the tags assigned to the resources.
listTagsForResourceAsync
in interface AWSEMRServerlessAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSEMRServerlessAsync
Lists the tags assigned to the resources.
listTagsForResourceAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartApplicationResult> startApplicationAsync(StartApplicationRequest request)
AWSEMRServerlessAsync
Starts a specified application and initializes initial capacity if configured.
startApplicationAsync
in interface AWSEMRServerlessAsync
public Future<StartApplicationResult> startApplicationAsync(StartApplicationRequest request, AsyncHandler<StartApplicationRequest,StartApplicationResult> asyncHandler)
AWSEMRServerlessAsync
Starts a specified application and initializes initial capacity if configured.
startApplicationAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartJobRunResult> startJobRunAsync(StartJobRunRequest request)
AWSEMRServerlessAsync
Starts a job run.
startJobRunAsync
in interface AWSEMRServerlessAsync
public Future<StartJobRunResult> startJobRunAsync(StartJobRunRequest request, AsyncHandler<StartJobRunRequest,StartJobRunResult> asyncHandler)
AWSEMRServerlessAsync
Starts a job run.
startJobRunAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopApplicationResult> stopApplicationAsync(StopApplicationRequest request)
AWSEMRServerlessAsync
Stops a specified application and releases initial capacity if configured. All scheduled and running jobs must be completed or cancelled before stopping an application.
stopApplicationAsync
in interface AWSEMRServerlessAsync
public Future<StopApplicationResult> stopApplicationAsync(StopApplicationRequest request, AsyncHandler<StopApplicationRequest,StopApplicationResult> asyncHandler)
AWSEMRServerlessAsync
Stops a specified application and releases initial capacity if configured. All scheduled and running jobs must be completed or cancelled before stopping an application.
stopApplicationAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSEMRServerlessAsync
Assigns tags to resources. A tag is a label that you assign to an AWS resource. Each tag consists of a key and an optional value, both of which you define. Tags enable you to categorize your AWS 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.
tagResourceAsync
in interface AWSEMRServerlessAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSEMRServerlessAsync
Assigns tags to resources. A tag is a label that you assign to an AWS resource. Each tag consists of a key and an optional value, both of which you define. Tags enable you to categorize your AWS 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.
tagResourceAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSEMRServerlessAsync
Removes tags from resources.
untagResourceAsync
in interface AWSEMRServerlessAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSEMRServerlessAsync
Removes tags from resources.
untagResourceAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateApplicationResult> updateApplicationAsync(UpdateApplicationRequest request)
AWSEMRServerlessAsync
Updates a specified application. An application has to be in a stopped or created state in order to be updated.
updateApplicationAsync
in interface AWSEMRServerlessAsync
public Future<UpdateApplicationResult> updateApplicationAsync(UpdateApplicationRequest request, AsyncHandler<UpdateApplicationRequest,UpdateApplicationResult> asyncHandler)
AWSEMRServerlessAsync
Updates a specified application. An application has to be in a stopped or created state in order to be updated.
updateApplicationAsync
in interface AWSEMRServerlessAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSEMRServerless
shutdown
in class AWSEMRServerlessClient