/* * 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 athena-2017-05-18.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.Athena.Model; using Amazon.Athena.Model.Internal.MarshallTransformations; using Amazon.Athena.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Athena { /// /// Implementation for accessing Athena /// /// Amazon Athena is an interactive query service that lets you use standard SQL to analyze /// data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run /// ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure /// to set up or manage. You pay only for the queries you run. Athena scales automatically—executing /// queries in parallel—so results are fast, even with large datasets and complex queries. /// For more information, see What /// is Amazon Athena in the Amazon Athena User Guide. /// /// /// /// If you connect to Athena using the JDBC driver, use version 1.1.0 of the driver or /// later with the Amazon Athena API. Earlier version drivers do not support the API. /// For more information and to download the driver, see Accessing /// Amazon Athena with JDBC. /// /// /// /// For code samples using the Amazon Web Services SDK for Java, see Examples /// and Code Samples in the Amazon Athena User Guide. /// /// public partial class AmazonAthenaClient : AmazonServiceClient, IAmazonAthena { private static IServiceMetadata serviceMetadata = new AmazonAthenaMetadata(); #region Constructors /// /// Constructs AmazonAthenaClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonAthenaClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAthenaConfig()) { } /// /// Constructs AmazonAthenaClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonAthenaClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAthenaConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAthenaClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonAthenaClient Configuration Object public AmazonAthenaClient(AmazonAthenaConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonAthenaClient with AWS Credentials /// /// AWS Credentials public AmazonAthenaClient(AWSCredentials credentials) : this(credentials, new AmazonAthenaConfig()) { } /// /// Constructs AmazonAthenaClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonAthenaClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAthenaConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAthenaClient with AWS Credentials and an /// AmazonAthenaClient Configuration object. /// /// AWS Credentials /// The AmazonAthenaClient Configuration Object public AmazonAthenaClient(AWSCredentials credentials, AmazonAthenaConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonAthenaClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAthenaConfig()) { } /// /// Constructs AmazonAthenaClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAthenaConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonAthenaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAthenaClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonAthenaClient Configuration Object public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAthenaConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonAthenaClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAthenaConfig()) { } /// /// Constructs AmazonAthenaClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAthenaConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAthenaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAthenaClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonAthenaClient Configuration Object public AmazonAthenaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAthenaConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IAthenaPaginatorFactory _paginators; /// /// Paginators for the service /// public IAthenaPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AthenaPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonAthenaEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region BatchGetNamedQuery internal virtual BatchGetNamedQueryResponse BatchGetNamedQuery(BatchGetNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the details of a single named query or a list of up to 50 queries, which you /// provide as an array of query ID strings. Requires you to have access to the workgroup /// in which the queries were saved. Use ListNamedQueriesInput to get the list /// of named query IDs in the specified workgroup. If information could not be retrieved /// for a submitted query ID, information about the query ID submitted is listed under /// UnprocessedNamedQueryId. Named queries differ from executed queries. Use BatchGetQueryExecutionInput /// to get details about each unique query execution, and ListQueryExecutionsInput /// to get a list of query execution IDs. /// /// Container for the necessary parameters to execute the BatchGetNamedQuery service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetNamedQuery service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for BatchGetNamedQuery Operation public virtual Task BatchGetNamedQueryAsync(BatchGetNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetPreparedStatement internal virtual BatchGetPreparedStatementResponse BatchGetPreparedStatement(BatchGetPreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetPreparedStatementResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the details of a single prepared statement or a list of up to 256 prepared /// statements for the array of prepared statement names that you provide. Requires you /// to have access to the workgroup to which the prepared statements belong. If a prepared /// statement cannot be retrieved for the name specified, the statement is listed in UnprocessedPreparedStatementNames. /// /// Container for the necessary parameters to execute the BatchGetPreparedStatement service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetPreparedStatement service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for BatchGetPreparedStatement Operation public virtual Task BatchGetPreparedStatementAsync(BatchGetPreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetPreparedStatementResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetQueryExecution internal virtual BatchGetQueryExecutionResponse BatchGetQueryExecution(BatchGetQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetQueryExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the details of a single query execution or a list of up to 50 query executions, /// which you provide as an array of query execution ID strings. Requires you to have /// access to the workgroup in which the queries ran. To get a list of query execution /// IDs, use ListQueryExecutionsInput$WorkGroup. Query executions differ from named /// (saved) queries. Use BatchGetNamedQueryInput to get details about named queries. /// /// Container for the necessary parameters to execute the BatchGetQueryExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetQueryExecution service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for BatchGetQueryExecution Operation public virtual Task BatchGetQueryExecutionAsync(BatchGetQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CancelCapacityReservation internal virtual CancelCapacityReservationResponse CancelCapacityReservation(CancelCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelCapacityReservationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Cancels the capacity reservation with the specified name. Cancelled reservations remain /// in your account and will be deleted 45 days after cancellation. During the 45 days, /// you cannot re-purpose or reuse a reservation that has been cancelled, but you can /// refer to its tags and view it for historical reference. /// /// Container for the necessary parameters to execute the CancelCapacityReservation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CancelCapacityReservation service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for CancelCapacityReservation Operation public virtual Task CancelCapacityReservationAsync(CancelCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateCapacityReservation internal virtual CreateCapacityReservationResponse CreateCapacityReservation(CreateCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCapacityReservationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a capacity reservation with the specified name and number of requested data /// processing units. /// /// Container for the necessary parameters to execute the CreateCapacityReservation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateCapacityReservation service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for CreateCapacityReservation Operation public virtual Task CreateCapacityReservationAsync(CreateCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDataCatalog internal virtual CreateDataCatalogResponse CreateDataCatalog(CreateDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataCatalogResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates (registers) a data catalog with the specified name and properties. Catalogs /// created are visible to all users of the same Amazon Web Services account. /// /// Container for the necessary parameters to execute the CreateDataCatalog service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDataCatalog service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for CreateDataCatalog Operation public virtual Task CreateDataCatalogAsync(CreateDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataCatalogResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateNamedQuery internal virtual CreateNamedQueryResponse CreateNamedQuery(CreateNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNamedQueryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a named query in the specified workgroup. Requires that you have access to /// the workgroup. /// /// /// /// For code samples using the Amazon Web Services SDK for Java, see Examples /// and Code Samples in the Amazon Athena User Guide. /// /// /// Container for the necessary parameters to execute the CreateNamedQuery service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateNamedQuery service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for CreateNamedQuery Operation public virtual Task CreateNamedQueryAsync(CreateNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNamedQueryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateNotebook internal virtual CreateNotebookResponse CreateNotebook(CreateNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotebookResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an empty ipynb file in the specified Apache Spark enabled workgroup. /// Throws an error if a file in the workgroup with the same name already exists. /// /// Container for the necessary parameters to execute the CreateNotebook service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateNotebook service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for CreateNotebook Operation public virtual Task CreateNotebookAsync(CreateNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotebookResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreatePreparedStatement internal virtual CreatePreparedStatementResponse CreatePreparedStatement(CreatePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePreparedStatementResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a prepared statement for use with SQL queries in Athena. /// /// Container for the necessary parameters to execute the CreatePreparedStatement service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePreparedStatement service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for CreatePreparedStatement Operation public virtual Task CreatePreparedStatementAsync(CreatePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePreparedStatementResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreatePresignedNotebookUrl internal virtual CreatePresignedNotebookUrlResponse CreatePresignedNotebookUrl(CreatePresignedNotebookUrlRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePresignedNotebookUrlRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePresignedNotebookUrlResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets an authentication token and the URL at which the notebook can be accessed. During /// programmatic access, CreatePresignedNotebookUrl must be called every /// 10 minutes to refresh the authentication token. For information about granting programmatic /// access, see Grant /// programmatic access. /// /// Container for the necessary parameters to execute the CreatePresignedNotebookUrl service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePresignedNotebookUrl service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for CreatePresignedNotebookUrl Operation public virtual Task CreatePresignedNotebookUrlAsync(CreatePresignedNotebookUrlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePresignedNotebookUrlRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePresignedNotebookUrlResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateWorkGroup internal virtual CreateWorkGroupResponse CreateWorkGroup(CreateWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled /// workgroup or an Athena SQL workgroup. /// /// Container for the necessary parameters to execute the CreateWorkGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateWorkGroup service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for CreateWorkGroup Operation public virtual Task CreateWorkGroupAsync(CreateWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteCapacityReservation internal virtual DeleteCapacityReservationResponse DeleteCapacityReservation(DeleteCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCapacityReservationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a cancelled capacity reservation. A reservation must be cancelled before it /// can be deleted. A deleted reservation is immediately removed from your account and /// can no longer be referenced, including by its ARN. A deleted reservation cannot be /// called by GetCapacityReservation, and deleted reservations do not appear /// in the output of ListCapacityReservations. /// /// Container for the necessary parameters to execute the DeleteCapacityReservation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteCapacityReservation service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for DeleteCapacityReservation Operation public virtual Task DeleteCapacityReservationAsync(DeleteCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDataCatalog internal virtual DeleteDataCatalogResponse DeleteDataCatalog(DeleteDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataCatalogResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a data catalog. /// /// Container for the necessary parameters to execute the DeleteDataCatalog service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDataCatalog service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for DeleteDataCatalog Operation public virtual Task DeleteDataCatalogAsync(DeleteDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataCatalogResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteNamedQuery internal virtual DeleteNamedQueryResponse DeleteNamedQuery(DeleteNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNamedQueryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the named query if you have access to the workgroup in which the query was /// saved. /// /// /// /// For code samples using the Amazon Web Services SDK for Java, see Examples /// and Code Samples in the Amazon Athena User Guide. /// /// /// Container for the necessary parameters to execute the DeleteNamedQuery service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteNamedQuery service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for DeleteNamedQuery Operation public virtual Task DeleteNamedQueryAsync(DeleteNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNamedQueryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteNotebook internal virtual DeleteNotebookResponse DeleteNotebook(DeleteNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotebookResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified notebook. /// /// Container for the necessary parameters to execute the DeleteNotebook service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteNotebook service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for DeleteNotebook Operation public virtual Task DeleteNotebookAsync(DeleteNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotebookResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeletePreparedStatement internal virtual DeletePreparedStatementResponse DeletePreparedStatement(DeletePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePreparedStatementResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the prepared statement with the specified name from the specified workgroup. /// /// Container for the necessary parameters to execute the DeletePreparedStatement service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePreparedStatement service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for DeletePreparedStatement Operation public virtual Task DeletePreparedStatementAsync(DeletePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePreparedStatementResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteWorkGroup internal virtual DeleteWorkGroupResponse DeleteWorkGroup(DeleteWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the workgroup with the specified name. The primary workgroup cannot be deleted. /// /// Container for the necessary parameters to execute the DeleteWorkGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteWorkGroup service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for DeleteWorkGroup Operation public virtual Task DeleteWorkGroupAsync(DeleteWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ExportNotebook internal virtual ExportNotebookResponse ExportNotebook(ExportNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportNotebookResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Exports the specified notebook and its metadata. /// /// Container for the necessary parameters to execute the ExportNotebook service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ExportNotebook service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for ExportNotebook Operation public virtual Task ExportNotebookAsync(ExportNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportNotebookResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCalculationExecution internal virtual GetCalculationExecutionResponse GetCalculationExecution(GetCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a previously submitted calculation execution. /// /// Container for the necessary parameters to execute the GetCalculationExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCalculationExecution service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for GetCalculationExecution Operation public virtual Task GetCalculationExecutionAsync(GetCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCalculationExecutionCode internal virtual GetCalculationExecutionCodeResponse GetCalculationExecutionCode(GetCalculationExecutionCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionCodeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the unencrypted code that was executed for the calculation. /// /// Container for the necessary parameters to execute the GetCalculationExecutionCode service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCalculationExecutionCode service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for GetCalculationExecutionCode Operation public virtual Task GetCalculationExecutionCodeAsync(GetCalculationExecutionCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionCodeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCalculationExecutionStatus internal virtual GetCalculationExecutionStatusResponse GetCalculationExecutionStatus(GetCalculationExecutionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionStatusResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the status of a current calculation. /// /// Container for the necessary parameters to execute the GetCalculationExecutionStatus service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCalculationExecutionStatus service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for GetCalculationExecutionStatus Operation public virtual Task GetCalculationExecutionStatusAsync(GetCalculationExecutionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCalculationExecutionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCalculationExecutionStatusResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCapacityAssignmentConfiguration internal virtual GetCapacityAssignmentConfigurationResponse GetCapacityAssignmentConfiguration(GetCapacityAssignmentConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the capacity assignment configuration for a capacity reservation, if one exists. /// /// Container for the necessary parameters to execute the GetCapacityAssignmentConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCapacityAssignmentConfiguration service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for GetCapacityAssignmentConfiguration Operation public virtual Task GetCapacityAssignmentConfigurationAsync(GetCapacityAssignmentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCapacityReservation internal virtual GetCapacityReservationResponse GetCapacityReservation(GetCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityReservationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the capacity reservation with the specified name. /// /// Container for the necessary parameters to execute the GetCapacityReservation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCapacityReservation service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for GetCapacityReservation Operation public virtual Task GetCapacityReservationAsync(GetCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDatabase internal virtual GetDatabaseResponse GetDatabase(GetDatabaseRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDatabaseRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDatabaseResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a database object for the specified database and data catalog. /// /// Container for the necessary parameters to execute the GetDatabase service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDatabase service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (InvalidRequestException) or from the /// Athena platform (InternalServerException). For example, if a user-created /// Lambda function is missing permissions, the Lambda 4XX exception is returned /// in a MetadataException. /// /// REST API Reference for GetDatabase Operation public virtual Task GetDatabaseAsync(GetDatabaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDatabaseRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDatabaseResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDataCatalog internal virtual GetDataCatalogResponse GetDataCatalog(GetDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataCatalogResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the specified data catalog. /// /// Container for the necessary parameters to execute the GetDataCatalog service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDataCatalog service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for GetDataCatalog Operation public virtual Task GetDataCatalogAsync(GetDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataCatalogResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetNamedQuery internal virtual GetNamedQueryResponse GetNamedQuery(GetNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNamedQueryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a single query. Requires that you have access to the workgroup /// in which the query was saved. /// /// Container for the necessary parameters to execute the GetNamedQuery service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetNamedQuery service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for GetNamedQuery Operation public virtual Task GetNamedQueryAsync(GetNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNamedQueryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetNotebookMetadata internal virtual GetNotebookMetadataResponse GetNotebookMetadata(GetNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNotebookMetadataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves notebook metadata for the specified notebook ID. /// /// Container for the necessary parameters to execute the GetNotebookMetadata service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetNotebookMetadata service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for GetNotebookMetadata Operation public virtual Task GetNotebookMetadataAsync(GetNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNotebookMetadataResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPreparedStatement internal virtual GetPreparedStatementResponse GetPreparedStatement(GetPreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPreparedStatementResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the prepared statement with the specified name from the specified workgroup. /// /// Container for the necessary parameters to execute the GetPreparedStatement service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPreparedStatement service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for GetPreparedStatement Operation public virtual Task GetPreparedStatementAsync(GetPreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPreparedStatementResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetQueryExecution internal virtual GetQueryExecutionResponse GetQueryExecution(GetQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a single execution of a query if you have access to the /// workgroup in which the query ran. Each time a query executes, information about the /// query execution is saved with a unique ID. /// /// Container for the necessary parameters to execute the GetQueryExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetQueryExecution service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for GetQueryExecution Operation public virtual Task GetQueryExecutionAsync(GetQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetQueryResults internal virtual GetQueryResultsResponse GetQueryResults(GetQueryResultsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryResultsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Streams the results of a single query execution specified by QueryExecutionId /// from the Athena query results location in Amazon S3. For more information, see Working with query /// results, recent queries, and output files in the Amazon Athena User Guide. /// This request does not execute the query but returns results. Use StartQueryExecution /// to run a query. /// /// /// /// To stream query results successfully, the IAM principal with permission to call GetQueryResults /// also must have permissions to the Amazon S3 GetObject action for the /// Athena query results location. /// /// /// /// IAM principals with permission to the Amazon S3 GetObject action for /// the query results location are able to retrieve query results from Amazon S3 even /// if permission to the GetQueryResults action is denied. To restrict user /// or role access, ensure that Amazon S3 permissions to the Athena query location are /// denied. /// /// /// /// Container for the necessary parameters to execute the GetQueryResults service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetQueryResults service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for GetQueryResults Operation public virtual Task GetQueryResultsAsync(GetQueryResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryResultsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetQueryRuntimeStatistics internal virtual GetQueryRuntimeStatisticsResponse GetQueryRuntimeStatistics(GetQueryRuntimeStatisticsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryRuntimeStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryRuntimeStatisticsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns query execution runtime statistics related to a single execution of a query /// if you have access to the workgroup in which the query ran. Query execution runtime /// statistics are returned only when QueryExecutionStatus$State is in a SUCCEEDED /// or FAILED state. Stage-level input and output row count and data size statistics are /// not shown when a query has row-level filters defined in Lake Formation. /// /// Container for the necessary parameters to execute the GetQueryRuntimeStatistics service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetQueryRuntimeStatistics service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for GetQueryRuntimeStatistics Operation public virtual Task GetQueryRuntimeStatisticsAsync(GetQueryRuntimeStatisticsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetQueryRuntimeStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQueryRuntimeStatisticsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetSession internal virtual GetSessionResponse GetSession(GetSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the full details of a previously created session, including the session status /// and configuration. /// /// Container for the necessary parameters to execute the GetSession service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetSession service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for GetSession Operation public virtual Task GetSessionAsync(GetSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetSessionStatus internal virtual GetSessionStatusResponse GetSessionStatus(GetSessionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionStatusResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the current status of a session. /// /// Container for the necessary parameters to execute the GetSessionStatus service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetSessionStatus service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for GetSessionStatus Operation public virtual Task GetSessionStatusAsync(GetSessionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSessionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSessionStatusResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetTableMetadata internal virtual GetTableMetadataResponse GetTableMetadata(GetTableMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTableMetadataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns table metadata for the specified catalog, database, and table. /// /// Container for the necessary parameters to execute the GetTableMetadata service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetTableMetadata service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (InvalidRequestException) or from the /// Athena platform (InternalServerException). For example, if a user-created /// Lambda function is missing permissions, the Lambda 4XX exception is returned /// in a MetadataException. /// /// REST API Reference for GetTableMetadata Operation public virtual Task GetTableMetadataAsync(GetTableMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTableMetadataResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetWorkGroup internal virtual GetWorkGroupResponse GetWorkGroup(GetWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetWorkGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the workgroup with the specified name. /// /// Container for the necessary parameters to execute the GetWorkGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetWorkGroup service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for GetWorkGroup Operation public virtual Task GetWorkGroupAsync(GetWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetWorkGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ImportNotebook internal virtual ImportNotebookResponse ImportNotebook(ImportNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportNotebookResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Imports a single ipynb file to a Spark enabled workgroup. The maximum /// file size that can be imported is 10 megabytes. If an ipynb file with /// the same name already exists in the workgroup, throws an error. /// /// Container for the necessary parameters to execute the ImportNotebook service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ImportNotebook service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for ImportNotebook Operation public virtual Task ImportNotebookAsync(ImportNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportNotebookResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListApplicationDPUSizes internal virtual ListApplicationDPUSizesResponse ListApplicationDPUSizes(ListApplicationDPUSizesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationDPUSizesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationDPUSizesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the supported DPU sizes for the supported application runtimes (for example, /// Athena notebook version 1). /// /// Container for the necessary parameters to execute the ListApplicationDPUSizes service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApplicationDPUSizes service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for ListApplicationDPUSizes Operation public virtual Task ListApplicationDPUSizesAsync(ListApplicationDPUSizesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationDPUSizesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationDPUSizesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCalculationExecutions internal virtual ListCalculationExecutionsResponse ListCalculationExecutions(ListCalculationExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCalculationExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCalculationExecutionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the calculations that have been submitted to a session in descending order. /// Newer calculations are listed first; older calculations are listed later. /// /// Container for the necessary parameters to execute the ListCalculationExecutions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCalculationExecutions service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for ListCalculationExecutions Operation public virtual Task ListCalculationExecutionsAsync(ListCalculationExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCalculationExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCalculationExecutionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCapacityReservations internal virtual ListCapacityReservationsResponse ListCapacityReservations(ListCapacityReservationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCapacityReservationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCapacityReservationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the capacity reservations for the current account. /// /// Container for the necessary parameters to execute the ListCapacityReservations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCapacityReservations service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for ListCapacityReservations Operation public virtual Task ListCapacityReservationsAsync(ListCapacityReservationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCapacityReservationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCapacityReservationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDatabases internal virtual ListDatabasesResponse ListDatabases(ListDatabasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatabasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatabasesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the databases in the specified data catalog. /// /// Container for the necessary parameters to execute the ListDatabases service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDatabases service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (InvalidRequestException) or from the /// Athena platform (InternalServerException). For example, if a user-created /// Lambda function is missing permissions, the Lambda 4XX exception is returned /// in a MetadataException. /// /// REST API Reference for ListDatabases Operation public virtual Task ListDatabasesAsync(ListDatabasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatabasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatabasesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDataCatalogs internal virtual ListDataCatalogsResponse ListDataCatalogs(ListDataCatalogsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataCatalogsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataCatalogsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the data catalogs in the current Amazon Web Services account. /// /// /// /// In the Athena console, data catalogs are listed as "data sources" on the Data sources /// page under the Data source name column. /// /// /// /// Container for the necessary parameters to execute the ListDataCatalogs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDataCatalogs service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for ListDataCatalogs Operation public virtual Task ListDataCatalogsAsync(ListDataCatalogsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataCatalogsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataCatalogsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEngineVersions internal virtual ListEngineVersionsResponse ListEngineVersions(ListEngineVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEngineVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEngineVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of engine versions that are available to choose from, including the /// Auto option. /// /// Container for the necessary parameters to execute the ListEngineVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListEngineVersions service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for ListEngineVersions Operation public virtual Task ListEngineVersionsAsync(ListEngineVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEngineVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEngineVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListExecutors internal virtual ListExecutorsResponse ListExecutors(ListExecutorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListExecutorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExecutorsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists, in descending order, the executors that joined a session. Newer executors are /// listed first; older executors are listed later. The result can be optionally filtered /// by state. /// /// Container for the necessary parameters to execute the ListExecutors service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListExecutors service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for ListExecutors Operation public virtual Task ListExecutorsAsync(ListExecutorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListExecutorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExecutorsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListNamedQueries internal virtual ListNamedQueriesResponse ListNamedQueries(ListNamedQueriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNamedQueriesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNamedQueriesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides a list of available query IDs only for queries saved in the specified workgroup. /// Requires that you have access to the specified workgroup. If a workgroup is not specified, /// lists the saved queries for the primary workgroup. /// /// /// /// For code samples using the Amazon Web Services SDK for Java, see Examples /// and Code Samples in the Amazon Athena User Guide. /// /// /// Container for the necessary parameters to execute the ListNamedQueries service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListNamedQueries service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for ListNamedQueries Operation public virtual Task ListNamedQueriesAsync(ListNamedQueriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNamedQueriesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNamedQueriesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListNotebookMetadata internal virtual ListNotebookMetadataResponse ListNotebookMetadata(ListNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookMetadataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Displays the notebook files for the specified workgroup in paginated format. /// /// Container for the necessary parameters to execute the ListNotebookMetadata service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListNotebookMetadata service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for ListNotebookMetadata Operation public virtual Task ListNotebookMetadataAsync(ListNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookMetadataResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListNotebookSessions internal virtual ListNotebookSessionsResponse ListNotebookSessions(ListNotebookSessionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookSessionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists, in descending order, the sessions that have been created in a notebook that /// are in an active state like CREATING, CREATED, IDLE /// or BUSY. Newer sessions are listed first; older sessions are listed later. /// /// Container for the necessary parameters to execute the ListNotebookSessions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListNotebookSessions service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for ListNotebookSessions Operation public virtual Task ListNotebookSessionsAsync(ListNotebookSessionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotebookSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotebookSessionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPreparedStatements internal virtual ListPreparedStatementsResponse ListPreparedStatements(ListPreparedStatementsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPreparedStatementsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPreparedStatementsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the prepared statements in the specified workgroup. /// /// Container for the necessary parameters to execute the ListPreparedStatements service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPreparedStatements service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for ListPreparedStatements Operation public virtual Task ListPreparedStatementsAsync(ListPreparedStatementsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPreparedStatementsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPreparedStatementsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListQueryExecutions internal virtual ListQueryExecutionsResponse ListQueryExecutions(ListQueryExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListQueryExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides a list of available query execution IDs for the queries in the specified /// workgroup. If a workgroup is not specified, returns a list of query execution IDs /// for the primary workgroup. Requires you to have access to the workgroup in which the /// queries ran. /// /// /// /// For code samples using the Amazon Web Services SDK for Java, see Examples /// and Code Samples in the Amazon Athena User Guide. /// /// /// Container for the necessary parameters to execute the ListQueryExecutions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListQueryExecutions service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for ListQueryExecutions Operation public virtual Task ListQueryExecutionsAsync(ListQueryExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListQueryExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListSessions internal virtual ListSessionsResponse ListSessions(ListSessionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSessionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the sessions in a workgroup that are in an active state like CREATING, /// CREATED, IDLE, or BUSY. Newer sessions are /// listed first; older sessions are listed later. /// /// Container for the necessary parameters to execute the ListSessions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListSessions service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for ListSessions Operation public virtual Task ListSessionsAsync(ListSessionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSessionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTableMetadata internal virtual ListTableMetadataResponse ListTableMetadata(ListTableMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTableMetadataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the metadata for the tables in the specified data catalog database. /// /// Container for the necessary parameters to execute the ListTableMetadata service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTableMetadata service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// An exception that Athena received when it called a custom metastore. Occurs if the /// error is not caused by user input (InvalidRequestException) or from the /// Athena platform (InternalServerException). For example, if a user-created /// Lambda function is missing permissions, the Lambda 4XX exception is returned /// in a MetadataException. /// /// REST API Reference for ListTableMetadata Operation public virtual Task ListTableMetadataAsync(ListTableMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTableMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTableMetadataResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the tags associated with an Athena resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTagsForResource service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for ListTagsForResource Operation public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListWorkGroups internal virtual ListWorkGroupsResponse ListWorkGroups(ListWorkGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists available workgroups for the account. /// /// Container for the necessary parameters to execute the ListWorkGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListWorkGroups service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for ListWorkGroups Operation public virtual Task ListWorkGroupsAsync(ListWorkGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutCapacityAssignmentConfiguration internal virtual PutCapacityAssignmentConfigurationResponse PutCapacityAssignmentConfiguration(PutCapacityAssignmentConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Puts a new capacity assignment configuration for a specified capacity reservation. /// If a capacity assignment configuration already exists for the capacity reservation, /// replaces the existing capacity assignment configuration. /// /// Container for the necessary parameters to execute the PutCapacityAssignmentConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutCapacityAssignmentConfiguration service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for PutCapacityAssignmentConfiguration Operation public virtual Task PutCapacityAssignmentConfigurationAsync(PutCapacityAssignmentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutCapacityAssignmentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCapacityAssignmentConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartCalculationExecution internal virtual StartCalculationExecutionResponse StartCalculationExecution(StartCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCalculationExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Submits calculations for execution within a session. You can supply the code to run /// as an inline code block within the request. /// /// Container for the necessary parameters to execute the StartCalculationExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartCalculationExecution service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for StartCalculationExecution Operation public virtual Task StartCalculationExecutionAsync(StartCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCalculationExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartQueryExecution internal virtual StartQueryExecutionResponse StartQueryExecution(StartQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartQueryExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Runs the SQL query statements contained in the Query. Requires you to /// have access to the workgroup in which the query ran. Running queries against an external /// catalog requires GetDataCatalog permission to the catalog. For code samples /// using the Amazon Web Services SDK for Java, see Examples /// and Code Samples in the Amazon Athena User Guide. /// /// Container for the necessary parameters to execute the StartQueryExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartQueryExecution service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for StartQueryExecution Operation public virtual Task StartQueryExecutionAsync(StartQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartSession internal virtual StartSessionResponse StartSession(StartSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSessionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a session for running calculations within a workgroup. The session is ready /// when it reaches an IDLE state. /// /// Container for the necessary parameters to execute the StartSession service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartSession service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// /// The specified session already exists. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for StartSession Operation public virtual Task StartSessionAsync(StartSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSessionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopCalculationExecution internal virtual StopCalculationExecutionResponse StopCalculationExecution(StopCalculationExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopCalculationExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Requests the cancellation of a calculation. A StopCalculationExecution /// call on a calculation that is already in a terminal state (for example, STOPPED, /// FAILED, or COMPLETED) succeeds but has no effect. /// /// /// /// Cancelling a calculation is done on a best effort basis. If a calculation cannot be /// cancelled, you can be charged for its completion. If you are concerned about being /// charged for a calculation that cannot be cancelled, consider terminating the session /// in which the calculation is running. /// /// /// /// Container for the necessary parameters to execute the StopCalculationExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopCalculationExecution service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for StopCalculationExecution Operation public virtual Task StopCalculationExecutionAsync(StopCalculationExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopCalculationExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopCalculationExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopQueryExecution internal virtual StopQueryExecutionResponse StopQueryExecution(StopQueryExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopQueryExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stops a query execution. Requires you to have access to the workgroup in which the /// query ran. /// /// /// /// For code samples using the Amazon Web Services SDK for Java, see Examples /// and Code Samples in the Amazon Athena User Guide. /// /// /// Container for the necessary parameters to execute the StopQueryExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopQueryExecution service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for StopQueryExecution Operation public virtual Task StopQueryExecutionAsync(StopQueryExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopQueryExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopQueryExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds one or more tags to an Athena resource. A tag is a label that you assign to a /// resource. Each tag consists of a key and an optional value, both of which you define. /// For example, you can use tags to categorize Athena workgroups, data catalogs, or capacity /// reservations by purpose, owner, or environment. Use a consistent set of tag keys to /// make it easier to search and filter the resources in your account. For best practices, /// see Tagging /// Best Practices. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag /// values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers /// representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and /// values are case-sensitive. Tag keys must be unique per resource. If you specify more /// than one tag, separate them by commas. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TagResource service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for TagResource Operation public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TerminateSession internal virtual TerminateSessionResponse TerminateSession(TerminateSessionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateSessionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Terminates an active session. A TerminateSession call on a session that /// is already inactive (for example, in a FAILED, TERMINATED /// or TERMINATING state) succeeds but has no effect. Calculations running /// in the session when TerminateSession is called are forcefully stopped, /// but may display as FAILED instead of STOPPED. /// /// Container for the necessary parameters to execute the TerminateSession service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TerminateSession service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for TerminateSession Operation public virtual Task TerminateSessionAsync(TerminateSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateSessionRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateSessionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes one or more tags from an Athena resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UntagResource service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for UntagResource Operation public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateCapacityReservation internal virtual UpdateCapacityReservationResponse UpdateCapacityReservation(UpdateCapacityReservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCapacityReservationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the number of requested data processing units for the capacity reservation /// with the specified name. /// /// Container for the necessary parameters to execute the UpdateCapacityReservation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateCapacityReservation service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for UpdateCapacityReservation Operation public virtual Task UpdateCapacityReservationAsync(UpdateCapacityReservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCapacityReservationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCapacityReservationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateDataCatalog internal virtual UpdateDataCatalogResponse UpdateDataCatalog(UpdateDataCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataCatalogResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the data catalog that has the specified name. /// /// Container for the necessary parameters to execute the UpdateDataCatalog service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDataCatalog service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for UpdateDataCatalog Operation public virtual Task UpdateDataCatalogAsync(UpdateDataCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataCatalogResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateNamedQuery internal virtual UpdateNamedQueryResponse UpdateNamedQuery(UpdateNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNamedQueryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a NamedQuery object. The database or workgroup cannot be updated. /// /// Container for the necessary parameters to execute the UpdateNamedQuery service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateNamedQuery service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for UpdateNamedQuery Operation public virtual Task UpdateNamedQueryAsync(UpdateNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNamedQueryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateNotebook internal virtual UpdateNotebookResponse UpdateNotebook(UpdateNotebookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the contents of a Spark notebook. /// /// Container for the necessary parameters to execute the UpdateNotebook service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateNotebook service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for UpdateNotebook Operation public virtual Task UpdateNotebookAsync(UpdateNotebookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateNotebookMetadata internal virtual UpdateNotebookMetadataResponse UpdateNotebookMetadata(UpdateNotebookMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookMetadataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the metadata for a notebook. /// /// Container for the necessary parameters to execute the UpdateNotebookMetadata service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateNotebookMetadata service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// Indicates that the request was throttled. /// /// REST API Reference for UpdateNotebookMetadata Operation public virtual Task UpdateNotebookMetadataAsync(UpdateNotebookMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotebookMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotebookMetadataResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdatePreparedStatement internal virtual UpdatePreparedStatementResponse UpdatePreparedStatement(UpdatePreparedStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePreparedStatementResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a prepared statement. /// /// Container for the necessary parameters to execute the UpdatePreparedStatement service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePreparedStatement service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// /// A resource, such as a workgroup, was not found. /// /// REST API Reference for UpdatePreparedStatement Operation public virtual Task UpdatePreparedStatementAsync(UpdatePreparedStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePreparedStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePreparedStatementResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateWorkGroup internal virtual UpdateWorkGroupResponse UpdateWorkGroup(UpdateWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the workgroup with the specified name. The workgroup's name cannot be changed. /// Only ConfigurationUpdates can be specified. /// /// Container for the necessary parameters to execute the UpdateWorkGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateWorkGroup service method, as returned by Athena. /// /// Indicates a platform issue, which may be due to a transient condition or outage. /// /// /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// /// REST API Reference for UpdateWorkGroup Operation public virtual Task UpdateWorkGroupAsync(UpdateWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }