@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. 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
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.
|
GetJobRunResult |
getJobRun(GetJobRunRequest request)
Displays detailed information about a job run.
|
ListApplicationsResult |
listApplications(ListApplicationsRequest request)
Lists applications based on a set of parameters.
|
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, withTimeOffset
public static AWSEMRServerlessClientBuilder builder()
public CancelJobRunResult cancelJobRun(CancelJobRunRequest request)
Cancels a job run.
cancelJobRun
in interface AWSEMRServerless
cancelJobRunRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 AWSEMRServerless
createApplicationRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS service.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 AWSEMRServerless
deleteApplicationRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 AWSEMRServerless
getApplicationRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 AWSEMRServerless
getJobRunRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 AWSEMRServerless
listApplicationsRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS service.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 AWSEMRServerless
listJobRunsRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 AWSEMRServerless
listTagsForResourceRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 AWSEMRServerless
startApplicationRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 AWSEMRServerless
startJobRunRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 AWSEMRServerless
stopApplicationRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 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.
tagResource
in interface AWSEMRServerless
tagResourceRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 AWSEMRServerless
untagResourceRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 AWSEMRServerless
updateApplicationRequest
- ValidationException
- The input fails to satisfy the constraints specified by an AWS 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 AWSEMRServerless
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSEMRServerless
shutdown
in class AmazonWebServiceClient