aws-sdk-keyspaces 1.15.0 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
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
@@ -14,6 +14,7 @@ module Aws::Keyspaces
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::Keyspaces::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -69,6 +70,8 @@ module Aws::Keyspaces
69
70
  Aws::Keyspaces::Endpoints::GetKeyspace.build(context)
70
71
  when :get_table
71
72
  Aws::Keyspaces::Endpoints::GetTable.build(context)
73
+ when :get_table_auto_scaling_settings
74
+ Aws::Keyspaces::Endpoints::GetTableAutoScalingSettings.build(context)
72
75
  when :list_keyspaces
73
76
  Aws::Keyspaces::Endpoints::ListKeyspaces.build(context)
74
77
  when :list_tables
@@ -10,9 +10,10 @@
10
10
  module Aws::Keyspaces
11
11
  module Types
12
12
 
13
- # You do not have sufficient access to perform this action.
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 could not complete the requested action. This error
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
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-keyspaces/customizations'
53
53
  # @!group service
54
54
  module Aws::Keyspaces
55
55
 
56
- GEM_VERSION = '1.15.0'
56
+ GEM_VERSION = '1.17.0'
57
57
 
58
58
  end