@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonAugmentedAIRuntimeClient extends AmazonWebServiceClient implements AmazonAugmentedAIRuntime
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
Modifier and Type | Method and Description |
---|---|
static AmazonAugmentedAIRuntimeClientBuilder |
builder() |
DeleteHumanLoopResult |
deleteHumanLoop(DeleteHumanLoopRequest request)
Deletes the specified human loop for a flow definition.
|
DescribeHumanLoopResult |
describeHumanLoop(DescribeHumanLoopRequest request)
Returns information about the specified human loop.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
ListHumanLoopsResult |
listHumanLoops(ListHumanLoopsRequest request)
Returns information about human loops, given the specified parameters.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
StartHumanLoopResult |
startHumanLoop(StartHumanLoopRequest request)
Starts a human loop, provided that at least one activation condition is met.
|
StopHumanLoopResult |
stopHumanLoop(StopHumanLoopRequest request)
Stops the specified human loop.
|
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
public static AmazonAugmentedAIRuntimeClientBuilder builder()
public DeleteHumanLoopResult deleteHumanLoop(DeleteHumanLoopRequest request)
Deletes the specified human loop for a flow definition.
If the human loop was deleted, this operation will return a ResourceNotFoundException
.
deleteHumanLoop
in interface AmazonAugmentedAIRuntime
deleteHumanLoopRequest
- ValidationException
- The request isn't valid. Check the syntax and try again.ResourceNotFoundException
- We couldn't find the requested resource. Check that your resources exists and were created in the same
AWS Region as your request, and try your request again.ThrottlingException
- You exceeded the maximum number of requests.InternalServerException
- We couldn't process your request because of an issue with the server. Try again later.public DescribeHumanLoopResult describeHumanLoop(DescribeHumanLoopRequest request)
Returns information about the specified human loop. If the human loop was deleted, this operation will return a
ResourceNotFoundException
error.
describeHumanLoop
in interface AmazonAugmentedAIRuntime
describeHumanLoopRequest
- ValidationException
- The request isn't valid. Check the syntax and try again.ResourceNotFoundException
- We couldn't find the requested resource. Check that your resources exists and were created in the same
AWS Region as your request, and try your request again.ThrottlingException
- You exceeded the maximum number of requests.InternalServerException
- We couldn't process your request because of an issue with the server. Try again later.public ListHumanLoopsResult listHumanLoops(ListHumanLoopsRequest request)
Returns information about human loops, given the specified parameters. If a human loop was deleted, it will not be included.
listHumanLoops
in interface AmazonAugmentedAIRuntime
listHumanLoopsRequest
- ValidationException
- The request isn't valid. Check the syntax and try again.ResourceNotFoundException
- We couldn't find the requested resource. Check that your resources exists and were created in the same
AWS Region as your request, and try your request again.ThrottlingException
- You exceeded the maximum number of requests.InternalServerException
- We couldn't process your request because of an issue with the server. Try again later.public StartHumanLoopResult startHumanLoop(StartHumanLoopRequest request)
Starts a human loop, provided that at least one activation condition is met.
startHumanLoop
in interface AmazonAugmentedAIRuntime
startHumanLoopRequest
- ValidationException
- The request isn't valid. Check the syntax and try again.ThrottlingException
- You exceeded the maximum number of requests.ServiceQuotaExceededException
- You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of
service resources or operations for your AWS account. For a list of Amazon A2I service quotes, see Amazon Augmented AI Service Quotes.
Delete some resources or request an increase in your service quota. You can request a quota increase
using Service Quotas or the AWS Support Center. To request an increase, see AWS Service Quotas in
the AWS General Reference.InternalServerException
- We couldn't process your request because of an issue with the server. Try again later.ConflictException
- Your request has the same name as another active human loop but has different input data. You cannot
start two human loops with the same name and different input data.public StopHumanLoopResult stopHumanLoop(StopHumanLoopRequest request)
Stops the specified human loop.
stopHumanLoop
in interface AmazonAugmentedAIRuntime
stopHumanLoopRequest
- ValidationException
- The request isn't valid. Check the syntax and try again.ResourceNotFoundException
- We couldn't find the requested resource. Check that your resources exists and were created in the same
AWS Region as your request, and try your request again.ThrottlingException
- You exceeded the maximum number of requests.InternalServerException
- We couldn't process your request because of an issue with the server. Try again later.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AmazonAugmentedAIRuntime
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonAugmentedAIRuntime
shutdown
in class AmazonWebServiceClient