aws-sdk-qldbsession 1.9.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20c385647d1c62b669f2c11c67f3c271ba33b57b238926c578bbfe2611d3b659
4
- data.tar.gz: 2e5d3320a59e6a582a6f1dc552a309c84c543329ed988e720add99fe7f59c649
3
+ metadata.gz: 710fd3318deb87e84c07700d34a68460ee44e6d518d4905e899bd36a97ff2edd
4
+ data.tar.gz: c4e979616b0af416efd0d0e2075adb32208d1a56c9764f718599e7f7c8f9c111
5
5
  SHA512:
6
- metadata.gz: 772f47be7bfd96f6e73ac98cf7a1765d22fd1df976b9d90d2ff9e79e140515f20bc6f3611a64719db3ac74a2a4201190fe2825a59e95544eaec1aa0faba26d8e
7
- data.tar.gz: 855b0bc9ac4ae96e6a4483afff04c4b56f7a7106fd135ae4f117ee94e91990a4fa32872dc23c637b8edfc6c262990428a08431aee6d498bac89a63e52579ddc9
6
+ metadata.gz: d8eb4be2d07794b2ef2ab1cae80b24709ad33a695bf5df6f42aba430ff95e30dcef0273aba8e318dfb40adbff7eb7647c9c465f7f1edd3088550c538bd866e71
7
+ data.tar.gz: dd32c69c68812db8f197e4c02e5f39b5c045a08029f9f9fb95635055140c49188f84aba6e9fd7beb6db087691738e5e5d5f11ce39c991663c4e152fcd8214367
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-qldbsession/customizations'
48
48
  # @!group service
49
49
  module Aws::QLDBSession
50
50
 
51
- GEM_VERSION = '1.9.0'
51
+ GEM_VERSION = '1.10.0'
52
52
 
53
53
  end
@@ -339,21 +339,21 @@ module Aws::QLDBSession
339
339
 
340
340
  # Sends a command to an Amazon QLDB ledger.
341
341
  #
342
- # <note markdown="1"> Instead of interacting directly with this API, we recommend that you
343
- # use the Amazon QLDB Driver or the QLDB Shell to execute data
344
- # transactions on a ledger.
342
+ # <note markdown="1"> Instead of interacting directly with this API, we recommend using the
343
+ # QLDB driver or the QLDB shell to execute data transactions on a
344
+ # ledger.
345
345
  #
346
- # * If you are working with an AWS SDK, use the QLDB Driver. The driver
347
- # provides a high-level abstraction layer above this `qldbsession`
346
+ # * If you are working with an AWS SDK, use the QLDB driver. The driver
347
+ # provides a high-level abstraction layer above this *QLDB Session*
348
348
  # data plane and manages `SendCommand` API calls for you. For
349
349
  # information and a list of supported programming languages, see
350
350
  # [Getting started with the driver][1] in the *Amazon QLDB Developer
351
351
  # Guide*.
352
352
  #
353
353
  # * If you are working with the AWS Command Line Interface (AWS CLI),
354
- # use the QLDB Shell. The shell is a command line interface that uses
355
- # the QLDB Driver to interact with a ledger. For information, see
356
- # [Accessing Amazon QLDB using the QLDB Shell][2].
354
+ # use the QLDB shell. The shell is a command line interface that uses
355
+ # the QLDB driver to interact with a ledger. For information, see
356
+ # [Accessing Amazon QLDB using the QLDB shell][2].
357
357
  #
358
358
  # </note>
359
359
  #
@@ -438,17 +438,30 @@ module Aws::QLDBSession
438
438
  # @example Response structure
439
439
  #
440
440
  # resp.start_session.session_token #=> String
441
+ # resp.start_session.timing_information.processing_time_milliseconds #=> Integer
441
442
  # resp.start_transaction.transaction_id #=> String
443
+ # resp.start_transaction.timing_information.processing_time_milliseconds #=> Integer
444
+ # resp.end_session.timing_information.processing_time_milliseconds #=> Integer
442
445
  # resp.commit_transaction.transaction_id #=> String
443
446
  # resp.commit_transaction.commit_digest #=> String
447
+ # resp.commit_transaction.timing_information.processing_time_milliseconds #=> Integer
448
+ # resp.commit_transaction.consumed_i_os.read_i_os #=> Integer
449
+ # resp.commit_transaction.consumed_i_os.write_i_os #=> Integer
450
+ # resp.abort_transaction.timing_information.processing_time_milliseconds #=> Integer
444
451
  # resp.execute_statement.first_page.values #=> Array
445
452
  # resp.execute_statement.first_page.values[0].ion_binary #=> String
446
453
  # resp.execute_statement.first_page.values[0].ion_text #=> String
447
454
  # resp.execute_statement.first_page.next_page_token #=> String
455
+ # resp.execute_statement.timing_information.processing_time_milliseconds #=> Integer
456
+ # resp.execute_statement.consumed_i_os.read_i_os #=> Integer
457
+ # resp.execute_statement.consumed_i_os.write_i_os #=> Integer
448
458
  # resp.fetch_page.page.values #=> Array
449
459
  # resp.fetch_page.page.values[0].ion_binary #=> String
450
460
  # resp.fetch_page.page.values[0].ion_text #=> String
451
461
  # resp.fetch_page.page.next_page_token #=> String
462
+ # resp.fetch_page.timing_information.processing_time_milliseconds #=> Integer
463
+ # resp.fetch_page.consumed_i_os.read_i_os #=> Integer
464
+ # resp.fetch_page.consumed_i_os.write_i_os #=> Integer
452
465
  #
453
466
  # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/SendCommand AWS API Documentation
454
467
  #
@@ -472,7 +485,7 @@ module Aws::QLDBSession
472
485
  params: params,
473
486
  config: config)
474
487
  context[:gem_name] = 'aws-sdk-qldbsession'
475
- context[:gem_version] = '1.9.0'
488
+ context[:gem_version] = '1.10.0'
476
489
  Seahorse::Client::Request.new(handlers, context)
477
490
  end
478
491
 
@@ -27,6 +27,7 @@ module Aws::QLDBSession
27
27
  ExecuteStatementResult = Shapes::StructureShape.new(name: 'ExecuteStatementResult')
28
28
  FetchPageRequest = Shapes::StructureShape.new(name: 'FetchPageRequest')
29
29
  FetchPageResult = Shapes::StructureShape.new(name: 'FetchPageResult')
30
+ IOUsage = Shapes::StructureShape.new(name: 'IOUsage')
30
31
  InvalidSessionException = Shapes::StructureShape.new(name: 'InvalidSessionException')
31
32
  IonBinary = Shapes::BlobShape.new(name: 'IonBinary')
32
33
  IonText = Shapes::StringShape.new(name: 'IonText')
@@ -35,7 +36,9 @@ module Aws::QLDBSession
35
36
  OccConflictException = Shapes::StructureShape.new(name: 'OccConflictException')
36
37
  Page = Shapes::StructureShape.new(name: 'Page')
37
38
  PageToken = Shapes::StringShape.new(name: 'PageToken')
39
+ ProcessingTimeMilliseconds = Shapes::IntegerShape.new(name: 'ProcessingTimeMilliseconds')
38
40
  RateExceededException = Shapes::StructureShape.new(name: 'RateExceededException')
41
+ ReadIOs = Shapes::IntegerShape.new(name: 'ReadIOs')
39
42
  SendCommandRequest = Shapes::StructureShape.new(name: 'SendCommandRequest')
40
43
  SendCommandResult = Shapes::StructureShape.new(name: 'SendCommandResult')
41
44
  SessionToken = Shapes::StringShape.new(name: 'SessionToken')
@@ -45,12 +48,15 @@ module Aws::QLDBSession
45
48
  StartTransactionResult = Shapes::StructureShape.new(name: 'StartTransactionResult')
46
49
  Statement = Shapes::StringShape.new(name: 'Statement')
47
50
  StatementParameters = Shapes::ListShape.new(name: 'StatementParameters')
51
+ TimingInformation = Shapes::StructureShape.new(name: 'TimingInformation')
48
52
  TransactionId = Shapes::StringShape.new(name: 'TransactionId')
49
53
  ValueHolder = Shapes::StructureShape.new(name: 'ValueHolder')
50
54
  ValueHolders = Shapes::ListShape.new(name: 'ValueHolders')
55
+ WriteIOs = Shapes::IntegerShape.new(name: 'WriteIOs')
51
56
 
52
57
  AbortTransactionRequest.struct_class = Types::AbortTransactionRequest
53
58
 
59
+ AbortTransactionResult.add_member(:timing_information, Shapes::ShapeRef.new(shape: TimingInformation, location_name: "TimingInformation"))
54
60
  AbortTransactionResult.struct_class = Types::AbortTransactionResult
55
61
 
56
62
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -63,10 +69,13 @@ module Aws::QLDBSession
63
69
 
64
70
  CommitTransactionResult.add_member(:transaction_id, Shapes::ShapeRef.new(shape: TransactionId, location_name: "TransactionId"))
65
71
  CommitTransactionResult.add_member(:commit_digest, Shapes::ShapeRef.new(shape: CommitDigest, location_name: "CommitDigest"))
72
+ CommitTransactionResult.add_member(:timing_information, Shapes::ShapeRef.new(shape: TimingInformation, location_name: "TimingInformation"))
73
+ CommitTransactionResult.add_member(:consumed_i_os, Shapes::ShapeRef.new(shape: IOUsage, location_name: "ConsumedIOs"))
66
74
  CommitTransactionResult.struct_class = Types::CommitTransactionResult
67
75
 
68
76
  EndSessionRequest.struct_class = Types::EndSessionRequest
69
77
 
78
+ EndSessionResult.add_member(:timing_information, Shapes::ShapeRef.new(shape: TimingInformation, location_name: "TimingInformation"))
70
79
  EndSessionResult.struct_class = Types::EndSessionResult
71
80
 
72
81
  ExecuteStatementRequest.add_member(:transaction_id, Shapes::ShapeRef.new(shape: TransactionId, required: true, location_name: "TransactionId"))
@@ -75,6 +84,8 @@ module Aws::QLDBSession
75
84
  ExecuteStatementRequest.struct_class = Types::ExecuteStatementRequest
76
85
 
77
86
  ExecuteStatementResult.add_member(:first_page, Shapes::ShapeRef.new(shape: Page, location_name: "FirstPage"))
87
+ ExecuteStatementResult.add_member(:timing_information, Shapes::ShapeRef.new(shape: TimingInformation, location_name: "TimingInformation"))
88
+ ExecuteStatementResult.add_member(:consumed_i_os, Shapes::ShapeRef.new(shape: IOUsage, location_name: "ConsumedIOs"))
78
89
  ExecuteStatementResult.struct_class = Types::ExecuteStatementResult
79
90
 
80
91
  FetchPageRequest.add_member(:transaction_id, Shapes::ShapeRef.new(shape: TransactionId, required: true, location_name: "TransactionId"))
@@ -82,8 +93,14 @@ module Aws::QLDBSession
82
93
  FetchPageRequest.struct_class = Types::FetchPageRequest
83
94
 
84
95
  FetchPageResult.add_member(:page, Shapes::ShapeRef.new(shape: Page, location_name: "Page"))
96
+ FetchPageResult.add_member(:timing_information, Shapes::ShapeRef.new(shape: TimingInformation, location_name: "TimingInformation"))
97
+ FetchPageResult.add_member(:consumed_i_os, Shapes::ShapeRef.new(shape: IOUsage, location_name: "ConsumedIOs"))
85
98
  FetchPageResult.struct_class = Types::FetchPageResult
86
99
 
100
+ IOUsage.add_member(:read_i_os, Shapes::ShapeRef.new(shape: ReadIOs, location_name: "ReadIOs"))
101
+ IOUsage.add_member(:write_i_os, Shapes::ShapeRef.new(shape: WriteIOs, location_name: "WriteIOs"))
102
+ IOUsage.struct_class = Types::IOUsage
103
+
87
104
  InvalidSessionException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
88
105
  InvalidSessionException.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "Code"))
89
106
  InvalidSessionException.struct_class = Types::InvalidSessionException
@@ -124,15 +141,20 @@ module Aws::QLDBSession
124
141
  StartSessionRequest.struct_class = Types::StartSessionRequest
125
142
 
126
143
  StartSessionResult.add_member(:session_token, Shapes::ShapeRef.new(shape: SessionToken, location_name: "SessionToken"))
144
+ StartSessionResult.add_member(:timing_information, Shapes::ShapeRef.new(shape: TimingInformation, location_name: "TimingInformation"))
127
145
  StartSessionResult.struct_class = Types::StartSessionResult
128
146
 
129
147
  StartTransactionRequest.struct_class = Types::StartTransactionRequest
130
148
 
131
149
  StartTransactionResult.add_member(:transaction_id, Shapes::ShapeRef.new(shape: TransactionId, location_name: "TransactionId"))
150
+ StartTransactionResult.add_member(:timing_information, Shapes::ShapeRef.new(shape: TimingInformation, location_name: "TimingInformation"))
132
151
  StartTransactionResult.struct_class = Types::StartTransactionResult
133
152
 
134
153
  StatementParameters.member = Shapes::ShapeRef.new(shape: ValueHolder)
135
154
 
155
+ TimingInformation.add_member(:processing_time_milliseconds, Shapes::ShapeRef.new(shape: ProcessingTimeMilliseconds, location_name: "ProcessingTimeMilliseconds"))
156
+ TimingInformation.struct_class = Types::TimingInformation
157
+
136
158
  ValueHolder.add_member(:ion_binary, Shapes::ShapeRef.new(shape: IonBinary, location_name: "IonBinary"))
137
159
  ValueHolder.add_member(:ion_text, Shapes::ShapeRef.new(shape: IonText, location_name: "IonText"))
138
160
  ValueHolder.struct_class = Types::ValueHolder
@@ -20,9 +20,17 @@ module Aws::QLDBSession
20
20
 
21
21
  # Contains the details of the aborted transaction.
22
22
  #
23
+ # @!attribute [rw] timing_information
24
+ # Contains server-side performance information for the command.
25
+ # @return [Types::TimingInformation]
26
+ #
23
27
  # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/AbortTransactionResult AWS API Documentation
24
28
  #
25
- class AbortTransactionResult < Aws::EmptyStructure; end
29
+ class AbortTransactionResult < Struct.new(
30
+ :timing_information)
31
+ SENSITIVE = []
32
+ include Aws::Structure
33
+ end
26
34
 
27
35
  # Returned if the request is malformed or contains an error such as an
28
36
  # invalid parameter value or a missing required parameter.
@@ -61,6 +69,11 @@ module Aws::QLDBSession
61
69
  # active transaction, the commit digest must be passed. QLDB validates
62
70
  # `CommitDigest` and rejects the commit with an error if the digest
63
71
  # computed on the client does not match the digest computed by QLDB.
72
+ #
73
+ # The purpose of the `CommitDigest` parameter is to ensure that QLDB
74
+ # commits a transaction if and only if the server has processed the
75
+ # exact set of statements sent by the client, in the same order that
76
+ # client sent them, and with no duplicates.
64
77
  # @return [String]
65
78
  #
66
79
  # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/CommitTransactionRequest AWS API Documentation
@@ -82,11 +95,22 @@ module Aws::QLDBSession
82
95
  # The commit digest of the committed transaction.
83
96
  # @return [String]
84
97
  #
98
+ # @!attribute [rw] timing_information
99
+ # Contains server-side performance information for the command.
100
+ # @return [Types::TimingInformation]
101
+ #
102
+ # @!attribute [rw] consumed_i_os
103
+ # Contains metrics about the number of I/O requests that were
104
+ # consumed.
105
+ # @return [Types::IOUsage]
106
+ #
85
107
  # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/CommitTransactionResult AWS API Documentation
86
108
  #
87
109
  class CommitTransactionResult < Struct.new(
88
110
  :transaction_id,
89
- :commit_digest)
111
+ :commit_digest,
112
+ :timing_information,
113
+ :consumed_i_os)
90
114
  SENSITIVE = []
91
115
  include Aws::Structure
92
116
  end
@@ -101,9 +125,17 @@ module Aws::QLDBSession
101
125
 
102
126
  # Contains the details of the ended session.
103
127
  #
128
+ # @!attribute [rw] timing_information
129
+ # Contains server-side performance information for the command.
130
+ # @return [Types::TimingInformation]
131
+ #
104
132
  # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/EndSessionResult AWS API Documentation
105
133
  #
106
- class EndSessionResult < Aws::EmptyStructure; end
134
+ class EndSessionResult < Struct.new(
135
+ :timing_information)
136
+ SENSITIVE = []
137
+ include Aws::Structure
138
+ end
107
139
 
108
140
  # Specifies a request to execute a statement.
109
141
  #
@@ -150,10 +182,21 @@ module Aws::QLDBSession
150
182
  # Contains the details of the first fetched page.
151
183
  # @return [Types::Page]
152
184
  #
185
+ # @!attribute [rw] timing_information
186
+ # Contains server-side performance information for the command.
187
+ # @return [Types::TimingInformation]
188
+ #
189
+ # @!attribute [rw] consumed_i_os
190
+ # Contains metrics about the number of I/O requests that were
191
+ # consumed.
192
+ # @return [Types::IOUsage]
193
+ #
153
194
  # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/ExecuteStatementResult AWS API Documentation
154
195
  #
155
196
  class ExecuteStatementResult < Struct.new(
156
- :first_page)
197
+ :first_page,
198
+ :timing_information,
199
+ :consumed_i_os)
157
200
  SENSITIVE = []
158
201
  include Aws::Structure
159
202
  end
@@ -191,10 +234,40 @@ module Aws::QLDBSession
191
234
  # Contains details of the fetched page.
192
235
  # @return [Types::Page]
193
236
  #
237
+ # @!attribute [rw] timing_information
238
+ # Contains server-side performance information for the command.
239
+ # @return [Types::TimingInformation]
240
+ #
241
+ # @!attribute [rw] consumed_i_os
242
+ # Contains metrics about the number of I/O requests that were
243
+ # consumed.
244
+ # @return [Types::IOUsage]
245
+ #
194
246
  # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/FetchPageResult AWS API Documentation
195
247
  #
196
248
  class FetchPageResult < Struct.new(
197
- :page)
249
+ :page,
250
+ :timing_information,
251
+ :consumed_i_os)
252
+ SENSITIVE = []
253
+ include Aws::Structure
254
+ end
255
+
256
+ # Contains I/O usage metrics for a command that was invoked.
257
+ #
258
+ # @!attribute [rw] read_i_os
259
+ # The number of read I/O requests that the command performed.
260
+ # @return [Integer]
261
+ #
262
+ # @!attribute [rw] write_i_os
263
+ # The number of write I/O requests that the command performed.
264
+ # @return [Integer]
265
+ #
266
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/IOUsage AWS API Documentation
267
+ #
268
+ class IOUsage < Struct.new(
269
+ :read_i_os,
270
+ :write_i_os)
198
271
  SENSITIVE = []
199
272
  include Aws::Structure
200
273
  end
@@ -438,10 +511,15 @@ module Aws::QLDBSession
438
511
  # current session.
439
512
  # @return [String]
440
513
  #
514
+ # @!attribute [rw] timing_information
515
+ # Contains server-side performance information for the command.
516
+ # @return [Types::TimingInformation]
517
+ #
441
518
  # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/StartSessionResult AWS API Documentation
442
519
  #
443
520
  class StartSessionResult < Struct.new(
444
- :session_token)
521
+ :session_token,
522
+ :timing_information)
445
523
  SENSITIVE = []
446
524
  include Aws::Structure
447
525
  end
@@ -460,16 +538,37 @@ module Aws::QLDBSession
460
538
  # The transaction ID of the started transaction.
461
539
  # @return [String]
462
540
  #
541
+ # @!attribute [rw] timing_information
542
+ # Contains server-side performance information for the command.
543
+ # @return [Types::TimingInformation]
544
+ #
463
545
  # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/StartTransactionResult AWS API Documentation
464
546
  #
465
547
  class StartTransactionResult < Struct.new(
466
- :transaction_id)
548
+ :transaction_id,
549
+ :timing_information)
550
+ SENSITIVE = []
551
+ include Aws::Structure
552
+ end
553
+
554
+ # Contains server-side performance information for a command. Amazon
555
+ # QLDB captures timing information between the times when it receives
556
+ # the request and when it sends the corresponding response.
557
+ #
558
+ # @!attribute [rw] processing_time_milliseconds
559
+ # The amount of time that was taken for the command to finish
560
+ # processing, measured in milliseconds.
561
+ # @return [Integer]
562
+ #
563
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/TimingInformation AWS API Documentation
564
+ #
565
+ class TimingInformation < Struct.new(
566
+ :processing_time_milliseconds)
467
567
  SENSITIVE = []
468
568
  include Aws::Structure
469
569
  end
470
570
 
471
- # A structure that can contain an Amazon Ion value in multiple encoding
472
- # formats.
571
+ # A structure that can contain a value in multiple encoding formats.
473
572
  #
474
573
  # @note When making an API call, you may pass ValueHolder
475
574
  # data as a hash:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-qldbsession
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-30 00:00:00.000000000 Z
11
+ date: 2020-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core