@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 (Amazon A2I) adds the benefit of human judgment to any machine learning application. When an AI application can't evaluate data with a high degree of confidence, human reviewers can take over. This human review is called a human review workflow. To create and start a human review workflow, you need three resources: a worker task template, a flow definition, and a human loop.
For information about these resources and prerequisites for using Amazon A2I, see Get Started with Amazon Augmented AI in the Amazon SageMaker Developer Guide.
This API reference includes information about API actions and data types that you can use to interact with Amazon A2I programmatically. Use this guide to:
Start a human loop with the StartHumanLoop
operation when using Amazon A2I with a custom task
type. To learn more about the difference between custom and built-in task types, see Use Task Types . To learn how
to start a human loop using this API, see Create and Start a Human Loop for a Custom Task Type in the Amazon SageMaker Developer Guide.
Manage your human loops. You can list all human loops that you have created, describe individual human loops, and stop and delete human loops. To learn more, see Monitor and Manage Your Human Loop in the Amazon SageMaker Developer Guide.
Amazon A2I integrates APIs from various AWS services to create and start human review workflows for those services. To learn how Amazon A2I uses these APIs, see Use APIs in Amazon A2I in the Amazon SageMaker Developer Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
builder, deleteHumanLoop, describeHumanLoop, getCachedResponseMetadata, listHumanLoops, startHumanLoop, stopHumanLoop
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteHumanLoop, describeHumanLoop, getCachedResponseMetadata, listHumanLoops, startHumanLoop, stopHumanLoop
public static AmazonAugmentedAIRuntimeAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<DeleteHumanLoopResult> deleteHumanLoopAsync(DeleteHumanLoopRequest request)
AmazonAugmentedAIRuntimeAsync
Deletes the specified human loop for a flow definition.
If the human loop was deleted, this operation will return a ResourceNotFoundException
.
deleteHumanLoopAsync
in interface AmazonAugmentedAIRuntimeAsync
public Future<DeleteHumanLoopResult> deleteHumanLoopAsync(DeleteHumanLoopRequest request, AsyncHandler<DeleteHumanLoopRequest,DeleteHumanLoopResult> asyncHandler)
AmazonAugmentedAIRuntimeAsync
Deletes the specified human loop for a flow definition.
If the human loop was deleted, this operation will return a ResourceNotFoundException
.
deleteHumanLoopAsync
in interface AmazonAugmentedAIRuntimeAsync
asyncHandler
- 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)
AmazonAugmentedAIRuntimeAsync
Returns information about the specified human loop. If the human loop was deleted, this operation will return a
ResourceNotFoundException
error.
describeHumanLoopAsync
in interface AmazonAugmentedAIRuntimeAsync
public Future<DescribeHumanLoopResult> describeHumanLoopAsync(DescribeHumanLoopRequest request, AsyncHandler<DescribeHumanLoopRequest,DescribeHumanLoopResult> asyncHandler)
AmazonAugmentedAIRuntimeAsync
Returns information about the specified human loop. If the human loop was deleted, this operation will return a
ResourceNotFoundException
error.
describeHumanLoopAsync
in interface AmazonAugmentedAIRuntimeAsync
asyncHandler
- 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)
AmazonAugmentedAIRuntimeAsync
Returns information about human loops, given the specified parameters. If a human loop was deleted, it will not be included.
listHumanLoopsAsync
in interface AmazonAugmentedAIRuntimeAsync
public Future<ListHumanLoopsResult> listHumanLoopsAsync(ListHumanLoopsRequest request, AsyncHandler<ListHumanLoopsRequest,ListHumanLoopsResult> asyncHandler)
AmazonAugmentedAIRuntimeAsync
Returns information about human loops, given the specified parameters. If a human loop was deleted, it will not be included.
listHumanLoopsAsync
in interface AmazonAugmentedAIRuntimeAsync
asyncHandler
- 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)
AmazonAugmentedAIRuntimeAsync
Starts a human loop, provided that at least one activation condition is met.
startHumanLoopAsync
in interface AmazonAugmentedAIRuntimeAsync
public Future<StartHumanLoopResult> startHumanLoopAsync(StartHumanLoopRequest request, AsyncHandler<StartHumanLoopRequest,StartHumanLoopResult> asyncHandler)
AmazonAugmentedAIRuntimeAsync
Starts a human loop, provided that at least one activation condition is met.
startHumanLoopAsync
in interface AmazonAugmentedAIRuntimeAsync
asyncHandler
- 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)
AmazonAugmentedAIRuntimeAsync
Stops the specified human loop.
stopHumanLoopAsync
in interface AmazonAugmentedAIRuntimeAsync
public Future<StopHumanLoopResult> stopHumanLoopAsync(StopHumanLoopRequest request, AsyncHandler<StopHumanLoopRequest,StopHumanLoopResult> asyncHandler)
AmazonAugmentedAIRuntimeAsync
Stops the specified human loop.
stopHumanLoopAsync
in interface AmazonAugmentedAIRuntimeAsync
asyncHandler
- 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 AmazonAugmentedAIRuntime
shutdown
in class AmazonAugmentedAIRuntimeClient