| 1 |
{ |
| 2 |
"version":"2.0", |
| 3 |
"metadata":{ |
| 4 |
"apiVersion":"2019-07-11", |
| 5 |
"endpointPrefix":"session.qldb", |
| 6 |
"jsonVersion":"1.0", |
| 7 |
"protocol":"json", |
| 8 |
"serviceAbbreviation":"QLDB Session", |
| 9 |
"serviceFullName":"Amazon QLDB Session", |
| 10 |
"serviceId":"QLDB Session", |
| 11 |
"signatureVersion":"v4", |
| 12 |
"signingName":"qldb", |
| 13 |
"targetPrefix":"QLDBSession", |
| 14 |
"uid":"qldb-session-2019-07-11" |
| 15 |
}, |
| 16 |
"operations":{ |
| 17 |
"SendCommand":{ |
| 18 |
"name":"SendCommand", |
| 19 |
"http":{ |
| 20 |
"method":"POST", |
| 21 |
"requestUri":"/" |
| 22 |
}, |
| 23 |
"input":{"shape":"SendCommandRequest"}, |
| 24 |
"output":{"shape":"SendCommandResult"}, |
| 25 |
"errors":[ |
| 26 |
{"shape":"BadRequestException"}, |
| 27 |
{"shape":"InvalidSessionException"}, |
| 28 |
{"shape":"OccConflictException"}, |
| 29 |
{"shape":"RateExceededException"}, |
| 30 |
{"shape":"LimitExceededException"}, |
| 31 |
{"shape":"CapacityExceededException"} |
| 32 |
] |
| 33 |
} |
| 34 |
}, |
| 35 |
"shapes":{ |
| 36 |
"AbortTransactionRequest":{ |
| 37 |
"type":"structure", |
| 38 |
"members":{ |
| 39 |
} |
| 40 |
}, |
| 41 |
"AbortTransactionResult":{ |
| 42 |
"type":"structure", |
| 43 |
"members":{ |
| 44 |
"TimingInformation":{"shape":"TimingInformation"} |
| 45 |
} |
| 46 |
}, |
| 47 |
"BadRequestException":{ |
| 48 |
"type":"structure", |
| 49 |
"members":{ |
| 50 |
"Message":{"shape":"ErrorMessage"}, |
| 51 |
"Code":{"shape":"ErrorCode"} |
| 52 |
}, |
| 53 |
"exception":true |
| 54 |
}, |
| 55 |
"CapacityExceededException":{ |
| 56 |
"type":"structure", |
| 57 |
"members":{ |
| 58 |
"Message":{"shape":"ErrorMessage"} |
| 59 |
}, |
| 60 |
"exception":true |
| 61 |
}, |
| 62 |
"CommitDigest":{"type":"blob"}, |
| 63 |
"CommitTransactionRequest":{ |
| 64 |
"type":"structure", |
| 65 |
"required":[ |
| 66 |
"TransactionId", |
| 67 |
"CommitDigest" |
| 68 |
], |
| 69 |
"members":{ |
| 70 |
"TransactionId":{"shape":"TransactionId"}, |
| 71 |
"CommitDigest":{"shape":"CommitDigest"} |
| 72 |
} |
| 73 |
}, |
| 74 |
"CommitTransactionResult":{ |
| 75 |
"type":"structure", |
| 76 |
"members":{ |
| 77 |
"TransactionId":{"shape":"TransactionId"}, |
| 78 |
"CommitDigest":{"shape":"CommitDigest"}, |
| 79 |
"TimingInformation":{"shape":"TimingInformation"}, |
| 80 |
"ConsumedIOs":{"shape":"IOUsage"} |
| 81 |
} |
| 82 |
}, |
| 83 |
"EndSessionRequest":{ |
| 84 |
"type":"structure", |
| 85 |
"members":{ |
| 86 |
} |
| 87 |
}, |
| 88 |
"EndSessionResult":{ |
| 89 |
"type":"structure", |
| 90 |
"members":{ |
| 91 |
"TimingInformation":{"shape":"TimingInformation"} |
| 92 |
} |
| 93 |
}, |
| 94 |
"ErrorCode":{"type":"string"}, |
| 95 |
"ErrorMessage":{"type":"string"}, |
| 96 |
"ExecuteStatementRequest":{ |
| 97 |
"type":"structure", |
| 98 |
"required":[ |
| 99 |
"TransactionId", |
| 100 |
"Statement" |
| 101 |
], |
| 102 |
"members":{ |
| 103 |
"TransactionId":{"shape":"TransactionId"}, |
| 104 |
"Statement":{"shape":"Statement"}, |
| 105 |
"Parameters":{"shape":"StatementParameters"} |
| 106 |
} |
| 107 |
}, |
| 108 |
"ExecuteStatementResult":{ |
| 109 |
"type":"structure", |
| 110 |
"members":{ |
| 111 |
"FirstPage":{"shape":"Page"}, |
| 112 |
"TimingInformation":{"shape":"TimingInformation"}, |
| 113 |
"ConsumedIOs":{"shape":"IOUsage"} |
| 114 |
} |
| 115 |
}, |
| 116 |
"FetchPageRequest":{ |
| 117 |
"type":"structure", |
| 118 |
"required":[ |
| 119 |
"TransactionId", |
| 120 |
"NextPageToken" |
| 121 |
], |
| 122 |
"members":{ |
| 123 |
"TransactionId":{"shape":"TransactionId"}, |
| 124 |
"NextPageToken":{"shape":"PageToken"} |
| 125 |
} |
| 126 |
}, |
| 127 |
"FetchPageResult":{ |
| 128 |
"type":"structure", |
| 129 |
"members":{ |
| 130 |
"Page":{"shape":"Page"}, |
| 131 |
"TimingInformation":{"shape":"TimingInformation"}, |
| 132 |
"ConsumedIOs":{"shape":"IOUsage"} |
| 133 |
} |
| 134 |
}, |
| 135 |
"IOUsage":{ |
| 136 |
"type":"structure", |
| 137 |
"members":{ |
| 138 |
"ReadIOs":{"shape":"ReadIOs"}, |
| 139 |
"WriteIOs":{"shape":"WriteIOs"} |
| 140 |
} |
| 141 |
}, |
| 142 |
"InvalidSessionException":{ |
| 143 |
"type":"structure", |
| 144 |
"members":{ |
| 145 |
"Message":{"shape":"ErrorMessage"}, |
| 146 |
"Code":{"shape":"ErrorCode"} |
| 147 |
}, |
| 148 |
"exception":true |
| 149 |
}, |
| 150 |
"IonBinary":{ |
| 151 |
"type":"blob", |
| 152 |
"max":131072, |
| 153 |
"min":1 |
| 154 |
}, |
| 155 |
"IonText":{ |
| 156 |
"type":"string", |
| 157 |
"max":1048576, |
| 158 |
"min":1 |
| 159 |
}, |
| 160 |
"LedgerName":{ |
| 161 |
"type":"string", |
| 162 |
"max":32, |
| 163 |
"min":1, |
| 164 |
"pattern":"(?!^.*--)(?!^[0-9]+$)(?!^-)(?!.*-$)^[A-Za-z0-9-]+$" |
| 165 |
}, |
| 166 |
"LimitExceededException":{ |
| 167 |
"type":"structure", |
| 168 |
"members":{ |
| 169 |
"Message":{"shape":"ErrorMessage"} |
| 170 |
}, |
| 171 |
"exception":true |
| 172 |
}, |
| 173 |
"OccConflictException":{ |
| 174 |
"type":"structure", |
| 175 |
"members":{ |
| 176 |
"Message":{"shape":"ErrorMessage"} |
| 177 |
}, |
| 178 |
"exception":true |
| 179 |
}, |
| 180 |
"Page":{ |
| 181 |
"type":"structure", |
| 182 |
"members":{ |
| 183 |
"Values":{"shape":"ValueHolders"}, |
| 184 |
"NextPageToken":{"shape":"PageToken"} |
| 185 |
} |
| 186 |
}, |
| 187 |
"PageToken":{ |
| 188 |
"type":"string", |
| 189 |
"max":1024, |
| 190 |
"min":4, |
| 191 |
"pattern":"^[A-Za-z-0-9+/=]+$" |
| 192 |
}, |
| 193 |
"ProcessingTimeMilliseconds":{"type":"long"}, |
| 194 |
"RateExceededException":{ |
| 195 |
"type":"structure", |
| 196 |
"members":{ |
| 197 |
"Message":{"shape":"ErrorMessage"} |
| 198 |
}, |
| 199 |
"exception":true |
| 200 |
}, |
| 201 |
"ReadIOs":{"type":"long"}, |
| 202 |
"SendCommandRequest":{ |
| 203 |
"type":"structure", |
| 204 |
"members":{ |
| 205 |
"SessionToken":{"shape":"SessionToken"}, |
| 206 |
"StartSession":{"shape":"StartSessionRequest"}, |
| 207 |
"StartTransaction":{"shape":"StartTransactionRequest"}, |
| 208 |
"EndSession":{"shape":"EndSessionRequest"}, |
| 209 |
"CommitTransaction":{"shape":"CommitTransactionRequest"}, |
| 210 |
"AbortTransaction":{"shape":"AbortTransactionRequest"}, |
| 211 |
"ExecuteStatement":{"shape":"ExecuteStatementRequest"}, |
| 212 |
"FetchPage":{"shape":"FetchPageRequest"} |
| 213 |
} |
| 214 |
}, |
| 215 |
"SendCommandResult":{ |
| 216 |
"type":"structure", |
| 217 |
"members":{ |
| 218 |
"StartSession":{"shape":"StartSessionResult"}, |
| 219 |
"StartTransaction":{"shape":"StartTransactionResult"}, |
| 220 |
"EndSession":{"shape":"EndSessionResult"}, |
| 221 |
"CommitTransaction":{"shape":"CommitTransactionResult"}, |
| 222 |
"AbortTransaction":{"shape":"AbortTransactionResult"}, |
| 223 |
"ExecuteStatement":{"shape":"ExecuteStatementResult"}, |
| 224 |
"FetchPage":{"shape":"FetchPageResult"} |
| 225 |
} |
| 226 |
}, |
| 227 |
"SessionToken":{ |
| 228 |
"type":"string", |
| 229 |
"max":1024, |
| 230 |
"min":4, |
| 231 |
"pattern":"^[A-Za-z-0-9+/=]+$" |
| 232 |
}, |
| 233 |
"StartSessionRequest":{ |
| 234 |
"type":"structure", |
| 235 |
"required":["LedgerName"], |
| 236 |
"members":{ |
| 237 |
"LedgerName":{"shape":"LedgerName"} |
| 238 |
} |
| 239 |
}, |
| 240 |
"StartSessionResult":{ |
| 241 |
"type":"structure", |
| 242 |
"members":{ |
| 243 |
"SessionToken":{"shape":"SessionToken"}, |
| 244 |
"TimingInformation":{"shape":"TimingInformation"} |
| 245 |
} |
| 246 |
}, |
| 247 |
"StartTransactionRequest":{ |
| 248 |
"type":"structure", |
| 249 |
"members":{ |
| 250 |
} |
| 251 |
}, |
| 252 |
"StartTransactionResult":{ |
| 253 |
"type":"structure", |
| 254 |
"members":{ |
| 255 |
"TransactionId":{"shape":"TransactionId"}, |
| 256 |
"TimingInformation":{"shape":"TimingInformation"} |
| 257 |
} |
| 258 |
}, |
| 259 |
"Statement":{ |
| 260 |
"type":"string", |
| 261 |
"max":100000, |
| 262 |
"min":1 |
| 263 |
}, |
| 264 |
"StatementParameters":{ |
| 265 |
"type":"list", |
| 266 |
"member":{"shape":"ValueHolder"} |
| 267 |
}, |
| 268 |
"TimingInformation":{ |
| 269 |
"type":"structure", |
| 270 |
"members":{ |
| 271 |
"ProcessingTimeMilliseconds":{"shape":"ProcessingTimeMilliseconds"} |
| 272 |
} |
| 273 |
}, |
| 274 |
"TransactionId":{ |
| 275 |
"type":"string", |
| 276 |
"max":22, |
| 277 |
"min":22, |
| 278 |
"pattern":"^[A-Za-z-0-9]+$" |
| 279 |
}, |
| 280 |
"ValueHolder":{ |
| 281 |
"type":"structure", |
| 282 |
"members":{ |
| 283 |
"IonBinary":{"shape":"IonBinary"}, |
| 284 |
"IonText":{"shape":"IonText"} |
| 285 |
} |
| 286 |
}, |
| 287 |
"ValueHolders":{ |
| 288 |
"type":"list", |
| 289 |
"member":{"shape":"ValueHolder"} |
| 290 |
}, |
| 291 |
"WriteIOs":{"type":"long"} |
| 292 |
} |
| 293 |
} |