@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonAugmentedAIRuntimeAsyncClient extends AmazonAugmentedAIRuntimeClient implements AmazonAugmentedAIRuntimeAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Amazon Augmented AI (Augmented AI) (Preview) is a service that adds human judgment to any machine learning application. Human reviewers can take over when an AI application can't evaluate data with a high degree of confidence.
From fraudulent bank transaction identification to document processing to image analysis, machine learning models can be trained to make decisions as well as or better than a human. Nevertheless, some decisions require contextual interpretation, such as when you need to decide whether an image is appropriate for a given audience. Content moderation guidelines are nuanced and highly dependent on context, and they vary between countries. When trying to apply AI in these situations, you can be forced to choose between "ML only" systems with unacceptably high error rates or "human only" systems that are expensive and difficult to scale, and that slow down decision making.
This API reference includes information about API actions and data types you can use to interact with Augmented AI programmatically.
You can create a flow definition against the Augmented AI API. Provide the Amazon Resource Name (ARN) of a flow
definition to integrate AI service APIs, such as Textract.AnalyzeDocument and
Rekognition.DetectModerationLabels. These AI services, in turn, invoke the StartHumanLoop API,
which evaluates conditions under which humans will be invoked. If humans are required, Augmented AI creates a human
loop. Results of human work are available asynchronously in Amazon Simple Storage Service (Amazon S3). You can use
Amazon CloudWatch Events to detect human work results.
You can find additional Augmented AI API documentation in the following reference guides: Amazon Rekognition, Amazon SageMaker, and Amazon Textract.
configFactoryclient, clientConfiguration, endpoint, isEndpointOverridden, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffsetENDPOINT_PREFIXbuilder, deleteHumanLoop, describeHumanLoop, getCachedResponseMetadata, listHumanLoops, startHumanLoop, stopHumanLoopaddRequestHandler, addRequestHandler, beforeClientExecution, beforeMarshalling, calculateCRC32FromCompressedData, checkMutability, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, createSignerProvider, endClientExecution, endClientExecution, getClientConfiguration, getClientId, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerOverride, getSignerProvider, getSignerRegionOverride, getSigningRegion, getTimeOffset, isCsmEnabled, isEndpointOverridden, isProfilingEnabled, isRequestMetricsEnabled, makeImmutable, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shouldGenerateClientSideMonitoringEvents, useStrictHostNameVerification, withEndpoint, withRegion, withRegion, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteHumanLoop, describeHumanLoop, getCachedResponseMetadata, listHumanLoops, startHumanLoop, stopHumanLooppublic static AmazonAugmentedAIRuntimeAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<DeleteHumanLoopResult> deleteHumanLoopAsync(DeleteHumanLoopRequest request)
AmazonAugmentedAIRuntimeAsyncDeletes the specified human loop for a flow definition.
deleteHumanLoopAsync in interface AmazonAugmentedAIRuntimeAsyncpublic Future<DeleteHumanLoopResult> deleteHumanLoopAsync(DeleteHumanLoopRequest request, AsyncHandler<DeleteHumanLoopRequest,DeleteHumanLoopResult> asyncHandler)
AmazonAugmentedAIRuntimeAsyncDeletes the specified human loop for a flow definition.
deleteHumanLoopAsync in interface AmazonAugmentedAIRuntimeAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeHumanLoopResult> describeHumanLoopAsync(DescribeHumanLoopRequest request)
AmazonAugmentedAIRuntimeAsyncReturns information about the specified human loop.
describeHumanLoopAsync in interface AmazonAugmentedAIRuntimeAsyncpublic Future<DescribeHumanLoopResult> describeHumanLoopAsync(DescribeHumanLoopRequest request, AsyncHandler<DescribeHumanLoopRequest,DescribeHumanLoopResult> asyncHandler)
AmazonAugmentedAIRuntimeAsyncReturns information about the specified human loop.
describeHumanLoopAsync in interface AmazonAugmentedAIRuntimeAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListHumanLoopsResult> listHumanLoopsAsync(ListHumanLoopsRequest request)
AmazonAugmentedAIRuntimeAsyncReturns information about human loops, given the specified parameters. If a human loop was deleted, it will not be included.
listHumanLoopsAsync in interface AmazonAugmentedAIRuntimeAsyncpublic Future<ListHumanLoopsResult> listHumanLoopsAsync(ListHumanLoopsRequest request, AsyncHandler<ListHumanLoopsRequest,ListHumanLoopsResult> asyncHandler)
AmazonAugmentedAIRuntimeAsyncReturns information about human loops, given the specified parameters. If a human loop was deleted, it will not be included.
listHumanLoopsAsync in interface AmazonAugmentedAIRuntimeAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartHumanLoopResult> startHumanLoopAsync(StartHumanLoopRequest request)
AmazonAugmentedAIRuntimeAsyncStarts a human loop, provided that at least one activation condition is met.
startHumanLoopAsync in interface AmazonAugmentedAIRuntimeAsyncpublic Future<StartHumanLoopResult> startHumanLoopAsync(StartHumanLoopRequest request, AsyncHandler<StartHumanLoopRequest,StartHumanLoopResult> asyncHandler)
AmazonAugmentedAIRuntimeAsyncStarts a human loop, provided that at least one activation condition is met.
startHumanLoopAsync in interface AmazonAugmentedAIRuntimeAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopHumanLoopResult> stopHumanLoopAsync(StopHumanLoopRequest request)
AmazonAugmentedAIRuntimeAsyncStops the specified human loop.
stopHumanLoopAsync in interface AmazonAugmentedAIRuntimeAsyncpublic Future<StopHumanLoopResult> stopHumanLoopAsync(StopHumanLoopRequest request, AsyncHandler<StopHumanLoopRequest,StopHumanLoopResult> asyncHandler)
AmazonAugmentedAIRuntimeAsyncStops the specified human loop.
stopHumanLoopAsync in interface AmazonAugmentedAIRuntimeAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AmazonAugmentedAIRuntimeshutdown in class AmazonWebServiceClientCopyright © 2020. All rights reserved.