/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the emr-serverless-2021-07-13.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.EMRServerless.Model; namespace Amazon.EMRServerless { /// /// Interface for accessing EMRServerless /// /// 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: /// /// /// public partial interface IAmazonEMRServerless : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// /// Paginators for the service /// IEMRServerlessPaginatorFactory Paginators { get; } #endif #region CancelJobRun /// /// Cancels a job run. /// /// Container for the necessary parameters to execute the CancelJobRun service method. /// /// The response from the CancelJobRun service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for CancelJobRun Operation CancelJobRunResponse CancelJobRun(CancelJobRunRequest request); /// /// Initiates the asynchronous execution of the CancelJobRun operation. /// /// /// Container for the necessary parameters to execute the CancelJobRun operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelJobRun /// operation. /// REST API Reference for CancelJobRun Operation IAsyncResult BeginCancelJobRun(CancelJobRunRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the CancelJobRun operation. /// /// /// The IAsyncResult returned by the call to BeginCancelJobRun. /// /// Returns a CancelJobRunResult from EMRServerless. /// REST API Reference for CancelJobRun Operation CancelJobRunResponse EndCancelJobRun(IAsyncResult asyncResult); #endregion #region CreateApplication /// /// Creates an application. /// /// Container for the necessary parameters to execute the CreateApplication service method. /// /// The response from the CreateApplication service method, as returned by EMRServerless. /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for CreateApplication Operation CreateApplicationResponse CreateApplication(CreateApplicationRequest request); /// /// Initiates the asynchronous execution of the CreateApplication operation. /// /// /// Container for the necessary parameters to execute the CreateApplication operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateApplication /// operation. /// REST API Reference for CreateApplication Operation IAsyncResult BeginCreateApplication(CreateApplicationRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the CreateApplication operation. /// /// /// The IAsyncResult returned by the call to BeginCreateApplication. /// /// Returns a CreateApplicationResult from EMRServerless. /// REST API Reference for CreateApplication Operation CreateApplicationResponse EndCreateApplication(IAsyncResult asyncResult); #endregion #region DeleteApplication /// /// Deletes an application. An application has to be in a stopped or created state in /// order to be deleted. /// /// Container for the necessary parameters to execute the DeleteApplication service method. /// /// The response from the DeleteApplication service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for DeleteApplication Operation DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request); /// /// Initiates the asynchronous execution of the DeleteApplication operation. /// /// /// Container for the necessary parameters to execute the DeleteApplication operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteApplication /// operation. /// REST API Reference for DeleteApplication Operation IAsyncResult BeginDeleteApplication(DeleteApplicationRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the DeleteApplication operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteApplication. /// /// Returns a DeleteApplicationResult from EMRServerless. /// REST API Reference for DeleteApplication Operation DeleteApplicationResponse EndDeleteApplication(IAsyncResult asyncResult); #endregion #region GetApplication /// /// Displays detailed information about a specified application. /// /// Container for the necessary parameters to execute the GetApplication service method. /// /// The response from the GetApplication service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for GetApplication Operation GetApplicationResponse GetApplication(GetApplicationRequest request); /// /// Initiates the asynchronous execution of the GetApplication operation. /// /// /// Container for the necessary parameters to execute the GetApplication operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetApplication /// operation. /// REST API Reference for GetApplication Operation IAsyncResult BeginGetApplication(GetApplicationRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the GetApplication operation. /// /// /// The IAsyncResult returned by the call to BeginGetApplication. /// /// Returns a GetApplicationResult from EMRServerless. /// REST API Reference for GetApplication Operation GetApplicationResponse EndGetApplication(IAsyncResult asyncResult); #endregion #region GetDashboardForJobRun /// /// 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. /// /// /// /// Container for the necessary parameters to execute the GetDashboardForJobRun service method. /// /// The response from the GetDashboardForJobRun service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for GetDashboardForJobRun Operation GetDashboardForJobRunResponse GetDashboardForJobRun(GetDashboardForJobRunRequest request); /// /// Initiates the asynchronous execution of the GetDashboardForJobRun operation. /// /// /// Container for the necessary parameters to execute the GetDashboardForJobRun operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDashboardForJobRun /// operation. /// REST API Reference for GetDashboardForJobRun Operation IAsyncResult BeginGetDashboardForJobRun(GetDashboardForJobRunRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the GetDashboardForJobRun operation. /// /// /// The IAsyncResult returned by the call to BeginGetDashboardForJobRun. /// /// Returns a GetDashboardForJobRunResult from EMRServerless. /// REST API Reference for GetDashboardForJobRun Operation GetDashboardForJobRunResponse EndGetDashboardForJobRun(IAsyncResult asyncResult); #endregion #region GetJobRun /// /// Displays detailed information about a job run. /// /// Container for the necessary parameters to execute the GetJobRun service method. /// /// The response from the GetJobRun service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for GetJobRun Operation GetJobRunResponse GetJobRun(GetJobRunRequest request); /// /// Initiates the asynchronous execution of the GetJobRun operation. /// /// /// Container for the necessary parameters to execute the GetJobRun operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetJobRun /// operation. /// REST API Reference for GetJobRun Operation IAsyncResult BeginGetJobRun(GetJobRunRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the GetJobRun operation. /// /// /// The IAsyncResult returned by the call to BeginGetJobRun. /// /// Returns a GetJobRunResult from EMRServerless. /// REST API Reference for GetJobRun Operation GetJobRunResponse EndGetJobRun(IAsyncResult asyncResult); #endregion #region ListApplications /// /// Lists applications based on a set of parameters. /// /// Container for the necessary parameters to execute the ListApplications service method. /// /// The response from the ListApplications service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for ListApplications Operation ListApplicationsResponse ListApplications(ListApplicationsRequest request); /// /// Initiates the asynchronous execution of the ListApplications operation. /// /// /// Container for the necessary parameters to execute the ListApplications operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListApplications /// operation. /// REST API Reference for ListApplications Operation IAsyncResult BeginListApplications(ListApplicationsRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the ListApplications operation. /// /// /// The IAsyncResult returned by the call to BeginListApplications. /// /// Returns a ListApplicationsResult from EMRServerless. /// REST API Reference for ListApplications Operation ListApplicationsResponse EndListApplications(IAsyncResult asyncResult); #endregion #region ListJobRuns /// /// Lists job runs based on a set of parameters. /// /// Container for the necessary parameters to execute the ListJobRuns service method. /// /// The response from the ListJobRuns service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for ListJobRuns Operation ListJobRunsResponse ListJobRuns(ListJobRunsRequest request); /// /// Initiates the asynchronous execution of the ListJobRuns operation. /// /// /// Container for the necessary parameters to execute the ListJobRuns operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListJobRuns /// operation. /// REST API Reference for ListJobRuns Operation IAsyncResult BeginListJobRuns(ListJobRunsRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the ListJobRuns operation. /// /// /// The IAsyncResult returned by the call to BeginListJobRuns. /// /// Returns a ListJobRunsResult from EMRServerless. /// REST API Reference for ListJobRuns Operation ListJobRunsResponse EndListJobRuns(IAsyncResult asyncResult); #endregion #region ListTagsForResource /// /// Lists the tags assigned to the resources. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for ListTagsForResource Operation ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from EMRServerless. /// REST API Reference for ListTagsForResource Operation ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); #endregion #region StartApplication /// /// Starts a specified application and initializes initial capacity if configured. /// /// Container for the necessary parameters to execute the StartApplication service method. /// /// The response from the StartApplication service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The maximum number of resources per account has been reached. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for StartApplication Operation StartApplicationResponse StartApplication(StartApplicationRequest request); /// /// Initiates the asynchronous execution of the StartApplication operation. /// /// /// Container for the necessary parameters to execute the StartApplication operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartApplication /// operation. /// REST API Reference for StartApplication Operation IAsyncResult BeginStartApplication(StartApplicationRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the StartApplication operation. /// /// /// The IAsyncResult returned by the call to BeginStartApplication. /// /// Returns a StartApplicationResult from EMRServerless. /// REST API Reference for StartApplication Operation StartApplicationResponse EndStartApplication(IAsyncResult asyncResult); #endregion #region StartJobRun /// /// Starts a job run. /// /// Container for the necessary parameters to execute the StartJobRun service method. /// /// The response from the StartJobRun service method, as returned by EMRServerless. /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for StartJobRun Operation StartJobRunResponse StartJobRun(StartJobRunRequest request); /// /// Initiates the asynchronous execution of the StartJobRun operation. /// /// /// Container for the necessary parameters to execute the StartJobRun operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartJobRun /// operation. /// REST API Reference for StartJobRun Operation IAsyncResult BeginStartJobRun(StartJobRunRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the StartJobRun operation. /// /// /// The IAsyncResult returned by the call to BeginStartJobRun. /// /// Returns a StartJobRunResult from EMRServerless. /// REST API Reference for StartJobRun Operation StartJobRunResponse EndStartJobRun(IAsyncResult asyncResult); #endregion #region StopApplication /// /// Stops a specified application and releases initial capacity if configured. All scheduled /// and running jobs must be completed or cancelled before stopping an application. /// /// Container for the necessary parameters to execute the StopApplication service method. /// /// The response from the StopApplication service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for StopApplication Operation StopApplicationResponse StopApplication(StopApplicationRequest request); /// /// Initiates the asynchronous execution of the StopApplication operation. /// /// /// Container for the necessary parameters to execute the StopApplication operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopApplication /// operation. /// REST API Reference for StopApplication Operation IAsyncResult BeginStopApplication(StopApplicationRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the StopApplication operation. /// /// /// The IAsyncResult returned by the call to BeginStopApplication. /// /// Returns a StopApplicationResult from EMRServerless. /// REST API Reference for StopApplication Operation StopApplicationResponse EndStopApplication(IAsyncResult asyncResult); #endregion #region TagResource /// /// 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. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for TagResource Operation TagResourceResponse TagResource(TagResourceRequest request); /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from EMRServerless. /// REST API Reference for TagResource Operation TagResourceResponse EndTagResource(IAsyncResult asyncResult); #endregion #region UntagResource /// /// Removes tags from resources. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for UntagResource Operation UntagResourceResponse UntagResource(UntagResourceRequest request); /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from EMRServerless. /// REST API Reference for UntagResource Operation UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); #endregion #region UpdateApplication /// /// Updates a specified application. An application has to be in a stopped or created /// state in order to be updated. /// /// Container for the necessary parameters to execute the UpdateApplication service method. /// /// The response from the UpdateApplication service method, as returned by EMRServerless. /// /// Request processing failed because of an error or failure with the service. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an Amazon Web Services service. /// /// REST API Reference for UpdateApplication Operation UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request); /// /// Initiates the asynchronous execution of the UpdateApplication operation. /// /// /// Container for the necessary parameters to execute the UpdateApplication operation on AmazonEMRServerlessClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateApplication /// operation. /// REST API Reference for UpdateApplication Operation IAsyncResult BeginUpdateApplication(UpdateApplicationRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the UpdateApplication operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateApplication. /// /// Returns a UpdateApplicationResult from EMRServerless. /// REST API Reference for UpdateApplication Operation UpdateApplicationResponse EndUpdateApplication(IAsyncResult asyncResult); #endregion } }