All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.glue.DefaultGlueAsyncClient Maven / Gradle / Ivy

/*
 * 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.
 */

package software.amazon.awssdk.services.glue;

import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkInternalApi;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
import software.amazon.awssdk.awscore.client.handler.AwsAsyncClientHandler;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.ApiName;
import software.amazon.awssdk.core.client.config.SdkClientConfiguration;
import software.amazon.awssdk.core.client.handler.AsyncClientHandler;
import software.amazon.awssdk.core.client.handler.ClientExecutionParams;
import software.amazon.awssdk.core.http.HttpResponseHandler;
import software.amazon.awssdk.core.util.VersionInfo;
import software.amazon.awssdk.protocols.core.ExceptionMetadata;
import software.amazon.awssdk.protocols.json.AwsJsonProtocol;
import software.amazon.awssdk.protocols.json.AwsJsonProtocolFactory;
import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
import software.amazon.awssdk.protocols.json.JsonOperationMetadata;
import software.amazon.awssdk.services.glue.model.AccessDeniedException;
import software.amazon.awssdk.services.glue.model.AlreadyExistsException;
import software.amazon.awssdk.services.glue.model.BatchCreatePartitionRequest;
import software.amazon.awssdk.services.glue.model.BatchCreatePartitionResponse;
import software.amazon.awssdk.services.glue.model.BatchDeleteConnectionRequest;
import software.amazon.awssdk.services.glue.model.BatchDeleteConnectionResponse;
import software.amazon.awssdk.services.glue.model.BatchDeletePartitionRequest;
import software.amazon.awssdk.services.glue.model.BatchDeletePartitionResponse;
import software.amazon.awssdk.services.glue.model.BatchDeleteTableRequest;
import software.amazon.awssdk.services.glue.model.BatchDeleteTableResponse;
import software.amazon.awssdk.services.glue.model.BatchDeleteTableVersionRequest;
import software.amazon.awssdk.services.glue.model.BatchDeleteTableVersionResponse;
import software.amazon.awssdk.services.glue.model.BatchGetCrawlersRequest;
import software.amazon.awssdk.services.glue.model.BatchGetCrawlersResponse;
import software.amazon.awssdk.services.glue.model.BatchGetDevEndpointsRequest;
import software.amazon.awssdk.services.glue.model.BatchGetDevEndpointsResponse;
import software.amazon.awssdk.services.glue.model.BatchGetJobsRequest;
import software.amazon.awssdk.services.glue.model.BatchGetJobsResponse;
import software.amazon.awssdk.services.glue.model.BatchGetPartitionRequest;
import software.amazon.awssdk.services.glue.model.BatchGetPartitionResponse;
import software.amazon.awssdk.services.glue.model.BatchGetTriggersRequest;
import software.amazon.awssdk.services.glue.model.BatchGetTriggersResponse;
import software.amazon.awssdk.services.glue.model.BatchGetWorkflowsRequest;
import software.amazon.awssdk.services.glue.model.BatchGetWorkflowsResponse;
import software.amazon.awssdk.services.glue.model.BatchStopJobRunRequest;
import software.amazon.awssdk.services.glue.model.BatchStopJobRunResponse;
import software.amazon.awssdk.services.glue.model.CancelMlTaskRunRequest;
import software.amazon.awssdk.services.glue.model.CancelMlTaskRunResponse;
import software.amazon.awssdk.services.glue.model.ConcurrentModificationException;
import software.amazon.awssdk.services.glue.model.ConcurrentRunsExceededException;
import software.amazon.awssdk.services.glue.model.ConditionCheckFailureException;
import software.amazon.awssdk.services.glue.model.CrawlerNotRunningException;
import software.amazon.awssdk.services.glue.model.CrawlerRunningException;
import software.amazon.awssdk.services.glue.model.CrawlerStoppingException;
import software.amazon.awssdk.services.glue.model.CreateClassifierRequest;
import software.amazon.awssdk.services.glue.model.CreateClassifierResponse;
import software.amazon.awssdk.services.glue.model.CreateConnectionRequest;
import software.amazon.awssdk.services.glue.model.CreateConnectionResponse;
import software.amazon.awssdk.services.glue.model.CreateCrawlerRequest;
import software.amazon.awssdk.services.glue.model.CreateCrawlerResponse;
import software.amazon.awssdk.services.glue.model.CreateDatabaseRequest;
import software.amazon.awssdk.services.glue.model.CreateDatabaseResponse;
import software.amazon.awssdk.services.glue.model.CreateDevEndpointRequest;
import software.amazon.awssdk.services.glue.model.CreateDevEndpointResponse;
import software.amazon.awssdk.services.glue.model.CreateJobRequest;
import software.amazon.awssdk.services.glue.model.CreateJobResponse;
import software.amazon.awssdk.services.glue.model.CreateMlTransformRequest;
import software.amazon.awssdk.services.glue.model.CreateMlTransformResponse;
import software.amazon.awssdk.services.glue.model.CreatePartitionRequest;
import software.amazon.awssdk.services.glue.model.CreatePartitionResponse;
import software.amazon.awssdk.services.glue.model.CreateScriptRequest;
import software.amazon.awssdk.services.glue.model.CreateScriptResponse;
import software.amazon.awssdk.services.glue.model.CreateSecurityConfigurationRequest;
import software.amazon.awssdk.services.glue.model.CreateSecurityConfigurationResponse;
import software.amazon.awssdk.services.glue.model.CreateTableRequest;
import software.amazon.awssdk.services.glue.model.CreateTableResponse;
import software.amazon.awssdk.services.glue.model.CreateTriggerRequest;
import software.amazon.awssdk.services.glue.model.CreateTriggerResponse;
import software.amazon.awssdk.services.glue.model.CreateUserDefinedFunctionRequest;
import software.amazon.awssdk.services.glue.model.CreateUserDefinedFunctionResponse;
import software.amazon.awssdk.services.glue.model.CreateWorkflowRequest;
import software.amazon.awssdk.services.glue.model.CreateWorkflowResponse;
import software.amazon.awssdk.services.glue.model.DeleteClassifierRequest;
import software.amazon.awssdk.services.glue.model.DeleteClassifierResponse;
import software.amazon.awssdk.services.glue.model.DeleteConnectionRequest;
import software.amazon.awssdk.services.glue.model.DeleteConnectionResponse;
import software.amazon.awssdk.services.glue.model.DeleteCrawlerRequest;
import software.amazon.awssdk.services.glue.model.DeleteCrawlerResponse;
import software.amazon.awssdk.services.glue.model.DeleteDatabaseRequest;
import software.amazon.awssdk.services.glue.model.DeleteDatabaseResponse;
import software.amazon.awssdk.services.glue.model.DeleteDevEndpointRequest;
import software.amazon.awssdk.services.glue.model.DeleteDevEndpointResponse;
import software.amazon.awssdk.services.glue.model.DeleteJobRequest;
import software.amazon.awssdk.services.glue.model.DeleteJobResponse;
import software.amazon.awssdk.services.glue.model.DeleteMlTransformRequest;
import software.amazon.awssdk.services.glue.model.DeleteMlTransformResponse;
import software.amazon.awssdk.services.glue.model.DeletePartitionRequest;
import software.amazon.awssdk.services.glue.model.DeletePartitionResponse;
import software.amazon.awssdk.services.glue.model.DeleteResourcePolicyRequest;
import software.amazon.awssdk.services.glue.model.DeleteResourcePolicyResponse;
import software.amazon.awssdk.services.glue.model.DeleteSecurityConfigurationRequest;
import software.amazon.awssdk.services.glue.model.DeleteSecurityConfigurationResponse;
import software.amazon.awssdk.services.glue.model.DeleteTableRequest;
import software.amazon.awssdk.services.glue.model.DeleteTableResponse;
import software.amazon.awssdk.services.glue.model.DeleteTableVersionRequest;
import software.amazon.awssdk.services.glue.model.DeleteTableVersionResponse;
import software.amazon.awssdk.services.glue.model.DeleteTriggerRequest;
import software.amazon.awssdk.services.glue.model.DeleteTriggerResponse;
import software.amazon.awssdk.services.glue.model.DeleteUserDefinedFunctionRequest;
import software.amazon.awssdk.services.glue.model.DeleteUserDefinedFunctionResponse;
import software.amazon.awssdk.services.glue.model.DeleteWorkflowRequest;
import software.amazon.awssdk.services.glue.model.DeleteWorkflowResponse;
import software.amazon.awssdk.services.glue.model.EntityNotFoundException;
import software.amazon.awssdk.services.glue.model.GetCatalogImportStatusRequest;
import software.amazon.awssdk.services.glue.model.GetCatalogImportStatusResponse;
import software.amazon.awssdk.services.glue.model.GetClassifierRequest;
import software.amazon.awssdk.services.glue.model.GetClassifierResponse;
import software.amazon.awssdk.services.glue.model.GetClassifiersRequest;
import software.amazon.awssdk.services.glue.model.GetClassifiersResponse;
import software.amazon.awssdk.services.glue.model.GetConnectionRequest;
import software.amazon.awssdk.services.glue.model.GetConnectionResponse;
import software.amazon.awssdk.services.glue.model.GetConnectionsRequest;
import software.amazon.awssdk.services.glue.model.GetConnectionsResponse;
import software.amazon.awssdk.services.glue.model.GetCrawlerMetricsRequest;
import software.amazon.awssdk.services.glue.model.GetCrawlerMetricsResponse;
import software.amazon.awssdk.services.glue.model.GetCrawlerRequest;
import software.amazon.awssdk.services.glue.model.GetCrawlerResponse;
import software.amazon.awssdk.services.glue.model.GetCrawlersRequest;
import software.amazon.awssdk.services.glue.model.GetCrawlersResponse;
import software.amazon.awssdk.services.glue.model.GetDataCatalogEncryptionSettingsRequest;
import software.amazon.awssdk.services.glue.model.GetDataCatalogEncryptionSettingsResponse;
import software.amazon.awssdk.services.glue.model.GetDatabaseRequest;
import software.amazon.awssdk.services.glue.model.GetDatabaseResponse;
import software.amazon.awssdk.services.glue.model.GetDatabasesRequest;
import software.amazon.awssdk.services.glue.model.GetDatabasesResponse;
import software.amazon.awssdk.services.glue.model.GetDataflowGraphRequest;
import software.amazon.awssdk.services.glue.model.GetDataflowGraphResponse;
import software.amazon.awssdk.services.glue.model.GetDevEndpointRequest;
import software.amazon.awssdk.services.glue.model.GetDevEndpointResponse;
import software.amazon.awssdk.services.glue.model.GetDevEndpointsRequest;
import software.amazon.awssdk.services.glue.model.GetDevEndpointsResponse;
import software.amazon.awssdk.services.glue.model.GetJobBookmarkRequest;
import software.amazon.awssdk.services.glue.model.GetJobBookmarkResponse;
import software.amazon.awssdk.services.glue.model.GetJobRequest;
import software.amazon.awssdk.services.glue.model.GetJobResponse;
import software.amazon.awssdk.services.glue.model.GetJobRunRequest;
import software.amazon.awssdk.services.glue.model.GetJobRunResponse;
import software.amazon.awssdk.services.glue.model.GetJobRunsRequest;
import software.amazon.awssdk.services.glue.model.GetJobRunsResponse;
import software.amazon.awssdk.services.glue.model.GetJobsRequest;
import software.amazon.awssdk.services.glue.model.GetJobsResponse;
import software.amazon.awssdk.services.glue.model.GetMappingRequest;
import software.amazon.awssdk.services.glue.model.GetMappingResponse;
import software.amazon.awssdk.services.glue.model.GetMlTaskRunRequest;
import software.amazon.awssdk.services.glue.model.GetMlTaskRunResponse;
import software.amazon.awssdk.services.glue.model.GetMlTaskRunsRequest;
import software.amazon.awssdk.services.glue.model.GetMlTaskRunsResponse;
import software.amazon.awssdk.services.glue.model.GetMlTransformRequest;
import software.amazon.awssdk.services.glue.model.GetMlTransformResponse;
import software.amazon.awssdk.services.glue.model.GetMlTransformsRequest;
import software.amazon.awssdk.services.glue.model.GetMlTransformsResponse;
import software.amazon.awssdk.services.glue.model.GetPartitionRequest;
import software.amazon.awssdk.services.glue.model.GetPartitionResponse;
import software.amazon.awssdk.services.glue.model.GetPartitionsRequest;
import software.amazon.awssdk.services.glue.model.GetPartitionsResponse;
import software.amazon.awssdk.services.glue.model.GetPlanRequest;
import software.amazon.awssdk.services.glue.model.GetPlanResponse;
import software.amazon.awssdk.services.glue.model.GetResourcePolicyRequest;
import software.amazon.awssdk.services.glue.model.GetResourcePolicyResponse;
import software.amazon.awssdk.services.glue.model.GetSecurityConfigurationRequest;
import software.amazon.awssdk.services.glue.model.GetSecurityConfigurationResponse;
import software.amazon.awssdk.services.glue.model.GetSecurityConfigurationsRequest;
import software.amazon.awssdk.services.glue.model.GetSecurityConfigurationsResponse;
import software.amazon.awssdk.services.glue.model.GetTableRequest;
import software.amazon.awssdk.services.glue.model.GetTableResponse;
import software.amazon.awssdk.services.glue.model.GetTableVersionRequest;
import software.amazon.awssdk.services.glue.model.GetTableVersionResponse;
import software.amazon.awssdk.services.glue.model.GetTableVersionsRequest;
import software.amazon.awssdk.services.glue.model.GetTableVersionsResponse;
import software.amazon.awssdk.services.glue.model.GetTablesRequest;
import software.amazon.awssdk.services.glue.model.GetTablesResponse;
import software.amazon.awssdk.services.glue.model.GetTagsRequest;
import software.amazon.awssdk.services.glue.model.GetTagsResponse;
import software.amazon.awssdk.services.glue.model.GetTriggerRequest;
import software.amazon.awssdk.services.glue.model.GetTriggerResponse;
import software.amazon.awssdk.services.glue.model.GetTriggersRequest;
import software.amazon.awssdk.services.glue.model.GetTriggersResponse;
import software.amazon.awssdk.services.glue.model.GetUserDefinedFunctionRequest;
import software.amazon.awssdk.services.glue.model.GetUserDefinedFunctionResponse;
import software.amazon.awssdk.services.glue.model.GetUserDefinedFunctionsRequest;
import software.amazon.awssdk.services.glue.model.GetUserDefinedFunctionsResponse;
import software.amazon.awssdk.services.glue.model.GetWorkflowRequest;
import software.amazon.awssdk.services.glue.model.GetWorkflowResponse;
import software.amazon.awssdk.services.glue.model.GetWorkflowRunPropertiesRequest;
import software.amazon.awssdk.services.glue.model.GetWorkflowRunPropertiesResponse;
import software.amazon.awssdk.services.glue.model.GetWorkflowRunRequest;
import software.amazon.awssdk.services.glue.model.GetWorkflowRunResponse;
import software.amazon.awssdk.services.glue.model.GetWorkflowRunsRequest;
import software.amazon.awssdk.services.glue.model.GetWorkflowRunsResponse;
import software.amazon.awssdk.services.glue.model.GlueEncryptionException;
import software.amazon.awssdk.services.glue.model.GlueException;
import software.amazon.awssdk.services.glue.model.GlueRequest;
import software.amazon.awssdk.services.glue.model.IdempotentParameterMismatchException;
import software.amazon.awssdk.services.glue.model.ImportCatalogToGlueRequest;
import software.amazon.awssdk.services.glue.model.ImportCatalogToGlueResponse;
import software.amazon.awssdk.services.glue.model.InternalServiceException;
import software.amazon.awssdk.services.glue.model.InvalidInputException;
import software.amazon.awssdk.services.glue.model.ListCrawlersRequest;
import software.amazon.awssdk.services.glue.model.ListCrawlersResponse;
import software.amazon.awssdk.services.glue.model.ListDevEndpointsRequest;
import software.amazon.awssdk.services.glue.model.ListDevEndpointsResponse;
import software.amazon.awssdk.services.glue.model.ListJobsRequest;
import software.amazon.awssdk.services.glue.model.ListJobsResponse;
import software.amazon.awssdk.services.glue.model.ListMlTransformsRequest;
import software.amazon.awssdk.services.glue.model.ListMlTransformsResponse;
import software.amazon.awssdk.services.glue.model.ListTriggersRequest;
import software.amazon.awssdk.services.glue.model.ListTriggersResponse;
import software.amazon.awssdk.services.glue.model.ListWorkflowsRequest;
import software.amazon.awssdk.services.glue.model.ListWorkflowsResponse;
import software.amazon.awssdk.services.glue.model.MlTransformNotReadyException;
import software.amazon.awssdk.services.glue.model.NoScheduleException;
import software.amazon.awssdk.services.glue.model.OperationTimeoutException;
import software.amazon.awssdk.services.glue.model.PutDataCatalogEncryptionSettingsRequest;
import software.amazon.awssdk.services.glue.model.PutDataCatalogEncryptionSettingsResponse;
import software.amazon.awssdk.services.glue.model.PutResourcePolicyRequest;
import software.amazon.awssdk.services.glue.model.PutResourcePolicyResponse;
import software.amazon.awssdk.services.glue.model.PutWorkflowRunPropertiesRequest;
import software.amazon.awssdk.services.glue.model.PutWorkflowRunPropertiesResponse;
import software.amazon.awssdk.services.glue.model.ResetJobBookmarkRequest;
import software.amazon.awssdk.services.glue.model.ResetJobBookmarkResponse;
import software.amazon.awssdk.services.glue.model.ResourceNumberLimitExceededException;
import software.amazon.awssdk.services.glue.model.SchedulerNotRunningException;
import software.amazon.awssdk.services.glue.model.SchedulerRunningException;
import software.amazon.awssdk.services.glue.model.SchedulerTransitioningException;
import software.amazon.awssdk.services.glue.model.SearchTablesRequest;
import software.amazon.awssdk.services.glue.model.SearchTablesResponse;
import software.amazon.awssdk.services.glue.model.StartCrawlerRequest;
import software.amazon.awssdk.services.glue.model.StartCrawlerResponse;
import software.amazon.awssdk.services.glue.model.StartCrawlerScheduleRequest;
import software.amazon.awssdk.services.glue.model.StartCrawlerScheduleResponse;
import software.amazon.awssdk.services.glue.model.StartExportLabelsTaskRunRequest;
import software.amazon.awssdk.services.glue.model.StartExportLabelsTaskRunResponse;
import software.amazon.awssdk.services.glue.model.StartImportLabelsTaskRunRequest;
import software.amazon.awssdk.services.glue.model.StartImportLabelsTaskRunResponse;
import software.amazon.awssdk.services.glue.model.StartJobRunRequest;
import software.amazon.awssdk.services.glue.model.StartJobRunResponse;
import software.amazon.awssdk.services.glue.model.StartMlEvaluationTaskRunRequest;
import software.amazon.awssdk.services.glue.model.StartMlEvaluationTaskRunResponse;
import software.amazon.awssdk.services.glue.model.StartMlLabelingSetGenerationTaskRunRequest;
import software.amazon.awssdk.services.glue.model.StartMlLabelingSetGenerationTaskRunResponse;
import software.amazon.awssdk.services.glue.model.StartTriggerRequest;
import software.amazon.awssdk.services.glue.model.StartTriggerResponse;
import software.amazon.awssdk.services.glue.model.StartWorkflowRunRequest;
import software.amazon.awssdk.services.glue.model.StartWorkflowRunResponse;
import software.amazon.awssdk.services.glue.model.StopCrawlerRequest;
import software.amazon.awssdk.services.glue.model.StopCrawlerResponse;
import software.amazon.awssdk.services.glue.model.StopCrawlerScheduleRequest;
import software.amazon.awssdk.services.glue.model.StopCrawlerScheduleResponse;
import software.amazon.awssdk.services.glue.model.StopTriggerRequest;
import software.amazon.awssdk.services.glue.model.StopTriggerResponse;
import software.amazon.awssdk.services.glue.model.TagResourceRequest;
import software.amazon.awssdk.services.glue.model.TagResourceResponse;
import software.amazon.awssdk.services.glue.model.UntagResourceRequest;
import software.amazon.awssdk.services.glue.model.UntagResourceResponse;
import software.amazon.awssdk.services.glue.model.UpdateClassifierRequest;
import software.amazon.awssdk.services.glue.model.UpdateClassifierResponse;
import software.amazon.awssdk.services.glue.model.UpdateConnectionRequest;
import software.amazon.awssdk.services.glue.model.UpdateConnectionResponse;
import software.amazon.awssdk.services.glue.model.UpdateCrawlerRequest;
import software.amazon.awssdk.services.glue.model.UpdateCrawlerResponse;
import software.amazon.awssdk.services.glue.model.UpdateCrawlerScheduleRequest;
import software.amazon.awssdk.services.glue.model.UpdateCrawlerScheduleResponse;
import software.amazon.awssdk.services.glue.model.UpdateDatabaseRequest;
import software.amazon.awssdk.services.glue.model.UpdateDatabaseResponse;
import software.amazon.awssdk.services.glue.model.UpdateDevEndpointRequest;
import software.amazon.awssdk.services.glue.model.UpdateDevEndpointResponse;
import software.amazon.awssdk.services.glue.model.UpdateJobRequest;
import software.amazon.awssdk.services.glue.model.UpdateJobResponse;
import software.amazon.awssdk.services.glue.model.UpdateMlTransformRequest;
import software.amazon.awssdk.services.glue.model.UpdateMlTransformResponse;
import software.amazon.awssdk.services.glue.model.UpdatePartitionRequest;
import software.amazon.awssdk.services.glue.model.UpdatePartitionResponse;
import software.amazon.awssdk.services.glue.model.UpdateTableRequest;
import software.amazon.awssdk.services.glue.model.UpdateTableResponse;
import software.amazon.awssdk.services.glue.model.UpdateTriggerRequest;
import software.amazon.awssdk.services.glue.model.UpdateTriggerResponse;
import software.amazon.awssdk.services.glue.model.UpdateUserDefinedFunctionRequest;
import software.amazon.awssdk.services.glue.model.UpdateUserDefinedFunctionResponse;
import software.amazon.awssdk.services.glue.model.UpdateWorkflowRequest;
import software.amazon.awssdk.services.glue.model.UpdateWorkflowResponse;
import software.amazon.awssdk.services.glue.model.ValidationException;
import software.amazon.awssdk.services.glue.model.VersionMismatchException;
import software.amazon.awssdk.services.glue.paginators.GetClassifiersPublisher;
import software.amazon.awssdk.services.glue.paginators.GetConnectionsPublisher;
import software.amazon.awssdk.services.glue.paginators.GetCrawlerMetricsPublisher;
import software.amazon.awssdk.services.glue.paginators.GetCrawlersPublisher;
import software.amazon.awssdk.services.glue.paginators.GetDatabasesPublisher;
import software.amazon.awssdk.services.glue.paginators.GetDevEndpointsPublisher;
import software.amazon.awssdk.services.glue.paginators.GetJobRunsPublisher;
import software.amazon.awssdk.services.glue.paginators.GetJobsPublisher;
import software.amazon.awssdk.services.glue.paginators.GetMLTaskRunsPublisher;
import software.amazon.awssdk.services.glue.paginators.GetMLTransformsPublisher;
import software.amazon.awssdk.services.glue.paginators.GetPartitionsPublisher;
import software.amazon.awssdk.services.glue.paginators.GetSecurityConfigurationsPublisher;
import software.amazon.awssdk.services.glue.paginators.GetTableVersionsPublisher;
import software.amazon.awssdk.services.glue.paginators.GetTablesPublisher;
import software.amazon.awssdk.services.glue.paginators.GetTriggersPublisher;
import software.amazon.awssdk.services.glue.paginators.GetUserDefinedFunctionsPublisher;
import software.amazon.awssdk.services.glue.paginators.GetWorkflowRunsPublisher;
import software.amazon.awssdk.services.glue.paginators.ListCrawlersPublisher;
import software.amazon.awssdk.services.glue.paginators.ListDevEndpointsPublisher;
import software.amazon.awssdk.services.glue.paginators.ListJobsPublisher;
import software.amazon.awssdk.services.glue.paginators.ListMLTransformsPublisher;
import software.amazon.awssdk.services.glue.paginators.ListTriggersPublisher;
import software.amazon.awssdk.services.glue.paginators.ListWorkflowsPublisher;
import software.amazon.awssdk.services.glue.paginators.SearchTablesPublisher;
import software.amazon.awssdk.services.glue.transform.BatchCreatePartitionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.BatchDeleteConnectionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.BatchDeletePartitionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.BatchDeleteTableRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.BatchDeleteTableVersionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.BatchGetCrawlersRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.BatchGetDevEndpointsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.BatchGetJobsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.BatchGetPartitionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.BatchGetTriggersRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.BatchGetWorkflowsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.BatchStopJobRunRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CancelMlTaskRunRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateClassifierRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateConnectionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateCrawlerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateDatabaseRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateDevEndpointRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateJobRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateMlTransformRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreatePartitionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateScriptRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateSecurityConfigurationRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateTableRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateTriggerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateUserDefinedFunctionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.CreateWorkflowRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteClassifierRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteConnectionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteCrawlerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteDatabaseRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteDevEndpointRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteJobRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteMlTransformRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeletePartitionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteResourcePolicyRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteSecurityConfigurationRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteTableRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteTableVersionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteTriggerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteUserDefinedFunctionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.DeleteWorkflowRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetCatalogImportStatusRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetClassifierRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetClassifiersRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetConnectionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetConnectionsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetCrawlerMetricsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetCrawlerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetCrawlersRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetDataCatalogEncryptionSettingsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetDatabaseRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetDatabasesRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetDataflowGraphRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetDevEndpointRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetDevEndpointsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetJobBookmarkRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetJobRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetJobRunRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetJobRunsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetJobsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetMappingRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetMlTaskRunRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetMlTaskRunsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetMlTransformRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetMlTransformsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetPartitionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetPartitionsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetPlanRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetResourcePolicyRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetSecurityConfigurationRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetSecurityConfigurationsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetTableRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetTableVersionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetTableVersionsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetTablesRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetTagsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetTriggerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetTriggersRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetUserDefinedFunctionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetUserDefinedFunctionsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetWorkflowRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetWorkflowRunPropertiesRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetWorkflowRunRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.GetWorkflowRunsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.ImportCatalogToGlueRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.ListCrawlersRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.ListDevEndpointsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.ListJobsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.ListMlTransformsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.ListTriggersRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.ListWorkflowsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.PutDataCatalogEncryptionSettingsRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.PutResourcePolicyRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.PutWorkflowRunPropertiesRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.ResetJobBookmarkRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.SearchTablesRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StartCrawlerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StartCrawlerScheduleRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StartExportLabelsTaskRunRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StartImportLabelsTaskRunRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StartJobRunRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StartMlEvaluationTaskRunRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StartMlLabelingSetGenerationTaskRunRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StartTriggerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StartWorkflowRunRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StopCrawlerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StopCrawlerScheduleRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.StopTriggerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.TagResourceRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UntagResourceRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateClassifierRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateConnectionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateCrawlerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateCrawlerScheduleRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateDatabaseRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateDevEndpointRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateJobRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateMlTransformRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdatePartitionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateTableRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateTriggerRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateUserDefinedFunctionRequestMarshaller;
import software.amazon.awssdk.services.glue.transform.UpdateWorkflowRequestMarshaller;
import software.amazon.awssdk.utils.CompletableFutureUtils;

/**
 * Internal implementation of {@link GlueAsyncClient}.
 *
 * @see GlueAsyncClient#builder()
 */
@Generated("software.amazon.awssdk:codegen")
@SdkInternalApi
final class DefaultGlueAsyncClient implements GlueAsyncClient {
    private static final Logger log = LoggerFactory.getLogger(DefaultGlueAsyncClient.class);

    private final AsyncClientHandler clientHandler;

    private final AwsJsonProtocolFactory protocolFactory;

    private final SdkClientConfiguration clientConfiguration;

    protected DefaultGlueAsyncClient(SdkClientConfiguration clientConfiguration) {
        this.clientHandler = new AwsAsyncClientHandler(clientConfiguration);
        this.clientConfiguration = clientConfiguration;
        this.protocolFactory = init(AwsJsonProtocolFactory.builder()).build();
    }

    @Override
    public final String serviceName() {
        return SERVICE_NAME;
    }

    /**
     * 

* Creates one or more partitions in a batch operation. *

* * @param batchCreatePartitionRequest * @return A Java Future containing the result of the BatchCreatePartition operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchCreatePartition * @see AWS API * Documentation */ @Override public CompletableFuture batchCreatePartition( BatchCreatePartitionRequest batchCreatePartitionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchCreatePartitionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchCreatePartition") .withMarshaller(new BatchCreatePartitionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchCreatePartitionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a list of connection definitions from the Data Catalog. *

* * @param batchDeleteConnectionRequest * @return A Java Future containing the result of the BatchDeleteConnection operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchDeleteConnection * @see AWS API * Documentation */ @Override public CompletableFuture batchDeleteConnection( BatchDeleteConnectionRequest batchDeleteConnectionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchDeleteConnectionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchDeleteConnection") .withMarshaller(new BatchDeleteConnectionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchDeleteConnectionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes one or more partitions in a batch operation. *

* * @param batchDeletePartitionRequest * @return A Java Future containing the result of the BatchDeletePartition operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchDeletePartition * @see AWS API * Documentation */ @Override public CompletableFuture batchDeletePartition( BatchDeletePartitionRequest batchDeletePartitionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchDeletePartitionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchDeletePartition") .withMarshaller(new BatchDeletePartitionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchDeletePartitionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes multiple tables at once. *

* *

* After completing this operation, you no longer have access to the table versions and partitions that belong to * the deleted table. AWS Glue deletes these "orphaned" resources asynchronously in a timely manner, at the * discretion of the service. *

*

* To ensure the immediate deletion of all related resources, before calling BatchDeleteTable, use * DeleteTableVersion or BatchDeleteTableVersion, and DeletePartition or * BatchDeletePartition, to delete any resources that belong to the table. *

*
* * @param batchDeleteTableRequest * @return A Java Future containing the result of the BatchDeleteTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchDeleteTable * @see AWS API * Documentation */ @Override public CompletableFuture batchDeleteTable(BatchDeleteTableRequest batchDeleteTableRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchDeleteTableResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchDeleteTable") .withMarshaller(new BatchDeleteTableRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchDeleteTableRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a specified batch of versions of a table. *

* * @param batchDeleteTableVersionRequest * @return A Java Future containing the result of the BatchDeleteTableVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchDeleteTableVersion * @see AWS * API Documentation */ @Override public CompletableFuture batchDeleteTableVersion( BatchDeleteTableVersionRequest batchDeleteTableVersionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchDeleteTableVersionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchDeleteTableVersion") .withMarshaller(new BatchDeleteTableVersionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchDeleteTableVersionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Returns a list of resource metadata for a given list of crawler names. After calling the * ListCrawlers operation, you can call this operation to access the data to which you have been * granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags. *

* * @param batchGetCrawlersRequest * @return A Java Future containing the result of the BatchGetCrawlers operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchGetCrawlers * @see AWS API * Documentation */ @Override public CompletableFuture batchGetCrawlers(BatchGetCrawlersRequest batchGetCrawlersRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchGetCrawlersResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchGetCrawlers") .withMarshaller(new BatchGetCrawlersRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchGetCrawlersRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Returns a list of resource metadata for a given list of development endpoint names. After calling the * ListDevEndpoints operation, you can call this operation to access the data to which you have been * granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags. *

* * @param batchGetDevEndpointsRequest * @return A Java Future containing the result of the BatchGetDevEndpoints operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AccessDeniedException Access to a resource was denied.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchGetDevEndpoints * @see AWS API * Documentation */ @Override public CompletableFuture batchGetDevEndpoints( BatchGetDevEndpointsRequest batchGetDevEndpointsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchGetDevEndpointsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchGetDevEndpoints") .withMarshaller(new BatchGetDevEndpointsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchGetDevEndpointsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Returns a list of resource metadata for a given list of job names. After calling the ListJobs * operation, you can call this operation to access the data to which you have been granted permissions. This * operation supports all IAM permissions, including permission conditions that uses tags. *

* * @param batchGetJobsRequest * @return A Java Future containing the result of the BatchGetJobs operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchGetJobs * @see AWS API * Documentation */ @Override public CompletableFuture batchGetJobs(BatchGetJobsRequest batchGetJobsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, BatchGetJobsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchGetJobs").withMarshaller(new BatchGetJobsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchGetJobsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves partitions in a batch request. *

* * @param batchGetPartitionRequest * @return A Java Future containing the result of the BatchGetPartition operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchGetPartition * @see AWS API * Documentation */ @Override public CompletableFuture batchGetPartition(BatchGetPartitionRequest batchGetPartitionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchGetPartitionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchGetPartition") .withMarshaller(new BatchGetPartitionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchGetPartitionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Returns a list of resource metadata for a given list of trigger names. After calling the * ListTriggers operation, you can call this operation to access the data to which you have been * granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags. *

* * @param batchGetTriggersRequest * @return A Java Future containing the result of the BatchGetTriggers operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchGetTriggers * @see AWS API * Documentation */ @Override public CompletableFuture batchGetTriggers(BatchGetTriggersRequest batchGetTriggersRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchGetTriggersResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchGetTriggers") .withMarshaller(new BatchGetTriggersRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchGetTriggersRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Returns a list of resource metadata for a given list of workflow names. After calling the * ListWorkflows operation, you can call this operation to access the data to which you have been * granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags. *

* * @param batchGetWorkflowsRequest * @return A Java Future containing the result of the BatchGetWorkflows operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchGetWorkflows * @see AWS API * Documentation */ @Override public CompletableFuture batchGetWorkflows(BatchGetWorkflowsRequest batchGetWorkflowsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchGetWorkflowsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchGetWorkflows") .withMarshaller(new BatchGetWorkflowsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchGetWorkflowsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Stops one or more job runs for a specified job definition. *

* * @param batchStopJobRunRequest * @return A Java Future containing the result of the BatchStopJobRun operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.BatchStopJobRun * @see AWS API * Documentation */ @Override public CompletableFuture batchStopJobRun(BatchStopJobRunRequest batchStopJobRunRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchStopJobRunResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchStopJobRun") .withMarshaller(new BatchStopJobRunRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchStopJobRunRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Cancels (stops) a task run. Machine learning task runs are asynchronous tasks that AWS Glue runs on your behalf * as part of various machine learning workflows. You can cancel a machine learning task run at any time by calling * CancelMLTaskRun with a task run's parent transform's TransformID and the task run's * TaskRunId. *

* * @param cancelMlTaskRunRequest * @return A Java Future containing the result of the CancelMLTaskRun operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CancelMLTaskRun * @see AWS API * Documentation */ @Override public CompletableFuture cancelMLTaskRun(CancelMlTaskRunRequest cancelMlTaskRunRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CancelMlTaskRunResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CancelMLTaskRun") .withMarshaller(new CancelMlTaskRunRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(cancelMlTaskRunRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a classifier in the user's account. This can be a GrokClassifier, an * XMLClassifier, a JsonClassifier, or a CsvClassifier, depending on which * field of the request is present. *

* * @param createClassifierRequest * @return A Java Future containing the result of the CreateClassifier operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateClassifier * @see AWS API * Documentation */ @Override public CompletableFuture createClassifier(CreateClassifierRequest createClassifierRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateClassifierResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateClassifier") .withMarshaller(new CreateClassifierRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createClassifierRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a connection definition in the Data Catalog. *

* * @param createConnectionRequest * @return A Java Future containing the result of the CreateConnection operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateConnection * @see AWS API * Documentation */ @Override public CompletableFuture createConnection(CreateConnectionRequest createConnectionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateConnectionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateConnection") .withMarshaller(new CreateConnectionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createConnectionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a new crawler with specified targets, role, configuration, and optional schedule. At least one crawl * target must be specified, in the s3Targets field, the jdbcTargets field, or the * DynamoDBTargets field. *

* * @param createCrawlerRequest * @return A Java Future containing the result of the CreateCrawler operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateCrawler * @see AWS API * Documentation */ @Override public CompletableFuture createCrawler(CreateCrawlerRequest createCrawlerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateCrawlerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateCrawler") .withMarshaller(new CreateCrawlerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createCrawlerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a new database in a Data Catalog. *

* * @param createDatabaseRequest * @return A Java Future containing the result of the CreateDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateDatabase * @see AWS API * Documentation */ @Override public CompletableFuture createDatabase(CreateDatabaseRequest createDatabaseRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateDatabaseResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateDatabase") .withMarshaller(new CreateDatabaseRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createDatabaseRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a new development endpoint. *

* * @param createDevEndpointRequest * @return A Java Future containing the result of the CreateDevEndpoint operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AccessDeniedException Access to a resource was denied.
  • *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • IdempotentParameterMismatchException The same unique identifier was associated with two different * records.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • ValidationException A value could not be validated.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateDevEndpoint * @see AWS API * Documentation */ @Override public CompletableFuture createDevEndpoint(CreateDevEndpointRequest createDevEndpointRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateDevEndpointResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateDevEndpoint") .withMarshaller(new CreateDevEndpointRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createDevEndpointRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a new job definition. *

* * @param createJobRequest * @return A Java Future containing the result of the CreateJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • IdempotentParameterMismatchException The same unique identifier was associated with two different * records.
  • *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateJob * @see AWS API * Documentation */ @Override public CompletableFuture createJob(CreateJobRequest createJobRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateJobResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("CreateJob") .withMarshaller(new CreateJobRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createJobRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates an AWS Glue machine learning transform. This operation creates the transform and all the necessary * parameters to train it. *

*

* Call this operation as the first step in the process of using a machine learning transform (such as the * FindMatches transform) for deduplicating data. You can provide an optional Description, * in addition to the parameters that you want to use for your algorithm. *

*

* You must also specify certain parameters for the tasks that AWS Glue runs on your behalf as part of learning from * your data and creating a high-quality machine learning transform. These parameters include Role, and * optionally, AllocatedCapacity, Timeout, and MaxRetries. For more * information, see Jobs. *

* * @param createMlTransformRequest * @return A Java Future containing the result of the CreateMLTransform operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • AccessDeniedException Access to a resource was denied.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • IdempotentParameterMismatchException The same unique identifier was associated with two different * records.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateMLTransform * @see AWS API * Documentation */ @Override public CompletableFuture createMLTransform(CreateMlTransformRequest createMlTransformRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateMlTransformResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateMLTransform") .withMarshaller(new CreateMlTransformRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createMlTransformRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a new partition. *

* * @param createPartitionRequest * @return A Java Future containing the result of the CreatePartition operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreatePartition * @see AWS API * Documentation */ @Override public CompletableFuture createPartition(CreatePartitionRequest createPartitionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreatePartitionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreatePartition") .withMarshaller(new CreatePartitionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createPartitionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Transforms a directed acyclic graph (DAG) into code. *

* * @param createScriptRequest * @return A Java Future containing the result of the CreateScript operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateScript * @see AWS API * Documentation */ @Override public CompletableFuture createScript(CreateScriptRequest createScriptRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateScriptResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateScript").withMarshaller(new CreateScriptRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createScriptRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a new security configuration. A security configuration is a set of security properties that can be used * by AWS Glue. You can use a security configuration to encrypt data at rest. For information about using security * configurations in AWS Glue, see Encrypting Data Written * by Crawlers, Jobs, and Development Endpoints. *

* * @param createSecurityConfigurationRequest * @return A Java Future containing the result of the CreateSecurityConfiguration operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateSecurityConfiguration * @see AWS API Documentation */ @Override public CompletableFuture createSecurityConfiguration( CreateSecurityConfigurationRequest createSecurityConfigurationRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateSecurityConfigurationResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateSecurityConfiguration") .withMarshaller(new CreateSecurityConfigurationRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createSecurityConfigurationRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a new table definition in the Data Catalog. *

* * @param createTableRequest * @return A Java Future containing the result of the CreateTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateTable * @see AWS API * Documentation */ @Override public CompletableFuture createTable(CreateTableRequest createTableRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateTableResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateTable").withMarshaller(new CreateTableRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createTableRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a new trigger. *

* * @param createTriggerRequest * @return A Java Future containing the result of the CreateTrigger operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • IdempotentParameterMismatchException The same unique identifier was associated with two different * records.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateTrigger * @see AWS API * Documentation */ @Override public CompletableFuture createTrigger(CreateTriggerRequest createTriggerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateTriggerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateTrigger") .withMarshaller(new CreateTriggerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createTriggerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a new function definition in the Data Catalog. *

* * @param createUserDefinedFunctionRequest * @return A Java Future containing the result of the CreateUserDefinedFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateUserDefinedFunction * @see AWS * API Documentation */ @Override public CompletableFuture createUserDefinedFunction( CreateUserDefinedFunctionRequest createUserDefinedFunctionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateUserDefinedFunctionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateUserDefinedFunction") .withMarshaller(new CreateUserDefinedFunctionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createUserDefinedFunctionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates a new workflow. *

* * @param createWorkflowRequest * @return A Java Future containing the result of the CreateWorkflow operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.CreateWorkflow * @see AWS API * Documentation */ @Override public CompletableFuture createWorkflow(CreateWorkflowRequest createWorkflowRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateWorkflowResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateWorkflow") .withMarshaller(new CreateWorkflowRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createWorkflowRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Removes a classifier from the Data Catalog. *

* * @param deleteClassifierRequest * @return A Java Future containing the result of the DeleteClassifier operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteClassifier * @see AWS API * Documentation */ @Override public CompletableFuture deleteClassifier(DeleteClassifierRequest deleteClassifierRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteClassifierResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteClassifier") .withMarshaller(new DeleteClassifierRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteClassifierRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a connection from the Data Catalog. *

* * @param deleteConnectionRequest * @return A Java Future containing the result of the DeleteConnection operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteConnection * @see AWS API * Documentation */ @Override public CompletableFuture deleteConnection(DeleteConnectionRequest deleteConnectionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteConnectionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteConnection") .withMarshaller(new DeleteConnectionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteConnectionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Removes a specified crawler from the AWS Glue Data Catalog, unless the crawler state is RUNNING. *

* * @param deleteCrawlerRequest * @return A Java Future containing the result of the DeleteCrawler operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • CrawlerRunningException The operation cannot be performed because the crawler is already running.
  • *
  • SchedulerTransitioningException The specified scheduler is transitioning.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteCrawler * @see AWS API * Documentation */ @Override public CompletableFuture deleteCrawler(DeleteCrawlerRequest deleteCrawlerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteCrawlerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteCrawler") .withMarshaller(new DeleteCrawlerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteCrawlerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Removes a specified database from a Data Catalog. *

* *

* After completing this operation, you no longer have access to the tables (and all table versions and partitions * that might belong to the tables) and the user-defined functions in the deleted database. AWS Glue deletes these * "orphaned" resources asynchronously in a timely manner, at the discretion of the service. *

*

* To ensure the immediate deletion of all related resources, before calling DeleteDatabase, use * DeleteTableVersion or BatchDeleteTableVersion, DeletePartition or * BatchDeletePartition, DeleteUserDefinedFunction, and DeleteTable or * BatchDeleteTable, to delete any resources that belong to the database. *

*
* * @param deleteDatabaseRequest * @return A Java Future containing the result of the DeleteDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteDatabase * @see AWS API * Documentation */ @Override public CompletableFuture deleteDatabase(DeleteDatabaseRequest deleteDatabaseRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteDatabaseResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteDatabase") .withMarshaller(new DeleteDatabaseRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteDatabaseRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a specified development endpoint. *

* * @param deleteDevEndpointRequest * @return A Java Future containing the result of the DeleteDevEndpoint operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteDevEndpoint * @see AWS API * Documentation */ @Override public CompletableFuture deleteDevEndpoint(DeleteDevEndpointRequest deleteDevEndpointRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteDevEndpointResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteDevEndpoint") .withMarshaller(new DeleteDevEndpointRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteDevEndpointRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a specified job definition. If the job definition is not found, no exception is thrown. *

* * @param deleteJobRequest * @return A Java Future containing the result of the DeleteJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteJob * @see AWS API * Documentation */ @Override public CompletableFuture deleteJob(DeleteJobRequest deleteJobRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteJobResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("DeleteJob") .withMarshaller(new DeleteJobRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteJobRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes an AWS Glue machine learning transform. Machine learning transforms are a special type of transform that * use machine learning to learn the details of the transformation to be performed by learning from examples * provided by humans. These transformations are then saved by AWS Glue. If you no longer need a transform, you can * delete it by calling DeleteMLTransforms. However, any AWS Glue jobs that still reference the deleted * transform will no longer succeed. *

* * @param deleteMlTransformRequest * @return A Java Future containing the result of the DeleteMLTransform operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteMLTransform * @see AWS API * Documentation */ @Override public CompletableFuture deleteMLTransform(DeleteMlTransformRequest deleteMlTransformRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteMlTransformResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteMLTransform") .withMarshaller(new DeleteMlTransformRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteMlTransformRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a specified partition. *

* * @param deletePartitionRequest * @return A Java Future containing the result of the DeletePartition operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeletePartition * @see AWS API * Documentation */ @Override public CompletableFuture deletePartition(DeletePartitionRequest deletePartitionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeletePartitionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeletePartition") .withMarshaller(new DeletePartitionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deletePartitionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a specified policy. *

* * @param deleteResourcePolicyRequest * @return A Java Future containing the result of the DeleteResourcePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • ConditionCheckFailureException A specified condition was not satisfied.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteResourcePolicy * @see AWS API * Documentation */ @Override public CompletableFuture deleteResourcePolicy( DeleteResourcePolicyRequest deleteResourcePolicyRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteResourcePolicyResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteResourcePolicy") .withMarshaller(new DeleteResourcePolicyRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteResourcePolicyRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a specified security configuration. *

* * @param deleteSecurityConfigurationRequest * @return A Java Future containing the result of the DeleteSecurityConfiguration operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteSecurityConfiguration * @see AWS API Documentation */ @Override public CompletableFuture deleteSecurityConfiguration( DeleteSecurityConfigurationRequest deleteSecurityConfigurationRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteSecurityConfigurationResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteSecurityConfiguration") .withMarshaller(new DeleteSecurityConfigurationRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteSecurityConfigurationRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Removes a table definition from the Data Catalog. *

* *

* After completing this operation, you no longer have access to the table versions and partitions that belong to * the deleted table. AWS Glue deletes these "orphaned" resources asynchronously in a timely manner, at the * discretion of the service. *

*

* To ensure the immediate deletion of all related resources, before calling DeleteTable, use * DeleteTableVersion or BatchDeleteTableVersion, and DeletePartition or * BatchDeletePartition, to delete any resources that belong to the table. *

*
* * @param deleteTableRequest * @return A Java Future containing the result of the DeleteTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteTable * @see AWS API * Documentation */ @Override public CompletableFuture deleteTable(DeleteTableRequest deleteTableRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteTableResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteTable").withMarshaller(new DeleteTableRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteTableRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a specified version of a table. *

* * @param deleteTableVersionRequest * @return A Java Future containing the result of the DeleteTableVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteTableVersion * @see AWS API * Documentation */ @Override public CompletableFuture deleteTableVersion(DeleteTableVersionRequest deleteTableVersionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteTableVersionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteTableVersion") .withMarshaller(new DeleteTableVersionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteTableVersionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a specified trigger. If the trigger is not found, no exception is thrown. *

* * @param deleteTriggerRequest * @return A Java Future containing the result of the DeleteTrigger operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteTrigger * @see AWS API * Documentation */ @Override public CompletableFuture deleteTrigger(DeleteTriggerRequest deleteTriggerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteTriggerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteTrigger") .withMarshaller(new DeleteTriggerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteTriggerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes an existing function definition from the Data Catalog. *

* * @param deleteUserDefinedFunctionRequest * @return A Java Future containing the result of the DeleteUserDefinedFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteUserDefinedFunction * @see AWS * API Documentation */ @Override public CompletableFuture deleteUserDefinedFunction( DeleteUserDefinedFunctionRequest deleteUserDefinedFunctionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteUserDefinedFunctionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteUserDefinedFunction") .withMarshaller(new DeleteUserDefinedFunctionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteUserDefinedFunctionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a workflow. *

* * @param deleteWorkflowRequest * @return A Java Future containing the result of the DeleteWorkflow operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.DeleteWorkflow * @see AWS API * Documentation */ @Override public CompletableFuture deleteWorkflow(DeleteWorkflowRequest deleteWorkflowRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteWorkflowResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteWorkflow") .withMarshaller(new DeleteWorkflowRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteWorkflowRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the status of a migration operation. *

* * @param getCatalogImportStatusRequest * @return A Java Future containing the result of the GetCatalogImportStatus operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetCatalogImportStatus * @see AWS * API Documentation */ @Override public CompletableFuture getCatalogImportStatus( GetCatalogImportStatusRequest getCatalogImportStatusRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetCatalogImportStatusResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetCatalogImportStatus") .withMarshaller(new GetCatalogImportStatusRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getCatalogImportStatusRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieve a classifier by name. *

* * @param getClassifierRequest * @return A Java Future containing the result of the GetClassifier operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetClassifier * @see AWS API * Documentation */ @Override public CompletableFuture getClassifier(GetClassifierRequest getClassifierRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetClassifierResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetClassifier") .withMarshaller(new GetClassifierRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getClassifierRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Lists all classifier objects in the Data Catalog. *

* * @param getClassifiersRequest * @return A Java Future containing the result of the GetClassifiers operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetClassifiers * @see AWS API * Documentation */ @Override public CompletableFuture getClassifiers(GetClassifiersRequest getClassifiersRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetClassifiersResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetClassifiers") .withMarshaller(new GetClassifiersRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getClassifiersRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Lists all classifier objects in the Data Catalog. *

*
*

* This is a variant of {@link #getClassifiers(software.amazon.awssdk.services.glue.model.GetClassifiersRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetClassifiersPublisher publisher = client.getClassifiersPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetClassifiersPublisher publisher = client.getClassifiersPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetClassifiersResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getClassifiers(software.amazon.awssdk.services.glue.model.GetClassifiersRequest)} operation. *

* * @param getClassifiersRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetClassifiers * @see AWS API * Documentation */ public GetClassifiersPublisher getClassifiersPaginator(GetClassifiersRequest getClassifiersRequest) { return new GetClassifiersPublisher(this, applyPaginatorUserAgent(getClassifiersRequest)); } /** *

* Retrieves a connection definition from the Data Catalog. *

* * @param getConnectionRequest * @return A Java Future containing the result of the GetConnection operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetConnection * @see AWS API * Documentation */ @Override public CompletableFuture getConnection(GetConnectionRequest getConnectionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetConnectionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetConnection") .withMarshaller(new GetConnectionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getConnectionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a list of connection definitions from the Data Catalog. *

* * @param getConnectionsRequest * @return A Java Future containing the result of the GetConnections operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetConnections * @see AWS API * Documentation */ @Override public CompletableFuture getConnections(GetConnectionsRequest getConnectionsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetConnectionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetConnections") .withMarshaller(new GetConnectionsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getConnectionsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a list of connection definitions from the Data Catalog. *

*
*

* This is a variant of {@link #getConnections(software.amazon.awssdk.services.glue.model.GetConnectionsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetConnectionsPublisher publisher = client.getConnectionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetConnectionsPublisher publisher = client.getConnectionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetConnectionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getConnections(software.amazon.awssdk.services.glue.model.GetConnectionsRequest)} operation. *

* * @param getConnectionsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetConnections * @see AWS API * Documentation */ public GetConnectionsPublisher getConnectionsPaginator(GetConnectionsRequest getConnectionsRequest) { return new GetConnectionsPublisher(this, applyPaginatorUserAgent(getConnectionsRequest)); } /** *

* Retrieves metadata for a specified crawler. *

* * @param getCrawlerRequest * @return A Java Future containing the result of the GetCrawler operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetCrawler * @see AWS API * Documentation */ @Override public CompletableFuture getCrawler(GetCrawlerRequest getCrawlerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetCrawlerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("GetCrawler") .withMarshaller(new GetCrawlerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getCrawlerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves metrics about specified crawlers. *

* * @param getCrawlerMetricsRequest * @return A Java Future containing the result of the GetCrawlerMetrics operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetCrawlerMetrics * @see AWS API * Documentation */ @Override public CompletableFuture getCrawlerMetrics(GetCrawlerMetricsRequest getCrawlerMetricsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetCrawlerMetricsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetCrawlerMetrics") .withMarshaller(new GetCrawlerMetricsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getCrawlerMetricsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves metrics about specified crawlers. *

*
*

* This is a variant of * {@link #getCrawlerMetrics(software.amazon.awssdk.services.glue.model.GetCrawlerMetricsRequest)} operation. The * return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will * internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetCrawlerMetricsPublisher publisher = client.getCrawlerMetricsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetCrawlerMetricsPublisher publisher = client.getCrawlerMetricsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetCrawlerMetricsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getCrawlerMetrics(software.amazon.awssdk.services.glue.model.GetCrawlerMetricsRequest)} operation. *

* * @param getCrawlerMetricsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetCrawlerMetrics * @see AWS API * Documentation */ public GetCrawlerMetricsPublisher getCrawlerMetricsPaginator(GetCrawlerMetricsRequest getCrawlerMetricsRequest) { return new GetCrawlerMetricsPublisher(this, applyPaginatorUserAgent(getCrawlerMetricsRequest)); } /** *

* Retrieves metadata for all crawlers defined in the customer account. *

* * @param getCrawlersRequest * @return A Java Future containing the result of the GetCrawlers operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetCrawlers * @see AWS API * Documentation */ @Override public CompletableFuture getCrawlers(GetCrawlersRequest getCrawlersRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetCrawlersResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetCrawlers").withMarshaller(new GetCrawlersRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getCrawlersRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves metadata for all crawlers defined in the customer account. *

*
*

* This is a variant of {@link #getCrawlers(software.amazon.awssdk.services.glue.model.GetCrawlersRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetCrawlersPublisher publisher = client.getCrawlersPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetCrawlersPublisher publisher = client.getCrawlersPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetCrawlersResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getCrawlers(software.amazon.awssdk.services.glue.model.GetCrawlersRequest)} operation. *

* * @param getCrawlersRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetCrawlers * @see AWS API * Documentation */ public GetCrawlersPublisher getCrawlersPaginator(GetCrawlersRequest getCrawlersRequest) { return new GetCrawlersPublisher(this, applyPaginatorUserAgent(getCrawlersRequest)); } /** *

* Retrieves the security configuration for a specified catalog. *

* * @param getDataCatalogEncryptionSettingsRequest * @return A Java Future containing the result of the GetDataCatalogEncryptionSettings operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServiceException An internal service error occurred.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetDataCatalogEncryptionSettings * @see AWS API Documentation */ @Override public CompletableFuture getDataCatalogEncryptionSettings( GetDataCatalogEncryptionSettingsRequest getDataCatalogEncryptionSettingsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory .createResponseHandler(operationMetadata, GetDataCatalogEncryptionSettingsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetDataCatalogEncryptionSettings") .withMarshaller(new GetDataCatalogEncryptionSettingsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getDataCatalogEncryptionSettingsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the definition of a specified database. *

* * @param getDatabaseRequest * @return A Java Future containing the result of the GetDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetDatabase * @see AWS API * Documentation */ @Override public CompletableFuture getDatabase(GetDatabaseRequest getDatabaseRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetDatabaseResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetDatabase").withMarshaller(new GetDatabaseRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getDatabaseRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves all databases defined in a given Data Catalog. *

* * @param getDatabasesRequest * @return A Java Future containing the result of the GetDatabases operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetDatabases * @see AWS API * Documentation */ @Override public CompletableFuture getDatabases(GetDatabasesRequest getDatabasesRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetDatabasesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetDatabases").withMarshaller(new GetDatabasesRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getDatabasesRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves all databases defined in a given Data Catalog. *

*
*

* This is a variant of {@link #getDatabases(software.amazon.awssdk.services.glue.model.GetDatabasesRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetDatabasesPublisher publisher = client.getDatabasesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetDatabasesPublisher publisher = client.getDatabasesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetDatabasesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getDatabases(software.amazon.awssdk.services.glue.model.GetDatabasesRequest)} operation. *

* * @param getDatabasesRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetDatabases * @see AWS API * Documentation */ public GetDatabasesPublisher getDatabasesPaginator(GetDatabasesRequest getDatabasesRequest) { return new GetDatabasesPublisher(this, applyPaginatorUserAgent(getDatabasesRequest)); } /** *

* Transforms a Python script into a directed acyclic graph (DAG). *

* * @param getDataflowGraphRequest * @return A Java Future containing the result of the GetDataflowGraph operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetDataflowGraph * @see AWS API * Documentation */ @Override public CompletableFuture getDataflowGraph(GetDataflowGraphRequest getDataflowGraphRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetDataflowGraphResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetDataflowGraph") .withMarshaller(new GetDataflowGraphRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getDataflowGraphRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves information about a specified development endpoint. *

* *

* When you create a development endpoint in a virtual private cloud (VPC), AWS Glue returns only a private IP * address, and the public IP address field is not populated. When you create a non-VPC development endpoint, AWS * Glue returns only a public IP address. *

*
* * @param getDevEndpointRequest * @return A Java Future containing the result of the GetDevEndpoint operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetDevEndpoint * @see AWS API * Documentation */ @Override public CompletableFuture getDevEndpoint(GetDevEndpointRequest getDevEndpointRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetDevEndpointResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetDevEndpoint") .withMarshaller(new GetDevEndpointRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getDevEndpointRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves all the development endpoints in this AWS account. *

* *

* When you create a development endpoint in a virtual private cloud (VPC), AWS Glue returns only a private IP * address and the public IP address field is not populated. When you create a non-VPC development endpoint, AWS * Glue returns only a public IP address. *

*
* * @param getDevEndpointsRequest * @return A Java Future containing the result of the GetDevEndpoints operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetDevEndpoints * @see AWS API * Documentation */ @Override public CompletableFuture getDevEndpoints(GetDevEndpointsRequest getDevEndpointsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetDevEndpointsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetDevEndpoints") .withMarshaller(new GetDevEndpointsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getDevEndpointsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves all the development endpoints in this AWS account. *

* *

* When you create a development endpoint in a virtual private cloud (VPC), AWS Glue returns only a private IP * address and the public IP address field is not populated. When you create a non-VPC development endpoint, AWS * Glue returns only a public IP address. *

*

*

* This is a variant of {@link #getDevEndpoints(software.amazon.awssdk.services.glue.model.GetDevEndpointsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetDevEndpointsPublisher publisher = client.getDevEndpointsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetDevEndpointsPublisher publisher = client.getDevEndpointsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetDevEndpointsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getDevEndpoints(software.amazon.awssdk.services.glue.model.GetDevEndpointsRequest)} operation. *

* * @param getDevEndpointsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetDevEndpoints * @see AWS API * Documentation */ public GetDevEndpointsPublisher getDevEndpointsPaginator(GetDevEndpointsRequest getDevEndpointsRequest) { return new GetDevEndpointsPublisher(this, applyPaginatorUserAgent(getDevEndpointsRequest)); } /** *

* Retrieves an existing job definition. *

* * @param getJobRequest * @return A Java Future containing the result of the GetJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetJob * @see AWS API * Documentation */ @Override public CompletableFuture getJob(GetJobRequest getJobRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetJobResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("GetJob") .withMarshaller(new GetJobRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getJobRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Returns information on a job bookmark entry. *

* * @param getJobBookmarkRequest * @return A Java Future containing the result of the GetJobBookmark operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ValidationException A value could not be validated.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetJobBookmark * @see AWS API * Documentation */ @Override public CompletableFuture getJobBookmark(GetJobBookmarkRequest getJobBookmarkRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetJobBookmarkResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetJobBookmark") .withMarshaller(new GetJobBookmarkRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getJobBookmarkRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the metadata for a given job run. *

* * @param getJobRunRequest * @return A Java Future containing the result of the GetJobRun operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetJobRun * @see AWS API * Documentation */ @Override public CompletableFuture getJobRun(GetJobRunRequest getJobRunRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetJobRunResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("GetJobRun") .withMarshaller(new GetJobRunRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getJobRunRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves metadata for all runs of a given job definition. *

* * @param getJobRunsRequest * @return A Java Future containing the result of the GetJobRuns operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetJobRuns * @see AWS API * Documentation */ @Override public CompletableFuture getJobRuns(GetJobRunsRequest getJobRunsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetJobRunsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("GetJobRuns") .withMarshaller(new GetJobRunsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getJobRunsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves metadata for all runs of a given job definition. *

*
*

* This is a variant of {@link #getJobRuns(software.amazon.awssdk.services.glue.model.GetJobRunsRequest)} operation. * The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will * internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetJobRunsPublisher publisher = client.getJobRunsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetJobRunsPublisher publisher = client.getJobRunsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetJobRunsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getJobRuns(software.amazon.awssdk.services.glue.model.GetJobRunsRequest)} operation. *

* * @param getJobRunsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetJobRuns * @see AWS API * Documentation */ public GetJobRunsPublisher getJobRunsPaginator(GetJobRunsRequest getJobRunsRequest) { return new GetJobRunsPublisher(this, applyPaginatorUserAgent(getJobRunsRequest)); } /** *

* Retrieves all current job definitions. *

* * @param getJobsRequest * @return A Java Future containing the result of the GetJobs operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetJobs * @see AWS API * Documentation */ @Override public CompletableFuture getJobs(GetJobsRequest getJobsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetJobsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("GetJobs") .withMarshaller(new GetJobsRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getJobsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves all current job definitions. *

*
*

* This is a variant of {@link #getJobs(software.amazon.awssdk.services.glue.model.GetJobsRequest)} operation. The * return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will * internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetJobsPublisher publisher = client.getJobsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetJobsPublisher publisher = client.getJobsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetJobsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getJobs(software.amazon.awssdk.services.glue.model.GetJobsRequest)} operation. *

* * @param getJobsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetJobs * @see AWS API * Documentation */ public GetJobsPublisher getJobsPaginator(GetJobsRequest getJobsRequest) { return new GetJobsPublisher(this, applyPaginatorUserAgent(getJobsRequest)); } /** *

* Gets details for a specific task run on a machine learning transform. Machine learning task runs are asynchronous * tasks that AWS Glue runs on your behalf as part of various machine learning workflows. You can check the stats of * any task run by calling GetMLTaskRun with the TaskRunID and its parent transform's * TransformID. *

* * @param getMlTaskRunRequest * @return A Java Future containing the result of the GetMLTaskRun operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetMLTaskRun * @see AWS API * Documentation */ @Override public CompletableFuture getMLTaskRun(GetMlTaskRunRequest getMlTaskRunRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetMlTaskRunResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetMLTaskRun").withMarshaller(new GetMlTaskRunRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getMlTaskRunRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Gets a list of runs for a machine learning transform. Machine learning task runs are asynchronous tasks that AWS * Glue runs on your behalf as part of various machine learning workflows. You can get a sortable, filterable list * of machine learning task runs by calling GetMLTaskRuns with their parent transform's * TransformID and other optional parameters as documented in this section. *

*

* This operation returns a list of historic runs and must be paginated. *

* * @param getMlTaskRunsRequest * @return A Java Future containing the result of the GetMLTaskRuns operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetMLTaskRuns * @see AWS API * Documentation */ @Override public CompletableFuture getMLTaskRuns(GetMlTaskRunsRequest getMlTaskRunsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetMlTaskRunsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetMLTaskRuns") .withMarshaller(new GetMlTaskRunsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getMlTaskRunsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Gets a list of runs for a machine learning transform. Machine learning task runs are asynchronous tasks that AWS * Glue runs on your behalf as part of various machine learning workflows. You can get a sortable, filterable list * of machine learning task runs by calling GetMLTaskRuns with their parent transform's * TransformID and other optional parameters as documented in this section. *

*

* This operation returns a list of historic runs and must be paginated. *

*
*

* This is a variant of {@link #getMLTaskRuns(software.amazon.awssdk.services.glue.model.GetMlTaskRunsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetMLTaskRunsPublisher publisher = client.getMLTaskRunsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetMLTaskRunsPublisher publisher = client.getMLTaskRunsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetMlTaskRunsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getMLTaskRuns(software.amazon.awssdk.services.glue.model.GetMlTaskRunsRequest)} operation. *

* * @param getMlTaskRunsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetMLTaskRuns * @see AWS API * Documentation */ public GetMLTaskRunsPublisher getMLTaskRunsPaginator(GetMlTaskRunsRequest getMlTaskRunsRequest) { return new GetMLTaskRunsPublisher(this, applyPaginatorUserAgent(getMlTaskRunsRequest)); } /** *

* Gets an AWS Glue machine learning transform artifact and all its corresponding metadata. Machine learning * transforms are a special type of transform that use machine learning to learn the details of the transformation * to be performed by learning from examples provided by humans. These transformations are then saved by AWS Glue. * You can retrieve their metadata by calling GetMLTransform. *

* * @param getMlTransformRequest * @return A Java Future containing the result of the GetMLTransform operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetMLTransform * @see AWS API * Documentation */ @Override public CompletableFuture getMLTransform(GetMlTransformRequest getMlTransformRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetMlTransformResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetMLTransform") .withMarshaller(new GetMlTransformRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getMlTransformRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Gets a sortable, filterable list of existing AWS Glue machine learning transforms. Machine learning transforms * are a special type of transform that use machine learning to learn the details of the transformation to be * performed by learning from examples provided by humans. These transformations are then saved by AWS Glue, and you * can retrieve their metadata by calling GetMLTransforms. *

* * @param getMlTransformsRequest * @return A Java Future containing the result of the GetMLTransforms operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetMLTransforms * @see AWS API * Documentation */ @Override public CompletableFuture getMLTransforms(GetMlTransformsRequest getMlTransformsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetMlTransformsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetMLTransforms") .withMarshaller(new GetMlTransformsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getMlTransformsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Gets a sortable, filterable list of existing AWS Glue machine learning transforms. Machine learning transforms * are a special type of transform that use machine learning to learn the details of the transformation to be * performed by learning from examples provided by humans. These transformations are then saved by AWS Glue, and you * can retrieve their metadata by calling GetMLTransforms. *

*
*

* This is a variant of {@link #getMLTransforms(software.amazon.awssdk.services.glue.model.GetMlTransformsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetMLTransformsPublisher publisher = client.getMLTransformsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetMLTransformsPublisher publisher = client.getMLTransformsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetMlTransformsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getMLTransforms(software.amazon.awssdk.services.glue.model.GetMlTransformsRequest)} operation. *

* * @param getMlTransformsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetMLTransforms * @see AWS API * Documentation */ public GetMLTransformsPublisher getMLTransformsPaginator(GetMlTransformsRequest getMlTransformsRequest) { return new GetMLTransformsPublisher(this, applyPaginatorUserAgent(getMlTransformsRequest)); } /** *

* Creates mappings. *

* * @param getMappingRequest * @return A Java Future containing the result of the GetMapping operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetMapping * @see AWS API * Documentation */ @Override public CompletableFuture getMapping(GetMappingRequest getMappingRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetMappingResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("GetMapping") .withMarshaller(new GetMappingRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getMappingRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves information about a specified partition. *

* * @param getPartitionRequest * @return A Java Future containing the result of the GetPartition operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetPartition * @see AWS API * Documentation */ @Override public CompletableFuture getPartition(GetPartitionRequest getPartitionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetPartitionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetPartition").withMarshaller(new GetPartitionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getPartitionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves information about the partitions in a table. *

* * @param getPartitionsRequest * @return A Java Future containing the result of the GetPartitions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetPartitions * @see AWS API * Documentation */ @Override public CompletableFuture getPartitions(GetPartitionsRequest getPartitionsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetPartitionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetPartitions") .withMarshaller(new GetPartitionsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getPartitionsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves information about the partitions in a table. *

*
*

* This is a variant of {@link #getPartitions(software.amazon.awssdk.services.glue.model.GetPartitionsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetPartitionsPublisher publisher = client.getPartitionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetPartitionsPublisher publisher = client.getPartitionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetPartitionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getPartitions(software.amazon.awssdk.services.glue.model.GetPartitionsRequest)} operation. *

* * @param getPartitionsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetPartitions * @see AWS API * Documentation */ public GetPartitionsPublisher getPartitionsPaginator(GetPartitionsRequest getPartitionsRequest) { return new GetPartitionsPublisher(this, applyPaginatorUserAgent(getPartitionsRequest)); } /** *

* Gets code to perform a specified mapping. *

* * @param getPlanRequest * @return A Java Future containing the result of the GetPlan operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetPlan * @see AWS API * Documentation */ @Override public CompletableFuture getPlan(GetPlanRequest getPlanRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetPlanResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("GetPlan") .withMarshaller(new GetPlanRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getPlanRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a specified resource policy. *

* * @param getResourcePolicyRequest * @return A Java Future containing the result of the GetResourcePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetResourcePolicy * @see AWS API * Documentation */ @Override public CompletableFuture getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetResourcePolicyResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetResourcePolicy") .withMarshaller(new GetResourcePolicyRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getResourcePolicyRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a specified security configuration. *

* * @param getSecurityConfigurationRequest * @return A Java Future containing the result of the GetSecurityConfiguration operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetSecurityConfiguration * @see AWS * API Documentation */ @Override public CompletableFuture getSecurityConfiguration( GetSecurityConfigurationRequest getSecurityConfigurationRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetSecurityConfigurationResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetSecurityConfiguration") .withMarshaller(new GetSecurityConfigurationRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getSecurityConfigurationRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a list of all security configurations. *

* * @param getSecurityConfigurationsRequest * @return A Java Future containing the result of the GetSecurityConfigurations operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetSecurityConfigurations * @see AWS * API Documentation */ @Override public CompletableFuture getSecurityConfigurations( GetSecurityConfigurationsRequest getSecurityConfigurationsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetSecurityConfigurationsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetSecurityConfigurations") .withMarshaller(new GetSecurityConfigurationsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getSecurityConfigurationsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a list of all security configurations. *

*
*

* This is a variant of * {@link #getSecurityConfigurations(software.amazon.awssdk.services.glue.model.GetSecurityConfigurationsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetSecurityConfigurationsPublisher publisher = client.getSecurityConfigurationsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetSecurityConfigurationsPublisher publisher = client.getSecurityConfigurationsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetSecurityConfigurationsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getSecurityConfigurations(software.amazon.awssdk.services.glue.model.GetSecurityConfigurationsRequest)} * operation. *

* * @param getSecurityConfigurationsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetSecurityConfigurations * @see AWS * API Documentation */ public GetSecurityConfigurationsPublisher getSecurityConfigurationsPaginator( GetSecurityConfigurationsRequest getSecurityConfigurationsRequest) { return new GetSecurityConfigurationsPublisher(this, applyPaginatorUserAgent(getSecurityConfigurationsRequest)); } /** *

* Retrieves the Table definition in a Data Catalog for a specified table. *

* * @param getTableRequest * @return A Java Future containing the result of the GetTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetTable * @see AWS API * Documentation */ @Override public CompletableFuture getTable(GetTableRequest getTableRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetTableResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("GetTable") .withMarshaller(new GetTableRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getTableRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a specified version of a table. *

* * @param getTableVersionRequest * @return A Java Future containing the result of the GetTableVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetTableVersion * @see AWS API * Documentation */ @Override public CompletableFuture getTableVersion(GetTableVersionRequest getTableVersionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetTableVersionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetTableVersion") .withMarshaller(new GetTableVersionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getTableVersionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a list of strings that identify available versions of a specified table. *

* * @param getTableVersionsRequest * @return A Java Future containing the result of the GetTableVersions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetTableVersions * @see AWS API * Documentation */ @Override public CompletableFuture getTableVersions(GetTableVersionsRequest getTableVersionsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetTableVersionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetTableVersions") .withMarshaller(new GetTableVersionsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getTableVersionsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a list of strings that identify available versions of a specified table. *

*
*

* This is a variant of * {@link #getTableVersions(software.amazon.awssdk.services.glue.model.GetTableVersionsRequest)} operation. The * return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will * internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetTableVersionsPublisher publisher = client.getTableVersionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetTableVersionsPublisher publisher = client.getTableVersionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetTableVersionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getTableVersions(software.amazon.awssdk.services.glue.model.GetTableVersionsRequest)} operation. *

* * @param getTableVersionsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetTableVersions * @see AWS API * Documentation */ public GetTableVersionsPublisher getTableVersionsPaginator(GetTableVersionsRequest getTableVersionsRequest) { return new GetTableVersionsPublisher(this, applyPaginatorUserAgent(getTableVersionsRequest)); } /** *

* Retrieves the definitions of some or all of the tables in a given Database. *

* * @param getTablesRequest * @return A Java Future containing the result of the GetTables operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetTables * @see AWS API * Documentation */ @Override public CompletableFuture getTables(GetTablesRequest getTablesRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetTablesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("GetTables") .withMarshaller(new GetTablesRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getTablesRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the definitions of some or all of the tables in a given Database. *

*
*

* This is a variant of {@link #getTables(software.amazon.awssdk.services.glue.model.GetTablesRequest)} operation. * The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will * internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetTablesPublisher publisher = client.getTablesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetTablesPublisher publisher = client.getTablesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetTablesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getTables(software.amazon.awssdk.services.glue.model.GetTablesRequest)} operation. *

* * @param getTablesRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetTables * @see AWS API * Documentation */ public GetTablesPublisher getTablesPaginator(GetTablesRequest getTablesRequest) { return new GetTablesPublisher(this, applyPaginatorUserAgent(getTablesRequest)); } /** *

* Retrieves a list of tags associated with a resource. *

* * @param getTagsRequest * @return A Java Future containing the result of the GetTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetTags * @see AWS API * Documentation */ @Override public CompletableFuture getTags(GetTagsRequest getTagsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetTagsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("GetTags") .withMarshaller(new GetTagsRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getTagsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the definition of a trigger. *

* * @param getTriggerRequest * @return A Java Future containing the result of the GetTrigger operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetTrigger * @see AWS API * Documentation */ @Override public CompletableFuture getTrigger(GetTriggerRequest getTriggerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetTriggerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("GetTrigger") .withMarshaller(new GetTriggerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getTriggerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Gets all the triggers associated with a job. *

* * @param getTriggersRequest * @return A Java Future containing the result of the GetTriggers operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetTriggers * @see AWS API * Documentation */ @Override public CompletableFuture getTriggers(GetTriggersRequest getTriggersRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetTriggersResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetTriggers").withMarshaller(new GetTriggersRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getTriggersRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Gets all the triggers associated with a job. *

*
*

* This is a variant of {@link #getTriggers(software.amazon.awssdk.services.glue.model.GetTriggersRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetTriggersPublisher publisher = client.getTriggersPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetTriggersPublisher publisher = client.getTriggersPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetTriggersResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getTriggers(software.amazon.awssdk.services.glue.model.GetTriggersRequest)} operation. *

* * @param getTriggersRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetTriggers * @see AWS API * Documentation */ public GetTriggersPublisher getTriggersPaginator(GetTriggersRequest getTriggersRequest) { return new GetTriggersPublisher(this, applyPaginatorUserAgent(getTriggersRequest)); } /** *

* Retrieves a specified function definition from the Data Catalog. *

* * @param getUserDefinedFunctionRequest * @return A Java Future containing the result of the GetUserDefinedFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetUserDefinedFunction * @see AWS * API Documentation */ @Override public CompletableFuture getUserDefinedFunction( GetUserDefinedFunctionRequest getUserDefinedFunctionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetUserDefinedFunctionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetUserDefinedFunction") .withMarshaller(new GetUserDefinedFunctionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getUserDefinedFunctionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves multiple function definitions from the Data Catalog. *

* * @param getUserDefinedFunctionsRequest * @return A Java Future containing the result of the GetUserDefinedFunctions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetUserDefinedFunctions * @see AWS * API Documentation */ @Override public CompletableFuture getUserDefinedFunctions( GetUserDefinedFunctionsRequest getUserDefinedFunctionsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetUserDefinedFunctionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetUserDefinedFunctions") .withMarshaller(new GetUserDefinedFunctionsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getUserDefinedFunctionsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves multiple function definitions from the Data Catalog. *

*
*

* This is a variant of * {@link #getUserDefinedFunctions(software.amazon.awssdk.services.glue.model.GetUserDefinedFunctionsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetUserDefinedFunctionsPublisher publisher = client.getUserDefinedFunctionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetUserDefinedFunctionsPublisher publisher = client.getUserDefinedFunctionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetUserDefinedFunctionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getUserDefinedFunctions(software.amazon.awssdk.services.glue.model.GetUserDefinedFunctionsRequest)} * operation. *

* * @param getUserDefinedFunctionsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetUserDefinedFunctions * @see AWS * API Documentation */ public GetUserDefinedFunctionsPublisher getUserDefinedFunctionsPaginator( GetUserDefinedFunctionsRequest getUserDefinedFunctionsRequest) { return new GetUserDefinedFunctionsPublisher(this, applyPaginatorUserAgent(getUserDefinedFunctionsRequest)); } /** *

* Retrieves resource metadata for a workflow. *

* * @param getWorkflowRequest * @return A Java Future containing the result of the GetWorkflow operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetWorkflow * @see AWS API * Documentation */ @Override public CompletableFuture getWorkflow(GetWorkflowRequest getWorkflowRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, GetWorkflowResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetWorkflow").withMarshaller(new GetWorkflowRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getWorkflowRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the metadata for a given workflow run. *

* * @param getWorkflowRunRequest * @return A Java Future containing the result of the GetWorkflowRun operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetWorkflowRun * @see AWS API * Documentation */ @Override public CompletableFuture getWorkflowRun(GetWorkflowRunRequest getWorkflowRunRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetWorkflowRunResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetWorkflowRun") .withMarshaller(new GetWorkflowRunRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getWorkflowRunRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the workflow run properties which were set during the run. *

* * @param getWorkflowRunPropertiesRequest * @return A Java Future containing the result of the GetWorkflowRunProperties operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetWorkflowRunProperties * @see AWS * API Documentation */ @Override public CompletableFuture getWorkflowRunProperties( GetWorkflowRunPropertiesRequest getWorkflowRunPropertiesRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetWorkflowRunPropertiesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetWorkflowRunProperties") .withMarshaller(new GetWorkflowRunPropertiesRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getWorkflowRunPropertiesRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves metadata for all runs of a given workflow. *

* * @param getWorkflowRunsRequest * @return A Java Future containing the result of the GetWorkflowRuns operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetWorkflowRuns * @see AWS API * Documentation */ @Override public CompletableFuture getWorkflowRuns(GetWorkflowRunsRequest getWorkflowRunsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetWorkflowRunsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetWorkflowRuns") .withMarshaller(new GetWorkflowRunsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getWorkflowRunsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves metadata for all runs of a given workflow. *

*
*

* This is a variant of {@link #getWorkflowRuns(software.amazon.awssdk.services.glue.model.GetWorkflowRunsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetWorkflowRunsPublisher publisher = client.getWorkflowRunsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.GetWorkflowRunsPublisher publisher = client.getWorkflowRunsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.GetWorkflowRunsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #getWorkflowRuns(software.amazon.awssdk.services.glue.model.GetWorkflowRunsRequest)} operation. *

* * @param getWorkflowRunsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.GetWorkflowRuns * @see AWS API * Documentation */ public GetWorkflowRunsPublisher getWorkflowRunsPaginator(GetWorkflowRunsRequest getWorkflowRunsRequest) { return new GetWorkflowRunsPublisher(this, applyPaginatorUserAgent(getWorkflowRunsRequest)); } /** *

* Imports an existing Amazon Athena Data Catalog to AWS Glue *

* * @param importCatalogToGlueRequest * @return A Java Future containing the result of the ImportCatalogToGlue operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ImportCatalogToGlue * @see AWS API * Documentation */ @Override public CompletableFuture importCatalogToGlue( ImportCatalogToGlueRequest importCatalogToGlueRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ImportCatalogToGlueResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("ImportCatalogToGlue") .withMarshaller(new ImportCatalogToGlueRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(importCatalogToGlueRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the names of all crawler resources in this AWS account, or the resources with the specified tag. This * operation allows you to see which resources are available in your account, and their names. *

*

* This operation takes the optional Tags field, which you can use as a filter on the response so that * tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag * are retrieved. *

* * @param listCrawlersRequest * @return A Java Future containing the result of the ListCrawlers operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListCrawlers * @see AWS API * Documentation */ @Override public CompletableFuture listCrawlers(ListCrawlersRequest listCrawlersRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListCrawlersResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("ListCrawlers").withMarshaller(new ListCrawlersRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(listCrawlersRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the names of all crawler resources in this AWS account, or the resources with the specified tag. This * operation allows you to see which resources are available in your account, and their names. *

*

* This operation takes the optional Tags field, which you can use as a filter on the response so that * tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag * are retrieved. *

*
*

* This is a variant of {@link #listCrawlers(software.amazon.awssdk.services.glue.model.ListCrawlersRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListCrawlersPublisher publisher = client.listCrawlersPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListCrawlersPublisher publisher = client.listCrawlersPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.ListCrawlersResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #listCrawlers(software.amazon.awssdk.services.glue.model.ListCrawlersRequest)} operation. *

* * @param listCrawlersRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListCrawlers * @see AWS API * Documentation */ public ListCrawlersPublisher listCrawlersPaginator(ListCrawlersRequest listCrawlersRequest) { return new ListCrawlersPublisher(this, applyPaginatorUserAgent(listCrawlersRequest)); } /** *

* Retrieves the names of all DevEndpoint resources in this AWS account, or the resources with the * specified tag. This operation allows you to see which resources are available in your account, and their names. *

*

* This operation takes the optional Tags field, which you can use as a filter on the response so that * tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag * are retrieved. *

* * @param listDevEndpointsRequest * @return A Java Future containing the result of the ListDevEndpoints operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListDevEndpoints * @see AWS API * Documentation */ @Override public CompletableFuture listDevEndpoints(ListDevEndpointsRequest listDevEndpointsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ListDevEndpointsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("ListDevEndpoints") .withMarshaller(new ListDevEndpointsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(listDevEndpointsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the names of all DevEndpoint resources in this AWS account, or the resources with the * specified tag. This operation allows you to see which resources are available in your account, and their names. *

*

* This operation takes the optional Tags field, which you can use as a filter on the response so that * tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag * are retrieved. *

*
*

* This is a variant of * {@link #listDevEndpoints(software.amazon.awssdk.services.glue.model.ListDevEndpointsRequest)} operation. The * return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will * internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListDevEndpointsPublisher publisher = client.listDevEndpointsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListDevEndpointsPublisher publisher = client.listDevEndpointsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.ListDevEndpointsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #listDevEndpoints(software.amazon.awssdk.services.glue.model.ListDevEndpointsRequest)} operation. *

* * @param listDevEndpointsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListDevEndpoints * @see AWS API * Documentation */ public ListDevEndpointsPublisher listDevEndpointsPaginator(ListDevEndpointsRequest listDevEndpointsRequest) { return new ListDevEndpointsPublisher(this, applyPaginatorUserAgent(listDevEndpointsRequest)); } /** *

* Retrieves the names of all job resources in this AWS account, or the resources with the specified tag. This * operation allows you to see which resources are available in your account, and their names. *

*

* This operation takes the optional Tags field, which you can use as a filter on the response so that * tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag * are retrieved. *

* * @param listJobsRequest * @return A Java Future containing the result of the ListJobs operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListJobs * @see AWS API * Documentation */ @Override public CompletableFuture listJobs(ListJobsRequest listJobsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListJobsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("ListJobs") .withMarshaller(new ListJobsRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listJobsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the names of all job resources in this AWS account, or the resources with the specified tag. This * operation allows you to see which resources are available in your account, and their names. *

*

* This operation takes the optional Tags field, which you can use as a filter on the response so that * tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag * are retrieved. *

*
*

* This is a variant of {@link #listJobs(software.amazon.awssdk.services.glue.model.ListJobsRequest)} operation. The * return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will * internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListJobsPublisher publisher = client.listJobsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListJobsPublisher publisher = client.listJobsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.ListJobsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #listJobs(software.amazon.awssdk.services.glue.model.ListJobsRequest)} operation. *

* * @param listJobsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListJobs * @see AWS API * Documentation */ public ListJobsPublisher listJobsPaginator(ListJobsRequest listJobsRequest) { return new ListJobsPublisher(this, applyPaginatorUserAgent(listJobsRequest)); } /** *

* Retrieves a sortable, filterable list of existing AWS Glue machine learning transforms in this AWS account, or * the resources with the specified tag. This operation takes the optional Tags field, which you can * use as a filter of the responses so that tagged resources can be retrieved as a group. If you choose to use tag * filtering, only resources with the tags are retrieved. *

* * @param listMlTransformsRequest * @return A Java Future containing the result of the ListMLTransforms operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListMLTransforms * @see AWS API * Documentation */ @Override public CompletableFuture listMLTransforms(ListMlTransformsRequest listMlTransformsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ListMlTransformsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("ListMLTransforms") .withMarshaller(new ListMlTransformsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(listMlTransformsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a sortable, filterable list of existing AWS Glue machine learning transforms in this AWS account, or * the resources with the specified tag. This operation takes the optional Tags field, which you can * use as a filter of the responses so that tagged resources can be retrieved as a group. If you choose to use tag * filtering, only resources with the tags are retrieved. *

*
*

* This is a variant of * {@link #listMLTransforms(software.amazon.awssdk.services.glue.model.ListMlTransformsRequest)} operation. The * return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will * internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListMLTransformsPublisher publisher = client.listMLTransformsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListMLTransformsPublisher publisher = client.listMLTransformsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.ListMlTransformsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #listMLTransforms(software.amazon.awssdk.services.glue.model.ListMlTransformsRequest)} operation. *

* * @param listMlTransformsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListMLTransforms * @see AWS API * Documentation */ public ListMLTransformsPublisher listMLTransformsPaginator(ListMlTransformsRequest listMlTransformsRequest) { return new ListMLTransformsPublisher(this, applyPaginatorUserAgent(listMlTransformsRequest)); } /** *

* Retrieves the names of all trigger resources in this AWS account, or the resources with the specified tag. This * operation allows you to see which resources are available in your account, and their names. *

*

* This operation takes the optional Tags field, which you can use as a filter on the response so that * tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag * are retrieved. *

* * @param listTriggersRequest * @return A Java Future containing the result of the ListTriggers operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListTriggers * @see AWS API * Documentation */ @Override public CompletableFuture listTriggers(ListTriggersRequest listTriggersRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListTriggersResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("ListTriggers").withMarshaller(new ListTriggersRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(listTriggersRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves the names of all trigger resources in this AWS account, or the resources with the specified tag. This * operation allows you to see which resources are available in your account, and their names. *

*

* This operation takes the optional Tags field, which you can use as a filter on the response so that * tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag * are retrieved. *

*
*

* This is a variant of {@link #listTriggers(software.amazon.awssdk.services.glue.model.ListTriggersRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListTriggersPublisher publisher = client.listTriggersPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListTriggersPublisher publisher = client.listTriggersPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.ListTriggersResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #listTriggers(software.amazon.awssdk.services.glue.model.ListTriggersRequest)} operation. *

* * @param listTriggersRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListTriggers * @see AWS API * Documentation */ public ListTriggersPublisher listTriggersPaginator(ListTriggersRequest listTriggersRequest) { return new ListTriggersPublisher(this, applyPaginatorUserAgent(listTriggersRequest)); } /** *

* Lists names of workflows created in the account. *

* * @param listWorkflowsRequest * @return A Java Future containing the result of the ListWorkflows operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListWorkflows * @see AWS API * Documentation */ @Override public CompletableFuture listWorkflows(ListWorkflowsRequest listWorkflowsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListWorkflowsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("ListWorkflows") .withMarshaller(new ListWorkflowsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(listWorkflowsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Lists names of workflows created in the account. *

*
*

* This is a variant of {@link #listWorkflows(software.amazon.awssdk.services.glue.model.ListWorkflowsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListWorkflowsPublisher publisher = client.listWorkflowsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.ListWorkflowsPublisher publisher = client.listWorkflowsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.ListWorkflowsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #listWorkflows(software.amazon.awssdk.services.glue.model.ListWorkflowsRequest)} operation. *

* * @param listWorkflowsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ListWorkflows * @see AWS API * Documentation */ public ListWorkflowsPublisher listWorkflowsPaginator(ListWorkflowsRequest listWorkflowsRequest) { return new ListWorkflowsPublisher(this, applyPaginatorUserAgent(listWorkflowsRequest)); } /** *

* Sets the security configuration for a specified catalog. After the configuration has been set, the specified * encryption is applied to every catalog write thereafter. *

* * @param putDataCatalogEncryptionSettingsRequest * @return A Java Future containing the result of the PutDataCatalogEncryptionSettings operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServiceException An internal service error occurred.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.PutDataCatalogEncryptionSettings * @see AWS API Documentation */ @Override public CompletableFuture putDataCatalogEncryptionSettings( PutDataCatalogEncryptionSettingsRequest putDataCatalogEncryptionSettingsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory .createResponseHandler(operationMetadata, PutDataCatalogEncryptionSettingsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("PutDataCatalogEncryptionSettings") .withMarshaller(new PutDataCatalogEncryptionSettingsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(putDataCatalogEncryptionSettingsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Sets the Data Catalog resource policy for access control. *

* * @param putResourcePolicyRequest * @return A Java Future containing the result of the PutResourcePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • ConditionCheckFailureException A specified condition was not satisfied.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.PutResourcePolicy * @see AWS API * Documentation */ @Override public CompletableFuture putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, PutResourcePolicyResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("PutResourcePolicy") .withMarshaller(new PutResourcePolicyRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(putResourcePolicyRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Puts the specified workflow run properties for the given workflow run. If a property already exists for the * specified run, then it overrides the value otherwise adds the property to existing properties. *

* * @param putWorkflowRunPropertiesRequest * @return A Java Future containing the result of the PutWorkflowRunProperties operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AlreadyExistsException A resource to be created or added already exists.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.PutWorkflowRunProperties * @see AWS * API Documentation */ @Override public CompletableFuture putWorkflowRunProperties( PutWorkflowRunPropertiesRequest putWorkflowRunPropertiesRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, PutWorkflowRunPropertiesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("PutWorkflowRunProperties") .withMarshaller(new PutWorkflowRunPropertiesRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(putWorkflowRunPropertiesRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Resets a bookmark entry. *

* * @param resetJobBookmarkRequest * @return A Java Future containing the result of the ResetJobBookmark operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.ResetJobBookmark * @see AWS API * Documentation */ @Override public CompletableFuture resetJobBookmark(ResetJobBookmarkRequest resetJobBookmarkRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ResetJobBookmarkResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("ResetJobBookmark") .withMarshaller(new ResetJobBookmarkRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(resetJobBookmarkRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Searches a set of tables based on properties in the table metadata as well as on the parent database. You can * search against text or filter conditions. *

*

* You can only get tables that you have access to based on the security policies defined in Lake Formation. You * need at least a read-only access to the table for it to be returned. If you do not have access to all the columns * in the table, these columns will not be searched against when returning the list of tables back to you. If you * have access to the columns but not the data in the columns, those columns and the associated metadata for those * columns will be included in the search. *

* * @param searchTablesRequest * @return A Java Future containing the result of the SearchTables operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServiceException An internal service error occurred.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.SearchTables * @see AWS API * Documentation */ @Override public CompletableFuture searchTables(SearchTablesRequest searchTablesRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, SearchTablesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("SearchTables").withMarshaller(new SearchTablesRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(searchTablesRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Searches a set of tables based on properties in the table metadata as well as on the parent database. You can * search against text or filter conditions. *

*

* You can only get tables that you have access to based on the security policies defined in Lake Formation. You * need at least a read-only access to the table for it to be returned. If you do not have access to all the columns * in the table, these columns will not be searched against when returning the list of tables back to you. If you * have access to the columns but not the data in the columns, those columns and the associated metadata for those * columns will be included in the search. *

*
*

* This is a variant of {@link #searchTables(software.amazon.awssdk.services.glue.model.SearchTablesRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.SearchTablesPublisher publisher = client.searchTablesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.glue.paginators.SearchTablesPublisher publisher = client.searchTablesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.glue.model.SearchTablesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #searchTables(software.amazon.awssdk.services.glue.model.SearchTablesRequest)} operation. *

* * @param searchTablesRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InternalServiceException An internal service error occurred.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.SearchTables * @see AWS API * Documentation */ public SearchTablesPublisher searchTablesPaginator(SearchTablesRequest searchTablesRequest) { return new SearchTablesPublisher(this, applyPaginatorUserAgent(searchTablesRequest)); } /** *

* Starts a crawl using the specified crawler, regardless of what is scheduled. If the crawler is already running, * returns a CrawlerRunningException. *

* * @param startCrawlerRequest * @return A Java Future containing the result of the StartCrawler operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • CrawlerRunningException The operation cannot be performed because the crawler is already running.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StartCrawler * @see AWS API * Documentation */ @Override public CompletableFuture startCrawler(StartCrawlerRequest startCrawlerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, StartCrawlerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartCrawler").withMarshaller(new StartCrawlerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startCrawlerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Changes the schedule state of the specified crawler to SCHEDULED, unless the crawler is already * running or the schedule state is already SCHEDULED. *

* * @param startCrawlerScheduleRequest * @return A Java Future containing the result of the StartCrawlerSchedule operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • SchedulerRunningException The specified scheduler is already running.
  • *
  • SchedulerTransitioningException The specified scheduler is transitioning.
  • *
  • NoScheduleException There is no applicable schedule.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StartCrawlerSchedule * @see AWS API * Documentation */ @Override public CompletableFuture startCrawlerSchedule( StartCrawlerScheduleRequest startCrawlerScheduleRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StartCrawlerScheduleResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartCrawlerSchedule") .withMarshaller(new StartCrawlerScheduleRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startCrawlerScheduleRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Begins an asynchronous task to export all labeled data for a particular transform. This task is the only * label-related API call that is not part of the typical active learning workflow. You typically use * StartExportLabelsTaskRun when you want to work with all of your existing labels at the same time, * such as when you want to remove or change labels that were previously submitted as truth. This API operation * accepts the TransformId whose labels you want to export and an Amazon Simple Storage Service (Amazon * S3) path to export the labels to. The operation returns a TaskRunId. You can check on the status of * your task run by calling the GetMLTaskRun API. *

* * @param startExportLabelsTaskRunRequest * @return A Java Future containing the result of the StartExportLabelsTaskRun operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StartExportLabelsTaskRun * @see AWS * API Documentation */ @Override public CompletableFuture startExportLabelsTaskRun( StartExportLabelsTaskRunRequest startExportLabelsTaskRunRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StartExportLabelsTaskRunResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartExportLabelsTaskRun") .withMarshaller(new StartExportLabelsTaskRunRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startExportLabelsTaskRunRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Enables you to provide additional labels (examples of truth) to be used to teach the machine learning transform * and improve its quality. This API operation is generally used as part of the active learning workflow that starts * with the StartMLLabelingSetGenerationTaskRun call and that ultimately results in improving the * quality of your machine learning transform. *

*

* After the StartMLLabelingSetGenerationTaskRun finishes, AWS Glue machine learning will have * generated a series of questions for humans to answer. (Answering these questions is often called 'labeling' in * the machine learning workflows). In the case of the FindMatches transform, these questions are of * the form, “What is the correct way to group these rows together into groups composed entirely of matching * records?” After the labeling process is finished, users upload their answers/labels with a call to * StartImportLabelsTaskRun. After StartImportLabelsTaskRun finishes, all future runs of * the machine learning transform use the new and improved labels and perform a higher-quality transformation. *

*

* By default, StartMLLabelingSetGenerationTaskRun continually learns from and combines all labels that * you upload unless you set Replace to true. If you set Replace to true, * StartImportLabelsTaskRun deletes and forgets all previously uploaded labels and learns only from the * exact set that you upload. Replacing labels can be helpful if you realize that you previously uploaded incorrect * labels, and you believe that they are having a negative effect on your transform quality. *

*

* You can check on the status of your task run by calling the GetMLTaskRun operation. *

* * @param startImportLabelsTaskRunRequest * @return A Java Future containing the result of the StartImportLabelsTaskRun operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StartImportLabelsTaskRun * @see AWS * API Documentation */ @Override public CompletableFuture startImportLabelsTaskRun( StartImportLabelsTaskRunRequest startImportLabelsTaskRunRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StartImportLabelsTaskRunResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartImportLabelsTaskRun") .withMarshaller(new StartImportLabelsTaskRunRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startImportLabelsTaskRunRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Starts a job run using a job definition. *

* * @param startJobRunRequest * @return A Java Future containing the result of the StartJobRun operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • ConcurrentRunsExceededException Too many jobs are being run concurrently.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StartJobRun * @see AWS API * Documentation */ @Override public CompletableFuture startJobRun(StartJobRunRequest startJobRunRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, StartJobRunResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartJobRun").withMarshaller(new StartJobRunRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startJobRunRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Starts a task to estimate the quality of the transform. *

*

* When you provide label sets as examples of truth, AWS Glue machine learning uses some of those examples to learn * from them. The rest of the labels are used as a test to estimate quality. *

*

* Returns a unique identifier for the run. You can call GetMLTaskRun to get more information about the * stats of the EvaluationTaskRun. *

* * @param startMlEvaluationTaskRunRequest * @return A Java Future containing the result of the StartMLEvaluationTaskRun operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • ConcurrentRunsExceededException Too many jobs are being run concurrently.
  • *
  • MlTransformNotReadyException The machine learning transform is not ready to run.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StartMLEvaluationTaskRun * @see AWS * API Documentation */ @Override public CompletableFuture startMLEvaluationTaskRun( StartMlEvaluationTaskRunRequest startMlEvaluationTaskRunRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StartMlEvaluationTaskRunResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartMLEvaluationTaskRun") .withMarshaller(new StartMlEvaluationTaskRunRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startMlEvaluationTaskRunRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Starts the active learning workflow for your machine learning transform to improve the transform's quality by * generating label sets and adding labels. *

*

* When the StartMLLabelingSetGenerationTaskRun finishes, AWS Glue will have generated a "labeling set" * or a set of questions for humans to answer. *

*

* In the case of the FindMatches transform, these questions are of the form, “What is the correct way * to group these rows together into groups composed entirely of matching records?” *

*

* After the labeling process is finished, you can upload your labels with a call to * StartImportLabelsTaskRun. After StartImportLabelsTaskRun finishes, all future runs of * the machine learning transform will use the new and improved labels and perform a higher-quality transformation. *

* * @param startMlLabelingSetGenerationTaskRunRequest * @return A Java Future containing the result of the StartMLLabelingSetGenerationTaskRun operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • ConcurrentRunsExceededException Too many jobs are being run concurrently.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StartMLLabelingSetGenerationTaskRun * @see AWS API Documentation */ @Override public CompletableFuture startMLLabelingSetGenerationTaskRun( StartMlLabelingSetGenerationTaskRunRequest startMlLabelingSetGenerationTaskRunRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory .createResponseHandler(operationMetadata, StartMlLabelingSetGenerationTaskRunResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartMLLabelingSetGenerationTaskRun") .withMarshaller(new StartMlLabelingSetGenerationTaskRunRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startMlLabelingSetGenerationTaskRunRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Starts an existing trigger. See Triggering * Jobs for information about how different types of trigger are started. *

* * @param startTriggerRequest * @return A Java Future containing the result of the StartTrigger operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • ConcurrentRunsExceededException Too many jobs are being run concurrently.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StartTrigger * @see AWS API * Documentation */ @Override public CompletableFuture startTrigger(StartTriggerRequest startTriggerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, StartTriggerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartTrigger").withMarshaller(new StartTriggerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startTriggerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Starts a new run of the specified workflow. *

* * @param startWorkflowRunRequest * @return A Java Future containing the result of the StartWorkflowRun operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • ConcurrentRunsExceededException Too many jobs are being run concurrently.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StartWorkflowRun * @see AWS API * Documentation */ @Override public CompletableFuture startWorkflowRun(StartWorkflowRunRequest startWorkflowRunRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StartWorkflowRunResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartWorkflowRun") .withMarshaller(new StartWorkflowRunRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startWorkflowRunRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* If the specified crawler is running, stops the crawl. *

* * @param stopCrawlerRequest * @return A Java Future containing the result of the StopCrawler operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • CrawlerNotRunningException The specified crawler is not running.
  • *
  • CrawlerStoppingException The specified crawler is stopping.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StopCrawler * @see AWS API * Documentation */ @Override public CompletableFuture stopCrawler(StopCrawlerRequest stopCrawlerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, StopCrawlerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StopCrawler").withMarshaller(new StopCrawlerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(stopCrawlerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Sets the schedule state of the specified crawler to NOT_SCHEDULED, but does not stop the crawler if * it is already running. *

* * @param stopCrawlerScheduleRequest * @return A Java Future containing the result of the StopCrawlerSchedule operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • SchedulerNotRunningException The specified scheduler is not running.
  • *
  • SchedulerTransitioningException The specified scheduler is transitioning.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StopCrawlerSchedule * @see AWS API * Documentation */ @Override public CompletableFuture stopCrawlerSchedule( StopCrawlerScheduleRequest stopCrawlerScheduleRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StopCrawlerScheduleResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StopCrawlerSchedule") .withMarshaller(new StopCrawlerScheduleRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(stopCrawlerScheduleRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Stops a specified trigger. *

* * @param stopTriggerRequest * @return A Java Future containing the result of the StopTrigger operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.StopTrigger * @see AWS API * Documentation */ @Override public CompletableFuture stopTrigger(StopTriggerRequest stopTriggerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, StopTriggerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StopTrigger").withMarshaller(new StopTriggerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(stopTriggerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Adds tags to a resource. A tag is a label you can assign to an AWS resource. In AWS Glue, you can tag only * certain resources. For information about what resources you can tag, see AWS Tags in AWS Glue. *

* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.TagResource * @see AWS API * Documentation */ @Override public CompletableFuture tagResource(TagResourceRequest tagResourceRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, TagResourceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("TagResource").withMarshaller(new TagResourceRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(tagResourceRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Removes tags from a resource. *

* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UntagResource * @see AWS API * Documentation */ @Override public CompletableFuture untagResource(UntagResourceRequest untagResourceRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UntagResourceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UntagResource") .withMarshaller(new UntagResourceRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(untagResourceRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Modifies an existing classifier (a GrokClassifier, an XMLClassifier, a * JsonClassifier, or a CsvClassifier, depending on which field is present). *

* * @param updateClassifierRequest * @return A Java Future containing the result of the UpdateClassifier operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • VersionMismatchException There was a version conflict.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateClassifier * @see AWS API * Documentation */ @Override public CompletableFuture updateClassifier(UpdateClassifierRequest updateClassifierRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateClassifierResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateClassifier") .withMarshaller(new UpdateClassifierRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateClassifierRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates a connection definition in the Data Catalog. *

* * @param updateConnectionRequest * @return A Java Future containing the result of the UpdateConnection operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateConnection * @see AWS API * Documentation */ @Override public CompletableFuture updateConnection(UpdateConnectionRequest updateConnectionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateConnectionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateConnection") .withMarshaller(new UpdateConnectionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateConnectionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates a crawler. If a crawler is running, you must stop it using StopCrawler before updating it. *

* * @param updateCrawlerRequest * @return A Java Future containing the result of the UpdateCrawler operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • VersionMismatchException There was a version conflict.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • CrawlerRunningException The operation cannot be performed because the crawler is already running.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateCrawler * @see AWS API * Documentation */ @Override public CompletableFuture updateCrawler(UpdateCrawlerRequest updateCrawlerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateCrawlerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateCrawler") .withMarshaller(new UpdateCrawlerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateCrawlerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates the schedule of a crawler using a cron expression. *

* * @param updateCrawlerScheduleRequest * @return A Java Future containing the result of the UpdateCrawlerSchedule operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • VersionMismatchException There was a version conflict.
  • *
  • SchedulerTransitioningException The specified scheduler is transitioning.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateCrawlerSchedule * @see AWS API * Documentation */ @Override public CompletableFuture updateCrawlerSchedule( UpdateCrawlerScheduleRequest updateCrawlerScheduleRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateCrawlerScheduleResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateCrawlerSchedule") .withMarshaller(new UpdateCrawlerScheduleRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateCrawlerScheduleRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates an existing database definition in a Data Catalog. *

* * @param updateDatabaseRequest * @return A Java Future containing the result of the UpdateDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateDatabase * @see AWS API * Documentation */ @Override public CompletableFuture updateDatabase(UpdateDatabaseRequest updateDatabaseRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateDatabaseResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateDatabase") .withMarshaller(new UpdateDatabaseRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateDatabaseRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates a specified development endpoint. *

* * @param updateDevEndpointRequest * @return A Java Future containing the result of the UpdateDevEndpoint operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • ValidationException A value could not be validated.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateDevEndpoint * @see AWS API * Documentation */ @Override public CompletableFuture updateDevEndpoint(UpdateDevEndpointRequest updateDevEndpointRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateDevEndpointResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateDevEndpoint") .withMarshaller(new UpdateDevEndpointRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateDevEndpointRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates an existing job definition. *

* * @param updateJobRequest * @return A Java Future containing the result of the UpdateJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateJob * @see AWS API * Documentation */ @Override public CompletableFuture updateJob(UpdateJobRequest updateJobRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateJobResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("UpdateJob") .withMarshaller(new UpdateJobRequestMarshaller(protocolFactory)).withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateJobRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates an existing machine learning transform. Call this operation to tune the algorithm parameters to achieve * better results. *

*

* After calling this operation, you can call the StartMLEvaluationTaskRun operation to assess how well * your new parameters achieved your goals (such as improving the quality of your machine learning transform, or * making it more cost-effective). *

* * @param updateMlTransformRequest * @return A Java Future containing the result of the UpdateMLTransform operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • AccessDeniedException Access to a resource was denied.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateMLTransform * @see AWS API * Documentation */ @Override public CompletableFuture updateMLTransform(UpdateMlTransformRequest updateMlTransformRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateMlTransformResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateMLTransform") .withMarshaller(new UpdateMlTransformRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateMlTransformRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates a partition. *

* * @param updatePartitionRequest * @return A Java Future containing the result of the UpdatePartition operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdatePartition * @see AWS API * Documentation */ @Override public CompletableFuture updatePartition(UpdatePartitionRequest updatePartitionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdatePartitionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdatePartition") .withMarshaller(new UpdatePartitionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updatePartitionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates a metadata table in the Data Catalog. *

* * @param updateTableRequest * @return A Java Future containing the result of the UpdateTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
  • *
  • ResourceNumberLimitExceededException A resource numerical limit was exceeded.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateTable * @see AWS API * Documentation */ @Override public CompletableFuture updateTable(UpdateTableRequest updateTableRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateTableResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateTable").withMarshaller(new UpdateTableRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateTableRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates a trigger definition. *

* * @param updateTriggerRequest * @return A Java Future containing the result of the UpdateTrigger operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateTrigger * @see AWS API * Documentation */ @Override public CompletableFuture updateTrigger(UpdateTriggerRequest updateTriggerRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateTriggerResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateTrigger") .withMarshaller(new UpdateTriggerRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateTriggerRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates an existing function definition in the Data Catalog. *

* * @param updateUserDefinedFunctionRequest * @return A Java Future containing the result of the UpdateUserDefinedFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InvalidInputException The input provided was not valid.
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • GlueEncryptionException An encryption operation failed.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateUserDefinedFunction * @see AWS * API Documentation */ @Override public CompletableFuture updateUserDefinedFunction( UpdateUserDefinedFunctionRequest updateUserDefinedFunctionRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateUserDefinedFunctionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateUserDefinedFunction") .withMarshaller(new UpdateUserDefinedFunctionRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateUserDefinedFunctionRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates an existing workflow. *

* * @param updateWorkflowRequest * @return A Java Future containing the result of the UpdateWorkflow operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • InvalidInputException The input provided was not valid.
  • *
  • EntityNotFoundException A specified entity does not exist
  • *
  • InternalServiceException An internal service error occurred.
  • *
  • OperationTimeoutException The operation timed out.
  • *
  • ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • GlueException Base class for all service exceptions. Unknown exceptions will be thrown as an instance * of this type.
  • *
* @sample GlueAsyncClient.UpdateWorkflow * @see AWS API * Documentation */ @Override public CompletableFuture updateWorkflow(UpdateWorkflowRequest updateWorkflowRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateWorkflowResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateWorkflow") .withMarshaller(new UpdateWorkflowRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateWorkflowRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } @Override public void close() { clientHandler.close(); } private > T init(T builder) { return builder .clientConfiguration(clientConfiguration) .defaultServiceExceptionSupplier(GlueException::builder) .protocol(AwsJsonProtocol.AWS_JSON) .protocolVersion("1.1") .registerModeledException( ExceptionMetadata.builder().errorCode("ConcurrentModificationException") .exceptionBuilderSupplier(ConcurrentModificationException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("SchedulerRunningException") .exceptionBuilderSupplier(SchedulerRunningException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("SchedulerTransitioningException") .exceptionBuilderSupplier(SchedulerTransitioningException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("AlreadyExistsException") .exceptionBuilderSupplier(AlreadyExistsException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("CrawlerRunningException") .exceptionBuilderSupplier(CrawlerRunningException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ValidationException") .exceptionBuilderSupplier(ValidationException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("InternalServiceException") .exceptionBuilderSupplier(InternalServiceException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("CrawlerStoppingException") .exceptionBuilderSupplier(CrawlerStoppingException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("InvalidInputException") .exceptionBuilderSupplier(InvalidInputException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("CrawlerNotRunningException") .exceptionBuilderSupplier(CrawlerNotRunningException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("EntityNotFoundException") .exceptionBuilderSupplier(EntityNotFoundException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("GlueEncryptionException") .exceptionBuilderSupplier(GlueEncryptionException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("OperationTimeoutException") .exceptionBuilderSupplier(OperationTimeoutException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("VersionMismatchException") .exceptionBuilderSupplier(VersionMismatchException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("NoScheduleException") .exceptionBuilderSupplier(NoScheduleException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("MLTransformNotReadyException") .exceptionBuilderSupplier(MlTransformNotReadyException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("IdempotentParameterMismatchException") .exceptionBuilderSupplier(IdempotentParameterMismatchException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ConcurrentRunsExceededException") .exceptionBuilderSupplier(ConcurrentRunsExceededException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ResourceNumberLimitExceededException") .exceptionBuilderSupplier(ResourceNumberLimitExceededException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("SchedulerNotRunningException") .exceptionBuilderSupplier(SchedulerNotRunningException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("AccessDeniedException") .exceptionBuilderSupplier(AccessDeniedException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ConditionCheckFailureException") .exceptionBuilderSupplier(ConditionCheckFailureException::builder).build()); } private T applyPaginatorUserAgent(T request) { Consumer userAgentApplier = b -> b.addApiName(ApiName.builder() .version(VersionInfo.SDK_VERSION).name("PAGINATED").build()); AwsRequestOverrideConfiguration overrideConfiguration = request.overrideConfiguration() .map(c -> c.toBuilder().applyMutation(userAgentApplier).build()) .orElse((AwsRequestOverrideConfiguration.builder().applyMutation(userAgentApplier).build())); return (T) request.toBuilder().overrideConfiguration(overrideConfiguration).build(); } private HttpResponseHandler createErrorResponseHandler(BaseAwsJsonProtocolFactory protocolFactory, JsonOperationMetadata operationMetadata) { return protocolFactory.createErrorResponseHandler(operationMetadata); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy