UNPKG

9.76 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class AugmentedAIRuntime extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: AugmentedAIRuntime.Types.ClientConfiguration)
13 config: Config & AugmentedAIRuntime.Types.ClientConfiguration;
14 /**
15 * Deletes the specified human loop for a flow definition.
16 */
17 deleteHumanLoop(params: AugmentedAIRuntime.Types.DeleteHumanLoopRequest, callback?: (err: AWSError, data: AugmentedAIRuntime.Types.DeleteHumanLoopResponse) => void): Request<AugmentedAIRuntime.Types.DeleteHumanLoopResponse, AWSError>;
18 /**
19 * Deletes the specified human loop for a flow definition.
20 */
21 deleteHumanLoop(callback?: (err: AWSError, data: AugmentedAIRuntime.Types.DeleteHumanLoopResponse) => void): Request<AugmentedAIRuntime.Types.DeleteHumanLoopResponse, AWSError>;
22 /**
23 * Returns information about the specified human loop.
24 */
25 describeHumanLoop(params: AugmentedAIRuntime.Types.DescribeHumanLoopRequest, callback?: (err: AWSError, data: AugmentedAIRuntime.Types.DescribeHumanLoopResponse) => void): Request<AugmentedAIRuntime.Types.DescribeHumanLoopResponse, AWSError>;
26 /**
27 * Returns information about the specified human loop.
28 */
29 describeHumanLoop(callback?: (err: AWSError, data: AugmentedAIRuntime.Types.DescribeHumanLoopResponse) => void): Request<AugmentedAIRuntime.Types.DescribeHumanLoopResponse, AWSError>;
30 /**
31 * Returns information about human loops, given the specified parameters. If a human loop was deleted, it will not be included.
32 */
33 listHumanLoops(params: AugmentedAIRuntime.Types.ListHumanLoopsRequest, callback?: (err: AWSError, data: AugmentedAIRuntime.Types.ListHumanLoopsResponse) => void): Request<AugmentedAIRuntime.Types.ListHumanLoopsResponse, AWSError>;
34 /**
35 * Returns information about human loops, given the specified parameters. If a human loop was deleted, it will not be included.
36 */
37 listHumanLoops(callback?: (err: AWSError, data: AugmentedAIRuntime.Types.ListHumanLoopsResponse) => void): Request<AugmentedAIRuntime.Types.ListHumanLoopsResponse, AWSError>;
38 /**
39 * Starts a human loop, provided that at least one activation condition is met.
40 */
41 startHumanLoop(params: AugmentedAIRuntime.Types.StartHumanLoopRequest, callback?: (err: AWSError, data: AugmentedAIRuntime.Types.StartHumanLoopResponse) => void): Request<AugmentedAIRuntime.Types.StartHumanLoopResponse, AWSError>;
42 /**
43 * Starts a human loop, provided that at least one activation condition is met.
44 */
45 startHumanLoop(callback?: (err: AWSError, data: AugmentedAIRuntime.Types.StartHumanLoopResponse) => void): Request<AugmentedAIRuntime.Types.StartHumanLoopResponse, AWSError>;
46 /**
47 * Stops the specified human loop.
48 */
49 stopHumanLoop(params: AugmentedAIRuntime.Types.StopHumanLoopRequest, callback?: (err: AWSError, data: AugmentedAIRuntime.Types.StopHumanLoopResponse) => void): Request<AugmentedAIRuntime.Types.StopHumanLoopResponse, AWSError>;
50 /**
51 * Stops the specified human loop.
52 */
53 stopHumanLoop(callback?: (err: AWSError, data: AugmentedAIRuntime.Types.StopHumanLoopResponse) => void): Request<AugmentedAIRuntime.Types.StopHumanLoopResponse, AWSError>;
54}
55declare namespace AugmentedAIRuntime {
56 export type ContentClassifier = "FreeOfPersonallyIdentifiableInformation"|"FreeOfAdultContent"|string;
57 export type ContentClassifiers = ContentClassifier[];
58 export interface DeleteHumanLoopRequest {
59 /**
60 * The name of the human loop you want to delete.
61 */
62 HumanLoopName: HumanLoopName;
63 }
64 export interface DeleteHumanLoopResponse {
65 }
66 export interface DescribeHumanLoopRequest {
67 /**
68 * The unique name of the human loop.
69 */
70 HumanLoopName: HumanLoopName;
71 }
72 export interface DescribeHumanLoopResponse {
73 /**
74 * The creation time when Amazon Augmented AI created the human loop.
75 */
76 CreationTime: Timestamp;
77 /**
78 * The reason why a human loop has failed. The failure reason is returned when the human loop status is Failed.
79 */
80 FailureReason?: String;
81 /**
82 * A failure code denoting a specific type of failure.
83 */
84 FailureCode?: String;
85 /**
86 * The status of the human loop. Valid values:
87 */
88 HumanLoopStatus: HumanLoopStatus;
89 /**
90 * The name of the human loop.
91 */
92 HumanLoopName: HumanLoopName;
93 /**
94 * The Amazon Resource Name (ARN) of the human loop.
95 */
96 HumanLoopArn: HumanLoopArn;
97 /**
98 * The Amazon Resource Name (ARN) of the flow definition.
99 */
100 FlowDefinitionArn: FlowDefinitionArn;
101 /**
102 * An object containing information about the output of the human loop.
103 */
104 HumanLoopOutput?: HumanLoopOutput;
105 }
106 export type FailureReason = string;
107 export type FlowDefinitionArn = string;
108 export type HumanLoopArn = string;
109 export interface HumanLoopDataAttributes {
110 /**
111 * Declares that your content is free of personally identifiable information or adult content. Amazon SageMaker can restrict the Amazon Mechanical Turk workers who can view your task based on this information.
112 */
113 ContentClassifiers: ContentClassifiers;
114 }
115 export interface HumanLoopInput {
116 /**
117 * Serialized input from the human loop. The input must be a string representation of a file in JSON format.
118 */
119 InputContent: InputContent;
120 }
121 export type HumanLoopName = string;
122 export interface HumanLoopOutput {
123 /**
124 * The location of the Amazon S3 object where Amazon Augmented AI stores your human loop output.
125 */
126 OutputS3Uri: String;
127 }
128 export type HumanLoopStatus = "InProgress"|"Failed"|"Completed"|"Stopped"|"Stopping"|string;
129 export type HumanLoopSummaries = HumanLoopSummary[];
130 export interface HumanLoopSummary {
131 /**
132 * The name of the human loop.
133 */
134 HumanLoopName?: HumanLoopName;
135 /**
136 * The status of the human loop. Valid values:
137 */
138 HumanLoopStatus?: HumanLoopStatus;
139 /**
140 * When Amazon Augmented AI created the human loop.
141 */
142 CreationTime?: Timestamp;
143 /**
144 * The reason why the human loop failed. A failure reason is returned only when the status of the human loop is Failed.
145 */
146 FailureReason?: FailureReason;
147 /**
148 * The Amazon Resource Name (ARN) of the flow definition.
149 */
150 FlowDefinitionArn?: FlowDefinitionArn;
151 }
152 export type InputContent = string;
153 export interface ListHumanLoopsRequest {
154 /**
155 * (Optional) The timestamp of the date when you want the human loops to begin in ISO 8601 format. For example, 2020-02-24.
156 */
157 CreationTimeAfter?: Timestamp;
158 /**
159 * (Optional) The timestamp of the date before which you want the human loops to begin in ISO 8601 format. For example, 2020-02-24.
160 */
161 CreationTimeBefore?: Timestamp;
162 /**
163 * The Amazon Resource Name (ARN) of a flow definition.
164 */
165 FlowDefinitionArn: FlowDefinitionArn;
166 /**
167 * An optional value that specifies whether you want the results sorted in Ascending or Descending order.
168 */
169 SortOrder?: SortOrder;
170 /**
171 * A token to resume pagination.
172 */
173 NextToken?: NextToken;
174 /**
175 * The total number of items to return. If the total number of available items is more than the value specified in MaxResults, then a NextToken will be provided in the output that you can use to resume pagination.
176 */
177 MaxResults?: MaxResults;
178 }
179 export interface ListHumanLoopsResponse {
180 /**
181 * An array of objects containing information about the human loops.
182 */
183 HumanLoopSummaries: HumanLoopSummaries;
184 /**
185 * A token to resume pagination.
186 */
187 NextToken?: NextToken;
188 }
189 export type MaxResults = number;
190 export type NextToken = string;
191 export type SortOrder = "Ascending"|"Descending"|string;
192 export interface StartHumanLoopRequest {
193 /**
194 * The name of the human loop.
195 */
196 HumanLoopName: HumanLoopName;
197 /**
198 * The Amazon Resource Name (ARN) of the flow definition.
199 */
200 FlowDefinitionArn: FlowDefinitionArn;
201 /**
202 * An object containing information about the human loop.
203 */
204 HumanLoopInput: HumanLoopInput;
205 /**
206 * Attributes of the data specified by the customer.
207 */
208 DataAttributes?: HumanLoopDataAttributes;
209 }
210 export interface StartHumanLoopResponse {
211 /**
212 * The Amazon Resource Name (ARN) of the human loop.
213 */
214 HumanLoopArn?: HumanLoopArn;
215 }
216 export interface StopHumanLoopRequest {
217 /**
218 * The name of the human loop you want to stop.
219 */
220 HumanLoopName: HumanLoopName;
221 }
222 export interface StopHumanLoopResponse {
223 }
224 export type String = string;
225 export type Timestamp = Date;
226 /**
227 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
228 */
229 export type apiVersion = "2019-11-07"|"latest"|string;
230 export interface ClientApiVersions {
231 /**
232 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
233 */
234 apiVersion?: apiVersion;
235 }
236 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
237 /**
238 * Contains interfaces for use with the AugmentedAIRuntime client.
239 */
240 export import Types = AugmentedAIRuntime;
241}
242export = AugmentedAIRuntime;