| 1 | { |
| 2 | "version":"2.0", |
| 3 | "metadata":{ |
| 4 | "apiVersion":"2018-03-22", |
| 5 | "endpointPrefix":"personalize-events", |
| 6 | "jsonVersion":"1.1", |
| 7 | "protocol":"rest-json", |
| 8 | "serviceFullName":"Amazon Personalize Events", |
| 9 | "serviceId":"Personalize Events", |
| 10 | "signatureVersion":"v4", |
| 11 | "signingName":"personalize", |
| 12 | "uid":"personalize-events-2018-03-22" |
| 13 | }, |
| 14 | "operations":{ |
| 15 | "PutActionInteractions":{ |
| 16 | "name":"PutActionInteractions", |
| 17 | "http":{ |
| 18 | "method":"POST", |
| 19 | "requestUri":"/action-interactions" |
| 20 | }, |
| 21 | "input":{"shape":"PutActionInteractionsRequest"}, |
| 22 | "errors":[ |
| 23 | {"shape":"InvalidInputException"}, |
| 24 | {"shape":"ResourceNotFoundException"}, |
| 25 | {"shape":"ResourceInUseException"} |
| 26 | ] |
| 27 | }, |
| 28 | "PutActions":{ |
| 29 | "name":"PutActions", |
| 30 | "http":{ |
| 31 | "method":"POST", |
| 32 | "requestUri":"/actions" |
| 33 | }, |
| 34 | "input":{"shape":"PutActionsRequest"}, |
| 35 | "errors":[ |
| 36 | {"shape":"InvalidInputException"}, |
| 37 | {"shape":"ResourceNotFoundException"}, |
| 38 | {"shape":"ResourceInUseException"} |
| 39 | ] |
| 40 | }, |
| 41 | "PutEvents":{ |
| 42 | "name":"PutEvents", |
| 43 | "http":{ |
| 44 | "method":"POST", |
| 45 | "requestUri":"/events" |
| 46 | }, |
| 47 | "input":{"shape":"PutEventsRequest"}, |
| 48 | "errors":[ |
| 49 | {"shape":"InvalidInputException"} |
| 50 | ] |
| 51 | }, |
| 52 | "PutItems":{ |
| 53 | "name":"PutItems", |
| 54 | "http":{ |
| 55 | "method":"POST", |
| 56 | "requestUri":"/items" |
| 57 | }, |
| 58 | "input":{"shape":"PutItemsRequest"}, |
| 59 | "errors":[ |
| 60 | {"shape":"InvalidInputException"}, |
| 61 | {"shape":"ResourceNotFoundException"}, |
| 62 | {"shape":"ResourceInUseException"} |
| 63 | ] |
| 64 | }, |
| 65 | "PutUsers":{ |
| 66 | "name":"PutUsers", |
| 67 | "http":{ |
| 68 | "method":"POST", |
| 69 | "requestUri":"/users" |
| 70 | }, |
| 71 | "input":{"shape":"PutUsersRequest"}, |
| 72 | "errors":[ |
| 73 | {"shape":"InvalidInputException"}, |
| 74 | {"shape":"ResourceNotFoundException"}, |
| 75 | {"shape":"ResourceInUseException"} |
| 76 | ] |
| 77 | } |
| 78 | }, |
| 79 | "shapes":{ |
| 80 | "Action":{ |
| 81 | "type":"structure", |
| 82 | "required":["actionId"], |
| 83 | "members":{ |
| 84 | "actionId":{"shape":"StringType"}, |
| 85 | "properties":{ |
| 86 | "shape":"ActionProperties", |
| 87 | "jsonvalue":true |
| 88 | } |
| 89 | } |
| 90 | }, |
| 91 | "ActionId":{ |
| 92 | "type":"string", |
| 93 | "max":256, |
| 94 | "min":1, |
| 95 | "sensitive":true |
| 96 | }, |
| 97 | "ActionImpression":{ |
| 98 | "type":"list", |
| 99 | "member":{"shape":"ActionId"}, |
| 100 | "max":25, |
| 101 | "min":1 |
| 102 | }, |
| 103 | "ActionInteraction":{ |
| 104 | "type":"structure", |
| 105 | "required":[ |
| 106 | "actionId", |
| 107 | "sessionId", |
| 108 | "timestamp", |
| 109 | "eventType" |
| 110 | ], |
| 111 | "members":{ |
| 112 | "actionId":{"shape":"ActionId"}, |
| 113 | "userId":{"shape":"UserId"}, |
| 114 | "sessionId":{"shape":"StringType"}, |
| 115 | "timestamp":{"shape":"Date"}, |
| 116 | "eventType":{"shape":"StringType"}, |
| 117 | "eventId":{"shape":"StringType"}, |
| 118 | "recommendationId":{"shape":"RecommendationId"}, |
| 119 | "impression":{"shape":"ActionImpression"}, |
| 120 | "properties":{ |
| 121 | "shape":"ActionInteractionProperties", |
| 122 | "jsonvalue":true |
| 123 | } |
| 124 | } |
| 125 | }, |
| 126 | "ActionInteractionProperties":{ |
| 127 | "type":"string", |
| 128 | "max":1024, |
| 129 | "min":1, |
| 130 | "sensitive":true |
| 131 | }, |
| 132 | "ActionInteractionsList":{ |
| 133 | "type":"list", |
| 134 | "member":{"shape":"ActionInteraction"}, |
| 135 | "max":10, |
| 136 | "min":1 |
| 137 | }, |
| 138 | "ActionList":{ |
| 139 | "type":"list", |
| 140 | "member":{"shape":"Action"}, |
| 141 | "max":10, |
| 142 | "min":1 |
| 143 | }, |
| 144 | "ActionProperties":{ |
| 145 | "type":"string", |
| 146 | "max":32000, |
| 147 | "min":1, |
| 148 | "sensitive":true |
| 149 | }, |
| 150 | "Arn":{ |
| 151 | "type":"string", |
| 152 | "max":256, |
| 153 | "pattern":"arn:([a-z\\d-]+):personalize:.*:.*:.+" |
| 154 | }, |
| 155 | "Date":{"type":"timestamp"}, |
| 156 | "ErrorMessage":{"type":"string"}, |
| 157 | "Event":{ |
| 158 | "type":"structure", |
| 159 | "required":[ |
| 160 | "eventType", |
| 161 | "sentAt" |
| 162 | ], |
| 163 | "members":{ |
| 164 | "eventId":{"shape":"StringType"}, |
| 165 | "eventType":{"shape":"StringType"}, |
| 166 | "eventValue":{"shape":"FloatType"}, |
| 167 | "itemId":{"shape":"ItemId"}, |
| 168 | "properties":{ |
| 169 | "shape":"EventPropertiesJSON", |
| 170 | "jsonvalue":true |
| 171 | }, |
| 172 | "sentAt":{"shape":"Date"}, |
| 173 | "recommendationId":{"shape":"RecommendationId"}, |
| 174 | "impression":{"shape":"Impression"}, |
| 175 | "metricAttribution":{"shape":"MetricAttribution"} |
| 176 | }, |
| 177 | "sensitive":true |
| 178 | }, |
| 179 | "EventAttributionSource":{ |
| 180 | "type":"string", |
| 181 | "max":1024, |
| 182 | "pattern":"^[\\x20-\\x7E]*[\\x21-\\x7E]+[\\x20-\\x7E]*$" |
| 183 | }, |
| 184 | "EventList":{ |
| 185 | "type":"list", |
| 186 | "member":{"shape":"Event"}, |
| 187 | "max":10, |
| 188 | "min":1 |
| 189 | }, |
| 190 | "EventPropertiesJSON":{ |
| 191 | "type":"string", |
| 192 | "max":1024, |
| 193 | "min":1, |
| 194 | "sensitive":true |
| 195 | }, |
| 196 | "FloatType":{"type":"float"}, |
| 197 | "Impression":{ |
| 198 | "type":"list", |
| 199 | "member":{"shape":"ItemId"}, |
| 200 | "max":25, |
| 201 | "min":1 |
| 202 | }, |
| 203 | "InvalidInputException":{ |
| 204 | "type":"structure", |
| 205 | "members":{ |
| 206 | "message":{"shape":"ErrorMessage"} |
| 207 | }, |
| 208 | "error":{"httpStatusCode":400}, |
| 209 | "exception":true |
| 210 | }, |
| 211 | "Item":{ |
| 212 | "type":"structure", |
| 213 | "required":["itemId"], |
| 214 | "members":{ |
| 215 | "itemId":{"shape":"StringType"}, |
| 216 | "properties":{ |
| 217 | "shape":"ItemProperties", |
| 218 | "jsonvalue":true |
| 219 | } |
| 220 | } |
| 221 | }, |
| 222 | "ItemId":{ |
| 223 | "type":"string", |
| 224 | "max":256, |
| 225 | "min":1, |
| 226 | "sensitive":true |
| 227 | }, |
| 228 | "ItemList":{ |
| 229 | "type":"list", |
| 230 | "member":{"shape":"Item"}, |
| 231 | "max":10, |
| 232 | "min":1 |
| 233 | }, |
| 234 | "ItemProperties":{ |
| 235 | "type":"string", |
| 236 | "max":32000, |
| 237 | "min":1, |
| 238 | "sensitive":true |
| 239 | }, |
| 240 | "MetricAttribution":{ |
| 241 | "type":"structure", |
| 242 | "required":["eventAttributionSource"], |
| 243 | "members":{ |
| 244 | "eventAttributionSource":{"shape":"EventAttributionSource"} |
| 245 | } |
| 246 | }, |
| 247 | "PutActionInteractionsRequest":{ |
| 248 | "type":"structure", |
| 249 | "required":[ |
| 250 | "trackingId", |
| 251 | "actionInteractions" |
| 252 | ], |
| 253 | "members":{ |
| 254 | "trackingId":{"shape":"StringType"}, |
| 255 | "actionInteractions":{"shape":"ActionInteractionsList"} |
| 256 | } |
| 257 | }, |
| 258 | "PutActionsRequest":{ |
| 259 | "type":"structure", |
| 260 | "required":[ |
| 261 | "datasetArn", |
| 262 | "actions" |
| 263 | ], |
| 264 | "members":{ |
| 265 | "datasetArn":{"shape":"Arn"}, |
| 266 | "actions":{"shape":"ActionList"} |
| 267 | } |
| 268 | }, |
| 269 | "PutEventsRequest":{ |
| 270 | "type":"structure", |
| 271 | "required":[ |
| 272 | "trackingId", |
| 273 | "sessionId", |
| 274 | "eventList" |
| 275 | ], |
| 276 | "members":{ |
| 277 | "trackingId":{"shape":"StringType"}, |
| 278 | "userId":{"shape":"UserId"}, |
| 279 | "sessionId":{"shape":"StringType"}, |
| 280 | "eventList":{"shape":"EventList"} |
| 281 | } |
| 282 | }, |
| 283 | "PutItemsRequest":{ |
| 284 | "type":"structure", |
| 285 | "required":[ |
| 286 | "datasetArn", |
| 287 | "items" |
| 288 | ], |
| 289 | "members":{ |
| 290 | "datasetArn":{"shape":"Arn"}, |
| 291 | "items":{"shape":"ItemList"} |
| 292 | } |
| 293 | }, |
| 294 | "PutUsersRequest":{ |
| 295 | "type":"structure", |
| 296 | "required":[ |
| 297 | "datasetArn", |
| 298 | "users" |
| 299 | ], |
| 300 | "members":{ |
| 301 | "datasetArn":{"shape":"Arn"}, |
| 302 | "users":{"shape":"UserList"} |
| 303 | } |
| 304 | }, |
| 305 | "RecommendationId":{ |
| 306 | "type":"string", |
| 307 | "max":40, |
| 308 | "min":1 |
| 309 | }, |
| 310 | "ResourceInUseException":{ |
| 311 | "type":"structure", |
| 312 | "members":{ |
| 313 | "message":{"shape":"ErrorMessage"} |
| 314 | }, |
| 315 | "error":{"httpStatusCode":409}, |
| 316 | "exception":true |
| 317 | }, |
| 318 | "ResourceNotFoundException":{ |
| 319 | "type":"structure", |
| 320 | "members":{ |
| 321 | "message":{"shape":"ErrorMessage"} |
| 322 | }, |
| 323 | "error":{"httpStatusCode":404}, |
| 324 | "exception":true |
| 325 | }, |
| 326 | "StringType":{ |
| 327 | "type":"string", |
| 328 | "max":256, |
| 329 | "min":1 |
| 330 | }, |
| 331 | "User":{ |
| 332 | "type":"structure", |
| 333 | "required":["userId"], |
| 334 | "members":{ |
| 335 | "userId":{"shape":"StringType"}, |
| 336 | "properties":{ |
| 337 | "shape":"UserProperties", |
| 338 | "jsonvalue":true |
| 339 | } |
| 340 | } |
| 341 | }, |
| 342 | "UserId":{ |
| 343 | "type":"string", |
| 344 | "max":256, |
| 345 | "min":1, |
| 346 | "sensitive":true |
| 347 | }, |
| 348 | "UserList":{ |
| 349 | "type":"list", |
| 350 | "member":{"shape":"User"}, |
| 351 | "max":10, |
| 352 | "min":1 |
| 353 | }, |
| 354 | "UserProperties":{ |
| 355 | "type":"string", |
| 356 | "max":24000, |
| 357 | "min":1, |
| 358 | "sensitive":true |
| 359 | } |
| 360 | } |
| 361 | } |