From 9a45f621ff00de1360ce55fdc50a2961b2a23f4b Mon Sep 17 00:00:00 2001
From: aws-sdk-cpp-automation Represents the DynamoDB Streams configuration for the table. You receive a You receive a Represents the DynamoDB Streams configuration for the table. You receive a You receive a Represents the DynamoDB Streams configuration for the table. You receive a You receive a Represents the DynamoDB Streams configuration for the table. You receive a You receive a Represents the DynamoDB Streams configuration for the table. You receive a You receive a Represents the DynamoDB Streams configuration for the table. You receive a You receive a Returns auto scaling related settings of the specified table in JSON format.
+ * If the table is a multi-Region table, the Amazon Web Services Region specific
+ * auto scaling settings of the table are included. Amazon Keyspaces auto
+ * scaling helps you provision throughput capacity for variable workloads
+ * efficiently by increasing and decreasing your table's read and write capacity
+ * automatically in response to application traffic. For more information, see Managing
+ * throughput capacity automatically with Amazon Keyspaces auto scaling in the
+ * Amazon Keyspaces Developer Guide.ResourceInUseException
if you try to enable a
- * stream on a table that already has a stream, or if you try to disable a stream
- * on a table that doesn't have a stream.ValidationException
if you try to enable a stream
+ * on a table that already has a stream, or if you try to disable a stream on a
+ * table that doesn't have a stream.ResourceInUseException
if you try to enable a
- * stream on a table that already has a stream, or if you try to disable a stream
- * on a table that doesn't have a stream.ValidationException
if you try to enable a stream
+ * on a table that already has a stream, or if you try to disable a stream on a
+ * table that doesn't have a stream.ResourceInUseException
if you try to enable a
- * stream on a table that already has a stream, or if you try to disable a stream
- * on a table that doesn't have a stream.ValidationException
if you try to enable a stream
+ * on a table that already has a stream, or if you try to disable a stream on a
+ * table that doesn't have a stream.ResourceInUseException
if you try to enable a
- * stream on a table that already has a stream, or if you try to disable a stream
- * on a table that doesn't have a stream.ValidationException
if you try to enable a stream
+ * on a table that already has a stream, or if you try to disable a stream on a
+ * table that doesn't have a stream.ResourceInUseException
if you try to enable a
- * stream on a table that already has a stream, or if you try to disable a stream
- * on a table that doesn't have a stream.ValidationException
if you try to enable a stream
+ * on a table that already has a stream, or if you try to disable a stream on a
+ * table that doesn't have a stream.ResourceInUseException
if you try to enable a
- * stream on a table that already has a stream, or if you try to disable a stream
- * on a table that doesn't have a stream.ValidationException
if you try to enable a stream
+ * on a table that already has a stream, or if you try to disable a stream on a
+ * table that doesn't have a stream.See Also:
AWS
+ * API Reference
Returns a list of keyspaces.
Restores the specified table to the specified point in time within the + *
Restores the table to the specified point in time within the
* earliest_restorable_timestamp
and the current time. For more
* information about restore points, see
@@ -368,22 +401,22 @@ namespace Keyspaces
* the state based on the selected timestamp (day:hour:minute:second)
* to a new table. The Time to Live (TTL) settings are also restored to the state
* based on the selected timestamp.
In addition to the table's schema, data,
- * and TTL settings, RestoreTable
restores the capacity mode,
- * encryption, and point-in-time recovery settings from the source table. Unlike
- * the table's schema data and TTL settings, which are restored based on the
- * selected timestamp, these settings are always restored based on the table's
- * settings as of the current time or when the table was deleted.
You can - * also overwrite these settings during restore:
Read/write - * capacity mode
Provisioned throughput capacity settings
- *Point-in-time (PITR) settings
Tags
You can also overwrite these settings during restore:
Read/write capacity mode
Provisioned throughput + * capacity units
Auto scaling settings
Point-in-time (PITR) settings
Tags
For + * more information, see PITR * restore settings in the Amazon Keyspaces Developer Guide.
Note * that the following settings are not restored, and you must configure them - * manually for the new table:
Automatic scaling policies (for - * tables that use provisioned capacity mode)
Identity and Access - * Management (IAM) policies
Amazon CloudWatch metrics and - * alarms
Identity and Access Management + * (IAM) policies
Amazon CloudWatch metrics and alarms
Adds new columns to the table or updates one of the table's settings, for - * example capacity mode, encryption, point-in-time recovery, or ttl settings. Note - * that you can only update one specific table setting per update + * example capacity mode, auto scaling, encryption, point-in-time recovery, or ttl + * settings. Note that you can only update one specific table setting per update * operation.
Amazon Keyspaces supports the target tracking
auto scaling
+ * policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's
+ * ratio of consumed to provisioned capacity stays at or near the target value that
+ * you specify. You define the target value as a percentage between 20 and
+ * 90.
Auto scaling scales up capacity automatically when traffic exceeds this
+ * target utilization rate, and then back down when it falls below the target. A
+ * double
between 20 and 90.
Auto scaling scales up capacity automatically when traffic exceeds this
+ * target utilization rate, and then back down when it falls below the target. A
+ * double
between 20 and 90.
Auto scaling scales up capacity automatically when traffic exceeds this
+ * target utilization rate, and then back down when it falls below the target. A
+ * double
between 20 and 90.
Auto scaling scales up capacity automatically when traffic exceeds this
+ * target utilization rate, and then back down when it falls below the target. A
+ * double
between 20 and 90.
Auto scaling scales up capacity automatically when traffic exceeds this
+ * target utilization rate, and then back down when it falls below the target. A
+ * double
between 20 and 90.
Auto scaling scales up capacity automatically when traffic exceeds this
+ * target utilization rate, and then back down when it falls below the target. A
+ * double
between 20 and 90.
The optional auto scaling settings for a table with provisioned throughput + * capacity.
To turn on auto scaling for a table in
+ * throughputMode:PROVISIONED
, you must specify the following
+ * parameters.
Configure the minimum and maximum units for write and read + * capacity. The auto scaling policy ensures that capacity never goes below the + * minimum or above the maximum range.
minimumUnits
:
+ * The minimum level of throughput the table should always be ready to support. The
+ * value must be between 1 and the max throughput per second quota for your account
+ * (40,000 by default).
maximumUnits
: The maximum
+ * level of throughput the table should always be ready to support. The value must
+ * be between 1 and the max throughput per second quota for your account (40,000 by
+ * default).
scalingPolicy
: Amazon Keyspaces
+ * supports the target tracking
scaling policy. The auto scaling
+ * target is the provisioned read and write capacity of the table.
targetTrackingScalingPolicyConfiguration
: To define the target
+ * tracking policy, you must define the target value.
+ * targetValue
: The target utilization rate of the table. Amazon
+ * Keyspaces auto scaling ensures that the ratio of consumed capacity to
+ * provisioned capacity stays at or near this value. You define
+ * targetValue
as a percentage. A double
between 20 and
+ * 90. (Required)
disableScaleIn
: A
+ * boolean
that specifies if scale-in
is disabled or
+ * enabled for the table. This parameter is disabled by default. To turn on
+ * scale-in
, set the boolean
value to FALSE
.
+ * This means that capacity for a table can be automatically scaled down on your
+ * behalf. (Optional)
scaleInCooldown
: A cooldown
+ * period in seconds between scaling activities that lets the table stabilize
+ * before another scale in activity starts. If no value is provided, the default is
+ * 0. (Optional)
scaleOutCooldown
: A cooldown
+ * period in seconds between scaling activities that lets the table stabilize
+ * before another scale out activity starts. If no value is provided, the default
+ * is 0. (Optional)
For more + * information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
This optional parameter enables auto scaling for the table if set to
+ * false
.
This optional parameter enables auto scaling for the table if set to
+ * false
.
This optional parameter enables auto scaling for the table if set to
+ * false
.
This optional parameter enables auto scaling for the table if set to
+ * false
.
The minimum level of throughput the table should always be ready to support. + * The value must be between 1 and the max throughput per second quota for your + * account (40,000 by default).
+ */ + inline long long GetMinimumUnits() const{ return m_minimumUnits; } + + /** + *The minimum level of throughput the table should always be ready to support. + * The value must be between 1 and the max throughput per second quota for your + * account (40,000 by default).
+ */ + inline bool MinimumUnitsHasBeenSet() const { return m_minimumUnitsHasBeenSet; } + + /** + *The minimum level of throughput the table should always be ready to support. + * The value must be between 1 and the max throughput per second quota for your + * account (40,000 by default).
+ */ + inline void SetMinimumUnits(long long value) { m_minimumUnitsHasBeenSet = true; m_minimumUnits = value; } + + /** + *The minimum level of throughput the table should always be ready to support. + * The value must be between 1 and the max throughput per second quota for your + * account (40,000 by default).
+ */ + inline AutoScalingSettings& WithMinimumUnits(long long value) { SetMinimumUnits(value); return *this;} + + + /** + *Manage costs by specifying the maximum amount of throughput to provision. The + * value must be between 1 and the max throughput per second quota for your account + * (40,000 by default).
+ */ + inline long long GetMaximumUnits() const{ return m_maximumUnits; } + + /** + *Manage costs by specifying the maximum amount of throughput to provision. The + * value must be between 1 and the max throughput per second quota for your account + * (40,000 by default).
+ */ + inline bool MaximumUnitsHasBeenSet() const { return m_maximumUnitsHasBeenSet; } + + /** + *Manage costs by specifying the maximum amount of throughput to provision. The + * value must be between 1 and the max throughput per second quota for your account + * (40,000 by default).
+ */ + inline void SetMaximumUnits(long long value) { m_maximumUnitsHasBeenSet = true; m_maximumUnits = value; } + + /** + *Manage costs by specifying the maximum amount of throughput to provision. The + * value must be between 1 and the max throughput per second quota for your account + * (40,000 by default).
+ */ + inline AutoScalingSettings& WithMaximumUnits(long long value) { SetMaximumUnits(value); return *this;} + + + /** + *Amazon Keyspaces supports the target tracking
auto scaling
+ * policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's
+ * ratio of consumed to provisioned capacity stays at or near the target value that
+ * you specify. You define the target value as a percentage between 20 and 90.
Amazon Keyspaces supports the target tracking
auto scaling
+ * policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's
+ * ratio of consumed to provisioned capacity stays at or near the target value that
+ * you specify. You define the target value as a percentage between 20 and 90.
Amazon Keyspaces supports the target tracking
auto scaling
+ * policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's
+ * ratio of consumed to provisioned capacity stays at or near the target value that
+ * you specify. You define the target value as a percentage between 20 and 90.
Amazon Keyspaces supports the target tracking
auto scaling
+ * policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's
+ * ratio of consumed to provisioned capacity stays at or near the target value that
+ * you specify. You define the target value as a percentage between 20 and 90.
Amazon Keyspaces supports the target tracking
auto scaling
+ * policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's
+ * ratio of consumed to provisioned capacity stays at or near the target value that
+ * you specify. You define the target value as a percentage between 20 and 90.
Amazon Keyspaces supports the target tracking
auto scaling
+ * policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's
+ * ratio of consumed to provisioned capacity stays at or near the target value that
+ * you specify. You define the target value as a percentage between 20 and 90.
The optional auto scaling settings for read and write capacity of a table in + * provisioned capacity mode.
The auto scaling settings for the table's write capacity.
+ */ + inline const AutoScalingSettings& GetWriteCapacityAutoScaling() const{ return m_writeCapacityAutoScaling; } + + /** + *The auto scaling settings for the table's write capacity.
+ */ + inline bool WriteCapacityAutoScalingHasBeenSet() const { return m_writeCapacityAutoScalingHasBeenSet; } + + /** + *The auto scaling settings for the table's write capacity.
+ */ + inline void SetWriteCapacityAutoScaling(const AutoScalingSettings& value) { m_writeCapacityAutoScalingHasBeenSet = true; m_writeCapacityAutoScaling = value; } + + /** + *The auto scaling settings for the table's write capacity.
+ */ + inline void SetWriteCapacityAutoScaling(AutoScalingSettings&& value) { m_writeCapacityAutoScalingHasBeenSet = true; m_writeCapacityAutoScaling = std::move(value); } + + /** + *The auto scaling settings for the table's write capacity.
+ */ + inline AutoScalingSpecification& WithWriteCapacityAutoScaling(const AutoScalingSettings& value) { SetWriteCapacityAutoScaling(value); return *this;} + + /** + *The auto scaling settings for the table's write capacity.
+ */ + inline AutoScalingSpecification& WithWriteCapacityAutoScaling(AutoScalingSettings&& value) { SetWriteCapacityAutoScaling(std::move(value)); return *this;} + + + /** + *The auto scaling settings for the table's read capacity.
+ */ + inline const AutoScalingSettings& GetReadCapacityAutoScaling() const{ return m_readCapacityAutoScaling; } + + /** + *The auto scaling settings for the table's read capacity.
+ */ + inline bool ReadCapacityAutoScalingHasBeenSet() const { return m_readCapacityAutoScalingHasBeenSet; } + + /** + *The auto scaling settings for the table's read capacity.
+ */ + inline void SetReadCapacityAutoScaling(const AutoScalingSettings& value) { m_readCapacityAutoScalingHasBeenSet = true; m_readCapacityAutoScaling = value; } + + /** + *The auto scaling settings for the table's read capacity.
+ */ + inline void SetReadCapacityAutoScaling(AutoScalingSettings&& value) { m_readCapacityAutoScalingHasBeenSet = true; m_readCapacityAutoScaling = std::move(value); } + + /** + *The auto scaling settings for the table's read capacity.
+ */ + inline AutoScalingSpecification& WithReadCapacityAutoScaling(const AutoScalingSettings& value) { SetReadCapacityAutoScaling(value); return *this;} + + /** + *The auto scaling settings for the table's read capacity.
+ */ + inline AutoScalingSpecification& WithReadCapacityAutoScaling(AutoScalingSettings&& value) { SetReadCapacityAutoScaling(std::move(value)); return *this;} + + private: + + AutoScalingSettings m_writeCapacityAutoScaling; + bool m_writeCapacityAutoScalingHasBeenSet = false; + + AutoScalingSettings m_readCapacityAutoScaling; + bool m_readCapacityAutoScalingHasBeenSet = false; + }; + +} // namespace Model +} // namespace Keyspaces +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/CreateTableRequest.h b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/CreateTableRequest.h index 36a92e8df99..baecf8ae943 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/CreateTableRequest.h +++ b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/CreateTableRequest.h @@ -15,7 +15,9 @@ #includeThe optional auto scaling settings for a table in provisioned capacity mode. + * Specifies if the service can manage throughput capacity automatically on your + * behalf.
Auto scaling helps you provision throughput capacity for variable + * workloads efficiently by increasing and decreasing your table's read and write + * capacity automatically in response to application traffic. For more information, + * see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
By default, auto scaling is + * disabled for a table.
+ */ + inline const AutoScalingSpecification& GetAutoScalingSpecification() const{ return m_autoScalingSpecification; } + + /** + *The optional auto scaling settings for a table in provisioned capacity mode. + * Specifies if the service can manage throughput capacity automatically on your + * behalf.
Auto scaling helps you provision throughput capacity for variable + * workloads efficiently by increasing and decreasing your table's read and write + * capacity automatically in response to application traffic. For more information, + * see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
By default, auto scaling is + * disabled for a table.
+ */ + inline bool AutoScalingSpecificationHasBeenSet() const { return m_autoScalingSpecificationHasBeenSet; } + + /** + *The optional auto scaling settings for a table in provisioned capacity mode. + * Specifies if the service can manage throughput capacity automatically on your + * behalf.
Auto scaling helps you provision throughput capacity for variable + * workloads efficiently by increasing and decreasing your table's read and write + * capacity automatically in response to application traffic. For more information, + * see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
By default, auto scaling is + * disabled for a table.
+ */ + inline void SetAutoScalingSpecification(const AutoScalingSpecification& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = value; } + + /** + *The optional auto scaling settings for a table in provisioned capacity mode. + * Specifies if the service can manage throughput capacity automatically on your + * behalf.
Auto scaling helps you provision throughput capacity for variable + * workloads efficiently by increasing and decreasing your table's read and write + * capacity automatically in response to application traffic. For more information, + * see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
By default, auto scaling is + * disabled for a table.
+ */ + inline void SetAutoScalingSpecification(AutoScalingSpecification&& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = std::move(value); } + + /** + *The optional auto scaling settings for a table in provisioned capacity mode. + * Specifies if the service can manage throughput capacity automatically on your + * behalf.
Auto scaling helps you provision throughput capacity for variable + * workloads efficiently by increasing and decreasing your table's read and write + * capacity automatically in response to application traffic. For more information, + * see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
By default, auto scaling is + * disabled for a table.
+ */ + inline CreateTableRequest& WithAutoScalingSpecification(const AutoScalingSpecification& value) { SetAutoScalingSpecification(value); return *this;} + + /** + *The optional auto scaling settings for a table in provisioned capacity mode. + * Specifies if the service can manage throughput capacity automatically on your + * behalf.
Auto scaling helps you provision throughput capacity for variable + * workloads efficiently by increasing and decreasing your table's read and write + * capacity automatically in response to application traffic. For more information, + * see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
By default, auto scaling is + * disabled for a table.
+ */ + inline CreateTableRequest& WithAutoScalingSpecification(AutoScalingSpecification&& value) { SetAutoScalingSpecification(std::move(value)); return *this;} + + + /** + *The optional Amazon Web Services Region specific settings of a multi-Region + * table. These settings overwrite the general settings of the table for the + * specified Region.
For a multi-Region table in provisioned capacity mode, + * you can configure the table's read capacity differently for each Region's + * replica. The write capacity, however, remains synchronized between all replicas + * to ensure that there's enough capacity to replicate writes across all Regions. + * To define the read capacity for a table replica in a specific Region, you can do + * so by configuring the following parameters.
+ * region
: The Region where these settings are applied. (Required)
readCapacityUnits
: The provisioned read capacity
+ * units. (Optional)
readCapacityAutoScaling
: The
+ * read capacity auto scaling settings for the table. (Optional)
The optional Amazon Web Services Region specific settings of a multi-Region + * table. These settings overwrite the general settings of the table for the + * specified Region.
For a multi-Region table in provisioned capacity mode, + * you can configure the table's read capacity differently for each Region's + * replica. The write capacity, however, remains synchronized between all replicas + * to ensure that there's enough capacity to replicate writes across all Regions. + * To define the read capacity for a table replica in a specific Region, you can do + * so by configuring the following parameters.
+ * region
: The Region where these settings are applied. (Required)
readCapacityUnits
: The provisioned read capacity
+ * units. (Optional)
readCapacityAutoScaling
: The
+ * read capacity auto scaling settings for the table. (Optional)
The optional Amazon Web Services Region specific settings of a multi-Region + * table. These settings overwrite the general settings of the table for the + * specified Region.
For a multi-Region table in provisioned capacity mode, + * you can configure the table's read capacity differently for each Region's + * replica. The write capacity, however, remains synchronized between all replicas + * to ensure that there's enough capacity to replicate writes across all Regions. + * To define the read capacity for a table replica in a specific Region, you can do + * so by configuring the following parameters.
+ * region
: The Region where these settings are applied. (Required)
readCapacityUnits
: The provisioned read capacity
+ * units. (Optional)
readCapacityAutoScaling
: The
+ * read capacity auto scaling settings for the table. (Optional)
The optional Amazon Web Services Region specific settings of a multi-Region + * table. These settings overwrite the general settings of the table for the + * specified Region.
For a multi-Region table in provisioned capacity mode, + * you can configure the table's read capacity differently for each Region's + * replica. The write capacity, however, remains synchronized between all replicas + * to ensure that there's enough capacity to replicate writes across all Regions. + * To define the read capacity for a table replica in a specific Region, you can do + * so by configuring the following parameters.
+ * region
: The Region where these settings are applied. (Required)
readCapacityUnits
: The provisioned read capacity
+ * units. (Optional)
readCapacityAutoScaling
: The
+ * read capacity auto scaling settings for the table. (Optional)
The optional Amazon Web Services Region specific settings of a multi-Region + * table. These settings overwrite the general settings of the table for the + * specified Region.
For a multi-Region table in provisioned capacity mode, + * you can configure the table's read capacity differently for each Region's + * replica. The write capacity, however, remains synchronized between all replicas + * to ensure that there's enough capacity to replicate writes across all Regions. + * To define the read capacity for a table replica in a specific Region, you can do + * so by configuring the following parameters.
+ * region
: The Region where these settings are applied. (Required)
readCapacityUnits
: The provisioned read capacity
+ * units. (Optional)
readCapacityAutoScaling
: The
+ * read capacity auto scaling settings for the table. (Optional)
The optional Amazon Web Services Region specific settings of a multi-Region + * table. These settings overwrite the general settings of the table for the + * specified Region.
For a multi-Region table in provisioned capacity mode, + * you can configure the table's read capacity differently for each Region's + * replica. The write capacity, however, remains synchronized between all replicas + * to ensure that there's enough capacity to replicate writes across all Regions. + * To define the read capacity for a table replica in a specific Region, you can do + * so by configuring the following parameters.
+ * region
: The Region where these settings are applied. (Required)
readCapacityUnits
: The provisioned read capacity
+ * units. (Optional)
readCapacityAutoScaling
: The
+ * read capacity auto scaling settings for the table. (Optional)
The optional Amazon Web Services Region specific settings of a multi-Region + * table. These settings overwrite the general settings of the table for the + * specified Region.
For a multi-Region table in provisioned capacity mode, + * you can configure the table's read capacity differently for each Region's + * replica. The write capacity, however, remains synchronized between all replicas + * to ensure that there's enough capacity to replicate writes across all Regions. + * To define the read capacity for a table replica in a specific Region, you can do + * so by configuring the following parameters.
+ * region
: The Region where these settings are applied. (Required)
readCapacityUnits
: The provisioned read capacity
+ * units. (Optional)
readCapacityAutoScaling
: The
+ * read capacity auto scaling settings for the table. (Optional)
The optional Amazon Web Services Region specific settings of a multi-Region + * table. These settings overwrite the general settings of the table for the + * specified Region.
For a multi-Region table in provisioned capacity mode, + * you can configure the table's read capacity differently for each Region's + * replica. The write capacity, however, remains synchronized between all replicas + * to ensure that there's enough capacity to replicate writes across all Regions. + * To define the read capacity for a table replica in a specific Region, you can do + * so by configuring the following parameters.
+ * region
: The Region where these settings are applied. (Required)
readCapacityUnits
: The provisioned read capacity
+ * units. (Optional)
readCapacityAutoScaling
: The
+ * read capacity auto scaling settings for the table. (Optional)
The name of the keyspace.
+ */ + inline const Aws::String& GetKeyspaceName() const{ return m_keyspaceName; } + + /** + *The name of the keyspace.
+ */ + inline bool KeyspaceNameHasBeenSet() const { return m_keyspaceNameHasBeenSet; } + + /** + *The name of the keyspace.
+ */ + inline void SetKeyspaceName(const Aws::String& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = value; } + + /** + *The name of the keyspace.
+ */ + inline void SetKeyspaceName(Aws::String&& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = std::move(value); } + + /** + *The name of the keyspace.
+ */ + inline void SetKeyspaceName(const char* value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName.assign(value); } + + /** + *The name of the keyspace.
+ */ + inline GetTableAutoScalingSettingsRequest& WithKeyspaceName(const Aws::String& value) { SetKeyspaceName(value); return *this;} + + /** + *The name of the keyspace.
+ */ + inline GetTableAutoScalingSettingsRequest& WithKeyspaceName(Aws::String&& value) { SetKeyspaceName(std::move(value)); return *this;} + + /** + *The name of the keyspace.
+ */ + inline GetTableAutoScalingSettingsRequest& WithKeyspaceName(const char* value) { SetKeyspaceName(value); return *this;} + + + /** + *The name of the table.
+ */ + inline const Aws::String& GetTableName() const{ return m_tableName; } + + /** + *The name of the table.
+ */ + inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } + + /** + *The name of the table.
+ */ + inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } + + /** + *The name of the table.
+ */ + inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } + + /** + *The name of the table.
+ */ + inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } + + /** + *The name of the table.
+ */ + inline GetTableAutoScalingSettingsRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} + + /** + *The name of the table.
+ */ + inline GetTableAutoScalingSettingsRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} + + /** + *The name of the table.
+ */ + inline GetTableAutoScalingSettingsRequest& WithTableName(const char* value) { SetTableName(value); return *this;} + + private: + + Aws::String m_keyspaceName; + bool m_keyspaceNameHasBeenSet = false; + + Aws::String m_tableName; + bool m_tableNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace Keyspaces +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/GetTableAutoScalingSettingsResult.h b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/GetTableAutoScalingSettingsResult.h new file mode 100644 index 00000000000..bca3e3396ef --- /dev/null +++ b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/GetTableAutoScalingSettingsResult.h @@ -0,0 +1,253 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeThe name of the keyspace.
+ */ + inline const Aws::String& GetKeyspaceName() const{ return m_keyspaceName; } + + /** + *The name of the keyspace.
+ */ + inline void SetKeyspaceName(const Aws::String& value) { m_keyspaceName = value; } + + /** + *The name of the keyspace.
+ */ + inline void SetKeyspaceName(Aws::String&& value) { m_keyspaceName = std::move(value); } + + /** + *The name of the keyspace.
+ */ + inline void SetKeyspaceName(const char* value) { m_keyspaceName.assign(value); } + + /** + *The name of the keyspace.
+ */ + inline GetTableAutoScalingSettingsResult& WithKeyspaceName(const Aws::String& value) { SetKeyspaceName(value); return *this;} + + /** + *The name of the keyspace.
+ */ + inline GetTableAutoScalingSettingsResult& WithKeyspaceName(Aws::String&& value) { SetKeyspaceName(std::move(value)); return *this;} + + /** + *The name of the keyspace.
+ */ + inline GetTableAutoScalingSettingsResult& WithKeyspaceName(const char* value) { SetKeyspaceName(value); return *this;} + + + /** + *The name of the table.
+ */ + inline const Aws::String& GetTableName() const{ return m_tableName; } + + /** + *The name of the table.
+ */ + inline void SetTableName(const Aws::String& value) { m_tableName = value; } + + /** + *The name of the table.
+ */ + inline void SetTableName(Aws::String&& value) { m_tableName = std::move(value); } + + /** + *The name of the table.
+ */ + inline void SetTableName(const char* value) { m_tableName.assign(value); } + + /** + *The name of the table.
+ */ + inline GetTableAutoScalingSettingsResult& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} + + /** + *The name of the table.
+ */ + inline GetTableAutoScalingSettingsResult& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} + + /** + *The name of the table.
+ */ + inline GetTableAutoScalingSettingsResult& WithTableName(const char* value) { SetTableName(value); return *this;} + + + /** + *The Amazon Resource Name (ARN) of the table.
+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *The Amazon Resource Name (ARN) of the table.
+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArn = value; } + + /** + *The Amazon Resource Name (ARN) of the table.
+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArn = std::move(value); } + + /** + *The Amazon Resource Name (ARN) of the table.
+ */ + inline void SetResourceArn(const char* value) { m_resourceArn.assign(value); } + + /** + *The Amazon Resource Name (ARN) of the table.
+ */ + inline GetTableAutoScalingSettingsResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *The Amazon Resource Name (ARN) of the table.
+ */ + inline GetTableAutoScalingSettingsResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *The Amazon Resource Name (ARN) of the table.
+ */ + inline GetTableAutoScalingSettingsResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *The auto scaling settings of the table.
+ */ + inline const AutoScalingSpecification& GetAutoScalingSpecification() const{ return m_autoScalingSpecification; } + + /** + *The auto scaling settings of the table.
+ */ + inline void SetAutoScalingSpecification(const AutoScalingSpecification& value) { m_autoScalingSpecification = value; } + + /** + *The auto scaling settings of the table.
+ */ + inline void SetAutoScalingSpecification(AutoScalingSpecification&& value) { m_autoScalingSpecification = std::move(value); } + + /** + *The auto scaling settings of the table.
+ */ + inline GetTableAutoScalingSettingsResult& WithAutoScalingSpecification(const AutoScalingSpecification& value) { SetAutoScalingSpecification(value); return *this;} + + /** + *The auto scaling settings of the table.
+ */ + inline GetTableAutoScalingSettingsResult& WithAutoScalingSpecification(AutoScalingSpecification&& value) { SetAutoScalingSpecification(std::move(value)); return *this;} + + + /** + *The Amazon Web Services Region specific settings of a multi-Region table. + * Returns the settings for all Regions the table is replicated in.
+ */ + inline const Aws::VectorThe Amazon Web Services Region specific settings of a multi-Region table. + * Returns the settings for all Regions the table is replicated in.
+ */ + inline void SetReplicaSpecifications(const Aws::VectorThe Amazon Web Services Region specific settings of a multi-Region table. + * Returns the settings for all Regions the table is replicated in.
+ */ + inline void SetReplicaSpecifications(Aws::VectorThe Amazon Web Services Region specific settings of a multi-Region table. + * Returns the settings for all Regions the table is replicated in.
+ */ + inline GetTableAutoScalingSettingsResult& WithReplicaSpecifications(const Aws::VectorThe Amazon Web Services Region specific settings of a multi-Region table. + * Returns the settings for all Regions the table is replicated in.
+ */ + inline GetTableAutoScalingSettingsResult& WithReplicaSpecifications(Aws::VectorThe Amazon Web Services Region specific settings of a multi-Region table. + * Returns the settings for all Regions the table is replicated in.
+ */ + inline GetTableAutoScalingSettingsResult& AddReplicaSpecifications(const ReplicaAutoScalingSpecification& value) { m_replicaSpecifications.push_back(value); return *this; } + + /** + *The Amazon Web Services Region specific settings of a multi-Region table. + * Returns the settings for all Regions the table is replicated in.
+ */ + inline GetTableAutoScalingSettingsResult& AddReplicaSpecifications(ReplicaAutoScalingSpecification&& value) { m_replicaSpecifications.push_back(std::move(value)); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetTableAutoScalingSettingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetTableAutoScalingSettingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetTableAutoScalingSettingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_keyspaceName; + + Aws::String m_tableName; + + Aws::String m_resourceArn; + + AutoScalingSpecification m_autoScalingSpecification; + + Aws::VectorReturns the Amazon Web Services Region specific settings of all Regions a + * multi-Region table is replicated in.
+ */ + inline const Aws::VectorReturns the Amazon Web Services Region specific settings of all Regions a + * multi-Region table is replicated in.
+ */ + inline void SetReplicaSpecifications(const Aws::VectorReturns the Amazon Web Services Region specific settings of all Regions a + * multi-Region table is replicated in.
+ */ + inline void SetReplicaSpecifications(Aws::VectorReturns the Amazon Web Services Region specific settings of all Regions a + * multi-Region table is replicated in.
+ */ + inline GetTableResult& WithReplicaSpecifications(const Aws::VectorReturns the Amazon Web Services Region specific settings of all Regions a + * multi-Region table is replicated in.
+ */ + inline GetTableResult& WithReplicaSpecifications(Aws::VectorReturns the Amazon Web Services Region specific settings of all Regions a + * multi-Region table is replicated in.
+ */ + inline GetTableResult& AddReplicaSpecifications(const ReplicaSpecificationSummary& value) { m_replicaSpecifications.push_back(value); return *this; } + + /** + *Returns the Amazon Web Services Region specific settings of all Regions a + * multi-Region table is replicated in.
+ */ + inline GetTableResult& AddReplicaSpecifications(ReplicaSpecificationSummary&& value) { m_replicaSpecifications.push_back(std::move(value)); return *this; } + + inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -458,6 +503,8 @@ namespace Model ClientSideTimestamps m_clientSideTimestamps; + Aws::VectorThe auto scaling settings of a multi-Region table in the specified Amazon Web + * Services Region.
The Amazon Web Services Region.
+ */ + inline const Aws::String& GetRegion() const{ return m_region; } + + /** + *The Amazon Web Services Region.
+ */ + inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } + + /** + *The Amazon Web Services Region.
+ */ + inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } + + /** + *The Amazon Web Services Region.
+ */ + inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } + + /** + *The Amazon Web Services Region.
+ */ + inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } + + /** + *The Amazon Web Services Region.
+ */ + inline ReplicaAutoScalingSpecification& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} + + /** + *The Amazon Web Services Region.
+ */ + inline ReplicaAutoScalingSpecification& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} + + /** + *The Amazon Web Services Region.
+ */ + inline ReplicaAutoScalingSpecification& WithRegion(const char* value) { SetRegion(value); return *this;} + + + /** + *The auto scaling settings for a multi-Region table in the specified Amazon + * Web Services Region.
+ */ + inline const AutoScalingSpecification& GetAutoScalingSpecification() const{ return m_autoScalingSpecification; } + + /** + *The auto scaling settings for a multi-Region table in the specified Amazon + * Web Services Region.
+ */ + inline bool AutoScalingSpecificationHasBeenSet() const { return m_autoScalingSpecificationHasBeenSet; } + + /** + *The auto scaling settings for a multi-Region table in the specified Amazon + * Web Services Region.
+ */ + inline void SetAutoScalingSpecification(const AutoScalingSpecification& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = value; } + + /** + *The auto scaling settings for a multi-Region table in the specified Amazon + * Web Services Region.
+ */ + inline void SetAutoScalingSpecification(AutoScalingSpecification&& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = std::move(value); } + + /** + *The auto scaling settings for a multi-Region table in the specified Amazon + * Web Services Region.
+ */ + inline ReplicaAutoScalingSpecification& WithAutoScalingSpecification(const AutoScalingSpecification& value) { SetAutoScalingSpecification(value); return *this;} + + /** + *The auto scaling settings for a multi-Region table in the specified Amazon + * Web Services Region.
+ */ + inline ReplicaAutoScalingSpecification& WithAutoScalingSpecification(AutoScalingSpecification&& value) { SetAutoScalingSpecification(std::move(value)); return *this;} + + private: + + Aws::String m_region; + bool m_regionHasBeenSet = false; + + AutoScalingSpecification m_autoScalingSpecification; + bool m_autoScalingSpecificationHasBeenSet = false; + }; + +} // namespace Model +} // namespace Keyspaces +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/ReplicaSpecification.h b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/ReplicaSpecification.h new file mode 100644 index 00000000000..5fead442318 --- /dev/null +++ b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/ReplicaSpecification.h @@ -0,0 +1,165 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeThe Amazon Web Services Region specific settings of a multi-Region table.
+ *For a multi-Region table, you can configure the table's read capacity + * differently per Amazon Web Services Region. You can do this by configuring the + * following parameters.
region
: The Region where
+ * these settings are applied. (Required)
+ * readCapacityUnits
: The provisioned read capacity units.
+ * (Optional)
readCapacityAutoScaling
: The read
+ * capacity auto scaling settings for the table. (Optional)
The Amazon Web Services Region.
+ */ + inline const Aws::String& GetRegion() const{ return m_region; } + + /** + *The Amazon Web Services Region.
+ */ + inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } + + /** + *The Amazon Web Services Region.
+ */ + inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } + + /** + *The Amazon Web Services Region.
+ */ + inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } + + /** + *The Amazon Web Services Region.
+ */ + inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } + + /** + *The Amazon Web Services Region.
+ */ + inline ReplicaSpecification& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} + + /** + *The Amazon Web Services Region.
+ */ + inline ReplicaSpecification& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} + + /** + *The Amazon Web Services Region.
+ */ + inline ReplicaSpecification& WithRegion(const char* value) { SetRegion(value); return *this;} + + + /** + *The provisioned read capacity units for the multi-Region table in the + * specified Amazon Web Services Region.
+ */ + inline long long GetReadCapacityUnits() const{ return m_readCapacityUnits; } + + /** + *The provisioned read capacity units for the multi-Region table in the + * specified Amazon Web Services Region.
+ */ + inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; } + + /** + *The provisioned read capacity units for the multi-Region table in the + * specified Amazon Web Services Region.
+ */ + inline void SetReadCapacityUnits(long long value) { m_readCapacityUnitsHasBeenSet = true; m_readCapacityUnits = value; } + + /** + *The provisioned read capacity units for the multi-Region table in the + * specified Amazon Web Services Region.
+ */ + inline ReplicaSpecification& WithReadCapacityUnits(long long value) { SetReadCapacityUnits(value); return *this;} + + + /** + *The read capacity auto scaling settings for the multi-Region table in the + * specified Amazon Web Services Region.
+ */ + inline const AutoScalingSettings& GetReadCapacityAutoScaling() const{ return m_readCapacityAutoScaling; } + + /** + *The read capacity auto scaling settings for the multi-Region table in the + * specified Amazon Web Services Region.
+ */ + inline bool ReadCapacityAutoScalingHasBeenSet() const { return m_readCapacityAutoScalingHasBeenSet; } + + /** + *The read capacity auto scaling settings for the multi-Region table in the + * specified Amazon Web Services Region.
+ */ + inline void SetReadCapacityAutoScaling(const AutoScalingSettings& value) { m_readCapacityAutoScalingHasBeenSet = true; m_readCapacityAutoScaling = value; } + + /** + *The read capacity auto scaling settings for the multi-Region table in the + * specified Amazon Web Services Region.
+ */ + inline void SetReadCapacityAutoScaling(AutoScalingSettings&& value) { m_readCapacityAutoScalingHasBeenSet = true; m_readCapacityAutoScaling = std::move(value); } + + /** + *The read capacity auto scaling settings for the multi-Region table in the + * specified Amazon Web Services Region.
+ */ + inline ReplicaSpecification& WithReadCapacityAutoScaling(const AutoScalingSettings& value) { SetReadCapacityAutoScaling(value); return *this;} + + /** + *The read capacity auto scaling settings for the multi-Region table in the + * specified Amazon Web Services Region.
+ */ + inline ReplicaSpecification& WithReadCapacityAutoScaling(AutoScalingSettings&& value) { SetReadCapacityAutoScaling(std::move(value)); return *this;} + + private: + + Aws::String m_region; + bool m_regionHasBeenSet = false; + + long long m_readCapacityUnits; + bool m_readCapacityUnitsHasBeenSet = false; + + AutoScalingSettings m_readCapacityAutoScaling; + bool m_readCapacityAutoScalingHasBeenSet = false; + }; + +} // namespace Model +} // namespace Keyspaces +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/ReplicaSpecificationSummary.h b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/ReplicaSpecificationSummary.h new file mode 100644 index 00000000000..bd880b48771 --- /dev/null +++ b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/ReplicaSpecificationSummary.h @@ -0,0 +1,159 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeThe Region-specific settings of a multi-Region table in the specified Amazon + * Web Services Region.
If the multi-Region table is using provisioned + * capacity and has optional auto scaling policies configured, note that the Region + * specific summary returns both read and write capacity settings. But only Region + * specific read capacity settings can be configured for a multi-Region table. In a + * multi-Region table, your write capacity units will be synced across all Amazon + * Web Services Regions to ensure that there is enough capacity to replicate write + * events across Regions.
The Amazon Web Services Region.
+ */ + inline const Aws::String& GetRegion() const{ return m_region; } + + /** + *The Amazon Web Services Region.
+ */ + inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } + + /** + *The Amazon Web Services Region.
+ */ + inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } + + /** + *The Amazon Web Services Region.
+ */ + inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } + + /** + *The Amazon Web Services Region.
+ */ + inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } + + /** + *The Amazon Web Services Region.
+ */ + inline ReplicaSpecificationSummary& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} + + /** + *The Amazon Web Services Region.
+ */ + inline ReplicaSpecificationSummary& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} + + /** + *The Amazon Web Services Region.
+ */ + inline ReplicaSpecificationSummary& WithRegion(const char* value) { SetRegion(value); return *this;} + + + /** + *The status of the multi-Region table in the specified Amazon Web Services + * Region.
+ */ + inline const TableStatus& GetStatus() const{ return m_status; } + + /** + *The status of the multi-Region table in the specified Amazon Web Services + * Region.
+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *The status of the multi-Region table in the specified Amazon Web Services + * Region.
+ */ + inline void SetStatus(const TableStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *The status of the multi-Region table in the specified Amazon Web Services + * Region.
+ */ + inline void SetStatus(TableStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *The status of the multi-Region table in the specified Amazon Web Services + * Region.
+ */ + inline ReplicaSpecificationSummary& WithStatus(const TableStatus& value) { SetStatus(value); return *this;} + + /** + *The status of the multi-Region table in the specified Amazon Web Services + * Region.
+ */ + inline ReplicaSpecificationSummary& WithStatus(TableStatus&& value) { SetStatus(std::move(value)); return *this;} + + + + inline const CapacitySpecificationSummary& GetCapacitySpecification() const{ return m_capacitySpecification; } + + + inline bool CapacitySpecificationHasBeenSet() const { return m_capacitySpecificationHasBeenSet; } + + + inline void SetCapacitySpecification(const CapacitySpecificationSummary& value) { m_capacitySpecificationHasBeenSet = true; m_capacitySpecification = value; } + + + inline void SetCapacitySpecification(CapacitySpecificationSummary&& value) { m_capacitySpecificationHasBeenSet = true; m_capacitySpecification = std::move(value); } + + + inline ReplicaSpecificationSummary& WithCapacitySpecification(const CapacitySpecificationSummary& value) { SetCapacitySpecification(value); return *this;} + + + inline ReplicaSpecificationSummary& WithCapacitySpecification(CapacitySpecificationSummary&& value) { SetCapacitySpecification(std::move(value)); return *this;} + + private: + + Aws::String m_region; + bool m_regionHasBeenSet = false; + + TableStatus m_status; + bool m_statusHasBeenSet = false; + + CapacitySpecificationSummary m_capacitySpecification; + bool m_capacitySpecificationHasBeenSet = false; + }; + +} // namespace Model +} // namespace Keyspaces +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/ResourceNotFoundException.h b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/ResourceNotFoundException.h index 556f97f098f..ddf459f4cb3 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/ResourceNotFoundException.h +++ b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/ResourceNotFoundException.h @@ -39,28 +39,44 @@ namespace Model AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const; - + /** + *Description of the error.
+ */ inline const Aws::String& GetMessage() const{ return m_message; } - + /** + *Description of the error.
+ */ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } - + /** + *Description of the error.
+ */ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } - + /** + *Description of the error.
+ */ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } - + /** + *Description of the error.
+ */ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } - + /** + *Description of the error.
+ */ inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} - + /** + *Description of the error.
+ */ inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} - + /** + *Description of the error.
+ */ inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/RestoreTableRequest.h b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/RestoreTableRequest.h index 21ef18df81b..cfd849b904f 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/RestoreTableRequest.h +++ b/generated/src/aws-cpp-sdk-keyspaces/include/aws/keyspaces/model/RestoreTableRequest.h @@ -12,7 +12,9 @@ #includeThe optional auto scaling settings for the restored table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
For more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline const AutoScalingSpecification& GetAutoScalingSpecification() const{ return m_autoScalingSpecification; } + + /** + *The optional auto scaling settings for the restored table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
For more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline bool AutoScalingSpecificationHasBeenSet() const { return m_autoScalingSpecificationHasBeenSet; } + + /** + *The optional auto scaling settings for the restored table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
For more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline void SetAutoScalingSpecification(const AutoScalingSpecification& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = value; } + + /** + *The optional auto scaling settings for the restored table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
For more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline void SetAutoScalingSpecification(AutoScalingSpecification&& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = std::move(value); } + + /** + *The optional auto scaling settings for the restored table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
For more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline RestoreTableRequest& WithAutoScalingSpecification(const AutoScalingSpecification& value) { SetAutoScalingSpecification(value); return *this;} + + /** + *The optional auto scaling settings for the restored table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
For more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline RestoreTableRequest& WithAutoScalingSpecification(AutoScalingSpecification&& value) { SetAutoScalingSpecification(std::move(value)); return *this;} + + + /** + *The optional Region specific settings of a multi-Regional table.
+ */ + inline const Aws::VectorThe optional Region specific settings of a multi-Regional table.
+ */ + inline bool ReplicaSpecificationsHasBeenSet() const { return m_replicaSpecificationsHasBeenSet; } + + /** + *The optional Region specific settings of a multi-Regional table.
+ */ + inline void SetReplicaSpecifications(const Aws::VectorThe optional Region specific settings of a multi-Regional table.
+ */ + inline void SetReplicaSpecifications(Aws::VectorThe optional Region specific settings of a multi-Regional table.
+ */ + inline RestoreTableRequest& WithReplicaSpecifications(const Aws::VectorThe optional Region specific settings of a multi-Regional table.
+ */ + inline RestoreTableRequest& WithReplicaSpecifications(Aws::VectorThe optional Region specific settings of a multi-Regional table.
+ */ + inline RestoreTableRequest& AddReplicaSpecifications(const ReplicaSpecification& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications.push_back(value); return *this; } + + /** + *The optional Region specific settings of a multi-Regional table.
+ */ + inline RestoreTableRequest& AddReplicaSpecifications(ReplicaSpecification&& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications.push_back(std::move(value)); return *this; } + private: Aws::String m_sourceKeyspaceName; @@ -560,6 +682,12 @@ namespace Model Aws::VectorThe auto scaling policy that scales a table based on the ratio of consumed to + * provisioned capacity.
Specifies if scale-in
is enabled.
When auto scaling + * automatically decreases capacity for a table, the table scales in. When + * scaling policies are set, they can't scale in the table lower than its minimum + * capacity.
+ */ + inline bool GetDisableScaleIn() const{ return m_disableScaleIn; } + + /** + *Specifies if scale-in
is enabled.
When auto scaling + * automatically decreases capacity for a table, the table scales in. When + * scaling policies are set, they can't scale in the table lower than its minimum + * capacity.
+ */ + inline bool DisableScaleInHasBeenSet() const { return m_disableScaleInHasBeenSet; } + + /** + *Specifies if scale-in
is enabled.
When auto scaling + * automatically decreases capacity for a table, the table scales in. When + * scaling policies are set, they can't scale in the table lower than its minimum + * capacity.
+ */ + inline void SetDisableScaleIn(bool value) { m_disableScaleInHasBeenSet = true; m_disableScaleIn = value; } + + /** + *Specifies if scale-in
is enabled.
When auto scaling + * automatically decreases capacity for a table, the table scales in. When + * scaling policies are set, they can't scale in the table lower than its minimum + * capacity.
+ */ + inline TargetTrackingScalingPolicyConfiguration& WithDisableScaleIn(bool value) { SetDisableScaleIn(value); return *this;} + + + /** + *Specifies a scale-in
cool down period.
A cooldown period + * in seconds between scaling activities that lets the table stabilize before + * another scaling activity starts.
+ */ + inline int GetScaleInCooldown() const{ return m_scaleInCooldown; } + + /** + *Specifies a scale-in
cool down period.
A cooldown period + * in seconds between scaling activities that lets the table stabilize before + * another scaling activity starts.
+ */ + inline bool ScaleInCooldownHasBeenSet() const { return m_scaleInCooldownHasBeenSet; } + + /** + *Specifies a scale-in
cool down period.
A cooldown period + * in seconds between scaling activities that lets the table stabilize before + * another scaling activity starts.
+ */ + inline void SetScaleInCooldown(int value) { m_scaleInCooldownHasBeenSet = true; m_scaleInCooldown = value; } + + /** + *Specifies a scale-in
cool down period.
A cooldown period + * in seconds between scaling activities that lets the table stabilize before + * another scaling activity starts.
+ */ + inline TargetTrackingScalingPolicyConfiguration& WithScaleInCooldown(int value) { SetScaleInCooldown(value); return *this;} + + + /** + *Specifies a scale out cool down period.
A cooldown period in seconds + * between scaling activities that lets the table stabilize before another scaling + * activity starts.
+ */ + inline int GetScaleOutCooldown() const{ return m_scaleOutCooldown; } + + /** + *Specifies a scale out cool down period.
A cooldown period in seconds + * between scaling activities that lets the table stabilize before another scaling + * activity starts.
+ */ + inline bool ScaleOutCooldownHasBeenSet() const { return m_scaleOutCooldownHasBeenSet; } + + /** + *Specifies a scale out cool down period.
A cooldown period in seconds + * between scaling activities that lets the table stabilize before another scaling + * activity starts.
+ */ + inline void SetScaleOutCooldown(int value) { m_scaleOutCooldownHasBeenSet = true; m_scaleOutCooldown = value; } + + /** + *Specifies a scale out cool down period.
A cooldown period in seconds + * between scaling activities that lets the table stabilize before another scaling + * activity starts.
+ */ + inline TargetTrackingScalingPolicyConfiguration& WithScaleOutCooldown(int value) { SetScaleOutCooldown(value); return *this;} + + + /** + *Specifies the target value for the target tracking auto scaling policy.
+ *Amazon Keyspaces auto scaling scales up capacity automatically when traffic
+ * exceeds this target utilization rate, and then back down when it falls below the
+ * target. This ensures that the ratio of consumed capacity to provisioned capacity
+ * stays at or near this value. You define targetValue
as a
+ * percentage. A double
between 20 and 90.
Specifies the target value for the target tracking auto scaling policy.
+ *Amazon Keyspaces auto scaling scales up capacity automatically when traffic
+ * exceeds this target utilization rate, and then back down when it falls below the
+ * target. This ensures that the ratio of consumed capacity to provisioned capacity
+ * stays at or near this value. You define targetValue
as a
+ * percentage. A double
between 20 and 90.
Specifies the target value for the target tracking auto scaling policy.
+ *Amazon Keyspaces auto scaling scales up capacity automatically when traffic
+ * exceeds this target utilization rate, and then back down when it falls below the
+ * target. This ensures that the ratio of consumed capacity to provisioned capacity
+ * stays at or near this value. You define targetValue
as a
+ * percentage. A double
between 20 and 90.
Specifies the target value for the target tracking auto scaling policy.
+ *Amazon Keyspaces auto scaling scales up capacity automatically when traffic
+ * exceeds this target utilization rate, and then back down when it falls below the
+ * target. This ensures that the ratio of consumed capacity to provisioned capacity
+ * stays at or near this value. You define targetValue
as a
+ * percentage. A double
between 20 and 90.
The optional auto scaling settings to update for a table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
If auto scaling is already enabled for
+ * the table, you can use UpdateTable
to update the minimum and
+ * maximum values or the auto scaling policy settings independently.
For + * more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline const AutoScalingSpecification& GetAutoScalingSpecification() const{ return m_autoScalingSpecification; } + + /** + *The optional auto scaling settings to update for a table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
If auto scaling is already enabled for
+ * the table, you can use UpdateTable
to update the minimum and
+ * maximum values or the auto scaling policy settings independently.
For + * more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline bool AutoScalingSpecificationHasBeenSet() const { return m_autoScalingSpecificationHasBeenSet; } + + /** + *The optional auto scaling settings to update for a table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
If auto scaling is already enabled for
+ * the table, you can use UpdateTable
to update the minimum and
+ * maximum values or the auto scaling policy settings independently.
For + * more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline void SetAutoScalingSpecification(const AutoScalingSpecification& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = value; } + + /** + *The optional auto scaling settings to update for a table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
If auto scaling is already enabled for
+ * the table, you can use UpdateTable
to update the minimum and
+ * maximum values or the auto scaling policy settings independently.
For + * more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline void SetAutoScalingSpecification(AutoScalingSpecification&& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = std::move(value); } + + /** + *The optional auto scaling settings to update for a table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
If auto scaling is already enabled for
+ * the table, you can use UpdateTable
to update the minimum and
+ * maximum values or the auto scaling policy settings independently.
For + * more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline UpdateTableRequest& WithAutoScalingSpecification(const AutoScalingSpecification& value) { SetAutoScalingSpecification(value); return *this;} + + /** + *The optional auto scaling settings to update for a table in provisioned + * capacity mode. Specifies if the service can manage throughput capacity of a + * provisioned table automatically on your behalf. Amazon Keyspaces auto scaling + * helps you provision throughput capacity for variable workloads efficiently by + * increasing and decreasing your table's read and write capacity automatically in + * response to application traffic.
If auto scaling is already enabled for
+ * the table, you can use UpdateTable
to update the minimum and
+ * maximum values or the auto scaling policy settings independently.
For + * more information, see Managing + * throughput capacity automatically with Amazon Keyspaces auto scaling in the + * Amazon Keyspaces Developer Guide.
+ */ + inline UpdateTableRequest& WithAutoScalingSpecification(AutoScalingSpecification&& value) { SetAutoScalingSpecification(std::move(value)); return *this;} + + + /** + *The Region specific settings of a multi-Regional table.
+ */ + inline const Aws::VectorThe Region specific settings of a multi-Regional table.
+ */ + inline bool ReplicaSpecificationsHasBeenSet() const { return m_replicaSpecificationsHasBeenSet; } + + /** + *The Region specific settings of a multi-Regional table.
+ */ + inline void SetReplicaSpecifications(const Aws::VectorThe Region specific settings of a multi-Regional table.
+ */ + inline void SetReplicaSpecifications(Aws::VectorThe Region specific settings of a multi-Regional table.
+ */ + inline UpdateTableRequest& WithReplicaSpecifications(const Aws::VectorThe Region specific settings of a multi-Regional table.
+ */ + inline UpdateTableRequest& WithReplicaSpecifications(Aws::VectorThe Region specific settings of a multi-Regional table.
+ */ + inline UpdateTableRequest& AddReplicaSpecifications(const ReplicaSpecification& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications.push_back(value); return *this; } + + /** + *The Region specific settings of a multi-Regional table.
+ */ + inline UpdateTableRequest& AddReplicaSpecifications(ReplicaSpecification&& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications.push_back(std::move(value)); return *this; } + private: Aws::String m_keyspaceName; @@ -613,6 +753,12 @@ namespace Model ClientSideTimestamps m_clientSideTimestamps; bool m_clientSideTimestampsHasBeenSet = false; + + AutoScalingSpecification m_autoScalingSpecification; + bool m_autoScalingSpecificationHasBeenSet = false; + + Aws::VectorRepresents the DynamoDB Streams configuration for the table.
You receive a ResourceInUseException
if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.
Represents the DynamoDB Streams configuration for the table.
You receive a ValidationException
if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.
Returns information about the table, including the table's name and current status, the keyspace name, configuration settings, and metadata.
To read table metadata using GetTable
, Select
action permissions for the table and system tables are required to complete the operation.
Returns auto scaling related settings of the specified table in JSON format. If the table is a multi-Region table, the Amazon Web Services Region specific auto scaling settings of the table are included.
Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic. For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
" + }, "ListKeyspaces":{ "name":"ListKeyspaces", "http":{ @@ -185,7 +202,7 @@ {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"Restores the specified table to the specified point in time within the earliest_restorable_timestamp
and the current time. For more information about restore points, see Time window for PITR continuous backups in the Amazon Keyspaces Developer Guide.
Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account.
When you restore using point in time recovery, Amazon Keyspaces restores your source table's schema and data to the state based on the selected timestamp (day:hour:minute:second)
to a new table. The Time to Live (TTL) settings are also restored to the state based on the selected timestamp.
In addition to the table's schema, data, and TTL settings, RestoreTable
restores the capacity mode, encryption, and point-in-time recovery settings from the source table. Unlike the table's schema data and TTL settings, which are restored based on the selected timestamp, these settings are always restored based on the table's settings as of the current time or when the table was deleted.
You can also overwrite these settings during restore:
Read/write capacity mode
Provisioned throughput capacity settings
Point-in-time (PITR) settings
Tags
For more information, see PITR restore settings in the Amazon Keyspaces Developer Guide.
Note that the following settings are not restored, and you must configure them manually for the new table:
Automatic scaling policies (for tables that use provisioned capacity mode)
Identity and Access Management (IAM) policies
Amazon CloudWatch metrics and alarms
Restores the table to the specified point in time within the earliest_restorable_timestamp
and the current time. For more information about restore points, see Time window for PITR continuous backups in the Amazon Keyspaces Developer Guide.
Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account.
When you restore using point in time recovery, Amazon Keyspaces restores your source table's schema and data to the state based on the selected timestamp (day:hour:minute:second)
to a new table. The Time to Live (TTL) settings are also restored to the state based on the selected timestamp.
In addition to the table's schema, data, and TTL settings, RestoreTable
restores the capacity mode, auto scaling settings, encryption settings, and point-in-time recovery settings from the source table. Unlike the table's schema data and TTL settings, which are restored based on the selected timestamp, these settings are always restored based on the table's settings as of the current time or when the table was deleted.
You can also overwrite these settings during restore:
Read/write capacity mode
Provisioned throughput capacity units
Auto scaling settings
Point-in-time (PITR) settings
Tags
For more information, see PITR restore settings in the Amazon Keyspaces Developer Guide.
Note that the following settings are not restored, and you must configure them manually for the new table:
Identity and Access Management (IAM) policies
Amazon CloudWatch metrics and alarms
Adds new columns to the table or updates one of the table's settings, for example capacity mode, encryption, point-in-time recovery, or ttl settings. Note that you can only update one specific table setting per update operation.
" + "documentation":"Adds new columns to the table or updates one of the table's settings, for example capacity mode, auto scaling, encryption, point-in-time recovery, or ttl settings. Note that you can only update one specific table setting per update operation.
" } }, "shapes":{ @@ -251,11 +268,61 @@ "AccessDeniedException":{ "type":"structure", "members":{ - "message":{"shape":"String"} + "message":{ + "shape":"String", + "documentation":"Description of the error.
" + } }, - "documentation":"You do not have sufficient access to perform this action.
", + "documentation":"You don't have sufficient access permissions to perform this action.
", "exception":true }, + "AutoScalingPolicy":{ + "type":"structure", + "members":{ + "targetTrackingScalingPolicyConfiguration":{ + "shape":"TargetTrackingScalingPolicyConfiguration", + "documentation":"Auto scaling scales up capacity automatically when traffic exceeds this target utilization rate, and then back down when it falls below the target. A double
between 20 and 90.
Amazon Keyspaces supports the target tracking
auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.
This optional parameter enables auto scaling for the table if set to false
.
The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
" + }, + "maximumUnits":{ + "shape":"CapacityUnits", + "documentation":"Manage costs by specifying the maximum amount of throughput to provision. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
" + }, + "scalingPolicy":{ + "shape":"AutoScalingPolicy", + "documentation":"Amazon Keyspaces supports the target tracking
auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.
The optional auto scaling settings for a table with provisioned throughput capacity.
To turn on auto scaling for a table in throughputMode:PROVISIONED
, you must specify the following parameters.
Configure the minimum and maximum units for write and read capacity. The auto scaling policy ensures that capacity never goes below the minimum or above the maximum range.
minimumUnits
: The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
maximumUnits
: The maximum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
scalingPolicy
: Amazon Keyspaces supports the target tracking
scaling policy. The auto scaling target is the provisioned read and write capacity of the table.
targetTrackingScalingPolicyConfiguration
: To define the target tracking policy, you must define the target value.
targetValue
: The target utilization rate of the table. Amazon Keyspaces auto scaling ensures that the ratio of consumed capacity to provisioned capacity stays at or near this value. You define targetValue
as a percentage. A double
between 20 and 90. (Required)
disableScaleIn
: A boolean
that specifies if scale-in
is disabled or enabled for the table. This parameter is disabled by default. To turn on scale-in
, set the boolean
value to FALSE
. This means that capacity for a table can be automatically scaled down on your behalf. (Optional)
scaleInCooldown
: A cooldown period in seconds between scaling activities that lets the table stabilize before another scale in activity starts. If no value is provided, the default is 0. (Optional)
scaleOutCooldown
: A cooldown period in seconds between scaling activities that lets the table stabilize before another scale out activity starts. If no value is provided, the default is 0. (Optional)
For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
" + }, + "AutoScalingSpecification":{ + "type":"structure", + "members":{ + "writeCapacityAutoScaling":{ + "shape":"AutoScalingSettings", + "documentation":"The auto scaling settings for the table's write capacity.
" + }, + "readCapacityAutoScaling":{ + "shape":"AutoScalingSettings", + "documentation":"The auto scaling settings for the table's read capacity.
" + } + }, + "documentation":"The optional auto scaling settings for read and write capacity of a table in provisioned capacity mode.
" + }, + "BooleanObject":{"type":"boolean"}, "CapacitySpecification":{ "type":"structure", "required":["throughputMode"], @@ -377,9 +444,12 @@ "ConflictException":{ "type":"structure", "members":{ - "message":{"shape":"String"} + "message":{ + "shape":"String", + "documentation":"Description of the error.
" + } }, - "documentation":"Amazon Keyspaces could not complete the requested action. This error may occur if you try to perform an action and the same or a different action is already in progress, or if you try to create a resource that already exists.
", + "documentation":"Amazon Keyspaces couldn't complete the requested action. This error may occur if you try to perform an action and the same or a different action is already in progress, or if you try to create a resource that already exists.
", "exception":true }, "CreateKeyspaceRequest":{ @@ -461,6 +531,14 @@ "clientSideTimestamps":{ "shape":"ClientSideTimestamps", "documentation":"Enables client-side timestamps for the table. By default, the setting is disabled. You can enable client-side timestamps with the following option:
status: \"enabled\"
Once client-side timestamps are enabled for a table, this setting cannot be disabled.
" + }, + "autoScalingSpecification":{ + "shape":"AutoScalingSpecification", + "documentation":"The optional auto scaling settings for a table in provisioned capacity mode. Specifies if the service can manage throughput capacity automatically on your behalf.
Auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic. For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
By default, auto scaling is disabled for a table.
" + }, + "replicaSpecifications":{ + "shape":"ReplicaSpecificationList", + "documentation":"The optional Amazon Web Services Region specific settings of a multi-Region table. These settings overwrite the general settings of the table for the specified Region.
For a multi-Region table in provisioned capacity mode, you can configure the table's read capacity differently for each Region's replica. The write capacity, however, remains synchronized between all replicas to ensure that there's enough capacity to replicate writes across all Regions. To define the read capacity for a table replica in a specific Region, you can do so by configuring the following parameters.
region
: The Region where these settings are applied. (Required)
readCapacityUnits
: The provisioned read capacity units. (Optional)
readCapacityAutoScaling
: The read capacity auto scaling settings for the table. (Optional)
The name of the keyspace.
" + }, + "tableName":{ + "shape":"TableName", + "documentation":"The name of the table.
" + } + } + }, + "GetTableAutoScalingSettingsResponse":{ + "type":"structure", + "required":[ + "keyspaceName", + "tableName", + "resourceArn" + ], + "members":{ + "keyspaceName":{ + "shape":"KeyspaceName", + "documentation":"The name of the keyspace.
" + }, + "tableName":{ + "shape":"TableName", + "documentation":"The name of the table.
" + }, + "resourceArn":{ + "shape":"ARN", + "documentation":"The Amazon Resource Name (ARN) of the table.
" + }, + "autoScalingSpecification":{ + "shape":"AutoScalingSpecification", + "documentation":"The auto scaling settings of the table.
" + }, + "replicaSpecifications":{ + "shape":"ReplicaAutoScalingSpecificationList", + "documentation":"The Amazon Web Services Region specific settings of a multi-Region table. Returns the settings for all Regions the table is replicated in.
" + } + } + }, "GetTableRequest":{ "type":"structure", "required":[ @@ -652,13 +778,21 @@ "clientSideTimestamps":{ "shape":"ClientSideTimestamps", "documentation":"The client-side timestamps setting of the table.
" + }, + "replicaSpecifications":{ + "shape":"ReplicaSpecificationSummaryList", + "documentation":"Returns the Amazon Web Services Region specific settings of all Regions a multi-Region table is replicated in.
" } } }, + "IntegerObject":{"type":"integer"}, "InternalServerException":{ "type":"structure", "members":{ - "message":{"shape":"String"} + "message":{ + "shape":"String", + "documentation":"Description of the error.
" + } }, "documentation":"Amazon Keyspaces was unable to fully process this request because of an internal server error.
", "exception":true, @@ -856,6 +990,69 @@ "max":6, "min":2 }, + "ReplicaAutoScalingSpecification":{ + "type":"structure", + "members":{ + "region":{ + "shape":"region", + "documentation":"The Amazon Web Services Region.
" + }, + "autoScalingSpecification":{ + "shape":"AutoScalingSpecification", + "documentation":"The auto scaling settings for a multi-Region table in the specified Amazon Web Services Region.
" + } + }, + "documentation":"The auto scaling settings of a multi-Region table in the specified Amazon Web Services Region.
" + }, + "ReplicaAutoScalingSpecificationList":{ + "type":"list", + "member":{"shape":"ReplicaAutoScalingSpecification"}, + "min":0 + }, + "ReplicaSpecification":{ + "type":"structure", + "required":["region"], + "members":{ + "region":{ + "shape":"region", + "documentation":"The Amazon Web Services Region.
" + }, + "readCapacityUnits":{ + "shape":"CapacityUnits", + "documentation":"The provisioned read capacity units for the multi-Region table in the specified Amazon Web Services Region.
" + }, + "readCapacityAutoScaling":{ + "shape":"AutoScalingSettings", + "documentation":"The read capacity auto scaling settings for the multi-Region table in the specified Amazon Web Services Region.
" + } + }, + "documentation":"The Amazon Web Services Region specific settings of a multi-Region table.
For a multi-Region table, you can configure the table's read capacity differently per Amazon Web Services Region. You can do this by configuring the following parameters.
region
: The Region where these settings are applied. (Required)
readCapacityUnits
: The provisioned read capacity units. (Optional)
readCapacityAutoScaling
: The read capacity auto scaling settings for the table. (Optional)
The Amazon Web Services Region.
" + }, + "status":{ + "shape":"TableStatus", + "documentation":"The status of the multi-Region table in the specified Amazon Web Services Region.
" + }, + "capacitySpecification":{"shape":"CapacitySpecificationSummary"} + }, + "documentation":"The Region-specific settings of a multi-Region table in the specified Amazon Web Services Region.
If the multi-Region table is using provisioned capacity and has optional auto scaling policies configured, note that the Region specific summary returns both read and write capacity settings. But only Region specific read capacity settings can be configured for a multi-Region table. In a multi-Region table, your write capacity units will be synced across all Amazon Web Services Regions to ensure that there is enough capacity to replicate write events across Regions.
" + }, + "ReplicaSpecificationSummaryList":{ + "type":"list", + "member":{"shape":"ReplicaSpecificationSummary"}, + "min":0 + }, "ReplicationSpecification":{ "type":"structure", "required":["replicationStrategy"], @@ -874,7 +1071,10 @@ "ResourceNotFoundException":{ "type":"structure", "members":{ - "message":{"shape":"String"}, + "message":{ + "shape":"String", + "documentation":"Description of the error.
" + }, "resourceArn":{ "shape":"ARN", "documentation":"The unique identifier in the format of Amazon Resource Name (ARN), for the resource not found.
" @@ -927,6 +1127,14 @@ "tagsOverride":{ "shape":"TagList", "documentation":"A list of key-value pair tags to be attached to the restored table.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
" + }, + "autoScalingSpecification":{ + "shape":"AutoScalingSpecification", + "documentation":"The optional auto scaling settings for the restored table in provisioned capacity mode. Specifies if the service can manage throughput capacity of a provisioned table automatically on your behalf. Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic.
For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
" + }, + "replicaSpecifications":{ + "shape":"ReplicaSpecificationList", + "documentation":"The optional Region specific settings of a multi-Regional table.
" } } }, @@ -969,7 +1177,10 @@ "ServiceQuotaExceededException":{ "type":"structure", "members":{ - "message":{"shape":"String"} + "message":{ + "shape":"String", + "documentation":"Description of the error.
" + } }, "documentation":"The operation exceeded the service quota for this resource. For more information on service quotas, see Quotas in the Amazon Keyspaces Developer Guide.
", "exception":true @@ -1098,6 +1309,29 @@ "max":256, "min":1 }, + "TargetTrackingScalingPolicyConfiguration":{ + "type":"structure", + "required":["targetValue"], + "members":{ + "disableScaleIn":{ + "shape":"BooleanObject", + "documentation":"Specifies if scale-in
is enabled.
When auto scaling automatically decreases capacity for a table, the table scales in. When scaling policies are set, they can't scale in the table lower than its minimum capacity.
" + }, + "scaleInCooldown":{ + "shape":"IntegerObject", + "documentation":"Specifies a scale-in
cool down period.
A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts.
" + }, + "scaleOutCooldown":{ + "shape":"IntegerObject", + "documentation":"Specifies a scale out cool down period.
A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts.
" + }, + "targetValue":{ + "shape":"DoubleObject", + "documentation":"Specifies the target value for the target tracking auto scaling policy.
Amazon Keyspaces auto scaling scales up capacity automatically when traffic exceeds this target utilization rate, and then back down when it falls below the target. This ensures that the ratio of consumed capacity to provisioned capacity stays at or near this value. You define targetValue
as a percentage. A double
between 20 and 90.
The auto scaling policy that scales a table based on the ratio of consumed to provisioned capacity.
" + }, "ThroughputMode":{ "type":"string", "enum":[ @@ -1185,6 +1419,14 @@ "clientSideTimestamps":{ "shape":"ClientSideTimestamps", "documentation":"Enables client-side timestamps for the table. By default, the setting is disabled. You can enable client-side timestamps with the following option:
status: \"enabled\"
Once client-side timestamps are enabled for a table, this setting cannot be disabled.
" + }, + "autoScalingSpecification":{ + "shape":"AutoScalingSpecification", + "documentation":"The optional auto scaling settings to update for a table in provisioned capacity mode. Specifies if the service can manage throughput capacity of a provisioned table automatically on your behalf. Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic.
If auto scaling is already enabled for the table, you can use UpdateTable
to update the minimum and maximum values or the auto scaling policy settings independently.
For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
" + }, + "replicaSpecifications":{ + "shape":"ReplicaSpecificationList", + "documentation":"The Region specific settings of a multi-Regional table.
" } } }, @@ -1201,7 +1443,10 @@ "ValidationException":{ "type":"structure", "members":{ - "message":{"shape":"String"} + "message":{ + "shape":"String", + "documentation":"Description of the error.
" + } }, "documentation":"The operation failed due to an invalid or malformed request.
", "exception":true diff --git a/tools/code-generation/endpoints/keyspaces-2022-02-10.endpoint-rule-set.json b/tools/code-generation/endpoints/keyspaces-2022-02-10.endpoint-rule-set.json index 4a6c3df7792..578f4345fa2 100644 --- a/tools/code-generation/endpoints/keyspaces-2022-02-10.endpoint-rule-set.json +++ b/tools/code-generation/endpoints/keyspaces-2022-02-10.endpoint-rule-set.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -83,7 +82,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -96,7 +96,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -110,7 +109,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -133,7 +131,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -168,7 +165,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -179,14 +175,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -200,14 +198,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -216,18 +212,17 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "stringEquals", "argv": [ - "aws-us-gov", { "fn": "getAttr", "argv": [ @@ -236,7 +231,8 @@ }, "name" ] - } + }, + "aws-us-gov" ] } ], @@ -256,14 +252,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -277,7 +275,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -297,7 +294,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -308,14 +304,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -326,9 +324,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [],