@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSEMRServerlessWebAsyncClient extends AWSEMRServerlessWebClient implements AWSEMRServerlessWebAsync
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_METRICENDPOINT_PREFIXbuilder, cancelJobRun, createApplication, deleteApplication, getApplication, getCachedResponseMetadata, getJobRun, listApplications, listJobRuns, listTagsForResource, startApplication, startJobRun, stopApplication, tagResource, untagResource, updateApplicationaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelJobRun, createApplication, deleteApplication, getApplication, getCachedResponseMetadata, getJobRun, listApplications, listJobRuns, listTagsForResource, startApplication, startJobRun, stopApplication, tagResource, untagResource, updateApplicationpublic static AWSEMRServerlessWebAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CancelJobRunResult> cancelJobRunAsync(CancelJobRunRequest request)
AWSEMRServerlessWebAsyncCancels a job run.
cancelJobRunAsync in interface AWSEMRServerlessWebAsyncpublic Future<CancelJobRunResult> cancelJobRunAsync(CancelJobRunRequest request, AsyncHandler<CancelJobRunRequest,CancelJobRunResult> asyncHandler)
AWSEMRServerlessWebAsyncCancels a job run.
cancelJobRunAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncCreates an application.
createApplicationAsync in interface AWSEMRServerlessWebAsyncpublic Future<CreateApplicationResult> createApplicationAsync(CreateApplicationRequest request, AsyncHandler<CreateApplicationRequest,CreateApplicationResult> asyncHandler)
AWSEMRServerlessWebAsyncCreates an application.
createApplicationAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncDeletes an application. An application has to be in a stopped or created state in order to be deleted.
deleteApplicationAsync in interface AWSEMRServerlessWebAsyncpublic Future<DeleteApplicationResult> deleteApplicationAsync(DeleteApplicationRequest request, AsyncHandler<DeleteApplicationRequest,DeleteApplicationResult> asyncHandler)
AWSEMRServerlessWebAsyncDeletes an application. An application has to be in a stopped or created state in order to be deleted.
deleteApplicationAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncDisplays detailed information about a specified application.
getApplicationAsync in interface AWSEMRServerlessWebAsyncpublic Future<GetApplicationResult> getApplicationAsync(GetApplicationRequest request, AsyncHandler<GetApplicationRequest,GetApplicationResult> asyncHandler)
AWSEMRServerlessWebAsyncDisplays detailed information about a specified application.
getApplicationAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncDisplays detailed information about a job run.
getJobRunAsync in interface AWSEMRServerlessWebAsyncpublic Future<GetJobRunResult> getJobRunAsync(GetJobRunRequest request, AsyncHandler<GetJobRunRequest,GetJobRunResult> asyncHandler)
AWSEMRServerlessWebAsyncDisplays detailed information about a job run.
getJobRunAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncLists applications based on a set of parameters.
listApplicationsAsync in interface AWSEMRServerlessWebAsyncpublic Future<ListApplicationsResult> listApplicationsAsync(ListApplicationsRequest request, AsyncHandler<ListApplicationsRequest,ListApplicationsResult> asyncHandler)
AWSEMRServerlessWebAsyncLists applications based on a set of parameters.
listApplicationsAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncLists job runs based on a set of parameters.
listJobRunsAsync in interface AWSEMRServerlessWebAsyncpublic Future<ListJobRunsResult> listJobRunsAsync(ListJobRunsRequest request, AsyncHandler<ListJobRunsRequest,ListJobRunsResult> asyncHandler)
AWSEMRServerlessWebAsyncLists job runs based on a set of parameters.
listJobRunsAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncLists the tags assigned to the resources.
listTagsForResourceAsync in interface AWSEMRServerlessWebAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSEMRServerlessWebAsyncLists the tags assigned to the resources.
listTagsForResourceAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncStarts a specified application and initializes initial capacity if configured.
startApplicationAsync in interface AWSEMRServerlessWebAsyncpublic Future<StartApplicationResult> startApplicationAsync(StartApplicationRequest request, AsyncHandler<StartApplicationRequest,StartApplicationResult> asyncHandler)
AWSEMRServerlessWebAsyncStarts a specified application and initializes initial capacity if configured.
startApplicationAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncStarts a job run.
startJobRunAsync in interface AWSEMRServerlessWebAsyncpublic Future<StartJobRunResult> startJobRunAsync(StartJobRunRequest request, AsyncHandler<StartJobRunRequest,StartJobRunResult> asyncHandler)
AWSEMRServerlessWebAsyncStarts a job run.
startJobRunAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncStops 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 AWSEMRServerlessWebAsyncpublic Future<StopApplicationResult> stopApplicationAsync(StopApplicationRequest request, AsyncHandler<StopApplicationRequest,StopApplicationResult> asyncHandler)
AWSEMRServerlessWebAsyncStops 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 AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncAssigns 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 AWSEMRServerlessWebAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSEMRServerlessWebAsyncAssigns 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 AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncRemoves tags from resources.
untagResourceAsync in interface AWSEMRServerlessWebAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSEMRServerlessWebAsyncRemoves tags from resources.
untagResourceAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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)
AWSEMRServerlessWebAsyncUpdates a specified application. An application has to be in a stopped or created state in order to be updated.
updateApplicationAsync in interface AWSEMRServerlessWebAsyncpublic Future<UpdateApplicationResult> updateApplicationAsync(UpdateApplicationRequest request, AsyncHandler<UpdateApplicationRequest,UpdateApplicationResult> asyncHandler)
AWSEMRServerlessWebAsyncUpdates a specified application. An application has to be in a stopped or created state in order to be updated.
updateApplicationAsync in interface AWSEMRServerlessWebAsyncasyncHandler - 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 AWSEMRServerlessWebshutdown in class AWSEMRServerlessWebClient