1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
)
// Contains the details of the transaction to abort.
type AbortTransactionRequest struct {
noSmithyDocumentSerde
}
// Contains the details of the aborted transaction.
type AbortTransactionResult struct {
// Contains server-side performance information for the command.
TimingInformation *TimingInformation
noSmithyDocumentSerde
}
// Contains the details of the transaction to commit.
type CommitTransactionRequest struct {
// Specifies the commit digest for the transaction to commit. For every active
// transaction, the commit digest must be passed. QLDB validates CommitDigest and
// rejects the commit with an error if the digest computed on the client does not
// match the digest computed by QLDB. The purpose of the CommitDigest parameter is
// to ensure that QLDB commits a transaction if and only if the server has
// processed the exact set of statements sent by the client, in the same order that
// client sent them, and with no duplicates.
//
// This member is required.
CommitDigest []byte
// Specifies the transaction ID of the transaction to commit.
//
// This member is required.
TransactionId *string
noSmithyDocumentSerde
}
// Contains the details of the committed transaction.
type CommitTransactionResult struct {
// The commit digest of the committed transaction.
CommitDigest []byte
// Contains metrics about the number of I/O requests that were consumed.
ConsumedIOs *IOUsage
// Contains server-side performance information for the command.
TimingInformation *TimingInformation
// The transaction ID of the committed transaction.
TransactionId *string
noSmithyDocumentSerde
}
// Specifies a request to end the session.
type EndSessionRequest struct {
noSmithyDocumentSerde
}
// Contains the details of the ended session.
type EndSessionResult struct {
// Contains server-side performance information for the command.
TimingInformation *TimingInformation
noSmithyDocumentSerde
}
// Specifies a request to execute a statement.
type ExecuteStatementRequest struct {
// Specifies the statement of the request.
//
// This member is required.
Statement *string
// Specifies the transaction ID of the request.
//
// This member is required.
TransactionId *string
// Specifies the parameters for the parameterized statement in the request.
Parameters []ValueHolder
noSmithyDocumentSerde
}
// Contains the details of the executed statement.
type ExecuteStatementResult struct {
// Contains metrics about the number of I/O requests that were consumed.
ConsumedIOs *IOUsage
// Contains the details of the first fetched page.
FirstPage *Page
// Contains server-side performance information for the command.
TimingInformation *TimingInformation
noSmithyDocumentSerde
}
// Specifies the details of the page to be fetched.
type FetchPageRequest struct {
// Specifies the next page token of the page to be fetched.
//
// This member is required.
NextPageToken *string
// Specifies the transaction ID of the page to be fetched.
//
// This member is required.
TransactionId *string
noSmithyDocumentSerde
}
// Contains the page that was fetched.
type FetchPageResult struct {
// Contains metrics about the number of I/O requests that were consumed.
ConsumedIOs *IOUsage
// Contains details of the fetched page.
Page *Page
// Contains server-side performance information for the command.
TimingInformation *TimingInformation
noSmithyDocumentSerde
}
// Contains I/O usage metrics for a command that was invoked.
type IOUsage struct {
// The number of read I/O requests that the command made.
ReadIOs int64
// The number of write I/O requests that the command made.
WriteIOs int64
noSmithyDocumentSerde
}
// Contains details of the fetched page.
type Page struct {
// The token of the next page.
NextPageToken *string
// A structure that contains values in multiple encoding formats.
Values []ValueHolder
noSmithyDocumentSerde
}
// Specifies a request to start a new session.
type StartSessionRequest struct {
// The name of the ledger to start a new session against.
//
// This member is required.
LedgerName *string
noSmithyDocumentSerde
}
// Contains the details of the started session.
type StartSessionResult struct {
// Session token of the started session. This SessionToken is required for every
// subsequent command that is issued during the current session.
SessionToken *string
// Contains server-side performance information for the command.
TimingInformation *TimingInformation
noSmithyDocumentSerde
}
// Specifies a request to start a transaction.
type StartTransactionRequest struct {
noSmithyDocumentSerde
}
// Contains the details of the started transaction.
type StartTransactionResult struct {
// Contains server-side performance information for the command.
TimingInformation *TimingInformation
// The transaction ID of the started transaction.
TransactionId *string
noSmithyDocumentSerde
}
// Contains server-side performance information for a command. Amazon QLDB
// captures timing information between the times when it receives the request and
// when it sends the corresponding response.
type TimingInformation struct {
// The amount of time that QLDB spent on processing the command, measured in
// milliseconds.
ProcessingTimeMilliseconds int64
noSmithyDocumentSerde
}
// A structure that can contain a value in multiple encoding formats.
type ValueHolder struct {
// An Amazon Ion binary value contained in a ValueHolder structure.
IonBinary []byte
// An Amazon Ion plaintext value contained in a ValueHolder structure.
IonText *string
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
|