{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.sagemakera2iruntime#AmazonSageMakerA2IRuntime": { "type": "service", "version": "2019-11-07", "operations": [ { "target": "com.amazonaws.sagemakera2iruntime#DeleteHumanLoop" }, { "target": "com.amazonaws.sagemakera2iruntime#DescribeHumanLoop" }, { "target": "com.amazonaws.sagemakera2iruntime#ListHumanLoops" }, { "target": "com.amazonaws.sagemakera2iruntime#StartHumanLoop" }, { "target": "com.amazonaws.sagemakera2iruntime#StopHumanLoop" } ], "traits": { "aws.api#service": { "sdkId": "SageMaker A2I Runtime", "arnNamespace": "sagemaker", "cloudFormationName": "SageMakerA2IRuntime", "cloudTrailEventSource": "sagemakera2iruntime.amazonaws.com", "endpointPrefix": "a2i-runtime.sagemaker" }, "aws.auth#sigv4": { "name": "sagemaker" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "
Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine learning\n application. When an AI application can't evaluate data with a high degree of confidence,\n human reviewers can take over. This human review is called a human review workflow. To create\n and start a human review workflow, you need three resources: a worker task\n template, a flow definition, and a human\n loop.
\nFor information about these resources and prerequisites for using Amazon A2I, see Get Started with\n Amazon Augmented AI in the Amazon SageMaker Developer Guide.
\nThis API reference includes information about API actions and data types that you can use\n to interact with Amazon A2I programmatically. Use this guide to:
\nStart a human loop with the StartHumanLoop
operation when using\n Amazon A2I with a custom task type. To learn more about the\n difference between custom and built-in task types, see Use Task Types . To learn\n how to start a human loop using this API, see Create and Start a Human Loop for a Custom Task Type in the\n Amazon SageMaker Developer Guide.
Manage your human loops. You can list all human loops that you have created, describe\n 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.
\nAmazon A2I integrates APIs from various AWS services to create and start human review\n workflows for those services. To learn how Amazon A2I uses these APIs, see Use APIs in\n Amazon A2I in the Amazon SageMaker Developer Guide.
", "smithy.api#title": "Amazon Augmented AI Runtime" } }, "com.amazonaws.sagemakera2iruntime#ConflictException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.sagemakera2iruntime#FailureReason" } }, "traits": { "smithy.api#documentation": "Your request has the same name as another active human loop but has different input data. You cannot start two \n human loops with the same name and different input data.
", "smithy.api#error": "client", "smithy.api#httpError": 409 } }, "com.amazonaws.sagemakera2iruntime#ContentClassifier": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "FreeOfPersonallyIdentifiableInformation", "name": "FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION" }, { "value": "FreeOfAdultContent", "name": "FREE_OF_ADULT_CONTENT" } ] } }, "com.amazonaws.sagemakera2iruntime#ContentClassifiers": { "type": "list", "member": { "target": "com.amazonaws.sagemakera2iruntime#ContentClassifier" }, "traits": { "smithy.api#length": { "min": 0, "max": 256 } } }, "com.amazonaws.sagemakera2iruntime#DeleteHumanLoop": { "type": "operation", "input": { "target": "com.amazonaws.sagemakera2iruntime#DeleteHumanLoopRequest" }, "output": { "target": "com.amazonaws.sagemakera2iruntime#DeleteHumanLoopResponse" }, "errors": [ { "target": "com.amazonaws.sagemakera2iruntime#InternalServerException" }, { "target": "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException" }, { "target": "com.amazonaws.sagemakera2iruntime#ThrottlingException" }, { "target": "com.amazonaws.sagemakera2iruntime#ValidationException" } ], "traits": { "smithy.api#documentation": "Deletes the specified human loop for a flow definition.
\nIf the human loop was deleted, this operation will return a\n ResourceNotFoundException
.
The name of the human loop that you want to delete.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.sagemakera2iruntime#DeleteHumanLoopResponse": { "type": "structure", "members": {} }, "com.amazonaws.sagemakera2iruntime#DescribeHumanLoop": { "type": "operation", "input": { "target": "com.amazonaws.sagemakera2iruntime#DescribeHumanLoopRequest" }, "output": { "target": "com.amazonaws.sagemakera2iruntime#DescribeHumanLoopResponse" }, "errors": [ { "target": "com.amazonaws.sagemakera2iruntime#InternalServerException" }, { "target": "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException" }, { "target": "com.amazonaws.sagemakera2iruntime#ThrottlingException" }, { "target": "com.amazonaws.sagemakera2iruntime#ValidationException" } ], "traits": { "smithy.api#documentation": "Returns information about the specified human loop. If the human loop was deleted, this\n operation will return a ResourceNotFoundException
error.
The name of the human loop that you want information about.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.sagemakera2iruntime#DescribeHumanLoopResponse": { "type": "structure", "members": { "CreationTime": { "target": "com.amazonaws.sagemakera2iruntime#Timestamp", "traits": { "smithy.api#documentation": "The creation time when Amazon Augmented AI created the human loop.
", "smithy.api#required": {} } }, "FailureReason": { "target": "com.amazonaws.sagemakera2iruntime#String", "traits": { "smithy.api#documentation": "The reason why a human loop failed. The failure reason is returned when the status of the\n human loop is Failed
.
A failure code that identifies the type of failure.
\nPossible values: ValidationError
, Expired
,\n InternalError
\n
The status of the human loop.
", "smithy.api#required": {} } }, "HumanLoopName": { "target": "com.amazonaws.sagemakera2iruntime#HumanLoopName", "traits": { "smithy.api#documentation": "The name of the human loop. The name must be lowercase, unique within the Region in your\n account, and can have up to 63 characters. Valid characters: a-z, 0-9, and - (hyphen).
", "smithy.api#required": {} } }, "HumanLoopArn": { "target": "com.amazonaws.sagemakera2iruntime#HumanLoopArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the human loop.
", "smithy.api#required": {} } }, "FlowDefinitionArn": { "target": "com.amazonaws.sagemakera2iruntime#FlowDefinitionArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the flow definition.
", "smithy.api#required": {} } }, "HumanLoopOutput": { "target": "com.amazonaws.sagemakera2iruntime#HumanLoopOutput", "traits": { "smithy.api#documentation": "An object that contains information about the output of the human loop.
" } } } }, "com.amazonaws.sagemakera2iruntime#FailureReason": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 1024 } } }, "com.amazonaws.sagemakera2iruntime#FlowDefinitionArn": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 1024 }, "smithy.api#pattern": "arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:flow-definition/.*" } }, "com.amazonaws.sagemakera2iruntime#HumanLoopArn": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 1024 }, "smithy.api#pattern": "arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:human-loop/.*" } }, "com.amazonaws.sagemakera2iruntime#HumanLoopDataAttributes": { "type": "structure", "members": { "ContentClassifiers": { "target": "com.amazonaws.sagemakera2iruntime#ContentClassifiers", "traits": { "smithy.api#documentation": "Declares that your content is free of personally identifiable information or adult content.
\nAmazon SageMaker can restrict the Amazon Mechanical Turk workers who can view your task based on this information.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Attributes of the data specified by the customer. Use these to describe the data to be labeled.
" } }, "com.amazonaws.sagemakera2iruntime#HumanLoopInput": { "type": "structure", "members": { "InputContent": { "target": "com.amazonaws.sagemakera2iruntime#InputContent", "traits": { "smithy.api#documentation": "Serialized input from the human loop. The input must be a string representation of a file in JSON format.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "An object containing the human loop input in JSON format.
" } }, "com.amazonaws.sagemakera2iruntime#HumanLoopName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 63 }, "smithy.api#pattern": "^[a-z0-9](-*[a-z0-9])*$" } }, "com.amazonaws.sagemakera2iruntime#HumanLoopOutput": { "type": "structure", "members": { "OutputS3Uri": { "target": "com.amazonaws.sagemakera2iruntime#String", "traits": { "smithy.api#documentation": "The location of the Amazon S3 object where Amazon Augmented AI stores your human loop output.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Information about where the human output will be stored.
" } }, "com.amazonaws.sagemakera2iruntime#HumanLoopStatus": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "InProgress", "name": "IN_PROGRESS" }, { "value": "Failed", "name": "FAILED" }, { "value": "Completed", "name": "COMPLETED" }, { "value": "Stopped", "name": "STOPPED" }, { "value": "Stopping", "name": "STOPPING" } ] } }, "com.amazonaws.sagemakera2iruntime#HumanLoopSummaries": { "type": "list", "member": { "target": "com.amazonaws.sagemakera2iruntime#HumanLoopSummary" } }, "com.amazonaws.sagemakera2iruntime#HumanLoopSummary": { "type": "structure", "members": { "HumanLoopName": { "target": "com.amazonaws.sagemakera2iruntime#HumanLoopName", "traits": { "smithy.api#documentation": "The name of the human loop.
" } }, "HumanLoopStatus": { "target": "com.amazonaws.sagemakera2iruntime#HumanLoopStatus", "traits": { "smithy.api#documentation": "The status of the human loop.
" } }, "CreationTime": { "target": "com.amazonaws.sagemakera2iruntime#Timestamp", "traits": { "smithy.api#documentation": "When Amazon Augmented AI created the human loop.
" } }, "FailureReason": { "target": "com.amazonaws.sagemakera2iruntime#FailureReason", "traits": { "smithy.api#documentation": "The reason why the human loop failed. A failure reason is returned when the status of the\n human loop is Failed
.
The Amazon Resource Name (ARN) of the flow definition used to configure the human\n loop.
" } } }, "traits": { "smithy.api#documentation": "Summary information about the human loop.
" } }, "com.amazonaws.sagemakera2iruntime#InputContent": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 3145728 } } }, "com.amazonaws.sagemakera2iruntime#InternalServerException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.sagemakera2iruntime#FailureReason" } }, "traits": { "smithy.api#documentation": "We couldn't process your request because of an issue with the server. Try again\n later.
", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.sagemakera2iruntime#ListHumanLoops": { "type": "operation", "input": { "target": "com.amazonaws.sagemakera2iruntime#ListHumanLoopsRequest" }, "output": { "target": "com.amazonaws.sagemakera2iruntime#ListHumanLoopsResponse" }, "errors": [ { "target": "com.amazonaws.sagemakera2iruntime#InternalServerException" }, { "target": "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException" }, { "target": "com.amazonaws.sagemakera2iruntime#ThrottlingException" }, { "target": "com.amazonaws.sagemakera2iruntime#ValidationException" } ], "traits": { "smithy.api#documentation": "Returns information about human loops, given the specified parameters. If a human loop was deleted, it will not be included.
", "smithy.api#http": { "method": "GET", "uri": "/human-loops", "code": 200 }, "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" } } }, "com.amazonaws.sagemakera2iruntime#ListHumanLoopsRequest": { "type": "structure", "members": { "CreationTimeAfter": { "target": "com.amazonaws.sagemakera2iruntime#Timestamp", "traits": { "smithy.api#documentation": "(Optional) The timestamp of the date when you want the human loops to begin in ISO 8601 format. For example, 2020-02-24
.
(Optional) The timestamp of the date before which you want the human loops to begin in ISO 8601 format. For example, 2020-02-24
.
The Amazon Resource Name (ARN) of a flow definition.
", "smithy.api#httpQuery": "FlowDefinitionArn", "smithy.api#required": {} } }, "SortOrder": { "target": "com.amazonaws.sagemakera2iruntime#SortOrder", "traits": { "smithy.api#documentation": "Optional. The order for displaying results. Valid values: Ascending
and\n Descending
.
A token to display the next page of results.
", "smithy.api#httpQuery": "NextToken" } }, "MaxResults": { "target": "com.amazonaws.sagemakera2iruntime#MaxResults", "traits": { "smithy.api#box": {}, "smithy.api#documentation": "The total number of items to return. If the total number of available items is more than\n the value specified in MaxResults
, then a NextToken
is returned in\n the output. You can use this token to display the next page of results.
An array of objects that contain information about the human loops.
", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.sagemakera2iruntime#NextToken", "traits": { "smithy.api#documentation": "A token to display the next page of results.
" } } } }, "com.amazonaws.sagemakera2iruntime#MaxResults": { "type": "integer", "traits": { "smithy.api#range": { "min": 1, "max": 100 } } }, "com.amazonaws.sagemakera2iruntime#NextToken": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 8192 }, "smithy.api#pattern": ".*" } }, "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.sagemakera2iruntime#FailureReason" } }, "traits": { "smithy.api#documentation": "We couldn't find the requested resource. Check that your resources exists and were created\n in the same AWS Region as your request, and try your request again.
", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.sagemakera2iruntime#ServiceQuotaExceededException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.sagemakera2iruntime#FailureReason" } }, "traits": { "smithy.api#documentation": "You exceeded your service quota. Service quotas, also referred to as limits, are the\n maximum number of service resources or operations for your AWS account. For a list of\n Amazon A2I service quotes, see Amazon Augmented AI Service Quotes. Delete some resources or request an increase in your\n service quota. You can request a quota increase using Service Quotas or the AWS Support\n Center. To request an increase, see AWS Service Quotas in the\n AWS General Reference.
", "smithy.api#error": "client", "smithy.api#httpError": 402 } }, "com.amazonaws.sagemakera2iruntime#SortOrder": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "Ascending", "name": "ASCENDING" }, { "value": "Descending", "name": "DESCENDING" } ] } }, "com.amazonaws.sagemakera2iruntime#StartHumanLoop": { "type": "operation", "input": { "target": "com.amazonaws.sagemakera2iruntime#StartHumanLoopRequest" }, "output": { "target": "com.amazonaws.sagemakera2iruntime#StartHumanLoopResponse" }, "errors": [ { "target": "com.amazonaws.sagemakera2iruntime#ConflictException" }, { "target": "com.amazonaws.sagemakera2iruntime#InternalServerException" }, { "target": "com.amazonaws.sagemakera2iruntime#ServiceQuotaExceededException" }, { "target": "com.amazonaws.sagemakera2iruntime#ThrottlingException" }, { "target": "com.amazonaws.sagemakera2iruntime#ValidationException" } ], "traits": { "smithy.api#documentation": "Starts a human loop, provided that at least one activation condition is met.
", "smithy.api#http": { "method": "POST", "uri": "/human-loops", "code": 200 } } }, "com.amazonaws.sagemakera2iruntime#StartHumanLoopRequest": { "type": "structure", "members": { "HumanLoopName": { "target": "com.amazonaws.sagemakera2iruntime#HumanLoopName", "traits": { "smithy.api#documentation": "The name of the human loop.
", "smithy.api#required": {} } }, "FlowDefinitionArn": { "target": "com.amazonaws.sagemakera2iruntime#FlowDefinitionArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the flow definition associated with this human\n loop.
", "smithy.api#required": {} } }, "HumanLoopInput": { "target": "com.amazonaws.sagemakera2iruntime#HumanLoopInput", "traits": { "smithy.api#documentation": "An object that contains information about the human loop.
", "smithy.api#required": {} } }, "DataAttributes": { "target": "com.amazonaws.sagemakera2iruntime#HumanLoopDataAttributes", "traits": { "smithy.api#documentation": "Attributes of the specified data. Use DataAttributes
to specify if your data\n is free of personally identifiable information and/or free of adult content.
The Amazon Resource Name (ARN) of the human loop.
" } } } }, "com.amazonaws.sagemakera2iruntime#StopHumanLoop": { "type": "operation", "input": { "target": "com.amazonaws.sagemakera2iruntime#StopHumanLoopRequest" }, "output": { "target": "com.amazonaws.sagemakera2iruntime#StopHumanLoopResponse" }, "errors": [ { "target": "com.amazonaws.sagemakera2iruntime#InternalServerException" }, { "target": "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException" }, { "target": "com.amazonaws.sagemakera2iruntime#ThrottlingException" }, { "target": "com.amazonaws.sagemakera2iruntime#ValidationException" } ], "traits": { "smithy.api#documentation": "Stops the specified human loop.
", "smithy.api#http": { "method": "POST", "uri": "/human-loops/stop", "code": 200 } } }, "com.amazonaws.sagemakera2iruntime#StopHumanLoopRequest": { "type": "structure", "members": { "HumanLoopName": { "target": "com.amazonaws.sagemakera2iruntime#HumanLoopName", "traits": { "smithy.api#documentation": "The name of the human loop that you want to stop.
", "smithy.api#required": {} } } } }, "com.amazonaws.sagemakera2iruntime#StopHumanLoopResponse": { "type": "structure", "members": {} }, "com.amazonaws.sagemakera2iruntime#String": { "type": "string" }, "com.amazonaws.sagemakera2iruntime#ThrottlingException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.sagemakera2iruntime#FailureReason" } }, "traits": { "smithy.api#documentation": "You exceeded\n the\n maximum number of requests.
", "smithy.api#error": "client", "smithy.api#httpError": 429 } }, "com.amazonaws.sagemakera2iruntime#Timestamp": { "type": "timestamp" }, "com.amazonaws.sagemakera2iruntime#ValidationException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.sagemakera2iruntime#FailureReason" } }, "traits": { "smithy.api#documentation": "The\n request isn't valid. Check the syntax and try again.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } } } }