Interface EmrServerlessClient
-
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface EmrServerlessClient extends AwsClient
Service client for accessing EMR Serverless. This can be created using the staticbuilder()
method.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
. Theemr-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
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.static String
SERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
- Constant Field Values
-
-
Method Detail
-
cancelJobRun
default CancelJobRunResponse cancelJobRun(CancelJobRunRequest cancelJobRunRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Cancels a job run.
- Parameters:
cancelJobRunRequest
-- Returns:
- Result of the CancelJobRun operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
cancelJobRun
default CancelJobRunResponse cancelJobRun(Consumer<CancelJobRunRequest.Builder> cancelJobRunRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Cancels a job run.
This is a convenience which creates an instance of the
CancelJobRunRequest.Builder
avoiding the need to create one manually viaCancelJobRunRequest.builder()
- Parameters:
cancelJobRunRequest
- AConsumer
that will call methods onCancelJobRunRequest.Builder
to create a request.- Returns:
- Result of the CancelJobRun operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createApplication
default CreateApplicationResponse createApplication(CreateApplicationRequest createApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, EmrServerlessException
Creates an application.
- Parameters:
createApplicationRequest
-- Returns:
- Result of the CreateApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createApplication
default CreateApplicationResponse createApplication(Consumer<CreateApplicationRequest.Builder> createApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, EmrServerlessException
Creates an application.
This is a convenience which creates an instance of the
CreateApplicationRequest.Builder
avoiding the need to create one manually viaCreateApplicationRequest.builder()
- Parameters:
createApplicationRequest
- AConsumer
that will call methods onCreateApplicationRequest.Builder
to create a request.- Returns:
- Result of the CreateApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteApplication
default DeleteApplicationResponse deleteApplication(DeleteApplicationRequest deleteApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Deletes an application. An application has to be in a stopped or created state in order to be deleted.
- Parameters:
deleteApplicationRequest
-- Returns:
- Result of the DeleteApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteApplication
default DeleteApplicationResponse deleteApplication(Consumer<DeleteApplicationRequest.Builder> deleteApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Deletes an application. An application has to be in a stopped or created state in order to be deleted.
This is a convenience which creates an instance of the
DeleteApplicationRequest.Builder
avoiding the need to create one manually viaDeleteApplicationRequest.builder()
- Parameters:
deleteApplicationRequest
- AConsumer
that will call methods onDeleteApplicationRequest.Builder
to create a request.- Returns:
- Result of the DeleteApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getApplication
default GetApplicationResponse getApplication(GetApplicationRequest getApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Displays detailed information about a specified application.
- Parameters:
getApplicationRequest
-- Returns:
- Result of the GetApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getApplication
default GetApplicationResponse getApplication(Consumer<GetApplicationRequest.Builder> getApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Displays detailed information about a specified application.
This is a convenience which creates an instance of the
GetApplicationRequest.Builder
avoiding the need to create one manually viaGetApplicationRequest.builder()
- Parameters:
getApplicationRequest
- AConsumer
that will call methods onGetApplicationRequest.Builder
to create a request.- Returns:
- Result of the GetApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getDashboardForJobRun
default GetDashboardForJobRunResponse getDashboardForJobRun(GetDashboardForJobRunRequest getDashboardForJobRunRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
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.
- Parameters:
getDashboardForJobRunRequest
-- Returns:
- Result of the GetDashboardForJobRun operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getDashboardForJobRun
default GetDashboardForJobRunResponse getDashboardForJobRun(Consumer<GetDashboardForJobRunRequest.Builder> getDashboardForJobRunRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
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.
This is a convenience which creates an instance of the
GetDashboardForJobRunRequest.Builder
avoiding the need to create one manually viaGetDashboardForJobRunRequest.builder()
- Parameters:
getDashboardForJobRunRequest
- AConsumer
that will call methods onGetDashboardForJobRunRequest.Builder
to create a request.- Returns:
- Result of the GetDashboardForJobRun operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getJobRun
default GetJobRunResponse getJobRun(GetJobRunRequest getJobRunRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Displays detailed information about a job run.
- Parameters:
getJobRunRequest
-- Returns:
- Result of the GetJobRun operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getJobRun
default GetJobRunResponse getJobRun(Consumer<GetJobRunRequest.Builder> getJobRunRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Displays detailed information about a job run.
This is a convenience which creates an instance of the
GetJobRunRequest.Builder
avoiding the need to create one manually viaGetJobRunRequest.builder()
- Parameters:
getJobRunRequest
- AConsumer
that will call methods onGetJobRunRequest.Builder
to create a request.- Returns:
- Result of the GetJobRun operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listApplications
default ListApplicationsResponse listApplications(ListApplicationsRequest listApplicationsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Lists applications based on a set of parameters.
- Parameters:
listApplicationsRequest
-- Returns:
- Result of the ListApplications operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listApplications
default ListApplicationsResponse listApplications(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Lists applications based on a set of parameters.
This is a convenience which creates an instance of the
ListApplicationsRequest.Builder
avoiding the need to create one manually viaListApplicationsRequest.builder()
- Parameters:
listApplicationsRequest
- AConsumer
that will call methods onListApplicationsRequest.Builder
to create a request.- Returns:
- Result of the ListApplications operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listApplicationsPaginator
default ListApplicationsIterable listApplicationsPaginator(ListApplicationsRequest listApplicationsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
This is a variant of
listApplications(software.amazon.awssdk.services.emrserverless.model.ListApplicationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.emrserverless.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.emrserverless.paginators.ListApplicationsIterable responses = client .listApplicationsPaginator(request); for (software.amazon.awssdk.services.emrserverless.model.ListApplicationsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.emrserverless.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApplications(software.amazon.awssdk.services.emrserverless.model.ListApplicationsRequest)
operation.- Parameters:
listApplicationsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listApplicationsPaginator
default ListApplicationsIterable listApplicationsPaginator(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
This is a variant of
listApplications(software.amazon.awssdk.services.emrserverless.model.ListApplicationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.emrserverless.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.emrserverless.paginators.ListApplicationsIterable responses = client .listApplicationsPaginator(request); for (software.amazon.awssdk.services.emrserverless.model.ListApplicationsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.emrserverless.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApplications(software.amazon.awssdk.services.emrserverless.model.ListApplicationsRequest)
operation.
This is a convenience which creates an instance of the
ListApplicationsRequest.Builder
avoiding the need to create one manually viaListApplicationsRequest.builder()
- Parameters:
listApplicationsRequest
- AConsumer
that will call methods onListApplicationsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listJobRunAttempts
default ListJobRunAttemptsResponse listJobRunAttempts(ListJobRunAttemptsRequest listJobRunAttemptsRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Lists all attempt of a job run.
- Parameters:
listJobRunAttemptsRequest
-- Returns:
- Result of the ListJobRunAttempts operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listJobRunAttempts
default ListJobRunAttemptsResponse listJobRunAttempts(Consumer<ListJobRunAttemptsRequest.Builder> listJobRunAttemptsRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Lists all attempt of a job run.
This is a convenience which creates an instance of the
ListJobRunAttemptsRequest.Builder
avoiding the need to create one manually viaListJobRunAttemptsRequest.builder()
- Parameters:
listJobRunAttemptsRequest
- AConsumer
that will call methods onListJobRunAttemptsRequest.Builder
to create a request.- Returns:
- Result of the ListJobRunAttempts operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listJobRunAttemptsPaginator
default ListJobRunAttemptsIterable listJobRunAttemptsPaginator(ListJobRunAttemptsRequest listJobRunAttemptsRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
This is a variant of
listJobRunAttempts(software.amazon.awssdk.services.emrserverless.model.ListJobRunAttemptsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.emrserverless.paginators.ListJobRunAttemptsIterable responses = client.listJobRunAttemptsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.emrserverless.paginators.ListJobRunAttemptsIterable responses = client .listJobRunAttemptsPaginator(request); for (software.amazon.awssdk.services.emrserverless.model.ListJobRunAttemptsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.emrserverless.paginators.ListJobRunAttemptsIterable responses = client.listJobRunAttemptsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listJobRunAttempts(software.amazon.awssdk.services.emrserverless.model.ListJobRunAttemptsRequest)
operation.- Parameters:
listJobRunAttemptsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listJobRunAttemptsPaginator
default ListJobRunAttemptsIterable listJobRunAttemptsPaginator(Consumer<ListJobRunAttemptsRequest.Builder> listJobRunAttemptsRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
This is a variant of
listJobRunAttempts(software.amazon.awssdk.services.emrserverless.model.ListJobRunAttemptsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.emrserverless.paginators.ListJobRunAttemptsIterable responses = client.listJobRunAttemptsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.emrserverless.paginators.ListJobRunAttemptsIterable responses = client .listJobRunAttemptsPaginator(request); for (software.amazon.awssdk.services.emrserverless.model.ListJobRunAttemptsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.emrserverless.paginators.ListJobRunAttemptsIterable responses = client.listJobRunAttemptsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listJobRunAttempts(software.amazon.awssdk.services.emrserverless.model.ListJobRunAttemptsRequest)
operation.
This is a convenience which creates an instance of the
ListJobRunAttemptsRequest.Builder
avoiding the need to create one manually viaListJobRunAttemptsRequest.builder()
- Parameters:
listJobRunAttemptsRequest
- AConsumer
that will call methods onListJobRunAttemptsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listJobRuns
default ListJobRunsResponse listJobRuns(ListJobRunsRequest listJobRunsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Lists job runs based on a set of parameters.
- Parameters:
listJobRunsRequest
-- Returns:
- Result of the ListJobRuns operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listJobRuns
default ListJobRunsResponse listJobRuns(Consumer<ListJobRunsRequest.Builder> listJobRunsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Lists job runs based on a set of parameters.
This is a convenience which creates an instance of the
ListJobRunsRequest.Builder
avoiding the need to create one manually viaListJobRunsRequest.builder()
- Parameters:
listJobRunsRequest
- AConsumer
that will call methods onListJobRunsRequest.Builder
to create a request.- Returns:
- Result of the ListJobRuns operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listJobRunsPaginator
default ListJobRunsIterable listJobRunsPaginator(ListJobRunsRequest listJobRunsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
This is a variant of
listJobRuns(software.amazon.awssdk.services.emrserverless.model.ListJobRunsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.emrserverless.paginators.ListJobRunsIterable responses = client.listJobRunsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.emrserverless.paginators.ListJobRunsIterable responses = client.listJobRunsPaginator(request); for (software.amazon.awssdk.services.emrserverless.model.ListJobRunsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.emrserverless.paginators.ListJobRunsIterable responses = client.listJobRunsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listJobRuns(software.amazon.awssdk.services.emrserverless.model.ListJobRunsRequest)
operation.- Parameters:
listJobRunsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listJobRunsPaginator
default ListJobRunsIterable listJobRunsPaginator(Consumer<ListJobRunsRequest.Builder> listJobRunsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
This is a variant of
listJobRuns(software.amazon.awssdk.services.emrserverless.model.ListJobRunsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.emrserverless.paginators.ListJobRunsIterable responses = client.listJobRunsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.emrserverless.paginators.ListJobRunsIterable responses = client.listJobRunsPaginator(request); for (software.amazon.awssdk.services.emrserverless.model.ListJobRunsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.emrserverless.paginators.ListJobRunsIterable responses = client.listJobRunsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listJobRuns(software.amazon.awssdk.services.emrserverless.model.ListJobRunsRequest)
operation.
This is a convenience which creates an instance of the
ListJobRunsRequest.Builder
avoiding the need to create one manually viaListJobRunsRequest.builder()
- Parameters:
listJobRunsRequest
- AConsumer
that will call methods onListJobRunsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Lists the tags assigned to the resources.
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Lists the tags assigned to the resources.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
startApplication
default StartApplicationResponse startApplication(StartApplicationRequest startApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, EmrServerlessException
Starts a specified application and initializes initial capacity if configured.
- Parameters:
startApplicationRequest
-- Returns:
- Result of the StartApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
startApplication
default StartApplicationResponse startApplication(Consumer<StartApplicationRequest.Builder> startApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, EmrServerlessException
Starts a specified application and initializes initial capacity if configured.
This is a convenience which creates an instance of the
StartApplicationRequest.Builder
avoiding the need to create one manually viaStartApplicationRequest.builder()
- Parameters:
startApplicationRequest
- AConsumer
that will call methods onStartApplicationRequest.Builder
to create a request.- Returns:
- Result of the StartApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
startJobRun
default StartJobRunResponse startJobRun(StartJobRunRequest startJobRunRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, EmrServerlessException
Starts a job run.
- Parameters:
startJobRunRequest
-- Returns:
- Result of the StartJobRun operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
startJobRun
default StartJobRunResponse startJobRun(Consumer<StartJobRunRequest.Builder> startJobRunRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, EmrServerlessException
Starts a job run.
This is a convenience which creates an instance of the
StartJobRunRequest.Builder
avoiding the need to create one manually viaStartJobRunRequest.builder()
- Parameters:
startJobRunRequest
- AConsumer
that will call methods onStartJobRunRequest.Builder
to create a request.- Returns:
- Result of the StartJobRun operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
stopApplication
default StopApplicationResponse stopApplication(StopApplicationRequest stopApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Stops a specified application and releases initial capacity if configured. All scheduled and running jobs must be completed or cancelled before stopping an application.
- Parameters:
stopApplicationRequest
-- Returns:
- Result of the StopApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
stopApplication
default StopApplicationResponse stopApplication(Consumer<StopApplicationRequest.Builder> stopApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Stops a specified application and releases initial capacity if configured. All scheduled and running jobs must be completed or cancelled before stopping an application.
This is a convenience which creates an instance of the
StopApplicationRequest.Builder
avoiding the need to create one manually viaStopApplicationRequest.builder()
- Parameters:
stopApplicationRequest
- AConsumer
that will call methods onStopApplicationRequest.Builder
to create a request.- Returns:
- Result of the StopApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
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.
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
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.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Removes tags from resources.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Removes tags from resources.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateApplication
default UpdateApplicationResponse updateApplication(UpdateApplicationRequest updateApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Updates a specified application. An application has to be in a stopped or created state in order to be updated.
- Parameters:
updateApplicationRequest
-- Returns:
- Result of the UpdateApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateApplication
default UpdateApplicationResponse updateApplication(Consumer<UpdateApplicationRequest.Builder> updateApplicationRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, EmrServerlessException
Updates a specified application. An application has to be in a stopped or created state in order to be updated.
This is a convenience which creates an instance of the
UpdateApplicationRequest.Builder
avoiding the need to create one manually viaUpdateApplicationRequest.builder()
- Parameters:
updateApplicationRequest
- AConsumer
that will call methods onUpdateApplicationRequest.Builder
to create a request.- Returns:
- Result of the UpdateApplication operation returned by the service.
- Throws:
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.EmrServerlessException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
create
static EmrServerlessClient create()
Create aEmrServerlessClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.
-
builder
static EmrServerlessClientBuilder builder()
Create a builder that can be used to configure and create aEmrServerlessClient
.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default EmrServerlessServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
-
-