1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class AugmentedAIRuntime extends Service {
|
9 | |
10 |
|
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 | }
|
55 | declare namespace AugmentedAIRuntime {
|
56 | export type ContentClassifier = "FreeOfPersonallyIdentifiableInformation"|"FreeOfAdultContent"|string;
|
57 | export type ContentClassifiers = ContentClassifier[];
|
58 | export interface DeleteHumanLoopRequest {
|
59 | |
60 |
|
61 |
|
62 | HumanLoopName: HumanLoopName;
|
63 | }
|
64 | export interface DeleteHumanLoopResponse {
|
65 | }
|
66 | export interface DescribeHumanLoopRequest {
|
67 | |
68 |
|
69 |
|
70 | HumanLoopName: HumanLoopName;
|
71 | }
|
72 | export interface DescribeHumanLoopResponse {
|
73 | |
74 |
|
75 |
|
76 | CreationTime: Timestamp;
|
77 | |
78 |
|
79 |
|
80 | FailureReason?: String;
|
81 | |
82 |
|
83 |
|
84 | FailureCode?: String;
|
85 | |
86 |
|
87 |
|
88 | HumanLoopStatus: HumanLoopStatus;
|
89 | |
90 |
|
91 |
|
92 | HumanLoopName: HumanLoopName;
|
93 | |
94 |
|
95 |
|
96 | HumanLoopArn: HumanLoopArn;
|
97 | |
98 |
|
99 |
|
100 | FlowDefinitionArn: FlowDefinitionArn;
|
101 | |
102 |
|
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 |
|
112 |
|
113 | ContentClassifiers: ContentClassifiers;
|
114 | }
|
115 | export interface HumanLoopInput {
|
116 | |
117 |
|
118 |
|
119 | InputContent: InputContent;
|
120 | }
|
121 | export type HumanLoopName = string;
|
122 | export interface HumanLoopOutput {
|
123 | |
124 |
|
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 |
|
133 |
|
134 | HumanLoopName?: HumanLoopName;
|
135 | |
136 |
|
137 |
|
138 | HumanLoopStatus?: HumanLoopStatus;
|
139 | |
140 |
|
141 |
|
142 | CreationTime?: Timestamp;
|
143 | |
144 |
|
145 |
|
146 | FailureReason?: FailureReason;
|
147 | |
148 |
|
149 |
|
150 | FlowDefinitionArn?: FlowDefinitionArn;
|
151 | }
|
152 | export type InputContent = string;
|
153 | export interface ListHumanLoopsRequest {
|
154 | |
155 |
|
156 |
|
157 | CreationTimeAfter?: Timestamp;
|
158 | |
159 |
|
160 |
|
161 | CreationTimeBefore?: Timestamp;
|
162 | |
163 |
|
164 |
|
165 | FlowDefinitionArn: FlowDefinitionArn;
|
166 | |
167 |
|
168 |
|
169 | SortOrder?: SortOrder;
|
170 | |
171 |
|
172 |
|
173 | NextToken?: NextToken;
|
174 | |
175 |
|
176 |
|
177 | MaxResults?: MaxResults;
|
178 | }
|
179 | export interface ListHumanLoopsResponse {
|
180 | |
181 |
|
182 |
|
183 | HumanLoopSummaries: HumanLoopSummaries;
|
184 | |
185 |
|
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 |
|
195 |
|
196 | HumanLoopName: HumanLoopName;
|
197 | |
198 |
|
199 |
|
200 | FlowDefinitionArn: FlowDefinitionArn;
|
201 | |
202 |
|
203 |
|
204 | HumanLoopInput: HumanLoopInput;
|
205 | |
206 |
|
207 |
|
208 | DataAttributes?: HumanLoopDataAttributes;
|
209 | }
|
210 | export interface StartHumanLoopResponse {
|
211 | |
212 |
|
213 |
|
214 | HumanLoopArn?: HumanLoopArn;
|
215 | }
|
216 | export interface StopHumanLoopRequest {
|
217 | |
218 |
|
219 |
|
220 | HumanLoopName: HumanLoopName;
|
221 | }
|
222 | export interface StopHumanLoopResponse {
|
223 | }
|
224 | export type String = string;
|
225 | export type Timestamp = Date;
|
226 | |
227 |
|
228 |
|
229 | export type apiVersion = "2019-11-07"|"latest"|string;
|
230 | export interface ClientApiVersions {
|
231 | |
232 |
|
233 |
|
234 | apiVersion?: apiVersion;
|
235 | }
|
236 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
237 | |
238 |
|
239 |
|
240 | export import Types = AugmentedAIRuntime;
|
241 | }
|
242 | export = AugmentedAIRuntime;
|