aws-sdk-keyspaces 1.15.0 → 1.16.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-keyspaces/client.rb +326 -15
- data/lib/aws-sdk-keyspaces/client_api.rb +85 -0
- data/lib/aws-sdk-keyspaces/endpoint_provider.rb +2 -2
- data/lib/aws-sdk-keyspaces/endpoints.rb +14 -0
- data/lib/aws-sdk-keyspaces/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-keyspaces/types.rb +448 -6
- data/lib/aws-sdk-keyspaces.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 599c29764833010218314335b15c06786e8c1e8f2893a2bf644b239bd49f9946
|
4
|
+
data.tar.gz: 0cd9419ce13e31ad40c1bf074f481d9b49b3471280e1a0385cad31b4667ab23c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8228f6a74894985dc5321d5757c065e8906b9b2bf347605e0624e46e2be527054797030f43b3e8f07880abe2993dd7e771c3923ec7f0a755195c8ca4707cd021
|
7
|
+
data.tar.gz: c3dc85097d7b8dae32ddcb5d2ef11d493521d4a39228817abe4270c4b374bf2eb1c305fb43ebb7bfbfcfa8307b54c14fd2661f7cb87c42e8b3def852e0de4fc3
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.16.0 (2024-01-17)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for Multi-Region Replication with provisioned tables, and Keyspaces auto scaling APIs
|
8
|
+
|
4
9
|
1.15.0 (2023-11-28)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.16.0
|
@@ -639,6 +639,44 @@ module Aws::Keyspaces
|
|
639
639
|
# Once client-side timestamps are enabled for a table, this setting
|
640
640
|
# cannot be disabled.
|
641
641
|
#
|
642
|
+
# @option params [Types::AutoScalingSpecification] :auto_scaling_specification
|
643
|
+
# The optional auto scaling settings for a table in provisioned capacity
|
644
|
+
# mode. Specifies if the service can manage throughput capacity
|
645
|
+
# automatically on your behalf.
|
646
|
+
#
|
647
|
+
# Auto scaling helps you provision throughput capacity for variable
|
648
|
+
# workloads efficiently by increasing and decreasing your table's read
|
649
|
+
# and write capacity automatically in response to application traffic.
|
650
|
+
# For more information, see [Managing throughput capacity automatically
|
651
|
+
# with Amazon Keyspaces auto scaling][1] in the *Amazon Keyspaces
|
652
|
+
# Developer Guide*.
|
653
|
+
#
|
654
|
+
# By default, auto scaling is disabled for a table.
|
655
|
+
#
|
656
|
+
#
|
657
|
+
#
|
658
|
+
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/autoscaling.html
|
659
|
+
#
|
660
|
+
# @option params [Array<Types::ReplicaSpecification>] :replica_specifications
|
661
|
+
# The optional Amazon Web Services Region specific settings of a
|
662
|
+
# multi-Region table. These settings overwrite the general settings of
|
663
|
+
# the table for the specified Region.
|
664
|
+
#
|
665
|
+
# For a multi-Region table in provisioned capacity mode, you can
|
666
|
+
# configure the table's read capacity differently for each Region's
|
667
|
+
# replica. The write capacity, however, remains synchronized between all
|
668
|
+
# replicas to ensure that there's enough capacity to replicate writes
|
669
|
+
# across all Regions. To define the read capacity for a table replica in
|
670
|
+
# a specific Region, you can do so by configuring the following
|
671
|
+
# parameters.
|
672
|
+
#
|
673
|
+
# * `region`: The Region where these settings are applied. (Required)
|
674
|
+
#
|
675
|
+
# * `readCapacityUnits`: The provisioned read capacity units. (Optional)
|
676
|
+
#
|
677
|
+
# * `readCapacityAutoScaling`: The read capacity auto scaling settings
|
678
|
+
# for the table. (Optional)
|
679
|
+
#
|
642
680
|
# @return [Types::CreateTableResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
643
681
|
#
|
644
682
|
# * {Types::CreateTableResponse#resource_arn #resource_arn} => String
|
@@ -700,6 +738,53 @@ module Aws::Keyspaces
|
|
700
738
|
# client_side_timestamps: {
|
701
739
|
# status: "ENABLED", # required, accepts ENABLED
|
702
740
|
# },
|
741
|
+
# auto_scaling_specification: {
|
742
|
+
# write_capacity_auto_scaling: {
|
743
|
+
# auto_scaling_disabled: false,
|
744
|
+
# minimum_units: 1,
|
745
|
+
# maximum_units: 1,
|
746
|
+
# scaling_policy: {
|
747
|
+
# target_tracking_scaling_policy_configuration: {
|
748
|
+
# disable_scale_in: false,
|
749
|
+
# scale_in_cooldown: 1,
|
750
|
+
# scale_out_cooldown: 1,
|
751
|
+
# target_value: 1.0, # required
|
752
|
+
# },
|
753
|
+
# },
|
754
|
+
# },
|
755
|
+
# read_capacity_auto_scaling: {
|
756
|
+
# auto_scaling_disabled: false,
|
757
|
+
# minimum_units: 1,
|
758
|
+
# maximum_units: 1,
|
759
|
+
# scaling_policy: {
|
760
|
+
# target_tracking_scaling_policy_configuration: {
|
761
|
+
# disable_scale_in: false,
|
762
|
+
# scale_in_cooldown: 1,
|
763
|
+
# scale_out_cooldown: 1,
|
764
|
+
# target_value: 1.0, # required
|
765
|
+
# },
|
766
|
+
# },
|
767
|
+
# },
|
768
|
+
# },
|
769
|
+
# replica_specifications: [
|
770
|
+
# {
|
771
|
+
# region: "region", # required
|
772
|
+
# read_capacity_units: 1,
|
773
|
+
# read_capacity_auto_scaling: {
|
774
|
+
# auto_scaling_disabled: false,
|
775
|
+
# minimum_units: 1,
|
776
|
+
# maximum_units: 1,
|
777
|
+
# scaling_policy: {
|
778
|
+
# target_tracking_scaling_policy_configuration: {
|
779
|
+
# disable_scale_in: false,
|
780
|
+
# scale_in_cooldown: 1,
|
781
|
+
# scale_out_cooldown: 1,
|
782
|
+
# target_value: 1.0, # required
|
783
|
+
# },
|
784
|
+
# },
|
785
|
+
# },
|
786
|
+
# },
|
787
|
+
# ],
|
703
788
|
# })
|
704
789
|
#
|
705
790
|
# @example Response structure
|
@@ -836,6 +921,7 @@ module Aws::Keyspaces
|
|
836
921
|
# * {Types::GetTableResponse#default_time_to_live #default_time_to_live} => Integer
|
837
922
|
# * {Types::GetTableResponse#comment #comment} => Types::Comment
|
838
923
|
# * {Types::GetTableResponse#client_side_timestamps #client_side_timestamps} => Types::ClientSideTimestamps
|
924
|
+
# * {Types::GetTableResponse#replica_specifications #replica_specifications} => Array<Types::ReplicaSpecificationSummary>
|
839
925
|
#
|
840
926
|
# @example Request syntax with placeholder values
|
841
927
|
#
|
@@ -873,6 +959,13 @@ module Aws::Keyspaces
|
|
873
959
|
# resp.default_time_to_live #=> Integer
|
874
960
|
# resp.comment.message #=> String
|
875
961
|
# resp.client_side_timestamps.status #=> String, one of "ENABLED"
|
962
|
+
# resp.replica_specifications #=> Array
|
963
|
+
# resp.replica_specifications[0].region #=> String
|
964
|
+
# resp.replica_specifications[0].status #=> String, one of "ACTIVE", "CREATING", "UPDATING", "DELETING", "DELETED", "RESTORING", "INACCESSIBLE_ENCRYPTION_CREDENTIALS"
|
965
|
+
# resp.replica_specifications[0].capacity_specification.throughput_mode #=> String, one of "PAY_PER_REQUEST", "PROVISIONED"
|
966
|
+
# resp.replica_specifications[0].capacity_specification.read_capacity_units #=> Integer
|
967
|
+
# resp.replica_specifications[0].capacity_specification.write_capacity_units #=> Integer
|
968
|
+
# resp.replica_specifications[0].capacity_specification.last_update_to_pay_per_request_timestamp #=> Time
|
876
969
|
#
|
877
970
|
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/GetTable AWS API Documentation
|
878
971
|
#
|
@@ -883,6 +976,87 @@ module Aws::Keyspaces
|
|
883
976
|
req.send_request(options)
|
884
977
|
end
|
885
978
|
|
979
|
+
# Returns auto scaling related settings of the specified table in JSON
|
980
|
+
# format. If the table is a multi-Region table, the Amazon Web Services
|
981
|
+
# Region specific auto scaling settings of the table are included.
|
982
|
+
#
|
983
|
+
# Amazon Keyspaces auto scaling helps you provision throughput capacity
|
984
|
+
# for variable workloads efficiently by increasing and decreasing your
|
985
|
+
# table's read and write capacity automatically in response to
|
986
|
+
# application traffic. For more information, see [Managing throughput
|
987
|
+
# capacity automatically with Amazon Keyspaces auto scaling][1] in the
|
988
|
+
# *Amazon Keyspaces Developer Guide*.
|
989
|
+
#
|
990
|
+
#
|
991
|
+
#
|
992
|
+
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/autoscaling.html
|
993
|
+
#
|
994
|
+
# @option params [required, String] :keyspace_name
|
995
|
+
# The name of the keyspace.
|
996
|
+
#
|
997
|
+
# @option params [required, String] :table_name
|
998
|
+
# The name of the table.
|
999
|
+
#
|
1000
|
+
# @return [Types::GetTableAutoScalingSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1001
|
+
#
|
1002
|
+
# * {Types::GetTableAutoScalingSettingsResponse#keyspace_name #keyspace_name} => String
|
1003
|
+
# * {Types::GetTableAutoScalingSettingsResponse#table_name #table_name} => String
|
1004
|
+
# * {Types::GetTableAutoScalingSettingsResponse#resource_arn #resource_arn} => String
|
1005
|
+
# * {Types::GetTableAutoScalingSettingsResponse#auto_scaling_specification #auto_scaling_specification} => Types::AutoScalingSpecification
|
1006
|
+
# * {Types::GetTableAutoScalingSettingsResponse#replica_specifications #replica_specifications} => Array<Types::ReplicaAutoScalingSpecification>
|
1007
|
+
#
|
1008
|
+
# @example Request syntax with placeholder values
|
1009
|
+
#
|
1010
|
+
# resp = client.get_table_auto_scaling_settings({
|
1011
|
+
# keyspace_name: "KeyspaceName", # required
|
1012
|
+
# table_name: "TableName", # required
|
1013
|
+
# })
|
1014
|
+
#
|
1015
|
+
# @example Response structure
|
1016
|
+
#
|
1017
|
+
# resp.keyspace_name #=> String
|
1018
|
+
# resp.table_name #=> String
|
1019
|
+
# resp.resource_arn #=> String
|
1020
|
+
# resp.auto_scaling_specification.write_capacity_auto_scaling.auto_scaling_disabled #=> Boolean
|
1021
|
+
# resp.auto_scaling_specification.write_capacity_auto_scaling.minimum_units #=> Integer
|
1022
|
+
# resp.auto_scaling_specification.write_capacity_auto_scaling.maximum_units #=> Integer
|
1023
|
+
# resp.auto_scaling_specification.write_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.disable_scale_in #=> Boolean
|
1024
|
+
# resp.auto_scaling_specification.write_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.scale_in_cooldown #=> Integer
|
1025
|
+
# resp.auto_scaling_specification.write_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.scale_out_cooldown #=> Integer
|
1026
|
+
# resp.auto_scaling_specification.write_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.target_value #=> Float
|
1027
|
+
# resp.auto_scaling_specification.read_capacity_auto_scaling.auto_scaling_disabled #=> Boolean
|
1028
|
+
# resp.auto_scaling_specification.read_capacity_auto_scaling.minimum_units #=> Integer
|
1029
|
+
# resp.auto_scaling_specification.read_capacity_auto_scaling.maximum_units #=> Integer
|
1030
|
+
# resp.auto_scaling_specification.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.disable_scale_in #=> Boolean
|
1031
|
+
# resp.auto_scaling_specification.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.scale_in_cooldown #=> Integer
|
1032
|
+
# resp.auto_scaling_specification.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.scale_out_cooldown #=> Integer
|
1033
|
+
# resp.auto_scaling_specification.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.target_value #=> Float
|
1034
|
+
# resp.replica_specifications #=> Array
|
1035
|
+
# resp.replica_specifications[0].region #=> String
|
1036
|
+
# resp.replica_specifications[0].auto_scaling_specification.write_capacity_auto_scaling.auto_scaling_disabled #=> Boolean
|
1037
|
+
# resp.replica_specifications[0].auto_scaling_specification.write_capacity_auto_scaling.minimum_units #=> Integer
|
1038
|
+
# resp.replica_specifications[0].auto_scaling_specification.write_capacity_auto_scaling.maximum_units #=> Integer
|
1039
|
+
# resp.replica_specifications[0].auto_scaling_specification.write_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.disable_scale_in #=> Boolean
|
1040
|
+
# resp.replica_specifications[0].auto_scaling_specification.write_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.scale_in_cooldown #=> Integer
|
1041
|
+
# resp.replica_specifications[0].auto_scaling_specification.write_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.scale_out_cooldown #=> Integer
|
1042
|
+
# resp.replica_specifications[0].auto_scaling_specification.write_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.target_value #=> Float
|
1043
|
+
# resp.replica_specifications[0].auto_scaling_specification.read_capacity_auto_scaling.auto_scaling_disabled #=> Boolean
|
1044
|
+
# resp.replica_specifications[0].auto_scaling_specification.read_capacity_auto_scaling.minimum_units #=> Integer
|
1045
|
+
# resp.replica_specifications[0].auto_scaling_specification.read_capacity_auto_scaling.maximum_units #=> Integer
|
1046
|
+
# resp.replica_specifications[0].auto_scaling_specification.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.disable_scale_in #=> Boolean
|
1047
|
+
# resp.replica_specifications[0].auto_scaling_specification.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.scale_in_cooldown #=> Integer
|
1048
|
+
# resp.replica_specifications[0].auto_scaling_specification.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.scale_out_cooldown #=> Integer
|
1049
|
+
# resp.replica_specifications[0].auto_scaling_specification.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration.target_value #=> Float
|
1050
|
+
#
|
1051
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/GetTableAutoScalingSettings AWS API Documentation
|
1052
|
+
#
|
1053
|
+
# @overload get_table_auto_scaling_settings(params = {})
|
1054
|
+
# @param [Hash] params ({})
|
1055
|
+
def get_table_auto_scaling_settings(params = {}, options = {})
|
1056
|
+
req = build_request(:get_table_auto_scaling_settings, params)
|
1057
|
+
req.send_request(options)
|
1058
|
+
end
|
1059
|
+
|
886
1060
|
# Returns a list of keyspaces.
|
887
1061
|
#
|
888
1062
|
# @option params [String] :next_token
|
@@ -1022,7 +1196,7 @@ module Aws::Keyspaces
|
|
1022
1196
|
req.send_request(options)
|
1023
1197
|
end
|
1024
1198
|
|
1025
|
-
# Restores the
|
1199
|
+
# Restores the table to the specified point in time within the
|
1026
1200
|
# `earliest_restorable_timestamp` and the current time. For more
|
1027
1201
|
# information about restore points, see [ Time window for PITR
|
1028
1202
|
# continuous backups][1] in the *Amazon Keyspaces Developer Guide*.
|
@@ -1037,18 +1211,20 @@ module Aws::Keyspaces
|
|
1037
1211
|
# the selected timestamp.
|
1038
1212
|
#
|
1039
1213
|
# In addition to the table's schema, data, and TTL settings,
|
1040
|
-
# `RestoreTable` restores the capacity mode,
|
1041
|
-
# point-in-time recovery settings from the
|
1042
|
-
# table's schema data and TTL settings, which
|
1043
|
-
# selected timestamp, these settings are
|
1044
|
-
# table's settings as of the current time
|
1045
|
-
# deleted.
|
1214
|
+
# `RestoreTable` restores the capacity mode, auto scaling settings,
|
1215
|
+
# encryption settings, and point-in-time recovery settings from the
|
1216
|
+
# source table. Unlike the table's schema data and TTL settings, which
|
1217
|
+
# are restored based on the selected timestamp, these settings are
|
1218
|
+
# always restored based on the table's settings as of the current time
|
1219
|
+
# or when the table was deleted.
|
1046
1220
|
#
|
1047
1221
|
# You can also overwrite these settings during restore:
|
1048
1222
|
#
|
1049
1223
|
# * Read/write capacity mode
|
1050
1224
|
#
|
1051
|
-
# * Provisioned throughput capacity
|
1225
|
+
# * Provisioned throughput capacity units
|
1226
|
+
#
|
1227
|
+
# * Auto scaling settings
|
1052
1228
|
#
|
1053
1229
|
# * Point-in-time (PITR) settings
|
1054
1230
|
#
|
@@ -1060,9 +1236,6 @@ module Aws::Keyspaces
|
|
1060
1236
|
# Note that the following settings are not restored, and you must
|
1061
1237
|
# configure them manually for the new table:
|
1062
1238
|
#
|
1063
|
-
# * Automatic scaling policies (for tables that use provisioned capacity
|
1064
|
-
# mode)
|
1065
|
-
#
|
1066
1239
|
# * Identity and Access Management (IAM) policies
|
1067
1240
|
#
|
1068
1241
|
# * Amazon CloudWatch metrics and alarms
|
@@ -1152,6 +1325,26 @@ module Aws::Keyspaces
|
|
1152
1325
|
#
|
1153
1326
|
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/tagging-keyspaces.html
|
1154
1327
|
#
|
1328
|
+
# @option params [Types::AutoScalingSpecification] :auto_scaling_specification
|
1329
|
+
# The optional auto scaling settings for the restored table in
|
1330
|
+
# provisioned capacity mode. Specifies if the service can manage
|
1331
|
+
# throughput capacity of a provisioned table automatically on your
|
1332
|
+
# behalf. Amazon Keyspaces auto scaling helps you provision throughput
|
1333
|
+
# capacity for variable workloads efficiently by increasing and
|
1334
|
+
# decreasing your table's read and write capacity automatically in
|
1335
|
+
# response to application traffic.
|
1336
|
+
#
|
1337
|
+
# For more information, see [Managing throughput capacity automatically
|
1338
|
+
# with Amazon Keyspaces auto scaling][1] in the *Amazon Keyspaces
|
1339
|
+
# Developer Guide*.
|
1340
|
+
#
|
1341
|
+
#
|
1342
|
+
#
|
1343
|
+
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/autoscaling.html
|
1344
|
+
#
|
1345
|
+
# @option params [Array<Types::ReplicaSpecification>] :replica_specifications
|
1346
|
+
# The optional Region specific settings of a multi-Regional table.
|
1347
|
+
#
|
1155
1348
|
# @return [Types::RestoreTableResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1156
1349
|
#
|
1157
1350
|
# * {Types::RestoreTableResponse#restored_table_arn #restored_table_arn} => String
|
@@ -1182,6 +1375,53 @@ module Aws::Keyspaces
|
|
1182
1375
|
# value: "TagValue", # required
|
1183
1376
|
# },
|
1184
1377
|
# ],
|
1378
|
+
# auto_scaling_specification: {
|
1379
|
+
# write_capacity_auto_scaling: {
|
1380
|
+
# auto_scaling_disabled: false,
|
1381
|
+
# minimum_units: 1,
|
1382
|
+
# maximum_units: 1,
|
1383
|
+
# scaling_policy: {
|
1384
|
+
# target_tracking_scaling_policy_configuration: {
|
1385
|
+
# disable_scale_in: false,
|
1386
|
+
# scale_in_cooldown: 1,
|
1387
|
+
# scale_out_cooldown: 1,
|
1388
|
+
# target_value: 1.0, # required
|
1389
|
+
# },
|
1390
|
+
# },
|
1391
|
+
# },
|
1392
|
+
# read_capacity_auto_scaling: {
|
1393
|
+
# auto_scaling_disabled: false,
|
1394
|
+
# minimum_units: 1,
|
1395
|
+
# maximum_units: 1,
|
1396
|
+
# scaling_policy: {
|
1397
|
+
# target_tracking_scaling_policy_configuration: {
|
1398
|
+
# disable_scale_in: false,
|
1399
|
+
# scale_in_cooldown: 1,
|
1400
|
+
# scale_out_cooldown: 1,
|
1401
|
+
# target_value: 1.0, # required
|
1402
|
+
# },
|
1403
|
+
# },
|
1404
|
+
# },
|
1405
|
+
# },
|
1406
|
+
# replica_specifications: [
|
1407
|
+
# {
|
1408
|
+
# region: "region", # required
|
1409
|
+
# read_capacity_units: 1,
|
1410
|
+
# read_capacity_auto_scaling: {
|
1411
|
+
# auto_scaling_disabled: false,
|
1412
|
+
# minimum_units: 1,
|
1413
|
+
# maximum_units: 1,
|
1414
|
+
# scaling_policy: {
|
1415
|
+
# target_tracking_scaling_policy_configuration: {
|
1416
|
+
# disable_scale_in: false,
|
1417
|
+
# scale_in_cooldown: 1,
|
1418
|
+
# scale_out_cooldown: 1,
|
1419
|
+
# target_value: 1.0, # required
|
1420
|
+
# },
|
1421
|
+
# },
|
1422
|
+
# },
|
1423
|
+
# },
|
1424
|
+
# ],
|
1185
1425
|
# })
|
1186
1426
|
#
|
1187
1427
|
# @example Response structure
|
@@ -1276,9 +1516,9 @@ module Aws::Keyspaces
|
|
1276
1516
|
end
|
1277
1517
|
|
1278
1518
|
# Adds new columns to the table or updates one of the table's settings,
|
1279
|
-
# for example capacity mode, encryption, point-in-time
|
1280
|
-
# settings. Note that you can only update one specific
|
1281
|
-
# update operation.
|
1519
|
+
# for example capacity mode, auto scaling, encryption, point-in-time
|
1520
|
+
# recovery, or ttl settings. Note that you can only update one specific
|
1521
|
+
# table setting per update operation.
|
1282
1522
|
#
|
1283
1523
|
# @option params [required, String] :keyspace_name
|
1284
1524
|
# The name of the keyspace the specified table is stored in.
|
@@ -1392,6 +1632,30 @@ module Aws::Keyspaces
|
|
1392
1632
|
# Once client-side timestamps are enabled for a table, this setting
|
1393
1633
|
# cannot be disabled.
|
1394
1634
|
#
|
1635
|
+
# @option params [Types::AutoScalingSpecification] :auto_scaling_specification
|
1636
|
+
# The optional auto scaling settings to update for a table in
|
1637
|
+
# provisioned capacity mode. Specifies if the service can manage
|
1638
|
+
# throughput capacity of a provisioned table automatically on your
|
1639
|
+
# behalf. Amazon Keyspaces auto scaling helps you provision throughput
|
1640
|
+
# capacity for variable workloads efficiently by increasing and
|
1641
|
+
# decreasing your table's read and write capacity automatically in
|
1642
|
+
# response to application traffic.
|
1643
|
+
#
|
1644
|
+
# If auto scaling is already enabled for the table, you can use
|
1645
|
+
# `UpdateTable` to update the minimum and maximum values or the auto
|
1646
|
+
# scaling policy settings independently.
|
1647
|
+
#
|
1648
|
+
# For more information, see [Managing throughput capacity automatically
|
1649
|
+
# with Amazon Keyspaces auto scaling][1] in the *Amazon Keyspaces
|
1650
|
+
# Developer Guide*.
|
1651
|
+
#
|
1652
|
+
#
|
1653
|
+
#
|
1654
|
+
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/autoscaling.html
|
1655
|
+
#
|
1656
|
+
# @option params [Array<Types::ReplicaSpecification>] :replica_specifications
|
1657
|
+
# The Region specific settings of a multi-Regional table.
|
1658
|
+
#
|
1395
1659
|
# @return [Types::UpdateTableResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1396
1660
|
#
|
1397
1661
|
# * {Types::UpdateTableResponse#resource_arn #resource_arn} => String
|
@@ -1426,6 +1690,53 @@ module Aws::Keyspaces
|
|
1426
1690
|
# client_side_timestamps: {
|
1427
1691
|
# status: "ENABLED", # required, accepts ENABLED
|
1428
1692
|
# },
|
1693
|
+
# auto_scaling_specification: {
|
1694
|
+
# write_capacity_auto_scaling: {
|
1695
|
+
# auto_scaling_disabled: false,
|
1696
|
+
# minimum_units: 1,
|
1697
|
+
# maximum_units: 1,
|
1698
|
+
# scaling_policy: {
|
1699
|
+
# target_tracking_scaling_policy_configuration: {
|
1700
|
+
# disable_scale_in: false,
|
1701
|
+
# scale_in_cooldown: 1,
|
1702
|
+
# scale_out_cooldown: 1,
|
1703
|
+
# target_value: 1.0, # required
|
1704
|
+
# },
|
1705
|
+
# },
|
1706
|
+
# },
|
1707
|
+
# read_capacity_auto_scaling: {
|
1708
|
+
# auto_scaling_disabled: false,
|
1709
|
+
# minimum_units: 1,
|
1710
|
+
# maximum_units: 1,
|
1711
|
+
# scaling_policy: {
|
1712
|
+
# target_tracking_scaling_policy_configuration: {
|
1713
|
+
# disable_scale_in: false,
|
1714
|
+
# scale_in_cooldown: 1,
|
1715
|
+
# scale_out_cooldown: 1,
|
1716
|
+
# target_value: 1.0, # required
|
1717
|
+
# },
|
1718
|
+
# },
|
1719
|
+
# },
|
1720
|
+
# },
|
1721
|
+
# replica_specifications: [
|
1722
|
+
# {
|
1723
|
+
# region: "region", # required
|
1724
|
+
# read_capacity_units: 1,
|
1725
|
+
# read_capacity_auto_scaling: {
|
1726
|
+
# auto_scaling_disabled: false,
|
1727
|
+
# minimum_units: 1,
|
1728
|
+
# maximum_units: 1,
|
1729
|
+
# scaling_policy: {
|
1730
|
+
# target_tracking_scaling_policy_configuration: {
|
1731
|
+
# disable_scale_in: false,
|
1732
|
+
# scale_in_cooldown: 1,
|
1733
|
+
# scale_out_cooldown: 1,
|
1734
|
+
# target_value: 1.0, # required
|
1735
|
+
# },
|
1736
|
+
# },
|
1737
|
+
# },
|
1738
|
+
# },
|
1739
|
+
# ],
|
1429
1740
|
# })
|
1430
1741
|
#
|
1431
1742
|
# @example Response structure
|
@@ -1454,7 +1765,7 @@ module Aws::Keyspaces
|
|
1454
1765
|
params: params,
|
1455
1766
|
config: config)
|
1456
1767
|
context[:gem_name] = 'aws-sdk-keyspaces'
|
1457
|
-
context[:gem_version] = '1.
|
1768
|
+
context[:gem_version] = '1.16.0'
|
1458
1769
|
Seahorse::Client::Request.new(handlers, context)
|
1459
1770
|
end
|
1460
1771
|
|
@@ -15,6 +15,10 @@ module Aws::Keyspaces
|
|
15
15
|
|
16
16
|
ARN = Shapes::StringShape.new(name: 'ARN')
|
17
17
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
18
|
+
AutoScalingPolicy = Shapes::StructureShape.new(name: 'AutoScalingPolicy')
|
19
|
+
AutoScalingSettings = Shapes::StructureShape.new(name: 'AutoScalingSettings')
|
20
|
+
AutoScalingSpecification = Shapes::StructureShape.new(name: 'AutoScalingSpecification')
|
21
|
+
BooleanObject = Shapes::BooleanShape.new(name: 'BooleanObject')
|
18
22
|
CapacitySpecification = Shapes::StructureShape.new(name: 'CapacitySpecification')
|
19
23
|
CapacitySpecificationSummary = Shapes::StructureShape.new(name: 'CapacitySpecificationSummary')
|
20
24
|
CapacityUnits = Shapes::IntegerShape.new(name: 'CapacityUnits')
|
@@ -35,13 +39,17 @@ module Aws::Keyspaces
|
|
35
39
|
DeleteKeyspaceResponse = Shapes::StructureShape.new(name: 'DeleteKeyspaceResponse')
|
36
40
|
DeleteTableRequest = Shapes::StructureShape.new(name: 'DeleteTableRequest')
|
37
41
|
DeleteTableResponse = Shapes::StructureShape.new(name: 'DeleteTableResponse')
|
42
|
+
DoubleObject = Shapes::FloatShape.new(name: 'DoubleObject')
|
38
43
|
EncryptionSpecification = Shapes::StructureShape.new(name: 'EncryptionSpecification')
|
39
44
|
EncryptionType = Shapes::StringShape.new(name: 'EncryptionType')
|
40
45
|
GenericString = Shapes::StringShape.new(name: 'GenericString')
|
41
46
|
GetKeyspaceRequest = Shapes::StructureShape.new(name: 'GetKeyspaceRequest')
|
42
47
|
GetKeyspaceResponse = Shapes::StructureShape.new(name: 'GetKeyspaceResponse')
|
48
|
+
GetTableAutoScalingSettingsRequest = Shapes::StructureShape.new(name: 'GetTableAutoScalingSettingsRequest')
|
49
|
+
GetTableAutoScalingSettingsResponse = Shapes::StructureShape.new(name: 'GetTableAutoScalingSettingsResponse')
|
43
50
|
GetTableRequest = Shapes::StructureShape.new(name: 'GetTableRequest')
|
44
51
|
GetTableResponse = Shapes::StructureShape.new(name: 'GetTableResponse')
|
52
|
+
IntegerObject = Shapes::IntegerShape.new(name: 'IntegerObject')
|
45
53
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
46
54
|
KeyspaceName = Shapes::StringShape.new(name: 'KeyspaceName')
|
47
55
|
KeyspaceSummary = Shapes::StructureShape.new(name: 'KeyspaceSummary')
|
@@ -60,6 +68,12 @@ module Aws::Keyspaces
|
|
60
68
|
PointInTimeRecoveryStatus = Shapes::StringShape.new(name: 'PointInTimeRecoveryStatus')
|
61
69
|
PointInTimeRecoverySummary = Shapes::StructureShape.new(name: 'PointInTimeRecoverySummary')
|
62
70
|
RegionList = Shapes::ListShape.new(name: 'RegionList')
|
71
|
+
ReplicaAutoScalingSpecification = Shapes::StructureShape.new(name: 'ReplicaAutoScalingSpecification')
|
72
|
+
ReplicaAutoScalingSpecificationList = Shapes::ListShape.new(name: 'ReplicaAutoScalingSpecificationList')
|
73
|
+
ReplicaSpecification = Shapes::StructureShape.new(name: 'ReplicaSpecification')
|
74
|
+
ReplicaSpecificationList = Shapes::ListShape.new(name: 'ReplicaSpecificationList')
|
75
|
+
ReplicaSpecificationSummary = Shapes::StructureShape.new(name: 'ReplicaSpecificationSummary')
|
76
|
+
ReplicaSpecificationSummaryList = Shapes::ListShape.new(name: 'ReplicaSpecificationSummaryList')
|
63
77
|
ReplicationSpecification = Shapes::StructureShape.new(name: 'ReplicationSpecification')
|
64
78
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
65
79
|
RestoreTableRequest = Shapes::StructureShape.new(name: 'RestoreTableRequest')
|
@@ -80,6 +94,7 @@ module Aws::Keyspaces
|
|
80
94
|
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
81
95
|
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
82
96
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
97
|
+
TargetTrackingScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'TargetTrackingScalingPolicyConfiguration')
|
83
98
|
ThroughputMode = Shapes::StringShape.new(name: 'ThroughputMode')
|
84
99
|
TimeToLive = Shapes::StructureShape.new(name: 'TimeToLive')
|
85
100
|
TimeToLiveStatus = Shapes::StringShape.new(name: 'TimeToLiveStatus')
|
@@ -96,6 +111,19 @@ module Aws::Keyspaces
|
|
96
111
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
97
112
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
98
113
|
|
114
|
+
AutoScalingPolicy.add_member(:target_tracking_scaling_policy_configuration, Shapes::ShapeRef.new(shape: TargetTrackingScalingPolicyConfiguration, location_name: "targetTrackingScalingPolicyConfiguration"))
|
115
|
+
AutoScalingPolicy.struct_class = Types::AutoScalingPolicy
|
116
|
+
|
117
|
+
AutoScalingSettings.add_member(:auto_scaling_disabled, Shapes::ShapeRef.new(shape: BooleanObject, location_name: "autoScalingDisabled"))
|
118
|
+
AutoScalingSettings.add_member(:minimum_units, Shapes::ShapeRef.new(shape: CapacityUnits, location_name: "minimumUnits"))
|
119
|
+
AutoScalingSettings.add_member(:maximum_units, Shapes::ShapeRef.new(shape: CapacityUnits, location_name: "maximumUnits"))
|
120
|
+
AutoScalingSettings.add_member(:scaling_policy, Shapes::ShapeRef.new(shape: AutoScalingPolicy, location_name: "scalingPolicy"))
|
121
|
+
AutoScalingSettings.struct_class = Types::AutoScalingSettings
|
122
|
+
|
123
|
+
AutoScalingSpecification.add_member(:write_capacity_auto_scaling, Shapes::ShapeRef.new(shape: AutoScalingSettings, location_name: "writeCapacityAutoScaling"))
|
124
|
+
AutoScalingSpecification.add_member(:read_capacity_auto_scaling, Shapes::ShapeRef.new(shape: AutoScalingSettings, location_name: "readCapacityAutoScaling"))
|
125
|
+
AutoScalingSpecification.struct_class = Types::AutoScalingSpecification
|
126
|
+
|
99
127
|
CapacitySpecification.add_member(:throughput_mode, Shapes::ShapeRef.new(shape: ThroughputMode, required: true, location_name: "throughputMode"))
|
100
128
|
CapacitySpecification.add_member(:read_capacity_units, Shapes::ShapeRef.new(shape: CapacityUnits, location_name: "readCapacityUnits"))
|
101
129
|
CapacitySpecification.add_member(:write_capacity_units, Shapes::ShapeRef.new(shape: CapacityUnits, location_name: "writeCapacityUnits"))
|
@@ -147,6 +175,8 @@ module Aws::Keyspaces
|
|
147
175
|
CreateTableRequest.add_member(:default_time_to_live, Shapes::ShapeRef.new(shape: DefaultTimeToLive, location_name: "defaultTimeToLive"))
|
148
176
|
CreateTableRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
149
177
|
CreateTableRequest.add_member(:client_side_timestamps, Shapes::ShapeRef.new(shape: ClientSideTimestamps, location_name: "clientSideTimestamps"))
|
178
|
+
CreateTableRequest.add_member(:auto_scaling_specification, Shapes::ShapeRef.new(shape: AutoScalingSpecification, location_name: "autoScalingSpecification"))
|
179
|
+
CreateTableRequest.add_member(:replica_specifications, Shapes::ShapeRef.new(shape: ReplicaSpecificationList, location_name: "replicaSpecifications"))
|
150
180
|
CreateTableRequest.struct_class = Types::CreateTableRequest
|
151
181
|
|
152
182
|
CreateTableResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
|
@@ -176,6 +206,17 @@ module Aws::Keyspaces
|
|
176
206
|
GetKeyspaceResponse.add_member(:replication_regions, Shapes::ShapeRef.new(shape: RegionList, location_name: "replicationRegions"))
|
177
207
|
GetKeyspaceResponse.struct_class = Types::GetKeyspaceResponse
|
178
208
|
|
209
|
+
GetTableAutoScalingSettingsRequest.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
|
210
|
+
GetTableAutoScalingSettingsRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "tableName"))
|
211
|
+
GetTableAutoScalingSettingsRequest.struct_class = Types::GetTableAutoScalingSettingsRequest
|
212
|
+
|
213
|
+
GetTableAutoScalingSettingsResponse.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
|
214
|
+
GetTableAutoScalingSettingsResponse.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "tableName"))
|
215
|
+
GetTableAutoScalingSettingsResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
|
216
|
+
GetTableAutoScalingSettingsResponse.add_member(:auto_scaling_specification, Shapes::ShapeRef.new(shape: AutoScalingSpecification, location_name: "autoScalingSpecification"))
|
217
|
+
GetTableAutoScalingSettingsResponse.add_member(:replica_specifications, Shapes::ShapeRef.new(shape: ReplicaAutoScalingSpecificationList, location_name: "replicaSpecifications"))
|
218
|
+
GetTableAutoScalingSettingsResponse.struct_class = Types::GetTableAutoScalingSettingsResponse
|
219
|
+
|
179
220
|
GetTableRequest.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
|
180
221
|
GetTableRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "tableName"))
|
181
222
|
GetTableRequest.struct_class = Types::GetTableRequest
|
@@ -193,6 +234,7 @@ module Aws::Keyspaces
|
|
193
234
|
GetTableResponse.add_member(:default_time_to_live, Shapes::ShapeRef.new(shape: DefaultTimeToLive, location_name: "defaultTimeToLive"))
|
194
235
|
GetTableResponse.add_member(:comment, Shapes::ShapeRef.new(shape: Comment, location_name: "comment"))
|
195
236
|
GetTableResponse.add_member(:client_side_timestamps, Shapes::ShapeRef.new(shape: ClientSideTimestamps, location_name: "clientSideTimestamps"))
|
237
|
+
GetTableResponse.add_member(:replica_specifications, Shapes::ShapeRef.new(shape: ReplicaSpecificationSummaryList, location_name: "replicaSpecifications"))
|
196
238
|
GetTableResponse.struct_class = Types::GetTableResponse
|
197
239
|
|
198
240
|
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
@@ -246,6 +288,26 @@ module Aws::Keyspaces
|
|
246
288
|
|
247
289
|
RegionList.member = Shapes::ShapeRef.new(shape: region)
|
248
290
|
|
291
|
+
ReplicaAutoScalingSpecification.add_member(:region, Shapes::ShapeRef.new(shape: region, location_name: "region"))
|
292
|
+
ReplicaAutoScalingSpecification.add_member(:auto_scaling_specification, Shapes::ShapeRef.new(shape: AutoScalingSpecification, location_name: "autoScalingSpecification"))
|
293
|
+
ReplicaAutoScalingSpecification.struct_class = Types::ReplicaAutoScalingSpecification
|
294
|
+
|
295
|
+
ReplicaAutoScalingSpecificationList.member = Shapes::ShapeRef.new(shape: ReplicaAutoScalingSpecification)
|
296
|
+
|
297
|
+
ReplicaSpecification.add_member(:region, Shapes::ShapeRef.new(shape: region, required: true, location_name: "region"))
|
298
|
+
ReplicaSpecification.add_member(:read_capacity_units, Shapes::ShapeRef.new(shape: CapacityUnits, location_name: "readCapacityUnits"))
|
299
|
+
ReplicaSpecification.add_member(:read_capacity_auto_scaling, Shapes::ShapeRef.new(shape: AutoScalingSettings, location_name: "readCapacityAutoScaling"))
|
300
|
+
ReplicaSpecification.struct_class = Types::ReplicaSpecification
|
301
|
+
|
302
|
+
ReplicaSpecificationList.member = Shapes::ShapeRef.new(shape: ReplicaSpecification)
|
303
|
+
|
304
|
+
ReplicaSpecificationSummary.add_member(:region, Shapes::ShapeRef.new(shape: region, location_name: "region"))
|
305
|
+
ReplicaSpecificationSummary.add_member(:status, Shapes::ShapeRef.new(shape: TableStatus, location_name: "status"))
|
306
|
+
ReplicaSpecificationSummary.add_member(:capacity_specification, Shapes::ShapeRef.new(shape: CapacitySpecificationSummary, location_name: "capacitySpecification"))
|
307
|
+
ReplicaSpecificationSummary.struct_class = Types::ReplicaSpecificationSummary
|
308
|
+
|
309
|
+
ReplicaSpecificationSummaryList.member = Shapes::ShapeRef.new(shape: ReplicaSpecificationSummary)
|
310
|
+
|
249
311
|
ReplicationSpecification.add_member(:replication_strategy, Shapes::ShapeRef.new(shape: rs, required: true, location_name: "replicationStrategy"))
|
250
312
|
ReplicationSpecification.add_member(:region_list, Shapes::ShapeRef.new(shape: RegionList, location_name: "regionList"))
|
251
313
|
ReplicationSpecification.struct_class = Types::ReplicationSpecification
|
@@ -263,6 +325,8 @@ module Aws::Keyspaces
|
|
263
325
|
RestoreTableRequest.add_member(:encryption_specification_override, Shapes::ShapeRef.new(shape: EncryptionSpecification, location_name: "encryptionSpecificationOverride"))
|
264
326
|
RestoreTableRequest.add_member(:point_in_time_recovery_override, Shapes::ShapeRef.new(shape: PointInTimeRecovery, location_name: "pointInTimeRecoveryOverride"))
|
265
327
|
RestoreTableRequest.add_member(:tags_override, Shapes::ShapeRef.new(shape: TagList, location_name: "tagsOverride"))
|
328
|
+
RestoreTableRequest.add_member(:auto_scaling_specification, Shapes::ShapeRef.new(shape: AutoScalingSpecification, location_name: "autoScalingSpecification"))
|
329
|
+
RestoreTableRequest.add_member(:replica_specifications, Shapes::ShapeRef.new(shape: ReplicaSpecificationList, location_name: "replicaSpecifications"))
|
266
330
|
RestoreTableRequest.struct_class = Types::RestoreTableRequest
|
267
331
|
|
268
332
|
RestoreTableResponse.add_member(:restored_table_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "restoredTableARN"))
|
@@ -301,6 +365,12 @@ module Aws::Keyspaces
|
|
301
365
|
|
302
366
|
TagResourceResponse.struct_class = Types::TagResourceResponse
|
303
367
|
|
368
|
+
TargetTrackingScalingPolicyConfiguration.add_member(:disable_scale_in, Shapes::ShapeRef.new(shape: BooleanObject, location_name: "disableScaleIn"))
|
369
|
+
TargetTrackingScalingPolicyConfiguration.add_member(:scale_in_cooldown, Shapes::ShapeRef.new(shape: IntegerObject, location_name: "scaleInCooldown"))
|
370
|
+
TargetTrackingScalingPolicyConfiguration.add_member(:scale_out_cooldown, Shapes::ShapeRef.new(shape: IntegerObject, location_name: "scaleOutCooldown"))
|
371
|
+
TargetTrackingScalingPolicyConfiguration.add_member(:target_value, Shapes::ShapeRef.new(shape: DoubleObject, required: true, location_name: "targetValue"))
|
372
|
+
TargetTrackingScalingPolicyConfiguration.struct_class = Types::TargetTrackingScalingPolicyConfiguration
|
373
|
+
|
304
374
|
TimeToLive.add_member(:status, Shapes::ShapeRef.new(shape: TimeToLiveStatus, required: true, location_name: "status"))
|
305
375
|
TimeToLive.struct_class = Types::TimeToLive
|
306
376
|
|
@@ -319,6 +389,8 @@ module Aws::Keyspaces
|
|
319
389
|
UpdateTableRequest.add_member(:ttl, Shapes::ShapeRef.new(shape: TimeToLive, location_name: "ttl"))
|
320
390
|
UpdateTableRequest.add_member(:default_time_to_live, Shapes::ShapeRef.new(shape: DefaultTimeToLive, location_name: "defaultTimeToLive"))
|
321
391
|
UpdateTableRequest.add_member(:client_side_timestamps, Shapes::ShapeRef.new(shape: ClientSideTimestamps, location_name: "clientSideTimestamps"))
|
392
|
+
UpdateTableRequest.add_member(:auto_scaling_specification, Shapes::ShapeRef.new(shape: AutoScalingSpecification, location_name: "autoScalingSpecification"))
|
393
|
+
UpdateTableRequest.add_member(:replica_specifications, Shapes::ShapeRef.new(shape: ReplicaSpecificationList, location_name: "replicaSpecifications"))
|
322
394
|
UpdateTableRequest.struct_class = Types::UpdateTableRequest
|
323
395
|
|
324
396
|
UpdateTableResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
|
@@ -427,6 +499,19 @@ module Aws::Keyspaces
|
|
427
499
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
428
500
|
end)
|
429
501
|
|
502
|
+
api.add_operation(:get_table_auto_scaling_settings, Seahorse::Model::Operation.new.tap do |o|
|
503
|
+
o.name = "GetTableAutoScalingSettings"
|
504
|
+
o.http_method = "POST"
|
505
|
+
o.http_request_uri = "/"
|
506
|
+
o.input = Shapes::ShapeRef.new(shape: GetTableAutoScalingSettingsRequest)
|
507
|
+
o.output = Shapes::ShapeRef.new(shape: GetTableAutoScalingSettingsResponse)
|
508
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
509
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
510
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
511
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
512
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
513
|
+
end)
|
514
|
+
|
430
515
|
api.add_operation(:list_keyspaces, Seahorse::Model::Operation.new.tap do |o|
|
431
516
|
o.name = "ListKeyspaces"
|
432
517
|
o.http_method = "POST"
|
@@ -32,8 +32,8 @@ module Aws::Keyspaces
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
36
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
37
37
|
return Aws::Endpoints::Endpoint.new(url: "https://cassandra.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
38
|
end
|
39
39
|
return Aws::Endpoints::Endpoint.new(url: "https://cassandra-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
@@ -96,6 +96,20 @@ module Aws::Keyspaces
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
|
+
class GetTableAutoScalingSettings
|
100
|
+
def self.build(context)
|
101
|
+
unless context.config.regional_endpoint
|
102
|
+
endpoint = context.config.endpoint.to_s
|
103
|
+
end
|
104
|
+
Aws::Keyspaces::EndpointParameters.new(
|
105
|
+
region: context.config.region,
|
106
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
107
|
+
use_fips: context.config.use_fips_endpoint,
|
108
|
+
endpoint: endpoint,
|
109
|
+
)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
99
113
|
class ListKeyspaces
|
100
114
|
def self.build(context)
|
101
115
|
unless context.config.regional_endpoint
|
@@ -69,6 +69,8 @@ module Aws::Keyspaces
|
|
69
69
|
Aws::Keyspaces::Endpoints::GetKeyspace.build(context)
|
70
70
|
when :get_table
|
71
71
|
Aws::Keyspaces::Endpoints::GetTable.build(context)
|
72
|
+
when :get_table_auto_scaling_settings
|
73
|
+
Aws::Keyspaces::Endpoints::GetTableAutoScalingSettings.build(context)
|
72
74
|
when :list_keyspaces
|
73
75
|
Aws::Keyspaces::Endpoints::ListKeyspaces.build(context)
|
74
76
|
when :list_tables
|
@@ -10,9 +10,10 @@
|
|
10
10
|
module Aws::Keyspaces
|
11
11
|
module Types
|
12
12
|
|
13
|
-
# You
|
13
|
+
# You don't have sufficient access permissions to perform this action.
|
14
14
|
#
|
15
15
|
# @!attribute [rw] message
|
16
|
+
# Description of the error.
|
16
17
|
# @return [String]
|
17
18
|
#
|
18
19
|
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/AccessDeniedException AWS API Documentation
|
@@ -23,6 +24,137 @@ module Aws::Keyspaces
|
|
23
24
|
include Aws::Structure
|
24
25
|
end
|
25
26
|
|
27
|
+
# Amazon Keyspaces supports the `target tracking` auto scaling policy.
|
28
|
+
# With this policy, Amazon Keyspaces auto scaling ensures that the
|
29
|
+
# table's ratio of consumed to provisioned capacity stays at or near
|
30
|
+
# the target value that you specify. You define the target value as a
|
31
|
+
# percentage between 20 and 90.
|
32
|
+
#
|
33
|
+
# @!attribute [rw] target_tracking_scaling_policy_configuration
|
34
|
+
# Auto scaling scales up capacity automatically when traffic exceeds
|
35
|
+
# this target utilization rate, and then back down when it falls below
|
36
|
+
# the target. A `double` between 20 and 90.
|
37
|
+
# @return [Types::TargetTrackingScalingPolicyConfiguration]
|
38
|
+
#
|
39
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/AutoScalingPolicy AWS API Documentation
|
40
|
+
#
|
41
|
+
class AutoScalingPolicy < Struct.new(
|
42
|
+
:target_tracking_scaling_policy_configuration)
|
43
|
+
SENSITIVE = []
|
44
|
+
include Aws::Structure
|
45
|
+
end
|
46
|
+
|
47
|
+
# The optional auto scaling settings for a table with provisioned
|
48
|
+
# throughput capacity.
|
49
|
+
#
|
50
|
+
# To turn on auto scaling for a table in `throughputMode:PROVISIONED`,
|
51
|
+
# you must specify the following parameters.
|
52
|
+
#
|
53
|
+
# Configure the minimum and maximum units for write and read capacity.
|
54
|
+
# The auto scaling policy ensures that capacity never goes below the
|
55
|
+
# minimum or above the maximum range.
|
56
|
+
#
|
57
|
+
# * `minimumUnits`: The minimum level of throughput the table should
|
58
|
+
# always be ready to support. The value must be between 1 and the max
|
59
|
+
# throughput per second quota for your account (40,000 by default).
|
60
|
+
#
|
61
|
+
# * `maximumUnits`: The maximum level of throughput the table should
|
62
|
+
# always be ready to support. The value must be between 1 and the max
|
63
|
+
# throughput per second quota for your account (40,000 by default).
|
64
|
+
#
|
65
|
+
# * `scalingPolicy`: Amazon Keyspaces supports the `target tracking`
|
66
|
+
# scaling policy. The auto scaling target is the provisioned read and
|
67
|
+
# write capacity of the table.
|
68
|
+
#
|
69
|
+
# * `targetTrackingScalingPolicyConfiguration`: To define the target
|
70
|
+
# tracking policy, you must define the target value.
|
71
|
+
#
|
72
|
+
# * `targetValue`: The target utilization rate of the table. Amazon
|
73
|
+
# Keyspaces auto scaling ensures that the ratio of consumed
|
74
|
+
# capacity to provisioned capacity stays at or near this value.
|
75
|
+
# You define `targetValue` as a percentage. A `double` between 20
|
76
|
+
# and 90. (Required)
|
77
|
+
#
|
78
|
+
# * `disableScaleIn`: A `boolean` that specifies if `scale-in` is
|
79
|
+
# disabled or enabled for the table. This parameter is disabled by
|
80
|
+
# default. To turn on `scale-in`, set the `boolean` value to
|
81
|
+
# `FALSE`. This means that capacity for a table can be
|
82
|
+
# automatically scaled down on your behalf. (Optional)
|
83
|
+
#
|
84
|
+
# * `scaleInCooldown`: A cooldown period in seconds between scaling
|
85
|
+
# activities that lets the table stabilize before another scale in
|
86
|
+
# activity starts. If no value is provided, the default is 0.
|
87
|
+
# (Optional)
|
88
|
+
#
|
89
|
+
# * `scaleOutCooldown`: A cooldown period in seconds between scaling
|
90
|
+
# activities that lets the table stabilize before another scale
|
91
|
+
# out activity starts. If no value is provided, the default is 0.
|
92
|
+
# (Optional)
|
93
|
+
#
|
94
|
+
# For more information, see [Managing throughput capacity automatically
|
95
|
+
# with Amazon Keyspaces auto scaling][1] in the *Amazon Keyspaces
|
96
|
+
# Developer Guide*.
|
97
|
+
#
|
98
|
+
#
|
99
|
+
#
|
100
|
+
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/autoscaling.html
|
101
|
+
#
|
102
|
+
# @!attribute [rw] auto_scaling_disabled
|
103
|
+
# This optional parameter enables auto scaling for the table if set to
|
104
|
+
# `false`.
|
105
|
+
# @return [Boolean]
|
106
|
+
#
|
107
|
+
# @!attribute [rw] minimum_units
|
108
|
+
# The minimum level of throughput the table should always be ready to
|
109
|
+
# support. The value must be between 1 and the max throughput per
|
110
|
+
# second quota for your account (40,000 by default).
|
111
|
+
# @return [Integer]
|
112
|
+
#
|
113
|
+
# @!attribute [rw] maximum_units
|
114
|
+
# Manage costs by specifying the maximum amount of throughput to
|
115
|
+
# provision. The value must be between 1 and the max throughput per
|
116
|
+
# second quota for your account (40,000 by default).
|
117
|
+
# @return [Integer]
|
118
|
+
#
|
119
|
+
# @!attribute [rw] scaling_policy
|
120
|
+
# Amazon Keyspaces supports the `target tracking` auto scaling policy.
|
121
|
+
# With this policy, Amazon Keyspaces auto scaling ensures that the
|
122
|
+
# table's ratio of consumed to provisioned capacity stays at or near
|
123
|
+
# the target value that you specify. You define the target value as a
|
124
|
+
# percentage between 20 and 90.
|
125
|
+
# @return [Types::AutoScalingPolicy]
|
126
|
+
#
|
127
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/AutoScalingSettings AWS API Documentation
|
128
|
+
#
|
129
|
+
class AutoScalingSettings < Struct.new(
|
130
|
+
:auto_scaling_disabled,
|
131
|
+
:minimum_units,
|
132
|
+
:maximum_units,
|
133
|
+
:scaling_policy)
|
134
|
+
SENSITIVE = []
|
135
|
+
include Aws::Structure
|
136
|
+
end
|
137
|
+
|
138
|
+
# The optional auto scaling settings for read and write capacity of a
|
139
|
+
# table in provisioned capacity mode.
|
140
|
+
#
|
141
|
+
# @!attribute [rw] write_capacity_auto_scaling
|
142
|
+
# The auto scaling settings for the table's write capacity.
|
143
|
+
# @return [Types::AutoScalingSettings]
|
144
|
+
#
|
145
|
+
# @!attribute [rw] read_capacity_auto_scaling
|
146
|
+
# The auto scaling settings for the table's read capacity.
|
147
|
+
# @return [Types::AutoScalingSettings]
|
148
|
+
#
|
149
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/AutoScalingSpecification AWS API Documentation
|
150
|
+
#
|
151
|
+
class AutoScalingSpecification < Struct.new(
|
152
|
+
:write_capacity_auto_scaling,
|
153
|
+
:read_capacity_auto_scaling)
|
154
|
+
SENSITIVE = []
|
155
|
+
include Aws::Structure
|
156
|
+
end
|
157
|
+
|
26
158
|
# Amazon Keyspaces has two read/write capacity modes for processing
|
27
159
|
# reads and writes on your tables:
|
28
160
|
#
|
@@ -218,12 +350,13 @@ module Aws::Keyspaces
|
|
218
350
|
include Aws::Structure
|
219
351
|
end
|
220
352
|
|
221
|
-
# Amazon Keyspaces
|
353
|
+
# Amazon Keyspaces couldn't complete the requested action. This error
|
222
354
|
# may occur if you try to perform an action and the same or a different
|
223
355
|
# action is already in progress, or if you try to create a resource that
|
224
356
|
# already exists.
|
225
357
|
#
|
226
358
|
# @!attribute [rw] message
|
359
|
+
# Description of the error.
|
227
360
|
# @return [String]
|
228
361
|
#
|
229
362
|
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/ConflictException AWS API Documentation
|
@@ -449,6 +582,47 @@ module Aws::Keyspaces
|
|
449
582
|
# cannot be disabled.
|
450
583
|
# @return [Types::ClientSideTimestamps]
|
451
584
|
#
|
585
|
+
# @!attribute [rw] auto_scaling_specification
|
586
|
+
# The optional auto scaling settings for a table in provisioned
|
587
|
+
# capacity mode. Specifies if the service can manage throughput
|
588
|
+
# capacity automatically on your behalf.
|
589
|
+
#
|
590
|
+
# Auto scaling helps you provision throughput capacity for variable
|
591
|
+
# workloads efficiently by increasing and decreasing your table's
|
592
|
+
# read and write capacity automatically in response to application
|
593
|
+
# traffic. For more information, see [Managing throughput capacity
|
594
|
+
# automatically with Amazon Keyspaces auto scaling][1] in the *Amazon
|
595
|
+
# Keyspaces Developer Guide*.
|
596
|
+
#
|
597
|
+
# By default, auto scaling is disabled for a table.
|
598
|
+
#
|
599
|
+
#
|
600
|
+
#
|
601
|
+
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/autoscaling.html
|
602
|
+
# @return [Types::AutoScalingSpecification]
|
603
|
+
#
|
604
|
+
# @!attribute [rw] replica_specifications
|
605
|
+
# The optional Amazon Web Services Region specific settings of a
|
606
|
+
# multi-Region table. These settings overwrite the general settings of
|
607
|
+
# the table for the specified Region.
|
608
|
+
#
|
609
|
+
# For a multi-Region table in provisioned capacity mode, you can
|
610
|
+
# configure the table's read capacity differently for each Region's
|
611
|
+
# replica. The write capacity, however, remains synchronized between
|
612
|
+
# all replicas to ensure that there's enough capacity to replicate
|
613
|
+
# writes across all Regions. To define the read capacity for a table
|
614
|
+
# replica in a specific Region, you can do so by configuring the
|
615
|
+
# following parameters.
|
616
|
+
#
|
617
|
+
# * `region`: The Region where these settings are applied. (Required)
|
618
|
+
#
|
619
|
+
# * `readCapacityUnits`: The provisioned read capacity units.
|
620
|
+
# (Optional)
|
621
|
+
#
|
622
|
+
# * `readCapacityAutoScaling`: The read capacity auto scaling settings
|
623
|
+
# for the table. (Optional)
|
624
|
+
# @return [Array<Types::ReplicaSpecification>]
|
625
|
+
#
|
452
626
|
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/CreateTableRequest AWS API Documentation
|
453
627
|
#
|
454
628
|
class CreateTableRequest < Struct.new(
|
@@ -462,7 +636,9 @@ module Aws::Keyspaces
|
|
462
636
|
:ttl,
|
463
637
|
:default_time_to_live,
|
464
638
|
:tags,
|
465
|
-
:client_side_timestamps
|
639
|
+
:client_side_timestamps,
|
640
|
+
:auto_scaling_specification,
|
641
|
+
:replica_specifications)
|
466
642
|
SENSITIVE = []
|
467
643
|
include Aws::Structure
|
468
644
|
end
|
@@ -615,6 +791,57 @@ module Aws::Keyspaces
|
|
615
791
|
include Aws::Structure
|
616
792
|
end
|
617
793
|
|
794
|
+
# @!attribute [rw] keyspace_name
|
795
|
+
# The name of the keyspace.
|
796
|
+
# @return [String]
|
797
|
+
#
|
798
|
+
# @!attribute [rw] table_name
|
799
|
+
# The name of the table.
|
800
|
+
# @return [String]
|
801
|
+
#
|
802
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/GetTableAutoScalingSettingsRequest AWS API Documentation
|
803
|
+
#
|
804
|
+
class GetTableAutoScalingSettingsRequest < Struct.new(
|
805
|
+
:keyspace_name,
|
806
|
+
:table_name)
|
807
|
+
SENSITIVE = []
|
808
|
+
include Aws::Structure
|
809
|
+
end
|
810
|
+
|
811
|
+
# @!attribute [rw] keyspace_name
|
812
|
+
# The name of the keyspace.
|
813
|
+
# @return [String]
|
814
|
+
#
|
815
|
+
# @!attribute [rw] table_name
|
816
|
+
# The name of the table.
|
817
|
+
# @return [String]
|
818
|
+
#
|
819
|
+
# @!attribute [rw] resource_arn
|
820
|
+
# The Amazon Resource Name (ARN) of the table.
|
821
|
+
# @return [String]
|
822
|
+
#
|
823
|
+
# @!attribute [rw] auto_scaling_specification
|
824
|
+
# The auto scaling settings of the table.
|
825
|
+
# @return [Types::AutoScalingSpecification]
|
826
|
+
#
|
827
|
+
# @!attribute [rw] replica_specifications
|
828
|
+
# The Amazon Web Services Region specific settings of a multi-Region
|
829
|
+
# table. Returns the settings for all Regions the table is replicated
|
830
|
+
# in.
|
831
|
+
# @return [Array<Types::ReplicaAutoScalingSpecification>]
|
832
|
+
#
|
833
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/GetTableAutoScalingSettingsResponse AWS API Documentation
|
834
|
+
#
|
835
|
+
class GetTableAutoScalingSettingsResponse < Struct.new(
|
836
|
+
:keyspace_name,
|
837
|
+
:table_name,
|
838
|
+
:resource_arn,
|
839
|
+
:auto_scaling_specification,
|
840
|
+
:replica_specifications)
|
841
|
+
SENSITIVE = []
|
842
|
+
include Aws::Structure
|
843
|
+
end
|
844
|
+
|
618
845
|
# @!attribute [rw] keyspace_name
|
619
846
|
# The name of the keyspace that the table is stored in.
|
620
847
|
# @return [String]
|
@@ -689,6 +916,11 @@ module Aws::Keyspaces
|
|
689
916
|
# The client-side timestamps setting of the table.
|
690
917
|
# @return [Types::ClientSideTimestamps]
|
691
918
|
#
|
919
|
+
# @!attribute [rw] replica_specifications
|
920
|
+
# Returns the Amazon Web Services Region specific settings of all
|
921
|
+
# Regions a multi-Region table is replicated in.
|
922
|
+
# @return [Array<Types::ReplicaSpecificationSummary>]
|
923
|
+
#
|
692
924
|
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/GetTableResponse AWS API Documentation
|
693
925
|
#
|
694
926
|
class GetTableResponse < Struct.new(
|
@@ -704,7 +936,8 @@ module Aws::Keyspaces
|
|
704
936
|
:ttl,
|
705
937
|
:default_time_to_live,
|
706
938
|
:comment,
|
707
|
-
:client_side_timestamps
|
939
|
+
:client_side_timestamps,
|
940
|
+
:replica_specifications)
|
708
941
|
SENSITIVE = []
|
709
942
|
include Aws::Structure
|
710
943
|
end
|
@@ -713,6 +946,7 @@ module Aws::Keyspaces
|
|
713
946
|
# an internal server error.
|
714
947
|
#
|
715
948
|
# @!attribute [rw] message
|
949
|
+
# Description of the error.
|
716
950
|
# @return [String]
|
717
951
|
#
|
718
952
|
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/InternalServerException AWS API Documentation
|
@@ -948,6 +1182,111 @@ module Aws::Keyspaces
|
|
948
1182
|
include Aws::Structure
|
949
1183
|
end
|
950
1184
|
|
1185
|
+
# The auto scaling settings of a multi-Region table in the specified
|
1186
|
+
# Amazon Web Services Region.
|
1187
|
+
#
|
1188
|
+
# @!attribute [rw] region
|
1189
|
+
# The Amazon Web Services Region.
|
1190
|
+
# @return [String]
|
1191
|
+
#
|
1192
|
+
# @!attribute [rw] auto_scaling_specification
|
1193
|
+
# The auto scaling settings for a multi-Region table in the specified
|
1194
|
+
# Amazon Web Services Region.
|
1195
|
+
# @return [Types::AutoScalingSpecification]
|
1196
|
+
#
|
1197
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/ReplicaAutoScalingSpecification AWS API Documentation
|
1198
|
+
#
|
1199
|
+
class ReplicaAutoScalingSpecification < Struct.new(
|
1200
|
+
:region,
|
1201
|
+
:auto_scaling_specification)
|
1202
|
+
SENSITIVE = []
|
1203
|
+
include Aws::Structure
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
# The Amazon Web Services Region specific settings of a multi-Region
|
1207
|
+
# table.
|
1208
|
+
#
|
1209
|
+
# For a multi-Region table, you can configure the table's read capacity
|
1210
|
+
# differently per Amazon Web Services Region. You can do this by
|
1211
|
+
# configuring the following parameters.
|
1212
|
+
#
|
1213
|
+
# * `region`: The Region where these settings are applied. (Required)
|
1214
|
+
#
|
1215
|
+
# * `readCapacityUnits`: The provisioned read capacity units. (Optional)
|
1216
|
+
#
|
1217
|
+
# * `readCapacityAutoScaling`: The read capacity auto scaling settings
|
1218
|
+
# for the table. (Optional)
|
1219
|
+
#
|
1220
|
+
# @!attribute [rw] region
|
1221
|
+
# The Amazon Web Services Region.
|
1222
|
+
# @return [String]
|
1223
|
+
#
|
1224
|
+
# @!attribute [rw] read_capacity_units
|
1225
|
+
# The provisioned read capacity units for the multi-Region table in
|
1226
|
+
# the specified Amazon Web Services Region.
|
1227
|
+
# @return [Integer]
|
1228
|
+
#
|
1229
|
+
# @!attribute [rw] read_capacity_auto_scaling
|
1230
|
+
# The read capacity auto scaling settings for the multi-Region table
|
1231
|
+
# in the specified Amazon Web Services Region.
|
1232
|
+
# @return [Types::AutoScalingSettings]
|
1233
|
+
#
|
1234
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/ReplicaSpecification AWS API Documentation
|
1235
|
+
#
|
1236
|
+
class ReplicaSpecification < Struct.new(
|
1237
|
+
:region,
|
1238
|
+
:read_capacity_units,
|
1239
|
+
:read_capacity_auto_scaling)
|
1240
|
+
SENSITIVE = []
|
1241
|
+
include Aws::Structure
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
# The Region-specific settings of a multi-Region table in the specified
|
1245
|
+
# Amazon Web Services Region.
|
1246
|
+
#
|
1247
|
+
# If the multi-Region table is using provisioned capacity and has
|
1248
|
+
# optional auto scaling policies configured, note that the Region
|
1249
|
+
# specific summary returns both read and write capacity settings. But
|
1250
|
+
# only Region specific read capacity settings can be configured for a
|
1251
|
+
# multi-Region table. In a multi-Region table, your write capacity units
|
1252
|
+
# will be synced across all Amazon Web Services Regions to ensure that
|
1253
|
+
# there is enough capacity to replicate write events across Regions.
|
1254
|
+
#
|
1255
|
+
# @!attribute [rw] region
|
1256
|
+
# The Amazon Web Services Region.
|
1257
|
+
# @return [String]
|
1258
|
+
#
|
1259
|
+
# @!attribute [rw] status
|
1260
|
+
# The status of the multi-Region table in the specified Amazon Web
|
1261
|
+
# Services Region.
|
1262
|
+
# @return [String]
|
1263
|
+
#
|
1264
|
+
# @!attribute [rw] capacity_specification
|
1265
|
+
# The read/write throughput capacity mode for a table. The options
|
1266
|
+
# are:
|
1267
|
+
#
|
1268
|
+
# * `throughputMode:PAY_PER_REQUEST` and
|
1269
|
+
#
|
1270
|
+
# * `throughputMode:PROVISIONED`.
|
1271
|
+
#
|
1272
|
+
# For more information, see [Read/write capacity modes][1] in the
|
1273
|
+
# *Amazon Keyspaces Developer Guide*.
|
1274
|
+
#
|
1275
|
+
#
|
1276
|
+
#
|
1277
|
+
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html
|
1278
|
+
# @return [Types::CapacitySpecificationSummary]
|
1279
|
+
#
|
1280
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/ReplicaSpecificationSummary AWS API Documentation
|
1281
|
+
#
|
1282
|
+
class ReplicaSpecificationSummary < Struct.new(
|
1283
|
+
:region,
|
1284
|
+
:status,
|
1285
|
+
:capacity_specification)
|
1286
|
+
SENSITIVE = []
|
1287
|
+
include Aws::Structure
|
1288
|
+
end
|
1289
|
+
|
951
1290
|
# The replication specification of the keyspace includes:
|
952
1291
|
#
|
953
1292
|
# * `regionList` - up to six Amazon Web Services Regions where the
|
@@ -980,6 +1319,7 @@ module Aws::Keyspaces
|
|
980
1319
|
# be `ACTIVE`.
|
981
1320
|
#
|
982
1321
|
# @!attribute [rw] message
|
1322
|
+
# Description of the error.
|
983
1323
|
# @return [String]
|
984
1324
|
#
|
985
1325
|
# @!attribute [rw] resource_arn
|
@@ -1085,6 +1425,28 @@ module Aws::Keyspaces
|
|
1085
1425
|
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/tagging-keyspaces.html
|
1086
1426
|
# @return [Array<Types::Tag>]
|
1087
1427
|
#
|
1428
|
+
# @!attribute [rw] auto_scaling_specification
|
1429
|
+
# The optional auto scaling settings for the restored table in
|
1430
|
+
# provisioned capacity mode. Specifies if the service can manage
|
1431
|
+
# throughput capacity of a provisioned table automatically on your
|
1432
|
+
# behalf. Amazon Keyspaces auto scaling helps you provision throughput
|
1433
|
+
# capacity for variable workloads efficiently by increasing and
|
1434
|
+
# decreasing your table's read and write capacity automatically in
|
1435
|
+
# response to application traffic.
|
1436
|
+
#
|
1437
|
+
# For more information, see [Managing throughput capacity
|
1438
|
+
# automatically with Amazon Keyspaces auto scaling][1] in the *Amazon
|
1439
|
+
# Keyspaces Developer Guide*.
|
1440
|
+
#
|
1441
|
+
#
|
1442
|
+
#
|
1443
|
+
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/autoscaling.html
|
1444
|
+
# @return [Types::AutoScalingSpecification]
|
1445
|
+
#
|
1446
|
+
# @!attribute [rw] replica_specifications
|
1447
|
+
# The optional Region specific settings of a multi-Regional table.
|
1448
|
+
# @return [Array<Types::ReplicaSpecification>]
|
1449
|
+
#
|
1088
1450
|
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/RestoreTableRequest AWS API Documentation
|
1089
1451
|
#
|
1090
1452
|
class RestoreTableRequest < Struct.new(
|
@@ -1096,7 +1458,9 @@ module Aws::Keyspaces
|
|
1096
1458
|
:capacity_specification_override,
|
1097
1459
|
:encryption_specification_override,
|
1098
1460
|
:point_in_time_recovery_override,
|
1099
|
-
:tags_override
|
1461
|
+
:tags_override,
|
1462
|
+
:auto_scaling_specification,
|
1463
|
+
:replica_specifications)
|
1100
1464
|
SENSITIVE = []
|
1101
1465
|
include Aws::Structure
|
1102
1466
|
end
|
@@ -1152,6 +1516,7 @@ module Aws::Keyspaces
|
|
1152
1516
|
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/quotas.html
|
1153
1517
|
#
|
1154
1518
|
# @!attribute [rw] message
|
1519
|
+
# Description of the error.
|
1155
1520
|
# @return [String]
|
1156
1521
|
#
|
1157
1522
|
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/ServiceQuotaExceededException AWS API Documentation
|
@@ -1262,6 +1627,54 @@ module Aws::Keyspaces
|
|
1262
1627
|
#
|
1263
1628
|
class TagResourceResponse < Aws::EmptyStructure; end
|
1264
1629
|
|
1630
|
+
# The auto scaling policy that scales a table based on the ratio of
|
1631
|
+
# consumed to provisioned capacity.
|
1632
|
+
#
|
1633
|
+
# @!attribute [rw] disable_scale_in
|
1634
|
+
# Specifies if `scale-in` is enabled.
|
1635
|
+
#
|
1636
|
+
# When auto scaling automatically decreases capacity for a table, the
|
1637
|
+
# table *scales in*. When scaling policies are set, they can't scale
|
1638
|
+
# in the table lower than its minimum capacity.
|
1639
|
+
# @return [Boolean]
|
1640
|
+
#
|
1641
|
+
# @!attribute [rw] scale_in_cooldown
|
1642
|
+
# Specifies a `scale-in` cool down period.
|
1643
|
+
#
|
1644
|
+
# A cooldown period in seconds between scaling activities that lets
|
1645
|
+
# the table stabilize before another scaling activity starts.
|
1646
|
+
# @return [Integer]
|
1647
|
+
#
|
1648
|
+
# @!attribute [rw] scale_out_cooldown
|
1649
|
+
# Specifies a scale out cool down period.
|
1650
|
+
#
|
1651
|
+
# A cooldown period in seconds between scaling activities that lets
|
1652
|
+
# the table stabilize before another scaling activity starts.
|
1653
|
+
# @return [Integer]
|
1654
|
+
#
|
1655
|
+
# @!attribute [rw] target_value
|
1656
|
+
# Specifies the target value for the target tracking auto scaling
|
1657
|
+
# policy.
|
1658
|
+
#
|
1659
|
+
# Amazon Keyspaces auto scaling scales up capacity automatically when
|
1660
|
+
# traffic exceeds this target utilization rate, and then back down
|
1661
|
+
# when it falls below the target. This ensures that the ratio of
|
1662
|
+
# consumed capacity to provisioned capacity stays at or near this
|
1663
|
+
# value. You define `targetValue` as a percentage. A `double` between
|
1664
|
+
# 20 and 90.
|
1665
|
+
# @return [Float]
|
1666
|
+
#
|
1667
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/TargetTrackingScalingPolicyConfiguration AWS API Documentation
|
1668
|
+
#
|
1669
|
+
class TargetTrackingScalingPolicyConfiguration < Struct.new(
|
1670
|
+
:disable_scale_in,
|
1671
|
+
:scale_in_cooldown,
|
1672
|
+
:scale_out_cooldown,
|
1673
|
+
:target_value)
|
1674
|
+
SENSITIVE = []
|
1675
|
+
include Aws::Structure
|
1676
|
+
end
|
1677
|
+
|
1265
1678
|
# Enable custom Time to Live (TTL) settings for rows and columns without
|
1266
1679
|
# setting a TTL default for the specified table.
|
1267
1680
|
#
|
@@ -1430,6 +1843,32 @@ module Aws::Keyspaces
|
|
1430
1843
|
# cannot be disabled.
|
1431
1844
|
# @return [Types::ClientSideTimestamps]
|
1432
1845
|
#
|
1846
|
+
# @!attribute [rw] auto_scaling_specification
|
1847
|
+
# The optional auto scaling settings to update for a table in
|
1848
|
+
# provisioned capacity mode. Specifies if the service can manage
|
1849
|
+
# throughput capacity of a provisioned table automatically on your
|
1850
|
+
# behalf. Amazon Keyspaces auto scaling helps you provision throughput
|
1851
|
+
# capacity for variable workloads efficiently by increasing and
|
1852
|
+
# decreasing your table's read and write capacity automatically in
|
1853
|
+
# response to application traffic.
|
1854
|
+
#
|
1855
|
+
# If auto scaling is already enabled for the table, you can use
|
1856
|
+
# `UpdateTable` to update the minimum and maximum values or the auto
|
1857
|
+
# scaling policy settings independently.
|
1858
|
+
#
|
1859
|
+
# For more information, see [Managing throughput capacity
|
1860
|
+
# automatically with Amazon Keyspaces auto scaling][1] in the *Amazon
|
1861
|
+
# Keyspaces Developer Guide*.
|
1862
|
+
#
|
1863
|
+
#
|
1864
|
+
#
|
1865
|
+
# [1]: https://docs.aws.amazon.com/keyspaces/latest/devguide/autoscaling.html
|
1866
|
+
# @return [Types::AutoScalingSpecification]
|
1867
|
+
#
|
1868
|
+
# @!attribute [rw] replica_specifications
|
1869
|
+
# The Region specific settings of a multi-Regional table.
|
1870
|
+
# @return [Array<Types::ReplicaSpecification>]
|
1871
|
+
#
|
1433
1872
|
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/UpdateTableRequest AWS API Documentation
|
1434
1873
|
#
|
1435
1874
|
class UpdateTableRequest < Struct.new(
|
@@ -1441,7 +1880,9 @@ module Aws::Keyspaces
|
|
1441
1880
|
:point_in_time_recovery,
|
1442
1881
|
:ttl,
|
1443
1882
|
:default_time_to_live,
|
1444
|
-
:client_side_timestamps
|
1883
|
+
:client_side_timestamps,
|
1884
|
+
:auto_scaling_specification,
|
1885
|
+
:replica_specifications)
|
1445
1886
|
SENSITIVE = []
|
1446
1887
|
include Aws::Structure
|
1447
1888
|
end
|
@@ -1461,6 +1902,7 @@ module Aws::Keyspaces
|
|
1461
1902
|
# The operation failed due to an invalid or malformed request.
|
1462
1903
|
#
|
1463
1904
|
# @!attribute [rw] message
|
1905
|
+
# Description of the error.
|
1464
1906
|
# @return [String]
|
1465
1907
|
#
|
1466
1908
|
# @see http://docs.aws.amazon.com/goto/WebAPI/keyspaces-2022-02-10/ValidationException AWS API Documentation
|
data/lib/aws-sdk-keyspaces.rb
CHANGED
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.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -73,7 +73,7 @@ licenses:
|
|
73
73
|
metadata:
|
74
74
|
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-keyspaces
|
75
75
|
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-keyspaces/CHANGELOG.md
|
76
|
-
post_install_message:
|
76
|
+
post_install_message:
|
77
77
|
rdoc_options: []
|
78
78
|
require_paths:
|
79
79
|
- lib
|
@@ -88,8 +88,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
92
|
-
signing_key:
|
91
|
+
rubygems_version: 3.4.10
|
92
|
+
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: AWS SDK for Ruby - Amazon Keyspaces
|
95
95
|
test_files: []
|