@datafire/amazonaws_sagemaker_a2i_runtime v5.0.0
@datafire/amazonaws_sagemaker_a2i_runtime
Client library for Amazon Augmented AI Runtime
Installation and Usage
npm install --save @datafire/amazonaws_sagemaker_a2i_runtime
let amazonaws_sagemaker_a2i_runtime = require('@datafire/amazonaws_sagemaker_a2i_runtime').create({
accessKeyId: "",
secretAccessKey: "",
region: ""
});
.then(data => {
console.log(data);
});
Description
Amazon Augmented AI is in preview release and is subject to change. We do not recommend using this product in production environments. 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.
Actions
StartHumanLoop
amazonaws_sagemaker_a2i_runtime.StartHumanLoop({
"HumanLoopName": "",
"FlowDefinitionArn": "",
"HumanLoopInput": {}
}, context)
Input
- input
object
- DataAttributes
object
: Attributes of the data specified by the customer. Use these to describe the data to be labeled.- ContentClassifiers
- items ContentClassifier
- ContentClassifiers
- FlowDefinitionArn required
string
: The Amazon Resource Name (ARN) of the flow definition associated with this human loop. - HumanLoopInput required
object
: An object containing the human loop input in JSON format.- InputContent
- HumanLoopName required
string
: The name of the human loop.
- DataAttributes
Output
- output StartHumanLoopResponse
ListHumanLoops
amazonaws_sagemaker_a2i_runtime.ListHumanLoops({
"FlowDefinitionArn": ""
}, context)
Input
- input
object
- CreationTimeAfter
string
- CreationTimeBefore
string
- FlowDefinitionArn required
string
- SortOrder
string
- NextToken
string
- MaxResults
integer
- CreationTimeAfter
Output
- output ListHumanLoopsResponse
StopHumanLoop
amazonaws_sagemaker_a2i_runtime.StopHumanLoop({
"HumanLoopName": ""
}, context)
Input
- input
object
- HumanLoopName required
string
: The name of the human loop that you want to stop.
- HumanLoopName required
Output
- output StopHumanLoopResponse
DeleteHumanLoop
amazonaws_sagemaker_a2i_runtime.DeleteHumanLoop({
"HumanLoopName": ""
}, context)
Input
- input
object
- HumanLoopName required
string
- HumanLoopName required
Output
- output DeleteHumanLoopResponse
DescribeHumanLoop
amazonaws_sagemaker_a2i_runtime.DescribeHumanLoop({
"HumanLoopName": ""
}, context)
Input
- input
object
- HumanLoopName required
string
- HumanLoopName required
Output
- output DescribeHumanLoopResponse
Definitions
ConflictException
ContentClassifier
- ContentClassifier
string
(values: FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent)
ContentClassifiers
- ContentClassifiers
array
- items ContentClassifier
DeleteHumanLoopRequest
- DeleteHumanLoopRequest
object
DeleteHumanLoopResponse
- DeleteHumanLoopResponse
object
DescribeHumanLoopRequest
- DescribeHumanLoopRequest
object
DescribeHumanLoopResponse
- DescribeHumanLoopResponse
object
- CreationTime required
- FailureCode
- FailureReason
- FlowDefinitionArn required
- HumanLoopArn required
- HumanLoopName required
- HumanLoopOutput
- OutputS3Uri required
- HumanLoopStatus required
FailureReason
- FailureReason
string
FlowDefinitionArn
- FlowDefinitionArn
string
HumanLoopArn
- HumanLoopArn
string
HumanLoopDataAttributes
- HumanLoopDataAttributes
object
: Attributes of the data specified by the customer. Use these to describe the data to be labeled.- ContentClassifiers required
- items ContentClassifier
- ContentClassifiers required
HumanLoopInput
- HumanLoopInput
object
: An object containing the human loop input in JSON format.- InputContent required
HumanLoopName
- HumanLoopName
string
HumanLoopOutput
- HumanLoopOutput
object
: Information about where the human output will be stored.- OutputS3Uri required
HumanLoopStatus
- HumanLoopStatus
string
(values: InProgress, Failed, Completed, Stopped, Stopping)
HumanLoopSummaries
- HumanLoopSummaries
array
- items HumanLoopSummary
HumanLoopSummary
- HumanLoopSummary
object
: Summary information about the human loop.- CreationTime
- FailureReason
- FlowDefinitionArn
- HumanLoopName
- HumanLoopStatus
InputContent
- InputContent
string
InternalServerException
ListHumanLoopsRequest
- ListHumanLoopsRequest
object
ListHumanLoopsResponse
- ListHumanLoopsResponse
object
- HumanLoopSummaries required
- items HumanLoopSummary
- NextToken
- HumanLoopSummaries required
MaxResults
- MaxResults
integer
NextToken
- NextToken
string
ResourceNotFoundException
ServiceQuotaExceededException
SortOrder
- SortOrder
string
(values: Ascending, Descending)
StartHumanLoopRequest
- StartHumanLoopRequest
object
- DataAttributes
- ContentClassifiers required
- items ContentClassifier
- ContentClassifiers required
- FlowDefinitionArn required
- HumanLoopInput required
- InputContent required
- HumanLoopName required
- DataAttributes
StartHumanLoopResponse
- StartHumanLoopResponse
object
- HumanLoopArn
StopHumanLoopRequest
- StopHumanLoopRequest
object
- HumanLoopName required
StopHumanLoopResponse
- StopHumanLoopResponse
object
String
- String
string
ThrottlingException
Timestamp
- Timestamp
string
ValidationException
5 years ago