aws-sdk-keyspaces 1.1.0 → 1.3.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: 944d0703ae640a11f9853845d9a73f427de840823fe8449d6c2b7cb8f935a30a
4
- data.tar.gz: 0c9bf138bbd5480faff4a0f41a1c4df34071fd7058a58f01b4fad39e14057cf2
3
+ metadata.gz: e17112759f4d590a8f22509c2ea637d7dfe95792ebbaee403adc58fd0ec67adc
4
+ data.tar.gz: b3974548cbf53c21c5a39ab819ab6f3e719c0078303e4e07a8608ace528f1f61
5
5
  SHA512:
6
- metadata.gz: 4106f4da0ca21d05a04ce3a850f0350a86215fc2660208168230e2534f3ff27fc7c6b0dd8bad64bf62d3e5457ff64f7b8fb10399187c410fa22f0170e23d3b8e
7
- data.tar.gz: bef54c10f7543dca0580ab612cf06ffc2a82ac779f39c94af9ddf9a5a6bdf08c58f81d79c47fdf3425f334e8eec99da99d485d9426d38553225a96b1cb11e2f2
6
+ metadata.gz: b46e5cebde29aab4a5b88397086ad75266943f0a6086ba385d1912b1311d7d00d7e7d5dc67818fbb7c7d34ccd28be2a3c1aa8e4d4ef45cb2e5a67b08af9d470a
7
+ data.tar.gz: 683ab4731671e7a437bf4dd7fca27bddafdef9c796572fd16b741457932e3c4b70424a59594982301a2a05c3ecc9e1a556f574d120949e75a89acc4f318dfe11
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.3.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.2.0 (2022-03-15)
10
+ ------------------
11
+
12
+ * Feature - Fixing formatting issues in CLI and SDK documentation
13
+
4
14
  1.1.0 (2022-03-08)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.3.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
  #
@@ -445,13 +462,35 @@ module Aws::Keyspaces
445
462
  #
446
463
  # For each column to be created:
447
464
  #
448
- # * <i> <code>name</code> </i> - The name of the column.
465
+ # `name` - The name of the column.
466
+ #
467
+ # • `type` - An Amazon Keyspaces data type. For more information, see
468
+ # [Data types][1] in the *Amazon Keyspaces Developer Guide*.
469
+ #
470
+ # The primary key of the table consists of the following columns:
449
471
  #
450
- # * ` type ` - An Amazon Keyspaces data type. For more information, see
451
- # [Data types][1] in the *Amazon Keyspaces Developer Guide*.
452
- # ^
472
+ # `partitionKeys` - The partition key can be a single column, or it
473
+ # can be a compound value composed of two or more columns. The partition
474
+ # key portion of the primary key is required and determines how Amazon
475
+ # Keyspaces stores your data.
453
476
  #
454
- # <p>The primary key of the table consists of the following columns:</p> <ul> <li> <p> <code>partitionKeys</code> - The partition key can be a single column, or it can be a compound value composed of two or more columns. The partition key portion of the primary key is required and determines how Amazon Keyspaces stores your data.</p> <ul> <li> <p> <i> <code>name</code> </i> - The name of each partition key column.</p> </li> </ul> </li> <li> <p> <code>clusteringKeys</code> - The optional clustering column portion of your primary key determines how the data is clustered and sorted within each partition.</p> <ul> <li> <p> <i> <code>name</code> </i> - The name of the clustering column. </p> </li> <li> <p> <i> <code>orderBy</code> </i> - Sets the ascendant (<code>ASC</code>) or descendant (<code>DESC</code>) order modifier.</p> </li> </ul> </li> </ul> <p>To define a column as static use <code> <i>staticColumns</i> </code> - Static columns store values that are shared by all rows in the same partition:</p> <ul> <li> <p> <i> <code>name</code> </i> - The name of the column.</p> </li> <li> <p> <code> <i>type</i> </code> - An Amazon Keyspaces data type.</p> </li> </ul>
477
+ # `name` - The name of each partition key column.
478
+ #
479
+ # • `clusteringKeys` - The optional clustering column portion of your
480
+ # primary key determines how the data is clustered and sorted within
481
+ # each partition.
482
+ #
483
+ # • `name` - The name of the clustering column.
484
+ #
485
+ # • `orderBy` - Sets the ascendant (`ASC`) or descendant (`DESC`) order
486
+ # modifier.
487
+ #
488
+ # To define a column as static use `staticColumns` - Static columns
489
+ # store values that are shared by all rows in the same partition:
490
+ #
491
+ # • `name` - The name of the column.
492
+ #
493
+ # • `type` - An Amazon Keyspaces data type.
455
494
  #
456
495
  #
457
496
  #
@@ -464,10 +503,10 @@ module Aws::Keyspaces
464
503
  # Specifies the read/write throughput capacity mode for the table. The
465
504
  # options are:
466
505
  #
467
- # * `throughputMode:PAY_PER_REQUEST` and
506
+ # `throughputMode:PAY_PER_REQUEST` and
468
507
  #
469
- # * `throughputMode:PROVISIONED`. The provisioned capacity mode requires
470
- # `readCapacityUnits` and `writeCapacityUnits` as inputs.
508
+ # `throughputMode:PROVISIONED` - Provisioned capacity mode requires
509
+ # `readCapacityUnits` and `writeCapacityUnits` as input.
471
510
  #
472
511
  # The default is `throughput_mode:PAY_PER_REQUEST`.
473
512
  #
@@ -482,15 +521,29 @@ module Aws::Keyspaces
482
521
  # Specifies how the encryption key for encryption at rest is managed for
483
522
  # the table. You can choose one of the following KMS key (KMS key):
484
523
  #
485
- # <ul> <li> <p> <code>type:AWS_OWNED_KMS_KEY</code> - This key is owned by Amazon Keyspaces. </p> </li> <li> <p> <code>type:CUSTOMER_MANAGED_KMS_KEY</code> - This key is stored in your account and is created, owned, and managed by you. This option requires the <code>kms_key_identifier</code> of the KMS key in Amazon Resource Name (ARN) format as input. </p> </li> </ul> <p>The default is <code>type:AWS_OWNED_KMS_KEY</code>. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html">Encryption at rest</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
524
+ # `type:AWS_OWNED_KMS_KEY` - This key is owned by Amazon Keyspaces.
525
+ #
526
+ # • `type:CUSTOMER_MANAGED_KMS_KEY` - This key is stored in your account
527
+ # and is created, owned, and managed by you. This option requires the
528
+ # `kms_key_identifier` of the KMS key in Amazon Resource Name (ARN)
529
+ # format as input.
530
+ #
531
+ # The default is `type:AWS_OWNED_KMS_KEY`.
532
+ #
533
+ # For more information, see [Encryption at rest][1] in the *Amazon
534
+ # Keyspaces Developer Guide*.
535
+ #
536
+ #
537
+ #
538
+ # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html
486
539
  #
487
540
  # @option params [Types::PointInTimeRecovery] :point_in_time_recovery
488
541
  # Specifies if `pointInTimeRecovery` is enabled or disabled for the
489
542
  # table. The options are:
490
543
  #
491
- # * `ENABLED`
544
+ # `ENABLED`
492
545
  #
493
- # * `DISABLED`
546
+ # `DISABLED`
494
547
  #
495
548
  # If it's not specified, the default is `DISABLED`.
496
549
  #
@@ -504,9 +557,9 @@ module Aws::Keyspaces
504
557
  # @option params [Types::TimeToLive] :ttl
505
558
  # Enables Time to Live custom settings for the table. The options are:
506
559
  #
507
- # * `status:enabled`
560
+ # `status:enabled`
508
561
  #
509
- # * `status:disabled`
562
+ # `status:disabled`
510
563
  #
511
564
  # The default is `status:disabled`. After `ttl` is enabled, you can't
512
565
  # disable it for the table.
@@ -932,26 +985,26 @@ module Aws::Keyspaces
932
985
  #
933
986
  # You can also overwrite these settings during restore:
934
987
  #
935
- # * Read/write capacity mode
988
+ # Read/write capacity mode
936
989
  #
937
- # * Provisioned throughput capacity settings
990
+ # Provisioned throughput capacity settings
938
991
  #
939
- # * Point-in-time (PITR) settings
992
+ # Point-in-time (PITR) settings
940
993
  #
941
- # * Tags
994
+ # Tags
942
995
  #
943
996
  # For more information, see [PITR restore settings][2] in the *Amazon
944
997
  # Keyspaces Developer Guide*.
945
998
  #
946
- # The following settings are not restored, and you must configure them
947
- # manually for the new table.
999
+ # Note that the following settings are not restored, and you must
1000
+ # configure them manually for the new table:
948
1001
  #
949
- # * Automatic scaling policies (for tables that use provisioned capacity
950
- # mode)
1002
+ # Automatic scaling policies (for tables that use provisioned capacity
1003
+ # mode)
951
1004
  #
952
- # * Identity and Access Management (IAM) policies
1005
+ # Identity and Access Management (IAM) policies
953
1006
  #
954
- # * Amazon CloudWatch metrics and alarms
1007
+ # Amazon CloudWatch metrics and alarms
955
1008
  #
956
1009
  #
957
1010
  #
@@ -977,10 +1030,10 @@ module Aws::Keyspaces
977
1030
  # Specifies the read/write throughput capacity mode for the target
978
1031
  # table. The options are:
979
1032
  #
980
- # * `throughputMode:PAY_PER_REQUEST` and
1033
+ # `throughputMode:PAY_PER_REQUEST`
981
1034
  #
982
- # * `throughputMode:PROVISIONED`. The provisioned capacity mode requires
983
- # `readCapacityUnits` and `writeCapacityUnits` as inputs.
1035
+ # `throughputMode:PROVISIONED` - Provisioned capacity mode requires
1036
+ # `readCapacityUnits` and `writeCapacityUnits` as input.
984
1037
  #
985
1038
  # The default is `throughput_mode:PAY_PER_REQUEST`.
986
1039
  #
@@ -995,15 +1048,29 @@ module Aws::Keyspaces
995
1048
  # Specifies the encryption settings for the target table. You can choose
996
1049
  # one of the following KMS key (KMS key):
997
1050
  #
998
- # <ul> <li> <p> <code>type:AWS_OWNED_KMS_KEY</code> - This key is owned by Amazon Keyspaces. </p> </li> <li> <p> <code>type:CUSTOMER_MANAGED_KMS_KEY</code> - This key is stored in your account and is created, owned, and managed by you. This option requires the <code>kms_key_identifier</code> of the KMS key in Amazon Resource Name (ARN) format as input. </p> </li> </ul> <p>The default is <code>type:AWS_OWNED_KMS_KEY</code>. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html">Encryption at rest</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
1051
+ # `type:AWS_OWNED_KMS_KEY` - This key is owned by Amazon Keyspaces.
1052
+ #
1053
+ # • `type:CUSTOMER_MANAGED_KMS_KEY` - This key is stored in your account
1054
+ # and is created, owned, and managed by you. This option requires the
1055
+ # `kms_key_identifier` of the KMS key in Amazon Resource Name (ARN)
1056
+ # format as input.
1057
+ #
1058
+ # The default is `type:AWS_OWNED_KMS_KEY`.
1059
+ #
1060
+ # For more information, see [Encryption at rest][1] in the *Amazon
1061
+ # Keyspaces Developer Guide*.
1062
+ #
1063
+ #
1064
+ #
1065
+ # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html
999
1066
  #
1000
1067
  # @option params [Types::PointInTimeRecovery] :point_in_time_recovery_override
1001
1068
  # Specifies the `pointInTimeRecovery` settings for the target table. The
1002
1069
  # options are:
1003
1070
  #
1004
- # * `ENABLED`
1071
+ # `ENABLED`
1005
1072
  #
1006
- # * `DISABLED`
1073
+ # `DISABLED`
1007
1074
  #
1008
1075
  # If it's not specified, the default is `DISABLED`.
1009
1076
  #
@@ -1161,10 +1228,10 @@ module Aws::Keyspaces
1161
1228
  # @option params [Array<Types::ColumnDefinition>] :add_columns
1162
1229
  # For each column to be added to the specified table:
1163
1230
  #
1164
- # * <i> <code>name</code> </i> - The name of the column.
1231
+ # `name` - The name of the column.
1165
1232
  #
1166
- # * ` type ` - An Amazon Keyspaces data type. For more information, see
1167
- # [Data types][1] in the *Amazon Keyspaces Developer Guide*.
1233
+ # `type` - An Amazon Keyspaces data type. For more information, see
1234
+ # [Data types][1] in the *Amazon Keyspaces Developer Guide*.
1168
1235
  #
1169
1236
  #
1170
1237
  #
@@ -1174,10 +1241,10 @@ module Aws::Keyspaces
1174
1241
  # Modifies the read/write throughput capacity mode for the table. The
1175
1242
  # options are:
1176
1243
  #
1177
- # * `throughputMode:PAY_PER_REQUEST` and
1244
+ # `throughputMode:PAY_PER_REQUEST` and
1178
1245
  #
1179
- # * `throughputMode:PROVISIONED`. The provisioned capacity mode requires
1180
- # `readCapacityUnits` and `writeCapacityUnits` as inputs.
1246
+ # `throughputMode:PROVISIONED` - Provisioned capacity mode requires
1247
+ # `readCapacityUnits` and `writeCapacityUnits` as input.
1181
1248
  #
1182
1249
  # The default is `throughput_mode:PAY_PER_REQUEST`.
1183
1250
  #
@@ -1192,15 +1259,29 @@ module Aws::Keyspaces
1192
1259
  # Modifies the encryption settings of the table. You can choose one of
1193
1260
  # the following KMS key (KMS key):
1194
1261
  #
1195
- # <ul> <li> <p> <code>type:AWS_OWNED_KMS_KEY</code> - This key is owned by Amazon Keyspaces. </p> </li> <li> <p> <code>type:CUSTOMER_MANAGED_KMS_KEY</code> - This key is stored in your account and is created, owned, and managed by you. This option requires the <code>kms_key_identifier</code> of the KMS key in Amazon Resource Name (ARN) format as input. </p> </li> </ul> <p>The default is <code>AWS_OWNED_KMS_KEY</code>. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html">Encryption at rest</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
1262
+ # `type:AWS_OWNED_KMS_KEY` - This key is owned by Amazon Keyspaces.
1263
+ #
1264
+ # • `type:CUSTOMER_MANAGED_KMS_KEY` - This key is stored in your account
1265
+ # and is created, owned, and managed by you. This option requires the
1266
+ # `kms_key_identifier` of the KMS key in Amazon Resource Name (ARN)
1267
+ # format as input.
1268
+ #
1269
+ # The default is `AWS_OWNED_KMS_KEY`.
1270
+ #
1271
+ # For more information, see [Encryption at rest][1] in the *Amazon
1272
+ # Keyspaces Developer Guide*.
1273
+ #
1274
+ #
1275
+ #
1276
+ # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html
1196
1277
  #
1197
1278
  # @option params [Types::PointInTimeRecovery] :point_in_time_recovery
1198
1279
  # Modifies the `pointInTimeRecovery` settings of the table. The options
1199
1280
  # are:
1200
1281
  #
1201
- # * `ENABLED`
1282
+ # `ENABLED`
1202
1283
  #
1203
- # * `DISABLED`
1284
+ # `DISABLED`
1204
1285
  #
1205
1286
  # If it's not specified, the default is `DISABLED`.
1206
1287
  #
@@ -1214,9 +1295,9 @@ module Aws::Keyspaces
1214
1295
  # @option params [Types::TimeToLive] :ttl
1215
1296
  # Modifies Time to Live custom settings for the table. The options are:
1216
1297
  #
1217
- # * `status:enabled`
1298
+ # `status:enabled`
1218
1299
  #
1219
- # * `status:disabled`
1300
+ # `status:disabled`
1220
1301
  #
1221
1302
  # The default is `status:disabled`. After `ttl` is enabled, you can't
1222
1303
  # disable it for the table.
@@ -1297,7 +1378,7 @@ module Aws::Keyspaces
1297
1378
  params: params,
1298
1379
  config: config)
1299
1380
  context[:gem_name] = 'aws-sdk-keyspaces'
1300
- context[:gem_version] = '1.1.0'
1381
+ context[:gem_version] = '1.3.0'
1301
1382
  Seahorse::Client::Request.new(handlers, context)
1302
1383
  end
1303
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,111 @@
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 initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIj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yI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8v
99
+ Y2Fzc2FuZHJhLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNr
100
+ RG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5
101
+ cGUiOiJlbmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJE
102
+ dWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBu
103
+ b3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29u
104
+ ZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vY2Fzc2Fu
105
+ ZHJhLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInBy
106
+ b3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9
107
+ XX1dfQ==
108
+
109
+ JSON
110
+ end
111
+ 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
@@ -26,12 +26,20 @@ module Aws::Keyspaces
26
26
  # Amazon Keyspaces has two read/write capacity modes for processing
27
27
  # reads and writes on your tables:
28
28
  #
29
- # * On-demand (default)
29
+ # On-demand (default)
30
30
  #
31
- # * Provisioned
32
- # ^
31
+ # Provisioned
33
32
  #
34
- # <p> The read/write capacity mode that you choose controls how you are charged for read and write throughput and how table throughput capacity is managed. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html">Read/write capacity modes</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
33
+ # The read/write capacity mode that you choose controls how you are
34
+ # charged for read and write throughput and how table throughput
35
+ # capacity is managed.
36
+ #
37
+ # For more information, see [Read/write capacity modes][1] in the
38
+ # *Amazon Keyspaces Developer Guide*.
39
+ #
40
+ #
41
+ #
42
+ # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html
35
43
  #
36
44
  # @note When making an API call, you may pass CapacitySpecification
37
45
  # data as a hash:
@@ -46,10 +54,10 @@ module Aws::Keyspaces
46
54
  # The read/write throughput capacity mode for a table. The options
47
55
  # are:
48
56
  #
49
- # * `throughputMode:PAY_PER_REQUEST` and
57
+ # `throughputMode:PAY_PER_REQUEST` and
50
58
  #
51
- # * `throughputMode:PROVISIONED`. The provisioned capacity mode
52
- # requires `readCapacityUnits` and `writeCapacityUnits` as inputs.
59
+ # `throughputMode:PROVISIONED` - Provisioned capacity mode requires
60
+ # `readCapacityUnits` and `writeCapacityUnits` as input.
53
61
  #
54
62
  # The default is `throughput_mode:PAY_PER_REQUEST`.
55
63
  #
@@ -83,9 +91,9 @@ module Aws::Keyspaces
83
91
 
84
92
  # The read/write throughput capacity mode for a table. The options are:
85
93
  #
86
- # * `throughputMode:PAY_PER_REQUEST` and
94
+ # `throughputMode:PAY_PER_REQUEST` and
87
95
  #
88
- # * `throughputMode:PROVISIONED`.
96
+ # `throughputMode:PROVISIONED`.
89
97
  #
90
98
  # For more information, see [Read/write capacity modes][1] in the
91
99
  # *Amazon Keyspaces Developer Guide*.
@@ -98,10 +106,10 @@ module Aws::Keyspaces
98
106
  # The read/write throughput capacity mode for a table. The options
99
107
  # are:
100
108
  #
101
- # * `throughputMode:PAY_PER_REQUEST` and
109
+ # `throughputMode:PAY_PER_REQUEST` and
102
110
  #
103
- # * `throughputMode:PROVISIONED`. The provisioned capacity mode
104
- # requires `readCapacityUnits` and `writeCapacityUnits` as inputs.
111
+ # `throughputMode:PROVISIONED` - Provisioned capacity mode requires
112
+ # `readCapacityUnits` and `writeCapacityUnits` as input.
105
113
  #
106
114
  # The default is `throughput_mode:PAY_PER_REQUEST`.
107
115
  #
@@ -356,13 +364,35 @@ module Aws::Keyspaces
356
364
  #
357
365
  # For each column to be created:
358
366
  #
359
- # * <i> <code>name</code> </i> - The name of the column.
367
+ # `name` - The name of the column.
368
+ #
369
+ # • `type` - An Amazon Keyspaces data type. For more information, see
370
+ # [Data types][1] in the *Amazon Keyspaces Developer Guide*.
371
+ #
372
+ # The primary key of the table consists of the following columns:
373
+ #
374
+ # • `partitionKeys` - The partition key can be a single column, or it
375
+ # can be a compound value composed of two or more columns. The
376
+ # partition key portion of the primary key is required and determines
377
+ # how Amazon Keyspaces stores your data.
378
+ #
379
+ # • `name` - The name of each partition key column.
360
380
  #
361
- # * ` type ` - An Amazon Keyspaces data type. For more information,
362
- # see [Data types][1] in the *Amazon Keyspaces Developer Guide*.
363
- # ^
381
+ # `clusteringKeys` - The optional clustering column portion of your
382
+ # primary key determines how the data is clustered and sorted within
383
+ # each partition.
364
384
  #
365
- # <p>The primary key of the table consists of the following columns:</p> <ul> <li> <p> <code>partitionKeys</code> - The partition key can be a single column, or it can be a compound value composed of two or more columns. The partition key portion of the primary key is required and determines how Amazon Keyspaces stores your data.</p> <ul> <li> <p> <i> <code>name</code> </i> - The name of each partition key column.</p> </li> </ul> </li> <li> <p> <code>clusteringKeys</code> - The optional clustering column portion of your primary key determines how the data is clustered and sorted within each partition.</p> <ul> <li> <p> <i> <code>name</code> </i> - The name of the clustering column. </p> </li> <li> <p> <i> <code>orderBy</code> </i> - Sets the ascendant (<code>ASC</code>) or descendant (<code>DESC</code>) order modifier.</p> </li> </ul> </li> </ul> <p>To define a column as static use <code> <i>staticColumns</i> </code> - Static columns store values that are shared by all rows in the same partition:</p> <ul> <li> <p> <i> <code>name</code> </i> - The name of the column.</p> </li> <li> <p> <code> <i>type</i> </code> - An Amazon Keyspaces data type.</p> </li> </ul>
385
+ # `name` - The name of the clustering column.
386
+ #
387
+ # • `orderBy` - Sets the ascendant (`ASC`) or descendant (`DESC`)
388
+ # order modifier.
389
+ #
390
+ # To define a column as static use `staticColumns` - Static columns
391
+ # store values that are shared by all rows in the same partition:
392
+ #
393
+ # • `name` - The name of the column.
394
+ #
395
+ # • `type` - An Amazon Keyspaces data type.
366
396
  #
367
397
  #
368
398
  #
@@ -377,10 +407,10 @@ module Aws::Keyspaces
377
407
  # Specifies the read/write throughput capacity mode for the table. The
378
408
  # options are:
379
409
  #
380
- # * `throughputMode:PAY_PER_REQUEST` and
410
+ # `throughputMode:PAY_PER_REQUEST` and
381
411
  #
382
- # * `throughputMode:PROVISIONED`. The provisioned capacity mode
383
- # requires `readCapacityUnits` and `writeCapacityUnits` as inputs.
412
+ # `throughputMode:PROVISIONED` - Provisioned capacity mode requires
413
+ # `readCapacityUnits` and `writeCapacityUnits` as input.
384
414
  #
385
415
  # The default is `throughput_mode:PAY_PER_REQUEST`.
386
416
  #
@@ -397,16 +427,30 @@ module Aws::Keyspaces
397
427
  # for the table. You can choose one of the following KMS key (KMS
398
428
  # key):
399
429
  #
400
- # <ul> <li> <p> <code>type:AWS_OWNED_KMS_KEY</code> - This key is owned by Amazon Keyspaces. </p> </li> <li> <p> <code>type:CUSTOMER_MANAGED_KMS_KEY</code> - This key is stored in your account and is created, owned, and managed by you. This option requires the <code>kms_key_identifier</code> of the KMS key in Amazon Resource Name (ARN) format as input. </p> </li> </ul> <p>The default is <code>type:AWS_OWNED_KMS_KEY</code>. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html">Encryption at rest</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
430
+ # `type:AWS_OWNED_KMS_KEY` - This key is owned by Amazon Keyspaces.
431
+ #
432
+ # • `type:CUSTOMER_MANAGED_KMS_KEY` - This key is stored in your
433
+ # account and is created, owned, and managed by you. This option
434
+ # requires the `kms_key_identifier` of the KMS key in Amazon Resource
435
+ # Name (ARN) format as input.
436
+ #
437
+ # The default is `type:AWS_OWNED_KMS_KEY`.
438
+ #
439
+ # For more information, see [Encryption at rest][1] in the *Amazon
440
+ # Keyspaces Developer Guide*.
441
+ #
442
+ #
443
+ #
444
+ # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html
401
445
  # @return [Types::EncryptionSpecification]
402
446
  #
403
447
  # @!attribute [rw] point_in_time_recovery
404
448
  # Specifies if `pointInTimeRecovery` is enabled or disabled for the
405
449
  # table. The options are:
406
450
  #
407
- # * `ENABLED`
451
+ # `ENABLED`
408
452
  #
409
- # * `DISABLED`
453
+ # `DISABLED`
410
454
  #
411
455
  # If it's not specified, the default is `DISABLED`.
412
456
  #
@@ -421,9 +465,9 @@ module Aws::Keyspaces
421
465
  # @!attribute [rw] ttl
422
466
  # Enables Time to Live custom settings for the table. The options are:
423
467
  #
424
- # * `status:enabled`
468
+ # `status:enabled`
425
469
  #
426
- # * `status:disabled`
470
+ # `status:disabled`
427
471
  #
428
472
  # The default is `status:disabled`. After `ttl` is enabled, you can't
429
473
  # disable it for the table.
@@ -545,12 +589,12 @@ module Aws::Keyspaces
545
589
  # and managing the encryption key. You can choose one of the following
546
590
  # KMS keys (KMS keys):
547
591
  #
548
- # * Amazon Web Services owned key - This is the default encryption type.
549
- # The key is owned by Amazon Keyspaces (no additional charge).
592
+ # Amazon Web Services owned key - This is the default encryption type.
593
+ # The key is owned by Amazon Keyspaces (no additional charge).
550
594
  #
551
- # * Customer managed key - This key is stored in your account and is
552
- # created, owned, and managed by you. You have full control over the
553
- # customer managed key (KMS charges apply).
595
+ # Customer managed key - This key is stored in your account and is
596
+ # created, owned, and managed by you. You have full control over the
597
+ # customer managed key (KMS charges apply).
554
598
  #
555
599
  # For more information about encryption at rest in Amazon Keyspaces, see
556
600
  # [Encryption at rest][1] in the *Amazon Keyspaces Developer Guide*.
@@ -574,12 +618,12 @@ module Aws::Keyspaces
574
618
  # The encryption option specified for the table. You can choose one of
575
619
  # the following KMS keys (KMS keys):
576
620
  #
577
- # * `type:AWS_OWNED_KMS_KEY` - This key is owned by Amazon Keyspaces.
621
+ # `type:AWS_OWNED_KMS_KEY` - This key is owned by Amazon Keyspaces.
578
622
  #
579
- # * `type:CUSTOMER_MANAGED_KMS_KEY` - This key is stored in your
580
- # account and is created, owned, and managed by you. This option
581
- # requires the `kms_key_identifier` of the KMS key in Amazon
582
- # Resource Name (ARN) format as input.
623
+ # `type:CUSTOMER_MANAGED_KMS_KEY` - This key is stored in your
624
+ # account and is created, owned, and managed by you. This option
625
+ # requires the `kms_key_identifier` of the KMS key in Amazon Resource
626
+ # Name (ARN) format as input.
583
627
  #
584
628
  # The default is `type:AWS_OWNED_KMS_KEY`.
585
629
  #
@@ -694,9 +738,9 @@ module Aws::Keyspaces
694
738
  # The read/write throughput capacity mode for a table. The options
695
739
  # are:
696
740
  #
697
- # * `throughputMode:PAY_PER_REQUEST` and
741
+ # `throughputMode:PAY_PER_REQUEST`
698
742
  #
699
- # * `throughputMode:PROVISIONED`.
743
+ # `throughputMode:PROVISIONED`
700
744
  # @return [Types::CapacitySpecificationSummary]
701
745
  #
702
746
  # @!attribute [rw] encryption_specification
@@ -970,9 +1014,9 @@ module Aws::Keyspaces
970
1014
  # @!attribute [rw] status
971
1015
  # The options are:
972
1016
  #
973
- # * `ENABLED`
1017
+ # `ENABLED`
974
1018
  #
975
- # * `DISABLED`
1019
+ # `DISABLED`
976
1020
  # @return [String]
977
1021
  #
978
1022
  # @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/PointInTimeRecovery AWS API Documentation
@@ -1078,10 +1122,10 @@ module Aws::Keyspaces
1078
1122
  # Specifies the read/write throughput capacity mode for the target
1079
1123
  # table. The options are:
1080
1124
  #
1081
- # * `throughputMode:PAY_PER_REQUEST` and
1125
+ # `throughputMode:PAY_PER_REQUEST`
1082
1126
  #
1083
- # * `throughputMode:PROVISIONED`. The provisioned capacity mode
1084
- # requires `readCapacityUnits` and `writeCapacityUnits` as inputs.
1127
+ # `throughputMode:PROVISIONED` - Provisioned capacity mode requires
1128
+ # `readCapacityUnits` and `writeCapacityUnits` as input.
1085
1129
  #
1086
1130
  # The default is `throughput_mode:PAY_PER_REQUEST`.
1087
1131
  #
@@ -1097,16 +1141,30 @@ module Aws::Keyspaces
1097
1141
  # Specifies the encryption settings for the target table. You can
1098
1142
  # choose one of the following KMS key (KMS key):
1099
1143
  #
1100
- # <ul> <li> <p> <code>type:AWS_OWNED_KMS_KEY</code> - This key is owned by Amazon Keyspaces. </p> </li> <li> <p> <code>type:CUSTOMER_MANAGED_KMS_KEY</code> - This key is stored in your account and is created, owned, and managed by you. This option requires the <code>kms_key_identifier</code> of the KMS key in Amazon Resource Name (ARN) format as input. </p> </li> </ul> <p>The default is <code>type:AWS_OWNED_KMS_KEY</code>. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html">Encryption at rest</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
1144
+ # `type:AWS_OWNED_KMS_KEY` - This key is owned by Amazon Keyspaces.
1145
+ #
1146
+ # • `type:CUSTOMER_MANAGED_KMS_KEY` - This key is stored in your
1147
+ # account and is created, owned, and managed by you. This option
1148
+ # requires the `kms_key_identifier` of the KMS key in Amazon Resource
1149
+ # Name (ARN) format as input.
1150
+ #
1151
+ # The default is `type:AWS_OWNED_KMS_KEY`.
1152
+ #
1153
+ # For more information, see [Encryption at rest][1] in the *Amazon
1154
+ # Keyspaces Developer Guide*.
1155
+ #
1156
+ #
1157
+ #
1158
+ # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html
1101
1159
  # @return [Types::EncryptionSpecification]
1102
1160
  #
1103
1161
  # @!attribute [rw] point_in_time_recovery_override
1104
1162
  # Specifies the `pointInTimeRecovery` settings for the target table.
1105
1163
  # The options are:
1106
1164
  #
1107
- # * `ENABLED`
1165
+ # `ENABLED`
1108
1166
  #
1109
- # * `DISABLED`
1167
+ # `DISABLED`
1110
1168
  #
1111
1169
  # If it's not specified, the default is `DISABLED`.
1112
1170
  #
@@ -1469,10 +1527,10 @@ module Aws::Keyspaces
1469
1527
  # @!attribute [rw] add_columns
1470
1528
  # For each column to be added to the specified table:
1471
1529
  #
1472
- # * <i> <code>name</code> </i> - The name of the column.
1530
+ # `name` - The name of the column.
1473
1531
  #
1474
- # * ` type ` - An Amazon Keyspaces data type. For more information,
1475
- # see [Data types][1] in the *Amazon Keyspaces Developer Guide*.
1532
+ # `type` - An Amazon Keyspaces data type. For more information, see
1533
+ # [Data types][1] in the *Amazon Keyspaces Developer Guide*.
1476
1534
  #
1477
1535
  #
1478
1536
  #
@@ -1483,10 +1541,10 @@ module Aws::Keyspaces
1483
1541
  # Modifies the read/write throughput capacity mode for the table. The
1484
1542
  # options are:
1485
1543
  #
1486
- # * `throughputMode:PAY_PER_REQUEST` and
1544
+ # `throughputMode:PAY_PER_REQUEST` and
1487
1545
  #
1488
- # * `throughputMode:PROVISIONED`. The provisioned capacity mode
1489
- # requires `readCapacityUnits` and `writeCapacityUnits` as inputs.
1546
+ # `throughputMode:PROVISIONED` - Provisioned capacity mode requires
1547
+ # `readCapacityUnits` and `writeCapacityUnits` as input.
1490
1548
  #
1491
1549
  # The default is `throughput_mode:PAY_PER_REQUEST`.
1492
1550
  #
@@ -1502,16 +1560,30 @@ module Aws::Keyspaces
1502
1560
  # Modifies the encryption settings of the table. You can choose one of
1503
1561
  # the following KMS key (KMS key):
1504
1562
  #
1505
- # <ul> <li> <p> <code>type:AWS_OWNED_KMS_KEY</code> - This key is owned by Amazon Keyspaces. </p> </li> <li> <p> <code>type:CUSTOMER_MANAGED_KMS_KEY</code> - This key is stored in your account and is created, owned, and managed by you. This option requires the <code>kms_key_identifier</code> of the KMS key in Amazon Resource Name (ARN) format as input. </p> </li> </ul> <p>The default is <code>AWS_OWNED_KMS_KEY</code>. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html">Encryption at rest</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
1563
+ # `type:AWS_OWNED_KMS_KEY` - This key is owned by Amazon Keyspaces.
1564
+ #
1565
+ # • `type:CUSTOMER_MANAGED_KMS_KEY` - This key is stored in your
1566
+ # account and is created, owned, and managed by you. This option
1567
+ # requires the `kms_key_identifier` of the KMS key in Amazon Resource
1568
+ # Name (ARN) format as input.
1569
+ #
1570
+ # The default is `AWS_OWNED_KMS_KEY`.
1571
+ #
1572
+ # For more information, see [Encryption at rest][1] in the *Amazon
1573
+ # Keyspaces Developer Guide*.
1574
+ #
1575
+ #
1576
+ #
1577
+ # [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html
1506
1578
  # @return [Types::EncryptionSpecification]
1507
1579
  #
1508
1580
  # @!attribute [rw] point_in_time_recovery
1509
1581
  # Modifies the `pointInTimeRecovery` settings of the table. The
1510
1582
  # options are:
1511
1583
  #
1512
- # * `ENABLED`
1584
+ # `ENABLED`
1513
1585
  #
1514
- # * `DISABLED`
1586
+ # `DISABLED`
1515
1587
  #
1516
1588
  # If it's not specified, the default is `DISABLED`.
1517
1589
  #
@@ -1527,9 +1599,9 @@ module Aws::Keyspaces
1527
1599
  # Modifies Time to Live custom settings for the table. The options
1528
1600
  # are:
1529
1601
  #
1530
- # * `status:enabled`
1602
+ # `status:enabled`
1531
1603
  #
1532
- # * `status:disabled`
1604
+ # `status:disabled`
1533
1605
  #
1534
1606
  # The default is `status:disabled`. After `ttl` is enabled, you can't
1535
1607
  # disable it for the table.
@@ -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.1.0'
56
+ GEM_VERSION = '1.3.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.1.0
4
+ version: 1.3.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-08 00:00:00.000000000 Z
11
+ date: 2022-10-25 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