/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.emrserverless; import javax.annotation.Generated; import com.amazonaws.services.emrserverless.model.*; /** * Interface for accessing EMR Serverless asynchronously. Each asynchronous method will return a Java Future object * representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive * notification when an asynchronous operation completes. *
* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.emrserverless.AbstractAWSEMRServerlessAsync} instead. *
**
* 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
.
*
* Cancels a job run. *
* * @param cancelJobRunRequest * @return A Java Future containing the result of the CancelJobRun operation returned by the service. * @sample AWSEMRServerlessAsync.CancelJobRun * @see AWS * API Documentation */ java.util.concurrent.Future* Cancels a job run. *
* * @param cancelJobRunRequest * @param 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. * @return A Java Future containing the result of the CancelJobRun operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.CancelJobRun * @see AWS * API Documentation */ java.util.concurrent.Future* Creates an application. *
* * @param createApplicationRequest * @return A Java Future containing the result of the CreateApplication operation returned by the service. * @sample AWSEMRServerlessAsync.CreateApplication * @see AWS API Documentation */ java.util.concurrent.Future* Creates an application. *
* * @param createApplicationRequest * @param 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. * @return A Java Future containing the result of the CreateApplication operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.CreateApplication * @see AWS API Documentation */ java.util.concurrent.Future* Deletes an application. An application has to be in a stopped or created state in order to be deleted. *
* * @param deleteApplicationRequest * @return A Java Future containing the result of the DeleteApplication operation returned by the service. * @sample AWSEMRServerlessAsync.DeleteApplication * @see AWS API Documentation */ java.util.concurrent.Future* Deletes an application. An application has to be in a stopped or created state in order to be deleted. *
* * @param deleteApplicationRequest * @param 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. * @return A Java Future containing the result of the DeleteApplication operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.DeleteApplication * @see AWS API Documentation */ java.util.concurrent.Future* Displays detailed information about a specified application. *
* * @param getApplicationRequest * @return A Java Future containing the result of the GetApplication operation returned by the service. * @sample AWSEMRServerlessAsync.GetApplication * @see AWS * API Documentation */ java.util.concurrent.Future* Displays detailed information about a specified application. *
* * @param getApplicationRequest * @param 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. * @return A Java Future containing the result of the GetApplication operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.GetApplication * @see AWS * API Documentation */ java.util.concurrent.Future* 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. *
** 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. *
** Displays detailed information about a job run. *
* * @param getJobRunRequest * @return A Java Future containing the result of the GetJobRun operation returned by the service. * @sample AWSEMRServerlessAsync.GetJobRun * @see AWS API * Documentation */ java.util.concurrent.Future* Displays detailed information about a job run. *
* * @param getJobRunRequest * @param 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. * @return A Java Future containing the result of the GetJobRun operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.GetJobRun * @see AWS API * Documentation */ java.util.concurrent.Future* Lists applications based on a set of parameters. *
* * @param listApplicationsRequest * @return A Java Future containing the result of the ListApplications operation returned by the service. * @sample AWSEMRServerlessAsync.ListApplications * @see AWS API Documentation */ java.util.concurrent.Future* Lists applications based on a set of parameters. *
* * @param listApplicationsRequest * @param 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. * @return A Java Future containing the result of the ListApplications operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.ListApplications * @see AWS API Documentation */ java.util.concurrent.Future* Lists job runs based on a set of parameters. *
* * @param listJobRunsRequest * @return A Java Future containing the result of the ListJobRuns operation returned by the service. * @sample AWSEMRServerlessAsync.ListJobRuns * @see AWS API * Documentation */ java.util.concurrent.Future* Lists job runs based on a set of parameters. *
* * @param listJobRunsRequest * @param 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. * @return A Java Future containing the result of the ListJobRuns operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.ListJobRuns * @see AWS API * Documentation */ java.util.concurrent.Future* Lists the tags assigned to the resources. *
* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSEMRServerlessAsync.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future* Lists the tags assigned to the resources. *
* * @param listTagsForResourceRequest * @param 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. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future* Starts a specified application and initializes initial capacity if configured. *
* * @param startApplicationRequest * @return A Java Future containing the result of the StartApplication operation returned by the service. * @sample AWSEMRServerlessAsync.StartApplication * @see AWS API Documentation */ java.util.concurrent.Future* Starts a specified application and initializes initial capacity if configured. *
* * @param startApplicationRequest * @param 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. * @return A Java Future containing the result of the StartApplication operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.StartApplication * @see AWS API Documentation */ java.util.concurrent.Future* Starts a job run. *
* * @param startJobRunRequest * @return A Java Future containing the result of the StartJobRun operation returned by the service. * @sample AWSEMRServerlessAsync.StartJobRun * @see AWS API * Documentation */ java.util.concurrent.Future* Starts a job run. *
* * @param startJobRunRequest * @param 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. * @return A Java Future containing the result of the StartJobRun operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.StartJobRun * @see AWS API * Documentation */ java.util.concurrent.Future* Stops a specified application and releases initial capacity if configured. All scheduled and running jobs must be * completed or cancelled before stopping an application. *
* * @param stopApplicationRequest * @return A Java Future containing the result of the StopApplication operation returned by the service. * @sample AWSEMRServerlessAsync.StopApplication * @see AWS * API Documentation */ java.util.concurrent.Future* Stops a specified application and releases initial capacity if configured. All scheduled and running jobs must be * completed or cancelled before stopping an application. *
* * @param stopApplicationRequest * @param 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. * @return A Java Future containing the result of the StopApplication operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.StopApplication * @see AWS * API Documentation */ java.util.concurrent.Future* 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. *
* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSEMRServerlessAsync.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future* 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. *
* * @param tagResourceRequest * @param 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. * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future* Removes tags from resources. *
* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSEMRServerlessAsync.UntagResource * @see AWS * API Documentation */ java.util.concurrent.Future* Removes tags from resources. *
* * @param untagResourceRequest * @param 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. * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.UntagResource * @see AWS * API Documentation */ java.util.concurrent.Future* Updates a specified application. An application has to be in a stopped or created state in order to be updated. *
* * @param updateApplicationRequest * @return A Java Future containing the result of the UpdateApplication operation returned by the service. * @sample AWSEMRServerlessAsync.UpdateApplication * @see AWS API Documentation */ java.util.concurrent.Future* Updates a specified application. An application has to be in a stopped or created state in order to be updated. *
* * @param updateApplicationRequest * @param 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. * @return A Java Future containing the result of the UpdateApplication operation returned by the service. * @sample AWSEMRServerlessAsyncHandler.UpdateApplication * @see AWS API Documentation */ java.util.concurrent.Future