aws-sdk-keyspaces 1.2.0 → 1.4.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: 726e40020e080b38f4dd4dfc286b1a62935a8177dd8f3c9f2a0784836ff6ec42
4
- data.tar.gz: fb968d761b0ce28e567f11ac7a01886e4ab8e0fb9a285e7d1fab61fdde49f09f
3
+ metadata.gz: f410e85c963337d3f272ebdd0b02d0180dd1fdefdc3c4d3e5da14ee48b3d559b
4
+ data.tar.gz: 48f737a228910caead5132217653bcd662091e04ed7c4e82202d136cac523cb6
5
5
  SHA512:
6
- metadata.gz: 4002cc12a86a86866b17e86d23f83be09fec213bdaaef67ba6b865e5b51c5556002dba37efbf73203d20104c0cc2fc30275f8c5584f812846ba701eaaf0ea00e
7
- data.tar.gz: 48173dd10b7cce93ba24e8c02cffaba3ac227883708a5bdecdb359ffc7a49ae1bed716ced35e0035d2e23661fafda2751f802b47157dd11bf870a491e6123d13
6
+ metadata.gz: 3fc0b10dd25dcdce5b490e1455d9189334820da2415188a0fd0d7a9b070d83d209a1d3971f5aa5921cd731813d927c73d0838989af9afafc3e5c01941ca9d231
7
+ data.tar.gz: e5aa4eaccc5eb75dae6d2327d34f558b2935ea1a732aee26dc071beb015c6a5e62e0c41d5bc3b8e66dadeb72d365d899fa145353165d4be85ff93e6c434a285c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.4.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.3.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.2.0 (2022-03-15)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.4.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/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:keyspaces)
@@ -79,8 +79,9 @@ module Aws::Keyspaces
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::JsonRpc)
84
+ add_plugin(Aws::Keyspaces::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::Keyspaces
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::Keyspaces
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::Keyspaces::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Keyspaces::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -1361,7 +1378,7 @@ module Aws::Keyspaces
1361
1378
  params: params,
1362
1379
  config: config)
1363
1380
  context[:gem_name] = 'aws-sdk-keyspaces'
1364
- context[:gem_version] = '1.2.0'
1381
+ context[:gem_version] = '1.4.0'
1365
1382
  Seahorse::Client::Request.new(handlers, context)
1366
1383
  end
1367
1384
 
@@ -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::Keyspaces
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::Keyspaces
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://cassandra-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://cassandra-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://cassandra.#{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://cassandra.#{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,197 @@
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::Keyspaces
12
+ module Endpoints
13
+
14
+ class CreateKeyspace
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::Keyspaces::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 CreateTable
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::Keyspaces::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 DeleteKeyspace
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::Keyspaces::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 DeleteTable
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::Keyspaces::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 GetKeyspace
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::Keyspaces::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 GetTable
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::Keyspaces::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 ListKeyspaces
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::Keyspaces::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 ListTables
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::Keyspaces::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 ListTagsForResource
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::Keyspaces::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 RestoreTable
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::Keyspaces::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 TagResource
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::Keyspaces::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 UntagResource
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::Keyspaces::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 UpdateTable
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::Keyspaces::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
+ end
197
+ end
@@ -0,0 +1,94 @@
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::Keyspaces
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Keyspaces::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::Keyspaces::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Keyspaces::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 :create_keyspace
60
+ Aws::Keyspaces::Endpoints::CreateKeyspace.build(context)
61
+ when :create_table
62
+ Aws::Keyspaces::Endpoints::CreateTable.build(context)
63
+ when :delete_keyspace
64
+ Aws::Keyspaces::Endpoints::DeleteKeyspace.build(context)
65
+ when :delete_table
66
+ Aws::Keyspaces::Endpoints::DeleteTable.build(context)
67
+ when :get_keyspace
68
+ Aws::Keyspaces::Endpoints::GetKeyspace.build(context)
69
+ when :get_table
70
+ Aws::Keyspaces::Endpoints::GetTable.build(context)
71
+ when :list_keyspaces
72
+ Aws::Keyspaces::Endpoints::ListKeyspaces.build(context)
73
+ when :list_tables
74
+ Aws::Keyspaces::Endpoints::ListTables.build(context)
75
+ when :list_tags_for_resource
76
+ Aws::Keyspaces::Endpoints::ListTagsForResource.build(context)
77
+ when :restore_table
78
+ Aws::Keyspaces::Endpoints::RestoreTable.build(context)
79
+ when :tag_resource
80
+ Aws::Keyspaces::Endpoints::TagResource.build(context)
81
+ when :untag_resource
82
+ Aws::Keyspaces::Endpoints::UntagResource.build(context)
83
+ when :update_table
84
+ Aws::Keyspaces::Endpoints::UpdateTable.build(context)
85
+ end
86
+ end
87
+ end
88
+
89
+ def add_handlers(handlers, _config)
90
+ handlers.add(Handler, step: :build, priority: 75)
91
+ end
92
+ end
93
+ end
94
+ end
@@ -41,15 +41,6 @@ module Aws::Keyspaces
41
41
  #
42
42
  # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html
43
43
  #
44
- # @note When making an API call, you may pass CapacitySpecification
45
- # data as a hash:
46
- #
47
- # {
48
- # throughput_mode: "PAY_PER_REQUEST", # required, accepts PAY_PER_REQUEST, PROVISIONED
49
- # read_capacity_units: 1,
50
- # write_capacity_units: 1,
51
- # }
52
- #
53
44
  # @!attribute [rw] throughput_mode
54
45
  # The read/write throughput capacity mode for a table. The options
55
46
  # are:
@@ -150,14 +141,6 @@ module Aws::Keyspaces
150
141
  # The optional clustering column portion of your primary key determines
151
142
  # how the data is clustered and sorted within each partition.
152
143
  #
153
- # @note When making an API call, you may pass ClusteringKey
154
- # data as a hash:
155
- #
156
- # {
157
- # name: "GenericString", # required
158
- # order_by: "ASC", # required, accepts ASC, DESC
159
- # }
160
- #
161
144
  # @!attribute [rw] name
162
145
  # The name(s) of the clustering column(s).
163
146
  # @return [String]
@@ -177,14 +160,6 @@ module Aws::Keyspaces
177
160
 
178
161
  # The names and data types of regular columns.
179
162
  #
180
- # @note When making an API call, you may pass ColumnDefinition
181
- # data as a hash:
182
- #
183
- # {
184
- # name: "GenericString", # required
185
- # type: "GenericString", # required
186
- # }
187
- #
188
163
  # @!attribute [rw] name
189
164
  # The name of the column.
190
165
  # @return [String]
@@ -209,13 +184,6 @@ module Aws::Keyspaces
209
184
 
210
185
  # An optional comment that describes the table.
211
186
  #
212
- # @note When making an API call, you may pass Comment
213
- # data as a hash:
214
- #
215
- # {
216
- # message: "String", # required
217
- # }
218
- #
219
187
  # @!attribute [rw] message
220
188
  # An optional description of the table.
221
189
  # @return [String]
@@ -244,19 +212,6 @@ module Aws::Keyspaces
244
212
  include Aws::Structure
245
213
  end
246
214
 
247
- # @note When making an API call, you may pass CreateKeyspaceRequest
248
- # data as a hash:
249
- #
250
- # {
251
- # keyspace_name: "KeyspaceName", # required
252
- # tags: [
253
- # {
254
- # key: "TagKey", # required
255
- # value: "TagValue", # required
256
- # },
257
- # ],
258
- # }
259
- #
260
215
  # @!attribute [rw] keyspace_name
261
216
  # The name of the keyspace to be created.
262
217
  # @return [String]
@@ -294,63 +249,6 @@ module Aws::Keyspaces
294
249
  include Aws::Structure
295
250
  end
296
251
 
297
- # @note When making an API call, you may pass CreateTableRequest
298
- # data as a hash:
299
- #
300
- # {
301
- # keyspace_name: "KeyspaceName", # required
302
- # table_name: "TableName", # required
303
- # schema_definition: { # required
304
- # all_columns: [ # required
305
- # {
306
- # name: "GenericString", # required
307
- # type: "GenericString", # required
308
- # },
309
- # ],
310
- # partition_keys: [ # required
311
- # {
312
- # name: "GenericString", # required
313
- # },
314
- # ],
315
- # clustering_keys: [
316
- # {
317
- # name: "GenericString", # required
318
- # order_by: "ASC", # required, accepts ASC, DESC
319
- # },
320
- # ],
321
- # static_columns: [
322
- # {
323
- # name: "GenericString", # required
324
- # },
325
- # ],
326
- # },
327
- # comment: {
328
- # message: "String", # required
329
- # },
330
- # capacity_specification: {
331
- # throughput_mode: "PAY_PER_REQUEST", # required, accepts PAY_PER_REQUEST, PROVISIONED
332
- # read_capacity_units: 1,
333
- # write_capacity_units: 1,
334
- # },
335
- # encryption_specification: {
336
- # type: "CUSTOMER_MANAGED_KMS_KEY", # required, accepts CUSTOMER_MANAGED_KMS_KEY, AWS_OWNED_KMS_KEY
337
- # kms_key_identifier: "kmsKeyARN",
338
- # },
339
- # point_in_time_recovery: {
340
- # status: "ENABLED", # required, accepts ENABLED, DISABLED
341
- # },
342
- # ttl: {
343
- # status: "ENABLED", # required, accepts ENABLED
344
- # },
345
- # default_time_to_live: 1,
346
- # tags: [
347
- # {
348
- # key: "TagKey", # required
349
- # value: "TagValue", # required
350
- # },
351
- # ],
352
- # }
353
- #
354
252
  # @!attribute [rw] keyspace_name
355
253
  # The name of the keyspace that the table is going to be created in.
356
254
  # @return [String]
@@ -532,13 +430,6 @@ module Aws::Keyspaces
532
430
  include Aws::Structure
533
431
  end
534
432
 
535
- # @note When making an API call, you may pass DeleteKeyspaceRequest
536
- # data as a hash:
537
- #
538
- # {
539
- # keyspace_name: "KeyspaceName", # required
540
- # }
541
- #
542
433
  # @!attribute [rw] keyspace_name
543
434
  # The name of the keyspace to be deleted.
544
435
  # @return [String]
@@ -555,14 +446,6 @@ module Aws::Keyspaces
555
446
  #
556
447
  class DeleteKeyspaceResponse < Aws::EmptyStructure; end
557
448
 
558
- # @note When making an API call, you may pass DeleteTableRequest
559
- # data as a hash:
560
- #
561
- # {
562
- # keyspace_name: "KeyspaceName", # required
563
- # table_name: "TableName", # required
564
- # }
565
- #
566
449
  # @!attribute [rw] keyspace_name
567
450
  # The name of the keyspace of the to be deleted table.
568
451
  # @return [String]
@@ -606,14 +489,6 @@ module Aws::Keyspaces
606
489
  #
607
490
  # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html
608
491
  #
609
- # @note When making an API call, you may pass EncryptionSpecification
610
- # data as a hash:
611
- #
612
- # {
613
- # type: "CUSTOMER_MANAGED_KMS_KEY", # required, accepts CUSTOMER_MANAGED_KMS_KEY, AWS_OWNED_KMS_KEY
614
- # kms_key_identifier: "kmsKeyARN",
615
- # }
616
- #
617
492
  # @!attribute [rw] type
618
493
  # The encryption option specified for the table. You can choose one of
619
494
  # the following KMS keys (KMS keys):
@@ -649,13 +524,6 @@ module Aws::Keyspaces
649
524
  include Aws::Structure
650
525
  end
651
526
 
652
- # @note When making an API call, you may pass GetKeyspaceRequest
653
- # data as a hash:
654
- #
655
- # {
656
- # keyspace_name: "KeyspaceName", # required
657
- # }
658
- #
659
527
  # @!attribute [rw] keyspace_name
660
528
  # The name of the keyspace.
661
529
  # @return [String]
@@ -685,14 +553,6 @@ module Aws::Keyspaces
685
553
  include Aws::Structure
686
554
  end
687
555
 
688
- # @note When making an API call, you may pass GetTableRequest
689
- # data as a hash:
690
- #
691
- # {
692
- # keyspace_name: "KeyspaceName", # required
693
- # table_name: "TableName", # required
694
- # }
695
- #
696
556
  # @!attribute [rw] keyspace_name
697
557
  # The name of the keyspace that the table is stored in.
698
558
  # @return [String]
@@ -816,14 +676,6 @@ module Aws::Keyspaces
816
676
  include Aws::Structure
817
677
  end
818
678
 
819
- # @note When making an API call, you may pass ListKeyspacesRequest
820
- # data as a hash:
821
- #
822
- # {
823
- # next_token: "NextToken",
824
- # max_results: 1,
825
- # }
826
- #
827
679
  # @!attribute [rw] next_token
828
680
  # The pagination token. To resume pagination, provide the `NextToken`
829
681
  # value as argument of a subsequent API invocation.
@@ -863,15 +715,6 @@ module Aws::Keyspaces
863
715
  include Aws::Structure
864
716
  end
865
717
 
866
- # @note When making an API call, you may pass ListTablesRequest
867
- # data as a hash:
868
- #
869
- # {
870
- # next_token: "NextToken",
871
- # max_results: 1,
872
- # keyspace_name: "KeyspaceName", # required
873
- # }
874
- #
875
718
  # @!attribute [rw] next_token
876
719
  # The pagination token. To resume pagination, provide the `NextToken`
877
720
  # value as an argument of a subsequent API invocation.
@@ -916,15 +759,6 @@ module Aws::Keyspaces
916
759
  include Aws::Structure
917
760
  end
918
761
 
919
- # @note When making an API call, you may pass ListTagsForResourceRequest
920
- # data as a hash:
921
- #
922
- # {
923
- # resource_arn: "ARN", # required
924
- # next_token: "NextToken",
925
- # max_results: 1,
926
- # }
927
- #
928
762
  # @!attribute [rw] resource_arn
929
763
  # The Amazon Resource Name (ARN) of the Amazon Keyspaces resource.
930
764
  # @return [String]
@@ -974,13 +808,6 @@ module Aws::Keyspaces
974
808
  # be a single column, or it can be a compound value composed of two or
975
809
  # more columns.
976
810
  #
977
- # @note When making an API call, you may pass PartitionKey
978
- # data as a hash:
979
- #
980
- # {
981
- # name: "GenericString", # required
982
- # }
983
- #
984
811
  # @!attribute [rw] name
985
812
  # The name(s) of the partition key column(s).
986
813
  # @return [String]
@@ -1004,13 +831,6 @@ module Aws::Keyspaces
1004
831
  #
1005
832
  # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/PointInTimeRecovery.html
1006
833
  #
1007
- # @note When making an API call, you may pass PointInTimeRecovery
1008
- # data as a hash:
1009
- #
1010
- # {
1011
- # status: "ENABLED", # required, accepts ENABLED, DISABLED
1012
- # }
1013
- #
1014
834
  # @!attribute [rw] status
1015
835
  # The options are:
1016
836
  #
@@ -1069,35 +889,6 @@ module Aws::Keyspaces
1069
889
  include Aws::Structure
1070
890
  end
1071
891
 
1072
- # @note When making an API call, you may pass RestoreTableRequest
1073
- # data as a hash:
1074
- #
1075
- # {
1076
- # source_keyspace_name: "KeyspaceName", # required
1077
- # source_table_name: "TableName", # required
1078
- # target_keyspace_name: "KeyspaceName", # required
1079
- # target_table_name: "TableName", # required
1080
- # restore_timestamp: Time.now,
1081
- # capacity_specification_override: {
1082
- # throughput_mode: "PAY_PER_REQUEST", # required, accepts PAY_PER_REQUEST, PROVISIONED
1083
- # read_capacity_units: 1,
1084
- # write_capacity_units: 1,
1085
- # },
1086
- # encryption_specification_override: {
1087
- # type: "CUSTOMER_MANAGED_KMS_KEY", # required, accepts CUSTOMER_MANAGED_KMS_KEY, AWS_OWNED_KMS_KEY
1088
- # kms_key_identifier: "kmsKeyARN",
1089
- # },
1090
- # point_in_time_recovery_override: {
1091
- # status: "ENABLED", # required, accepts ENABLED, DISABLED
1092
- # },
1093
- # tags_override: [
1094
- # {
1095
- # key: "TagKey", # required
1096
- # value: "TagValue", # required
1097
- # },
1098
- # ],
1099
- # }
1100
- #
1101
892
  # @!attribute [rw] source_keyspace_name
1102
893
  # The keyspace name of the source table.
1103
894
  # @return [String]
@@ -1217,34 +1008,6 @@ module Aws::Keyspaces
1217
1008
 
1218
1009
  # Describes the schema of the table.
1219
1010
  #
1220
- # @note When making an API call, you may pass SchemaDefinition
1221
- # data as a hash:
1222
- #
1223
- # {
1224
- # all_columns: [ # required
1225
- # {
1226
- # name: "GenericString", # required
1227
- # type: "GenericString", # required
1228
- # },
1229
- # ],
1230
- # partition_keys: [ # required
1231
- # {
1232
- # name: "GenericString", # required
1233
- # },
1234
- # ],
1235
- # clustering_keys: [
1236
- # {
1237
- # name: "GenericString", # required
1238
- # order_by: "ASC", # required, accepts ASC, DESC
1239
- # },
1240
- # ],
1241
- # static_columns: [
1242
- # {
1243
- # name: "GenericString", # required
1244
- # },
1245
- # ],
1246
- # }
1247
- #
1248
1011
  # @!attribute [rw] all_columns
1249
1012
  # The regular columns of the table.
1250
1013
  # @return [Array<Types::ColumnDefinition>]
@@ -1295,13 +1058,6 @@ module Aws::Keyspaces
1295
1058
  # The static columns of the table. Static columns store values that are
1296
1059
  # shared by all rows in the same partition.
1297
1060
  #
1298
- # @note When making an API call, you may pass StaticColumn
1299
- # data as a hash:
1300
- #
1301
- # {
1302
- # name: "GenericString", # required
1303
- # }
1304
- #
1305
1061
  # @!attribute [rw] name
1306
1062
  # The name of the static column.
1307
1063
  # @return [String]
@@ -1357,14 +1113,6 @@ module Aws::Keyspaces
1357
1113
  #
1358
1114
  # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/tagging-keyspaces.html
1359
1115
  #
1360
- # @note When making an API call, you may pass Tag
1361
- # data as a hash:
1362
- #
1363
- # {
1364
- # key: "TagKey", # required
1365
- # value: "TagValue", # required
1366
- # }
1367
- #
1368
1116
  # @!attribute [rw] key
1369
1117
  # The key of the tag. Tag keys are case sensitive. Each Amazon
1370
1118
  # Keyspaces resource can only have up to one tag with the same key. If
@@ -1385,19 +1133,6 @@ module Aws::Keyspaces
1385
1133
  include Aws::Structure
1386
1134
  end
1387
1135
 
1388
- # @note When making an API call, you may pass TagResourceRequest
1389
- # data as a hash:
1390
- #
1391
- # {
1392
- # resource_arn: "ARN", # required
1393
- # tags: [ # required
1394
- # {
1395
- # key: "TagKey", # required
1396
- # value: "TagValue", # required
1397
- # },
1398
- # ],
1399
- # }
1400
- #
1401
1136
  # @!attribute [rw] resource_arn
1402
1137
  # The Amazon Resource Name (ARN) of the Amazon Keyspaces resource to
1403
1138
  # which to add tags.
@@ -1430,13 +1165,6 @@ module Aws::Keyspaces
1430
1165
  #
1431
1166
  # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/TTL-how-it-works.html#ttl-howitworks_enabling
1432
1167
  #
1433
- # @note When making an API call, you may pass TimeToLive
1434
- # data as a hash:
1435
- #
1436
- # {
1437
- # status: "ENABLED", # required, accepts ENABLED
1438
- # }
1439
- #
1440
1168
  # @!attribute [rw] status
1441
1169
  # Shows how to enable custom Time to Live (TTL) settings for the
1442
1170
  # specified table.
@@ -1450,19 +1178,6 @@ module Aws::Keyspaces
1450
1178
  include Aws::Structure
1451
1179
  end
1452
1180
 
1453
- # @note When making an API call, you may pass UntagResourceRequest
1454
- # data as a hash:
1455
- #
1456
- # {
1457
- # resource_arn: "ARN", # required
1458
- # tags: [ # required
1459
- # {
1460
- # key: "TagKey", # required
1461
- # value: "TagValue", # required
1462
- # },
1463
- # ],
1464
- # }
1465
- #
1466
1181
  # @!attribute [rw] resource_arn
1467
1182
  # The Amazon Keyspaces resource that the tags will be removed from.
1468
1183
  # This value is an Amazon Resource Name (ARN).
@@ -1486,36 +1201,6 @@ module Aws::Keyspaces
1486
1201
  #
1487
1202
  class UntagResourceResponse < Aws::EmptyStructure; end
1488
1203
 
1489
- # @note When making an API call, you may pass UpdateTableRequest
1490
- # data as a hash:
1491
- #
1492
- # {
1493
- # keyspace_name: "KeyspaceName", # required
1494
- # table_name: "TableName", # required
1495
- # add_columns: [
1496
- # {
1497
- # name: "GenericString", # required
1498
- # type: "GenericString", # required
1499
- # },
1500
- # ],
1501
- # capacity_specification: {
1502
- # throughput_mode: "PAY_PER_REQUEST", # required, accepts PAY_PER_REQUEST, PROVISIONED
1503
- # read_capacity_units: 1,
1504
- # write_capacity_units: 1,
1505
- # },
1506
- # encryption_specification: {
1507
- # type: "CUSTOMER_MANAGED_KMS_KEY", # required, accepts CUSTOMER_MANAGED_KMS_KEY, AWS_OWNED_KMS_KEY
1508
- # kms_key_identifier: "kmsKeyARN",
1509
- # },
1510
- # point_in_time_recovery: {
1511
- # status: "ENABLED", # required, accepts ENABLED, DISABLED
1512
- # },
1513
- # ttl: {
1514
- # status: "ENABLED", # required, accepts ENABLED
1515
- # },
1516
- # default_time_to_live: 1,
1517
- # }
1518
- #
1519
1204
  # @!attribute [rw] keyspace_name
1520
1205
  # The name of the keyspace the specified table is stored in.
1521
1206
  # @return [String]
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-keyspaces/types'
15
15
  require_relative 'aws-sdk-keyspaces/client_api'
16
+ require_relative 'aws-sdk-keyspaces/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-keyspaces/client'
17
18
  require_relative 'aws-sdk-keyspaces/errors'
18
19
  require_relative 'aws-sdk-keyspaces/waiters'
19
20
  require_relative 'aws-sdk-keyspaces/resource'
21
+ require_relative 'aws-sdk-keyspaces/endpoint_parameters'
22
+ require_relative 'aws-sdk-keyspaces/endpoint_provider'
23
+ require_relative 'aws-sdk-keyspaces/endpoints'
20
24
  require_relative 'aws-sdk-keyspaces/customizations'
21
25
 
22
26
  # This module provides support for Amazon Keyspaces. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-keyspaces/customizations'
49
53
  # @!group service
50
54
  module Aws::Keyspaces
51
55
 
52
- GEM_VERSION = '1.2.0'
56
+ GEM_VERSION = '1.4.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-keyspaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.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-03-15 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-keyspaces/client.rb
60
60
  - lib/aws-sdk-keyspaces/client_api.rb
61
61
  - lib/aws-sdk-keyspaces/customizations.rb
62
+ - lib/aws-sdk-keyspaces/endpoint_parameters.rb
63
+ - lib/aws-sdk-keyspaces/endpoint_provider.rb
64
+ - lib/aws-sdk-keyspaces/endpoints.rb
62
65
  - lib/aws-sdk-keyspaces/errors.rb
66
+ - lib/aws-sdk-keyspaces/plugins/endpoints.rb
63
67
  - lib/aws-sdk-keyspaces/resource.rb
64
68
  - lib/aws-sdk-keyspaces/types.rb
65
69
  - lib/aws-sdk-keyspaces/waiters.rb