aws-sdk-qldb 1.25.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d357b0082c8321014352a5d98de79b83a0195d1af495a2b772ef161a7582dd50
4
- data.tar.gz: 1e321067e6392d104c69679e3646d4aae6708ec02cff7c7a1e3ddcca68e435f8
3
+ metadata.gz: 806e1753ba4f85a010986de1bb7d00737a41c02880e11e35c58bb1511f289361
4
+ data.tar.gz: 3442d0122819543b94325ce83d6c12314cc31d8c756491709f643621ec42265c
5
5
  SHA512:
6
- metadata.gz: 9484a75b7ecfeea03e5df7130c15fc9d2b7dd709d0de388331c7ddc8a1902a1172e6c19c54ad893d3f942580c70d3b3c29b0927d060b4611fdb0a74b581c3d5f
7
- data.tar.gz: f571ed6d83e7b250d98a64c300d22b043e1c63cab73e6fcc945f6187f78284378b6d7c62176e23369f5b71e659f2083b99cd5327e0a5367da2336b10f9c4598c
6
+ metadata.gz: 1811a6020f8caabac6af743d2b46bb821803f88111550382a1da343521b00710398a6b7e007225048450b4b67f31ab1dd33df2f3dcc216251072722d9b31ec71
7
+ data.tar.gz: dda6421fb94aac48eaf06906563d5781f4322ed9202e9c023d1a7981ba872032600fbc5bbd1240a4d3d61d1b8335a240e4847697815eb175364a3c8109770549
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.27.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.26.0 (2022-10-25)
12
+ ------------------
13
+
14
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
15
+
4
16
  1.25.0 (2022-02-24)
5
17
  ------------------
6
18
 
@@ -135,4 +147,4 @@ Unreleased Changes
135
147
  1.0.0 (2019-09-09)
136
148
  ------------------
137
149
 
138
- * Feature - Initial release of `aws-sdk-qldb`.
150
+ * Feature - Initial release of `aws-sdk-qldb`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.25.0
1
+ 1.27.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:qldb)
@@ -79,8 +79,9 @@ module Aws::QLDB
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::QLDB::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::QLDB
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::QLDB
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::QLDB::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::QLDB::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -1625,7 +1642,7 @@ module Aws::QLDB
1625
1642
  params: params,
1626
1643
  config: config)
1627
1644
  context[:gem_name] = 'aws-sdk-qldb'
1628
- context[:gem_version] = '1.25.0'
1645
+ context[:gem_version] = '1.27.0'
1629
1646
  Seahorse::Client::Request.new(handlers, context)
1630
1647
  end
1631
1648
 
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::QLDB
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::QLDB
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://qldb-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://qldb-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://qldb.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://qldb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, 'No endpoint could be resolved'
48
+
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,295 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::QLDB
12
+ module Endpoints
13
+
14
+ class CancelJournalKinesisStream
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::QLDB::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class CreateLedger
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::QLDB::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class DeleteLedger
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::QLDB::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class DescribeJournalKinesisStream
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::QLDB::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class DescribeJournalS3Export
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::QLDB::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class DescribeLedger
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::QLDB::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class ExportJournalToS3
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::QLDB::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class GetBlock
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::QLDB::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class GetDigest
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::QLDB::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class GetRevision
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::QLDB::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class ListJournalKinesisStreamsForLedger
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::QLDB::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class ListJournalS3Exports
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::QLDB::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class ListJournalS3ExportsForLedger
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::QLDB::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class ListLedgers
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::QLDB::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class ListTagsForResource
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::QLDB::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class StreamJournalToKinesis
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::QLDB::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class TagResource
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::QLDB::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ class UntagResource
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::QLDB::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
266
+ class UpdateLedger
267
+ def self.build(context)
268
+ unless context.config.regional_endpoint
269
+ endpoint = context.config.endpoint.to_s
270
+ end
271
+ Aws::QLDB::EndpointParameters.new(
272
+ region: context.config.region,
273
+ use_dual_stack: context.config.use_dualstack_endpoint,
274
+ use_fips: context.config.use_fips_endpoint,
275
+ endpoint: endpoint,
276
+ )
277
+ end
278
+ end
279
+
280
+ class UpdateLedgerPermissionsMode
281
+ def self.build(context)
282
+ unless context.config.regional_endpoint
283
+ endpoint = context.config.endpoint.to_s
284
+ end
285
+ Aws::QLDB::EndpointParameters.new(
286
+ region: context.config.region,
287
+ use_dual_stack: context.config.use_dualstack_endpoint,
288
+ use_fips: context.config.use_fips_endpoint,
289
+ endpoint: endpoint,
290
+ )
291
+ end
292
+ end
293
+
294
+ end
295
+ end
@@ -0,0 +1,108 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::QLDB
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::QLDB::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::QLDB::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::QLDB::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :cancel_journal_kinesis_stream
60
+ Aws::QLDB::Endpoints::CancelJournalKinesisStream.build(context)
61
+ when :create_ledger
62
+ Aws::QLDB::Endpoints::CreateLedger.build(context)
63
+ when :delete_ledger
64
+ Aws::QLDB::Endpoints::DeleteLedger.build(context)
65
+ when :describe_journal_kinesis_stream
66
+ Aws::QLDB::Endpoints::DescribeJournalKinesisStream.build(context)
67
+ when :describe_journal_s3_export
68
+ Aws::QLDB::Endpoints::DescribeJournalS3Export.build(context)
69
+ when :describe_ledger
70
+ Aws::QLDB::Endpoints::DescribeLedger.build(context)
71
+ when :export_journal_to_s3
72
+ Aws::QLDB::Endpoints::ExportJournalToS3.build(context)
73
+ when :get_block
74
+ Aws::QLDB::Endpoints::GetBlock.build(context)
75
+ when :get_digest
76
+ Aws::QLDB::Endpoints::GetDigest.build(context)
77
+ when :get_revision
78
+ Aws::QLDB::Endpoints::GetRevision.build(context)
79
+ when :list_journal_kinesis_streams_for_ledger
80
+ Aws::QLDB::Endpoints::ListJournalKinesisStreamsForLedger.build(context)
81
+ when :list_journal_s3_exports
82
+ Aws::QLDB::Endpoints::ListJournalS3Exports.build(context)
83
+ when :list_journal_s3_exports_for_ledger
84
+ Aws::QLDB::Endpoints::ListJournalS3ExportsForLedger.build(context)
85
+ when :list_ledgers
86
+ Aws::QLDB::Endpoints::ListLedgers.build(context)
87
+ when :list_tags_for_resource
88
+ Aws::QLDB::Endpoints::ListTagsForResource.build(context)
89
+ when :stream_journal_to_kinesis
90
+ Aws::QLDB::Endpoints::StreamJournalToKinesis.build(context)
91
+ when :tag_resource
92
+ Aws::QLDB::Endpoints::TagResource.build(context)
93
+ when :untag_resource
94
+ Aws::QLDB::Endpoints::UntagResource.build(context)
95
+ when :update_ledger
96
+ Aws::QLDB::Endpoints::UpdateLedger.build(context)
97
+ when :update_ledger_permissions_mode
98
+ Aws::QLDB::Endpoints::UpdateLedgerPermissionsMode.build(context)
99
+ end
100
+ end
101
+ end
102
+
103
+ def add_handlers(handlers, _config)
104
+ handlers.add(Handler, step: :build, priority: 75)
105
+ end
106
+ end
107
+ end
108
+ end
@@ -10,14 +10,6 @@
10
10
  module Aws::QLDB
11
11
  module Types
12
12
 
13
- # @note When making an API call, you may pass CancelJournalKinesisStreamRequest
14
- # data as a hash:
15
- #
16
- # {
17
- # ledger_name: "LedgerName", # required
18
- # stream_id: "UniqueId", # required
19
- # }
20
- #
21
13
  # @!attribute [rw] ledger_name
22
14
  # The name of the ledger.
23
15
  # @return [String]
@@ -48,19 +40,6 @@ module Aws::QLDB
48
40
  include Aws::Structure
49
41
  end
50
42
 
51
- # @note When making an API call, you may pass CreateLedgerRequest
52
- # data as a hash:
53
- #
54
- # {
55
- # name: "LedgerName", # required
56
- # tags: {
57
- # "TagKey" => "TagValue",
58
- # },
59
- # permissions_mode: "ALLOW_ALL", # required, accepts ALLOW_ALL, STANDARD
60
- # deletion_protection: false,
61
- # kms_key: "KmsKey",
62
- # }
63
- #
64
43
  # @!attribute [rw] name
65
44
  # The name of the ledger that you want to create. The name must be
66
45
  # unique among all of the ledgers in your Amazon Web Services account
@@ -236,13 +215,6 @@ module Aws::QLDB
236
215
  include Aws::Structure
237
216
  end
238
217
 
239
- # @note When making an API call, you may pass DeleteLedgerRequest
240
- # data as a hash:
241
- #
242
- # {
243
- # name: "LedgerName", # required
244
- # }
245
- #
246
218
  # @!attribute [rw] name
247
219
  # The name of the ledger that you want to delete.
248
220
  # @return [String]
@@ -255,14 +227,6 @@ module Aws::QLDB
255
227
  include Aws::Structure
256
228
  end
257
229
 
258
- # @note When making an API call, you may pass DescribeJournalKinesisStreamRequest
259
- # data as a hash:
260
- #
261
- # {
262
- # ledger_name: "LedgerName", # required
263
- # stream_id: "UniqueId", # required
264
- # }
265
- #
266
230
  # @!attribute [rw] ledger_name
267
231
  # The name of the ledger.
268
232
  # @return [String]
@@ -294,14 +258,6 @@ module Aws::QLDB
294
258
  include Aws::Structure
295
259
  end
296
260
 
297
- # @note When making an API call, you may pass DescribeJournalS3ExportRequest
298
- # data as a hash:
299
- #
300
- # {
301
- # name: "LedgerName", # required
302
- # export_id: "UniqueId", # required
303
- # }
304
- #
305
261
  # @!attribute [rw] name
306
262
  # The name of the ledger.
307
263
  # @return [String]
@@ -333,13 +289,6 @@ module Aws::QLDB
333
289
  include Aws::Structure
334
290
  end
335
291
 
336
- # @note When making an API call, you may pass DescribeLedgerRequest
337
- # data as a hash:
338
- #
339
- # {
340
- # name: "LedgerName", # required
341
- # }
342
- #
343
292
  # @!attribute [rw] name
344
293
  # The name of the ledger that you want to describe.
345
294
  # @return [String]
@@ -404,25 +353,6 @@ module Aws::QLDB
404
353
  include Aws::Structure
405
354
  end
406
355
 
407
- # @note When making an API call, you may pass ExportJournalToS3Request
408
- # data as a hash:
409
- #
410
- # {
411
- # name: "LedgerName", # required
412
- # inclusive_start_time: Time.now, # required
413
- # exclusive_end_time: Time.now, # required
414
- # s3_export_configuration: { # required
415
- # bucket: "S3Bucket", # required
416
- # prefix: "S3Prefix", # required
417
- # encryption_configuration: { # required
418
- # object_encryption_type: "SSE_KMS", # required, accepts SSE_KMS, SSE_S3, NO_ENCRYPTION
419
- # kms_key_arn: "Arn",
420
- # },
421
- # },
422
- # role_arn: "Arn", # required
423
- # output_format: "ION_BINARY", # accepts ION_BINARY, ION_TEXT, JSON
424
- # }
425
- #
426
356
  # @!attribute [rw] name
427
357
  # The name of the ledger.
428
358
  # @return [String]
@@ -508,19 +438,6 @@ module Aws::QLDB
508
438
  include Aws::Structure
509
439
  end
510
440
 
511
- # @note When making an API call, you may pass GetBlockRequest
512
- # data as a hash:
513
- #
514
- # {
515
- # name: "LedgerName", # required
516
- # block_address: { # required
517
- # ion_text: "IonText",
518
- # },
519
- # digest_tip_address: {
520
- # ion_text: "IonText",
521
- # },
522
- # }
523
- #
524
441
  # @!attribute [rw] name
525
442
  # The name of the ledger.
526
443
  # @return [String]
@@ -571,13 +488,6 @@ module Aws::QLDB
571
488
  include Aws::Structure
572
489
  end
573
490
 
574
- # @note When making an API call, you may pass GetDigestRequest
575
- # data as a hash:
576
- #
577
- # {
578
- # name: "LedgerName", # required
579
- # }
580
- #
581
491
  # @!attribute [rw] name
582
492
  # The name of the ledger.
583
493
  # @return [String]
@@ -610,20 +520,6 @@ module Aws::QLDB
610
520
  include Aws::Structure
611
521
  end
612
522
 
613
- # @note When making an API call, you may pass GetRevisionRequest
614
- # data as a hash:
615
- #
616
- # {
617
- # name: "LedgerName", # required
618
- # block_address: { # required
619
- # ion_text: "IonText",
620
- # },
621
- # document_id: "UniqueId", # required
622
- # digest_tip_address: {
623
- # ion_text: "IonText",
624
- # },
625
- # }
626
- #
627
523
  # @!attribute [rw] name
628
524
  # The name of the ledger.
629
525
  # @return [String]
@@ -847,14 +743,6 @@ module Aws::QLDB
847
743
  # The configuration settings of the Amazon Kinesis Data Streams
848
744
  # destination for an Amazon QLDB journal stream.
849
745
  #
850
- # @note When making an API call, you may pass KinesisConfiguration
851
- # data as a hash:
852
- #
853
- # {
854
- # stream_arn: "Arn", # required
855
- # aggregation_enabled: false,
856
- # }
857
- #
858
746
  # @!attribute [rw] stream_arn
859
747
  # The Amazon Resource Name (ARN) of the Kinesis Data Streams resource.
860
748
  # @return [String]
@@ -996,15 +884,6 @@ module Aws::QLDB
996
884
  include Aws::Structure
997
885
  end
998
886
 
999
- # @note When making an API call, you may pass ListJournalKinesisStreamsForLedgerRequest
1000
- # data as a hash:
1001
- #
1002
- # {
1003
- # ledger_name: "LedgerName", # required
1004
- # max_results: 1,
1005
- # next_token: "NextToken",
1006
- # }
1007
- #
1008
887
  # @!attribute [rw] ledger_name
1009
888
  # The name of the ledger.
1010
889
  # @return [String]
@@ -1055,15 +934,6 @@ module Aws::QLDB
1055
934
  include Aws::Structure
1056
935
  end
1057
936
 
1058
- # @note When making an API call, you may pass ListJournalS3ExportsForLedgerRequest
1059
- # data as a hash:
1060
- #
1061
- # {
1062
- # name: "LedgerName", # required
1063
- # max_results: 1,
1064
- # next_token: "NextToken",
1065
- # }
1066
- #
1067
937
  # @!attribute [rw] name
1068
938
  # The name of the ledger.
1069
939
  # @return [String]
@@ -1114,14 +984,6 @@ module Aws::QLDB
1114
984
  include Aws::Structure
1115
985
  end
1116
986
 
1117
- # @note When making an API call, you may pass ListJournalS3ExportsRequest
1118
- # data as a hash:
1119
- #
1120
- # {
1121
- # max_results: 1,
1122
- # next_token: "NextToken",
1123
- # }
1124
- #
1125
987
  # @!attribute [rw] max_results
1126
988
  # The maximum number of results to return in a single
1127
989
  # `ListJournalS3Exports` request. (The actual number of results
@@ -1168,14 +1030,6 @@ module Aws::QLDB
1168
1030
  include Aws::Structure
1169
1031
  end
1170
1032
 
1171
- # @note When making an API call, you may pass ListLedgersRequest
1172
- # data as a hash:
1173
- #
1174
- # {
1175
- # max_results: 1,
1176
- # next_token: "NextToken",
1177
- # }
1178
- #
1179
1033
  # @!attribute [rw] max_results
1180
1034
  # The maximum number of results to return in a single `ListLedgers`
1181
1035
  # request. (The actual number of results returned might be fewer.)
@@ -1223,13 +1077,6 @@ module Aws::QLDB
1223
1077
  include Aws::Structure
1224
1078
  end
1225
1079
 
1226
- # @note When making an API call, you may pass ListTagsForResourceRequest
1227
- # data as a hash:
1228
- #
1229
- # {
1230
- # resource_arn: "Arn", # required
1231
- # }
1232
- #
1233
1080
  # @!attribute [rw] resource_arn
1234
1081
  # The Amazon Resource Name (ARN) for which to list the tags. For
1235
1082
  # example:
@@ -1353,14 +1200,6 @@ module Aws::QLDB
1353
1200
  # The encryption settings that are used by a journal export job to write
1354
1201
  # data in an Amazon Simple Storage Service (Amazon S3) bucket.
1355
1202
  #
1356
- # @note When making an API call, you may pass S3EncryptionConfiguration
1357
- # data as a hash:
1358
- #
1359
- # {
1360
- # object_encryption_type: "SSE_KMS", # required, accepts SSE_KMS, SSE_S3, NO_ENCRYPTION
1361
- # kms_key_arn: "Arn",
1362
- # }
1363
- #
1364
1203
  # @!attribute [rw] object_encryption_type
1365
1204
  # The Amazon S3 object encryption type.
1366
1205
  #
@@ -1396,18 +1235,6 @@ module Aws::QLDB
1396
1235
  # The Amazon Simple Storage Service (Amazon S3) bucket location in which
1397
1236
  # a journal export job writes the journal contents.
1398
1237
  #
1399
- # @note When making an API call, you may pass S3ExportConfiguration
1400
- # data as a hash:
1401
- #
1402
- # {
1403
- # bucket: "S3Bucket", # required
1404
- # prefix: "S3Prefix", # required
1405
- # encryption_configuration: { # required
1406
- # object_encryption_type: "SSE_KMS", # required, accepts SSE_KMS, SSE_S3, NO_ENCRYPTION
1407
- # kms_key_arn: "Arn",
1408
- # },
1409
- # }
1410
- #
1411
1238
  # @!attribute [rw] bucket
1412
1239
  # The Amazon S3 bucket name in which a journal export job writes the
1413
1240
  # journal contents.
@@ -1457,24 +1284,6 @@ module Aws::QLDB
1457
1284
  include Aws::Structure
1458
1285
  end
1459
1286
 
1460
- # @note When making an API call, you may pass StreamJournalToKinesisRequest
1461
- # data as a hash:
1462
- #
1463
- # {
1464
- # ledger_name: "LedgerName", # required
1465
- # role_arn: "Arn", # required
1466
- # tags: {
1467
- # "TagKey" => "TagValue",
1468
- # },
1469
- # inclusive_start_time: Time.now, # required
1470
- # exclusive_end_time: Time.now,
1471
- # kinesis_configuration: { # required
1472
- # stream_arn: "Arn", # required
1473
- # aggregation_enabled: false,
1474
- # },
1475
- # stream_name: "StreamName", # required
1476
- # }
1477
- #
1478
1287
  # @!attribute [rw] ledger_name
1479
1288
  # The name of the ledger.
1480
1289
  # @return [String]
@@ -1566,16 +1375,6 @@ module Aws::QLDB
1566
1375
  include Aws::Structure
1567
1376
  end
1568
1377
 
1569
- # @note When making an API call, you may pass TagResourceRequest
1570
- # data as a hash:
1571
- #
1572
- # {
1573
- # resource_arn: "Arn", # required
1574
- # tags: { # required
1575
- # "TagKey" => "TagValue",
1576
- # },
1577
- # }
1578
- #
1579
1378
  # @!attribute [rw] resource_arn
1580
1379
  # The Amazon Resource Name (ARN) to which you want to add the tags.
1581
1380
  # For example:
@@ -1603,14 +1402,6 @@ module Aws::QLDB
1603
1402
  #
1604
1403
  class TagResourceResponse < Aws::EmptyStructure; end
1605
1404
 
1606
- # @note When making an API call, you may pass UntagResourceRequest
1607
- # data as a hash:
1608
- #
1609
- # {
1610
- # resource_arn: "Arn", # required
1611
- # tag_keys: ["TagKey"], # required
1612
- # }
1613
- #
1614
1405
  # @!attribute [rw] resource_arn
1615
1406
  # The Amazon Resource Name (ARN) from which to remove the tags. For
1616
1407
  # example:
@@ -1635,14 +1426,6 @@ module Aws::QLDB
1635
1426
  #
1636
1427
  class UntagResourceResponse < Aws::EmptyStructure; end
1637
1428
 
1638
- # @note When making an API call, you may pass UpdateLedgerPermissionsModeRequest
1639
- # data as a hash:
1640
- #
1641
- # {
1642
- # name: "LedgerName", # required
1643
- # permissions_mode: "ALLOW_ALL", # required, accepts ALLOW_ALL, STANDARD
1644
- # }
1645
- #
1646
1429
  # @!attribute [rw] name
1647
1430
  # The name of the ledger.
1648
1431
  # @return [String]
@@ -1713,15 +1496,6 @@ module Aws::QLDB
1713
1496
  include Aws::Structure
1714
1497
  end
1715
1498
 
1716
- # @note When making an API call, you may pass UpdateLedgerRequest
1717
- # data as a hash:
1718
- #
1719
- # {
1720
- # name: "LedgerName", # required
1721
- # deletion_protection: false,
1722
- # kms_key: "KmsKey",
1723
- # }
1724
- #
1725
1499
  # @!attribute [rw] name
1726
1500
  # The name of the ledger.
1727
1501
  # @return [String]
@@ -1841,13 +1615,6 @@ module Aws::QLDB
1841
1615
 
1842
1616
  # A structure that can contain a value in multiple encoding formats.
1843
1617
  #
1844
- # @note When making an API call, you may pass ValueHolder
1845
- # data as a hash:
1846
- #
1847
- # {
1848
- # ion_text: "IonText",
1849
- # }
1850
- #
1851
1618
  # @!attribute [rw] ion_text
1852
1619
  # An Amazon Ion plaintext value contained in a `ValueHolder`
1853
1620
  # structure.
data/lib/aws-sdk-qldb.rb CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-qldb/types'
15
15
  require_relative 'aws-sdk-qldb/client_api'
16
+ require_relative 'aws-sdk-qldb/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-qldb/client'
17
18
  require_relative 'aws-sdk-qldb/errors'
18
19
  require_relative 'aws-sdk-qldb/resource'
20
+ require_relative 'aws-sdk-qldb/endpoint_parameters'
21
+ require_relative 'aws-sdk-qldb/endpoint_provider'
22
+ require_relative 'aws-sdk-qldb/endpoints'
19
23
  require_relative 'aws-sdk-qldb/customizations'
20
24
 
21
25
  # This module provides support for Amazon QLDB. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-qldb/customizations'
48
52
  # @!group service
49
53
  module Aws::QLDB
50
54
 
51
- GEM_VERSION = '1.25.0'
55
+ GEM_VERSION = '1.27.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-qldb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
4
+ version: 1.27.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: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-qldb/client.rb
60
60
  - lib/aws-sdk-qldb/client_api.rb
61
61
  - lib/aws-sdk-qldb/customizations.rb
62
+ - lib/aws-sdk-qldb/endpoint_parameters.rb
63
+ - lib/aws-sdk-qldb/endpoint_provider.rb
64
+ - lib/aws-sdk-qldb/endpoints.rb
62
65
  - lib/aws-sdk-qldb/errors.rb
66
+ - lib/aws-sdk-qldb/plugins/endpoints.rb
63
67
  - lib/aws-sdk-qldb/resource.rb
64
68
  - lib/aws-sdk-qldb/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby