1{ 2 "version":"2.0", 3 "metadata":{ 4 "apiVersion":"2019-11-07", 5 "endpointPrefix":"a2i-runtime.sagemaker", 6 "jsonVersion":"1.1", 7 "protocol":"rest-json", 8 "serviceFullName":"Amazon Augmented AI Runtime", 9 "serviceId":"SageMaker A2I Runtime", 10 "signatureVersion":"v4", 11 "signingName":"sagemaker", 12 "uid":"sagemaker-a2i-runtime-2019-11-07" 13 }, 14 "operations":{ 15 "DeleteHumanLoop":{ 16 "name":"DeleteHumanLoop", 17 "http":{ 18 "method":"DELETE", 19 "requestUri":"/human-loops/{HumanLoopName}" 20 }, 21 "input":{"shape":"DeleteHumanLoopRequest"}, 22 "output":{"shape":"DeleteHumanLoopResponse"}, 23 "errors":[ 24 {"shape":"ValidationException"}, 25 {"shape":"ResourceNotFoundException"}, 26 {"shape":"ThrottlingException"}, 27 {"shape":"InternalServerException"} 28 ] 29 }, 30 "DescribeHumanLoop":{ 31 "name":"DescribeHumanLoop", 32 "http":{ 33 "method":"GET", 34 "requestUri":"/human-loops/{HumanLoopName}" 35 }, 36 "input":{"shape":"DescribeHumanLoopRequest"}, 37 "output":{"shape":"DescribeHumanLoopResponse"}, 38 "errors":[ 39 {"shape":"ValidationException"}, 40 {"shape":"ResourceNotFoundException"}, 41 {"shape":"ThrottlingException"}, 42 {"shape":"InternalServerException"} 43 ] 44 }, 45 "ListHumanLoops":{ 46 "name":"ListHumanLoops", 47 "http":{ 48 "method":"GET", 49 "requestUri":"/human-loops" 50 }, 51 "input":{"shape":"ListHumanLoopsRequest"}, 52 "output":{"shape":"ListHumanLoopsResponse"}, 53 "errors":[ 54 {"shape":"ValidationException"}, 55 {"shape":"ResourceNotFoundException"}, 56 {"shape":"ThrottlingException"}, 57 {"shape":"InternalServerException"} 58 ] 59 }, 60 "StartHumanLoop":{ 61 "name":"StartHumanLoop", 62 "http":{ 63 "method":"POST", 64 "requestUri":"/human-loops" 65 }, 66 "input":{"shape":"StartHumanLoopRequest"}, 67 "output":{"shape":"StartHumanLoopResponse"}, 68 "errors":[ 69 {"shape":"ValidationException"}, 70 {"shape":"ThrottlingException"}, 71 {"shape":"ServiceQuotaExceededException"}, 72 {"shape":"InternalServerException"}, 73 {"shape":"ConflictException"} 74 ] 75 }, 76 "StopHumanLoop":{ 77 "name":"StopHumanLoop", 78 "http":{ 79 "method":"POST", 80 "requestUri":"/human-loops/stop" 81 }, 82 "input":{"shape":"StopHumanLoopRequest"}, 83 "output":{"shape":"StopHumanLoopResponse"}, 84 "errors":[ 85 {"shape":"ValidationException"}, 86 {"shape":"ResourceNotFoundException"}, 87 {"shape":"ThrottlingException"}, 88 {"shape":"InternalServerException"} 89 ] 90 } 91 }, 92 "shapes":{ 93 "ConflictException":{ 94 "type":"structure", 95 "members":{ 96 "Message":{"shape":"FailureReason"} 97 }, 98 "error":{"httpStatusCode":409}, 99 "exception":true 100 }, 101 "ContentClassifier":{ 102 "type":"string", 103 "enum":[ 104 "FreeOfPersonallyIdentifiableInformation", 105 "FreeOfAdultContent" 106 ] 107 }, 108 "ContentClassifiers":{ 109 "type":"list", 110 "member":{"shape":"ContentClassifier"}, 111 "max":256 112 }, 113 "DeleteHumanLoopRequest":{ 114 "type":"structure", 115 "required":["HumanLoopName"], 116 "members":{ 117 "HumanLoopName":{ 118 "shape":"HumanLoopName", 119 "location":"uri", 120 "locationName":"HumanLoopName" 121 } 122 } 123 }, 124 "DeleteHumanLoopResponse":{ 125 "type":"structure", 126 "members":{ 127 } 128 }, 129 "DescribeHumanLoopRequest":{ 130 "type":"structure", 131 "required":["HumanLoopName"], 132 "members":{ 133 "HumanLoopName":{ 134 "shape":"HumanLoopName", 135 "location":"uri", 136 "locationName":"HumanLoopName" 137 } 138 } 139 }, 140 "DescribeHumanLoopResponse":{ 141 "type":"structure", 142 "required":[ 143 "CreationTime", 144 "HumanLoopStatus", 145 "HumanLoopName", 146 "HumanLoopArn", 147 "FlowDefinitionArn" 148 ], 149 "members":{ 150 "CreationTime":{"shape":"Timestamp"}, 151 "FailureReason":{"shape":"String"}, 152 "FailureCode":{"shape":"String"}, 153 "HumanLoopStatus":{"shape":"HumanLoopStatus"}, 154 "HumanLoopName":{"shape":"HumanLoopName"}, 155 "HumanLoopArn":{"shape":"HumanLoopArn"}, 156 "FlowDefinitionArn":{"shape":"FlowDefinitionArn"}, 157 "HumanLoopOutput":{"shape":"HumanLoopOutput"} 158 } 159 }, 160 "FailureReason":{ 161 "type":"string", 162 "max":1024 163 }, 164 "FlowDefinitionArn":{ 165 "type":"string", 166 "max":1024, 167 "pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:flow-definition/.*" 168 }, 169 "HumanLoopArn":{ 170 "type":"string", 171 "max":1024, 172 "pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:human-loop/.*" 173 }, 174 "HumanLoopDataAttributes":{ 175 "type":"structure", 176 "required":["ContentClassifiers"], 177 "members":{ 178 "ContentClassifiers":{"shape":"ContentClassifiers"} 179 } 180 }, 181 "HumanLoopInput":{ 182 "type":"structure", 183 "required":["InputContent"], 184 "members":{ 185 "InputContent":{"shape":"InputContent"} 186 } 187 }, 188 "HumanLoopName":{ 189 "type":"string", 190 "max":63, 191 "min":1, 192 "pattern":"^[a-z0-9](-*[a-z0-9])*$" 193 }, 194 "HumanLoopOutput":{ 195 "type":"structure", 196 "required":["OutputS3Uri"], 197 "members":{ 198 "OutputS3Uri":{"shape":"String"} 199 } 200 }, 201 "HumanLoopStatus":{ 202 "type":"string", 203 "enum":[ 204 "InProgress", 205 "Failed", 206 "Completed", 207 "Stopped", 208 "Stopping" 209 ] 210 }, 211 "HumanLoopSummaries":{ 212 "type":"list", 213 "member":{"shape":"HumanLoopSummary"} 214 }, 215 "HumanLoopSummary":{ 216 "type":"structure", 217 "members":{ 218 "HumanLoopName":{"shape":"HumanLoopName"}, 219 "HumanLoopStatus":{"shape":"HumanLoopStatus"}, 220 "CreationTime":{"shape":"Timestamp"}, 221 "FailureReason":{"shape":"FailureReason"}, 222 "FlowDefinitionArn":{"shape":"FlowDefinitionArn"} 223 } 224 }, 225 "InputContent":{ 226 "type":"string", 227 "max":3145728 228 }, 229 "InternalServerException":{ 230 "type":"structure", 231 "members":{ 232 "Message":{"shape":"FailureReason"} 233 }, 234 "error":{"httpStatusCode":500}, 235 "exception":true 236 }, 237 "ListHumanLoopsRequest":{ 238 "type":"structure", 239 "required":["FlowDefinitionArn"], 240 "members":{ 241 "CreationTimeAfter":{ 242 "shape":"Timestamp", 243 "location":"querystring", 244 "locationName":"CreationTimeAfter" 245 }, 246 "CreationTimeBefore":{ 247 "shape":"Timestamp", 248 "location":"querystring", 249 "locationName":"CreationTimeBefore" 250 }, 251 "FlowDefinitionArn":{ 252 "shape":"FlowDefinitionArn", 253 "location":"querystring", 254 "locationName":"FlowDefinitionArn" 255 }, 256 "SortOrder":{ 257 "shape":"SortOrder", 258 "location":"querystring", 259 "locationName":"SortOrder" 260 }, 261 "NextToken":{ 262 "shape":"NextToken", 263 "location":"querystring", 264 "locationName":"NextToken" 265 }, 266 "MaxResults":{ 267 "shape":"MaxResults", 268 "box":true, 269 "location":"querystring", 270 "locationName":"MaxResults" 271 } 272 } 273 }, 274 "ListHumanLoopsResponse":{ 275 "type":"structure", 276 "required":["HumanLoopSummaries"], 277 "members":{ 278 "HumanLoopSummaries":{"shape":"HumanLoopSummaries"}, 279 "NextToken":{"shape":"NextToken"} 280 } 281 }, 282 "MaxResults":{ 283 "type":"integer", 284 "max":100, 285 "min":1 286 }, 287 "NextToken":{ 288 "type":"string", 289 "max":8192, 290 "pattern":".*" 291 }, 292 "ResourceNotFoundException":{ 293 "type":"structure", 294 "members":{ 295 "Message":{"shape":"FailureReason"} 296 }, 297 "error":{"httpStatusCode":404}, 298 "exception":true 299 }, 300 "ServiceQuotaExceededException":{ 301 "type":"structure", 302 "members":{ 303 "Message":{"shape":"FailureReason"} 304 }, 305 "error":{"httpStatusCode":402}, 306 "exception":true 307 }, 308 "SortOrder":{ 309 "type":"string", 310 "enum":[ 311 "Ascending", 312 "Descending" 313 ] 314 }, 315 "StartHumanLoopRequest":{ 316 "type":"structure", 317 "required":[ 318 "HumanLoopName", 319 "FlowDefinitionArn", 320 "HumanLoopInput" 321 ], 322 "members":{ 323 "HumanLoopName":{"shape":"HumanLoopName"}, 324 "FlowDefinitionArn":{"shape":"FlowDefinitionArn"}, 325 "HumanLoopInput":{"shape":"HumanLoopInput"}, 326 "DataAttributes":{"shape":"HumanLoopDataAttributes"} 327 } 328 }, 329 "StartHumanLoopResponse":{ 330 "type":"structure", 331 "members":{ 332 "HumanLoopArn":{"shape":"HumanLoopArn"} 333 } 334 }, 335 "StopHumanLoopRequest":{ 336 "type":"structure", 337 "required":["HumanLoopName"], 338 "members":{ 339 "HumanLoopName":{"shape":"HumanLoopName"} 340 } 341 }, 342 "StopHumanLoopResponse":{ 343 "type":"structure", 344 "members":{ 345 } 346 }, 347 "String":{"type":"string"}, 348 "ThrottlingException":{ 349 "type":"structure", 350 "members":{ 351 "Message":{"shape":"FailureReason"} 352 }, 353 "error":{"httpStatusCode":429}, 354 "exception":true 355 }, 356 "Timestamp":{"type":"timestamp"}, 357 "ValidationException":{ 358 "type":"structure", 359 "members":{ 360 "Message":{"shape":"FailureReason"} 361 }, 362 "error":{"httpStatusCode":400}, 363 "exception":true 364 } 365 } 366} 367