| 1 |
{ |
| 2 |
"version":"2.0", |
| 3 |
"metadata":{ |
| 4 |
"apiVersion":"2020-07-01", |
| 5 |
"endpointPrefix":"featurestore-runtime.sagemaker", |
| 6 |
"jsonVersion":"1.1", |
| 7 |
"protocol":"rest-json", |
| 8 |
"serviceFullName":"Amazon SageMaker Feature Store Runtime", |
| 9 |
"serviceId":"SageMaker FeatureStore Runtime", |
| 10 |
"signatureVersion":"v4", |
| 11 |
"signingName":"sagemaker", |
| 12 |
"uid":"sagemaker-featurestore-runtime-2020-07-01" |
| 13 |
}, |
| 14 |
"operations":{ |
| 15 |
"BatchGetRecord":{ |
| 16 |
"name":"BatchGetRecord", |
| 17 |
"http":{ |
| 18 |
"method":"POST", |
| 19 |
"requestUri":"/BatchGetRecord" |
| 20 |
}, |
| 21 |
"input":{"shape":"BatchGetRecordRequest"}, |
| 22 |
"output":{"shape":"BatchGetRecordResponse"}, |
| 23 |
"errors":[ |
| 24 |
{"shape":"ValidationError"}, |
| 25 |
{"shape":"InternalFailure"}, |
| 26 |
{"shape":"ServiceUnavailable"}, |
| 27 |
{"shape":"AccessForbidden"} |
| 28 |
] |
| 29 |
}, |
| 30 |
"DeleteRecord":{ |
| 31 |
"name":"DeleteRecord", |
| 32 |
"http":{ |
| 33 |
"method":"DELETE", |
| 34 |
"requestUri":"/FeatureGroup/{FeatureGroupName}" |
| 35 |
}, |
| 36 |
"input":{"shape":"DeleteRecordRequest"}, |
| 37 |
"errors":[ |
| 38 |
{"shape":"ValidationError"}, |
| 39 |
{"shape":"InternalFailure"}, |
| 40 |
{"shape":"ServiceUnavailable"}, |
| 41 |
{"shape":"AccessForbidden"} |
| 42 |
] |
| 43 |
}, |
| 44 |
"GetRecord":{ |
| 45 |
"name":"GetRecord", |
| 46 |
"http":{ |
| 47 |
"method":"GET", |
| 48 |
"requestUri":"/FeatureGroup/{FeatureGroupName}" |
| 49 |
}, |
| 50 |
"input":{"shape":"GetRecordRequest"}, |
| 51 |
"output":{"shape":"GetRecordResponse"}, |
| 52 |
"errors":[ |
| 53 |
{"shape":"ValidationError"}, |
| 54 |
{"shape":"ResourceNotFound"}, |
| 55 |
{"shape":"InternalFailure"}, |
| 56 |
{"shape":"ServiceUnavailable"}, |
| 57 |
{"shape":"AccessForbidden"} |
| 58 |
] |
| 59 |
}, |
| 60 |
"PutRecord":{ |
| 61 |
"name":"PutRecord", |
| 62 |
"http":{ |
| 63 |
"method":"PUT", |
| 64 |
"requestUri":"/FeatureGroup/{FeatureGroupName}" |
| 65 |
}, |
| 66 |
"input":{"shape":"PutRecordRequest"}, |
| 67 |
"errors":[ |
| 68 |
{"shape":"ValidationError"}, |
| 69 |
{"shape":"InternalFailure"}, |
| 70 |
{"shape":"ServiceUnavailable"}, |
| 71 |
{"shape":"AccessForbidden"} |
| 72 |
] |
| 73 |
} |
| 74 |
}, |
| 75 |
"shapes":{ |
| 76 |
"AccessForbidden":{ |
| 77 |
"type":"structure", |
| 78 |
"members":{ |
| 79 |
"Message":{"shape":"Message"} |
| 80 |
}, |
| 81 |
"error":{"httpStatusCode":403}, |
| 82 |
"exception":true, |
| 83 |
"synthetic":true |
| 84 |
}, |
| 85 |
"BatchGetRecordError":{ |
| 86 |
"type":"structure", |
| 87 |
"required":[ |
| 88 |
"FeatureGroupName", |
| 89 |
"RecordIdentifierValueAsString", |
| 90 |
"ErrorCode", |
| 91 |
"ErrorMessage" |
| 92 |
], |
| 93 |
"members":{ |
| 94 |
"FeatureGroupName":{"shape":"ValueAsString"}, |
| 95 |
"RecordIdentifierValueAsString":{"shape":"ValueAsString"}, |
| 96 |
"ErrorCode":{"shape":"ValueAsString"}, |
| 97 |
"ErrorMessage":{"shape":"Message"} |
| 98 |
} |
| 99 |
}, |
| 100 |
"BatchGetRecordErrors":{ |
| 101 |
"type":"list", |
| 102 |
"member":{"shape":"BatchGetRecordError"}, |
| 103 |
"min":0 |
| 104 |
}, |
| 105 |
"BatchGetRecordIdentifier":{ |
| 106 |
"type":"structure", |
| 107 |
"required":[ |
| 108 |
"FeatureGroupName", |
| 109 |
"RecordIdentifiersValueAsString" |
| 110 |
], |
| 111 |
"members":{ |
| 112 |
"FeatureGroupName":{"shape":"FeatureGroupNameOrArn"}, |
| 113 |
"RecordIdentifiersValueAsString":{"shape":"RecordIdentifiers"}, |
| 114 |
"FeatureNames":{"shape":"FeatureNames"} |
| 115 |
} |
| 116 |
}, |
| 117 |
"BatchGetRecordIdentifiers":{ |
| 118 |
"type":"list", |
| 119 |
"member":{"shape":"BatchGetRecordIdentifier"}, |
| 120 |
"max":10, |
| 121 |
"min":1 |
| 122 |
}, |
| 123 |
"BatchGetRecordRequest":{ |
| 124 |
"type":"structure", |
| 125 |
"required":["Identifiers"], |
| 126 |
"members":{ |
| 127 |
"Identifiers":{"shape":"BatchGetRecordIdentifiers"}, |
| 128 |
"ExpirationTimeResponse":{"shape":"ExpirationTimeResponse"} |
| 129 |
} |
| 130 |
}, |
| 131 |
"BatchGetRecordResponse":{ |
| 132 |
"type":"structure", |
| 133 |
"required":[ |
| 134 |
"Records", |
| 135 |
"Errors", |
| 136 |
"UnprocessedIdentifiers" |
| 137 |
], |
| 138 |
"members":{ |
| 139 |
"Records":{"shape":"BatchGetRecordResultDetails"}, |
| 140 |
"Errors":{"shape":"BatchGetRecordErrors"}, |
| 141 |
"UnprocessedIdentifiers":{"shape":"UnprocessedIdentifiers"} |
| 142 |
} |
| 143 |
}, |
| 144 |
"BatchGetRecordResultDetail":{ |
| 145 |
"type":"structure", |
| 146 |
"required":[ |
| 147 |
"FeatureGroupName", |
| 148 |
"RecordIdentifierValueAsString", |
| 149 |
"Record" |
| 150 |
], |
| 151 |
"members":{ |
| 152 |
"FeatureGroupName":{"shape":"ValueAsString"}, |
| 153 |
"RecordIdentifierValueAsString":{"shape":"ValueAsString"}, |
| 154 |
"Record":{"shape":"Record"}, |
| 155 |
"ExpiresAt":{"shape":"ExpiresAt"} |
| 156 |
} |
| 157 |
}, |
| 158 |
"BatchGetRecordResultDetails":{ |
| 159 |
"type":"list", |
| 160 |
"member":{"shape":"BatchGetRecordResultDetail"}, |
| 161 |
"min":0 |
| 162 |
}, |
| 163 |
"DeleteRecordRequest":{ |
| 164 |
"type":"structure", |
| 165 |
"required":[ |
| 166 |
"FeatureGroupName", |
| 167 |
"RecordIdentifierValueAsString", |
| 168 |
"EventTime" |
| 169 |
], |
| 170 |
"members":{ |
| 171 |
"FeatureGroupName":{ |
| 172 |
"shape":"FeatureGroupNameOrArn", |
| 173 |
"location":"uri", |
| 174 |
"locationName":"FeatureGroupName" |
| 175 |
}, |
| 176 |
"RecordIdentifierValueAsString":{ |
| 177 |
"shape":"ValueAsString", |
| 178 |
"location":"querystring", |
| 179 |
"locationName":"RecordIdentifierValueAsString" |
| 180 |
}, |
| 181 |
"EventTime":{ |
| 182 |
"shape":"ValueAsString", |
| 183 |
"location":"querystring", |
| 184 |
"locationName":"EventTime" |
| 185 |
}, |
| 186 |
"TargetStores":{ |
| 187 |
"shape":"TargetStores", |
| 188 |
"location":"querystring", |
| 189 |
"locationName":"TargetStores" |
| 190 |
}, |
| 191 |
"DeletionMode":{ |
| 192 |
"shape":"DeletionMode", |
| 193 |
"location":"querystring", |
| 194 |
"locationName":"DeletionMode" |
| 195 |
} |
| 196 |
} |
| 197 |
}, |
| 198 |
"DeletionMode":{ |
| 199 |
"type":"string", |
| 200 |
"enum":[ |
| 201 |
"SoftDelete", |
| 202 |
"HardDelete" |
| 203 |
] |
| 204 |
}, |
| 205 |
"ExpirationTimeResponse":{ |
| 206 |
"type":"string", |
| 207 |
"enum":[ |
| 208 |
"Enabled", |
| 209 |
"Disabled" |
| 210 |
] |
| 211 |
}, |
| 212 |
"ExpiresAt":{"type":"string"}, |
| 213 |
"FeatureGroupNameOrArn":{ |
| 214 |
"type":"string", |
| 215 |
"max":150, |
| 216 |
"min":1, |
| 217 |
"pattern":"(arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:feature-group/)?([a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63})" |
| 218 |
}, |
| 219 |
"FeatureName":{ |
| 220 |
"type":"string", |
| 221 |
"max":64, |
| 222 |
"min":1, |
| 223 |
"pattern":"^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}" |
| 224 |
}, |
| 225 |
"FeatureNames":{ |
| 226 |
"type":"list", |
| 227 |
"member":{"shape":"FeatureName"}, |
| 228 |
"min":1 |
| 229 |
}, |
| 230 |
"FeatureValue":{ |
| 231 |
"type":"structure", |
| 232 |
"required":["FeatureName"], |
| 233 |
"members":{ |
| 234 |
"FeatureName":{"shape":"FeatureName"}, |
| 235 |
"ValueAsString":{"shape":"ValueAsString"}, |
| 236 |
"ValueAsStringList":{"shape":"ValueAsStringList"} |
| 237 |
} |
| 238 |
}, |
| 239 |
"GetRecordRequest":{ |
| 240 |
"type":"structure", |
| 241 |
"required":[ |
| 242 |
"FeatureGroupName", |
| 243 |
"RecordIdentifierValueAsString" |
| 244 |
], |
| 245 |
"members":{ |
| 246 |
"FeatureGroupName":{ |
| 247 |
"shape":"FeatureGroupNameOrArn", |
| 248 |
"location":"uri", |
| 249 |
"locationName":"FeatureGroupName" |
| 250 |
}, |
| 251 |
"RecordIdentifierValueAsString":{ |
| 252 |
"shape":"ValueAsString", |
| 253 |
"location":"querystring", |
| 254 |
"locationName":"RecordIdentifierValueAsString" |
| 255 |
}, |
| 256 |
"FeatureNames":{ |
| 257 |
"shape":"FeatureNames", |
| 258 |
"location":"querystring", |
| 259 |
"locationName":"FeatureName" |
| 260 |
}, |
| 261 |
"ExpirationTimeResponse":{ |
| 262 |
"shape":"ExpirationTimeResponse", |
| 263 |
"location":"querystring", |
| 264 |
"locationName":"ExpirationTimeResponse" |
| 265 |
} |
| 266 |
} |
| 267 |
}, |
| 268 |
"GetRecordResponse":{ |
| 269 |
"type":"structure", |
| 270 |
"members":{ |
| 271 |
"Record":{"shape":"Record"}, |
| 272 |
"ExpiresAt":{"shape":"ExpiresAt"} |
| 273 |
} |
| 274 |
}, |
| 275 |
"InternalFailure":{ |
| 276 |
"type":"structure", |
| 277 |
"members":{ |
| 278 |
"Message":{"shape":"Message"} |
| 279 |
}, |
| 280 |
"error":{"httpStatusCode":500}, |
| 281 |
"exception":true, |
| 282 |
"fault":true, |
| 283 |
"synthetic":true |
| 284 |
}, |
| 285 |
"Message":{ |
| 286 |
"type":"string", |
| 287 |
"max":2048 |
| 288 |
}, |
| 289 |
"PutRecordRequest":{ |
| 290 |
"type":"structure", |
| 291 |
"required":[ |
| 292 |
"FeatureGroupName", |
| 293 |
"Record" |
| 294 |
], |
| 295 |
"members":{ |
| 296 |
"FeatureGroupName":{ |
| 297 |
"shape":"FeatureGroupNameOrArn", |
| 298 |
"location":"uri", |
| 299 |
"locationName":"FeatureGroupName" |
| 300 |
}, |
| 301 |
"Record":{"shape":"Record"}, |
| 302 |
"TargetStores":{"shape":"TargetStores"}, |
| 303 |
"TtlDuration":{"shape":"TtlDuration"} |
| 304 |
} |
| 305 |
}, |
| 306 |
"Record":{ |
| 307 |
"type":"list", |
| 308 |
"member":{"shape":"FeatureValue"}, |
| 309 |
"min":1 |
| 310 |
}, |
| 311 |
"RecordIdentifiers":{ |
| 312 |
"type":"list", |
| 313 |
"member":{"shape":"ValueAsString"}, |
| 314 |
"max":100, |
| 315 |
"min":1 |
| 316 |
}, |
| 317 |
"ResourceNotFound":{ |
| 318 |
"type":"structure", |
| 319 |
"members":{ |
| 320 |
"Message":{"shape":"Message"} |
| 321 |
}, |
| 322 |
"error":{"httpStatusCode":404}, |
| 323 |
"exception":true |
| 324 |
}, |
| 325 |
"ServiceUnavailable":{ |
| 326 |
"type":"structure", |
| 327 |
"members":{ |
| 328 |
"Message":{"shape":"Message"} |
| 329 |
}, |
| 330 |
"error":{"httpStatusCode":503}, |
| 331 |
"exception":true, |
| 332 |
"fault":true, |
| 333 |
"synthetic":true |
| 334 |
}, |
| 335 |
"TargetStore":{ |
| 336 |
"type":"string", |
| 337 |
"enum":[ |
| 338 |
"OnlineStore", |
| 339 |
"OfflineStore" |
| 340 |
] |
| 341 |
}, |
| 342 |
"TargetStores":{ |
| 343 |
"type":"list", |
| 344 |
"member":{"shape":"TargetStore"}, |
| 345 |
"max":2, |
| 346 |
"min":1 |
| 347 |
}, |
| 348 |
"TtlDuration":{ |
| 349 |
"type":"structure", |
| 350 |
"required":[ |
| 351 |
"Unit", |
| 352 |
"Value" |
| 353 |
], |
| 354 |
"members":{ |
| 355 |
"Unit":{"shape":"TtlDurationUnit"}, |
| 356 |
"Value":{"shape":"TtlDurationValue"} |
| 357 |
} |
| 358 |
}, |
| 359 |
"TtlDurationUnit":{ |
| 360 |
"type":"string", |
| 361 |
"enum":[ |
| 362 |
"Seconds", |
| 363 |
"Minutes", |
| 364 |
"Hours", |
| 365 |
"Days", |
| 366 |
"Weeks" |
| 367 |
] |
| 368 |
}, |
| 369 |
"TtlDurationValue":{ |
| 370 |
"type":"integer", |
| 371 |
"min":1 |
| 372 |
}, |
| 373 |
"UnprocessedIdentifiers":{ |
| 374 |
"type":"list", |
| 375 |
"member":{"shape":"BatchGetRecordIdentifier"}, |
| 376 |
"min":0 |
| 377 |
}, |
| 378 |
"ValidationError":{ |
| 379 |
"type":"structure", |
| 380 |
"members":{ |
| 381 |
"Message":{"shape":"Message"} |
| 382 |
}, |
| 383 |
"error":{"httpStatusCode":400}, |
| 384 |
"exception":true, |
| 385 |
"synthetic":true |
| 386 |
}, |
| 387 |
"ValueAsString":{ |
| 388 |
"type":"string", |
| 389 |
"max":358400, |
| 390 |
"pattern":".*" |
| 391 |
}, |
| 392 |
"ValueAsStringList":{ |
| 393 |
"type":"list", |
| 394 |
"member":{"shape":"ValueAsString"}, |
| 395 |
"max":358400, |
| 396 |
"min":0 |
| 397 |
} |
| 398 |
} |
| 399 |
} |