CfnTablePropsMixin
- class aws_cdk.mixins_preview.aws_cassandra.mixins.CfnTablePropsMixin(props, *, strategy=None)
Bases:
MixinYou can use the
AWS::Cassandra::Tableresource to create a new table in Amazon Keyspaces (for Apache Cassandra).For more information, see Create a table in the Amazon Keyspaces Developer Guide .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-table.html
- CloudformationResource:
AWS::Cassandra::Table
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins cfn_table_props_mixin = cassandra_mixins.CfnTablePropsMixin(cassandra_mixins.CfnTableMixinProps( auto_scaling_specifications=cassandra_mixins.CfnTablePropsMixin.AutoScalingSpecificationProperty( read_capacity_auto_scaling=cassandra_mixins.CfnTablePropsMixin.AutoScalingSettingProperty( auto_scaling_disabled=False, maximum_units=123, minimum_units=123, scaling_policy=cassandra_mixins.CfnTablePropsMixin.ScalingPolicyProperty( target_tracking_scaling_policy_configuration=cassandra_mixins.CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty( disable_scale_in=False, scale_in_cooldown=123, scale_out_cooldown=123, target_value=123 ) ) ), write_capacity_auto_scaling=cassandra_mixins.CfnTablePropsMixin.AutoScalingSettingProperty( auto_scaling_disabled=False, maximum_units=123, minimum_units=123, scaling_policy=cassandra_mixins.CfnTablePropsMixin.ScalingPolicyProperty( target_tracking_scaling_policy_configuration=cassandra_mixins.CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty( disable_scale_in=False, scale_in_cooldown=123, scale_out_cooldown=123, target_value=123 ) ) ) ), billing_mode=cassandra_mixins.CfnTablePropsMixin.BillingModeProperty( mode="mode", provisioned_throughput=cassandra_mixins.CfnTablePropsMixin.ProvisionedThroughputProperty( read_capacity_units=123, write_capacity_units=123 ) ), cdc_specification=cassandra_mixins.CfnTablePropsMixin.CdcSpecificationProperty( status="status", tags=[CfnTag( key="key", value="value" )], view_type="viewType" ), client_side_timestamps_enabled=False, clustering_key_columns=[cassandra_mixins.CfnTablePropsMixin.ClusteringKeyColumnProperty( column=cassandra_mixins.CfnTablePropsMixin.ColumnProperty( column_name="columnName", column_type="columnType" ), order_by="orderBy" )], default_time_to_live=123, encryption_specification=cassandra_mixins.CfnTablePropsMixin.EncryptionSpecificationProperty( encryption_type="encryptionType", kms_key_identifier="kmsKeyIdentifier" ), keyspace_name="keyspaceName", partition_key_columns=[cassandra_mixins.CfnTablePropsMixin.ColumnProperty( column_name="columnName", column_type="columnType" )], point_in_time_recovery_enabled=False, regular_columns=[cassandra_mixins.CfnTablePropsMixin.ColumnProperty( column_name="columnName", column_type="columnType" )], replica_specifications=[cassandra_mixins.CfnTablePropsMixin.ReplicaSpecificationProperty( read_capacity_auto_scaling=cassandra_mixins.CfnTablePropsMixin.AutoScalingSettingProperty( auto_scaling_disabled=False, maximum_units=123, minimum_units=123, scaling_policy=cassandra_mixins.CfnTablePropsMixin.ScalingPolicyProperty( target_tracking_scaling_policy_configuration=cassandra_mixins.CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty( disable_scale_in=False, scale_in_cooldown=123, scale_out_cooldown=123, target_value=123 ) ) ), read_capacity_units=123, region="region" )], table_name="tableName", tags=[CfnTag( key="key", value="value" )], warm_throughput=cassandra_mixins.CfnTablePropsMixin.WarmThroughputProperty( read_units_per_second=123, write_units_per_second=123 ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Cassandra::Table.- Parameters:
props (
Union[CfnTableMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['autoScalingSpecifications', 'billingMode', 'cdcSpecification', 'clientSideTimestampsEnabled', 'clusteringKeyColumns', 'defaultTimeToLive', 'encryptionSpecification', 'keyspaceName', 'partitionKeyColumns', 'pointInTimeRecoveryEnabled', 'regularColumns', 'replicaSpecifications', 'tableName', 'tags', 'warmThroughput']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AutoScalingSettingProperty
- class CfnTablePropsMixin.AutoScalingSettingProperty(*, auto_scaling_disabled=None, maximum_units=None, minimum_units=None, scaling_policy=None)
Bases:
objectThe 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 capacity units. 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 thetarget trackingscaling policy. The auto scaling target is a percentage of the provisioned capacity of the table.
For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide .
- Parameters:
auto_scaling_disabled (
Union[bool,IResolvable,None]) – This optional parameter enables auto scaling for the table if set tofalse. Default: - falsemaximum_units (
Union[int,float,None]) – 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).minimum_units (
Union[int,float,None]) – 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).scaling_policy (
Union[IResolvable,ScalingPolicyProperty,Dict[str,Any],None]) – Amazon Keyspaces supports thetarget trackingauto 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.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins auto_scaling_setting_property = cassandra_mixins.CfnTablePropsMixin.AutoScalingSettingProperty( auto_scaling_disabled=False, maximum_units=123, minimum_units=123, scaling_policy=cassandra_mixins.CfnTablePropsMixin.ScalingPolicyProperty( target_tracking_scaling_policy_configuration=cassandra_mixins.CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty( disable_scale_in=False, scale_in_cooldown=123, scale_out_cooldown=123, target_value=123 ) ) )
Attributes
- auto_scaling_disabled
This optional parameter enables auto scaling for the table if set to
false.
- maximum_units
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).
- minimum_units
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).
- scaling_policy
Amazon Keyspaces supports the
target trackingauto 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.
AutoScalingSpecificationProperty
- class CfnTablePropsMixin.AutoScalingSpecificationProperty(*, read_capacity_auto_scaling=None, write_capacity_auto_scaling=None)
Bases:
objectThe optional auto scaling capacity settings for a table in provisioned capacity mode.
- Parameters:
read_capacity_auto_scaling (
Union[IResolvable,AutoScalingSettingProperty,Dict[str,Any],None]) – The auto scaling settings for the table’s read capacity.write_capacity_auto_scaling (
Union[IResolvable,AutoScalingSettingProperty,Dict[str,Any],None]) – The auto scaling settings for the table’s write capacity.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins auto_scaling_specification_property = cassandra_mixins.CfnTablePropsMixin.AutoScalingSpecificationProperty( read_capacity_auto_scaling=cassandra_mixins.CfnTablePropsMixin.AutoScalingSettingProperty( auto_scaling_disabled=False, maximum_units=123, minimum_units=123, scaling_policy=cassandra_mixins.CfnTablePropsMixin.ScalingPolicyProperty( target_tracking_scaling_policy_configuration=cassandra_mixins.CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty( disable_scale_in=False, scale_in_cooldown=123, scale_out_cooldown=123, target_value=123 ) ) ), write_capacity_auto_scaling=cassandra_mixins.CfnTablePropsMixin.AutoScalingSettingProperty( auto_scaling_disabled=False, maximum_units=123, minimum_units=123, scaling_policy=cassandra_mixins.CfnTablePropsMixin.ScalingPolicyProperty( target_tracking_scaling_policy_configuration=cassandra_mixins.CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty( disable_scale_in=False, scale_in_cooldown=123, scale_out_cooldown=123, target_value=123 ) ) ) )
Attributes
- read_capacity_auto_scaling
The auto scaling settings for the table’s read capacity.
- write_capacity_auto_scaling
The auto scaling settings for the table’s write capacity.
BillingModeProperty
- class CfnTablePropsMixin.BillingModeProperty(*, mode=None, provisioned_throughput=None)
Bases:
objectDetermines the billing mode for the table - on-demand or provisioned.
- Parameters:
mode (
Optional[str]) – The billing mode for the table:. - On-demand mode -ON_DEMAND- Provisioned mode -PROVISIONED.. epigraph:: If you choosePROVISIONEDmode, then you also need to specify provisioned throughput (read and write capacity) for the table. Valid values:ON_DEMAND|PROVISIONEDDefault: - “ON_DEMAND”provisioned_throughput (
Union[IResolvable,ProvisionedThroughputProperty,Dict[str,Any],None]) – The provisioned read capacity and write capacity for the table. For more information, see Provisioned throughput capacity mode in the Amazon Keyspaces Developer Guide .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins billing_mode_property = cassandra_mixins.CfnTablePropsMixin.BillingModeProperty( mode="mode", provisioned_throughput=cassandra_mixins.CfnTablePropsMixin.ProvisionedThroughputProperty( read_capacity_units=123, write_capacity_units=123 ) )
Attributes
- mode
.
On-demand mode -
ON_DEMANDProvisioned mode -
PROVISIONED
If you choose
PROVISIONEDmode, then you also need to specify provisioned throughput (read and write capacity) for the table.Valid values:
ON_DEMAND|PROVISIONED- Default:
“ON_DEMAND”
- See:
- Type:
The billing mode for the table
- provisioned_throughput
The provisioned read capacity and write capacity for the table.
For more information, see Provisioned throughput capacity mode in the Amazon Keyspaces Developer Guide .
CdcSpecificationProperty
- class CfnTablePropsMixin.CdcSpecificationProperty(*, status=None, tags=None, view_type=None)
Bases:
objectThe settings for the CDC stream of a table.
For more information about CDC streams, see Working with change data capture (CDC) streams in Amazon Keyspaces in the Amazon Keyspaces Developer Guide .
- Parameters:
status (
Optional[str]) – The status of the CDC stream. You can enable or disable a stream for a table.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – The tags (key-value pairs) that you want to apply to the stream.view_type (
Optional[str]) – The view type specifies the changes Amazon Keyspaces records for each changed row in the stream. After you create the stream, you can’t make changes to this selection. The options are: -NEW_AND_OLD_IMAGES- both versions of the row, before and after the change. This is the default. -NEW_IMAGE- the version of the row after the change. -OLD_IMAGE- the version of the row before the change. -KEYS_ONLY- the partition and clustering keys of the row that was changed. Default: - “NEW_AND_OLD_IMAGES”
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins cdc_specification_property = cassandra_mixins.CfnTablePropsMixin.CdcSpecificationProperty( status="status", tags=[CfnTag( key="key", value="value" )], view_type="viewType" )
Attributes
- status
The status of the CDC stream.
You can enable or disable a stream for a table.
- tags
The tags (key-value pairs) that you want to apply to the stream.
- view_type
The view type specifies the changes Amazon Keyspaces records for each changed row in the stream.
After you create the stream, you can’t make changes to this selection.
The options are:
NEW_AND_OLD_IMAGES- both versions of the row, before and after the change. This is the default.NEW_IMAGE- the version of the row after the change.OLD_IMAGE- the version of the row before the change.KEYS_ONLY- the partition and clustering keys of the row that was changed.
ClusteringKeyColumnProperty
- class CfnTablePropsMixin.ClusteringKeyColumnProperty(*, column=None, order_by=None)
Bases:
objectDefines an individual column within the clustering key.
- Parameters:
column (
Union[IResolvable,ColumnProperty,Dict[str,Any],None]) – The name and data type of this clustering key column.order_by (
Optional[str]) – The order in which this column’s data is stored:. -ASC(default) - The column’s data is stored in ascending order. -DESC- The column’s data is stored in descending order. Default: - “ASC”
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins clustering_key_column_property = cassandra_mixins.CfnTablePropsMixin.ClusteringKeyColumnProperty( column=cassandra_mixins.CfnTablePropsMixin.ColumnProperty( column_name="columnName", column_type="columnType" ), order_by="orderBy" )
Attributes
- column
The name and data type of this clustering key column.
- order_by
.
ASC(default) - The column’s data is stored in ascending order.DESC- The column’s data is stored in descending order.
- Default:
“ASC”
- See:
- Type:
The order in which this column’s data is stored
ColumnProperty
- class CfnTablePropsMixin.ColumnProperty(*, column_name=None, column_type=None)
Bases:
objectThe name and data type of an individual column in a table.
In addition to the data type, you can also use the following two keywords:
STATICif the table has a clustering column. Static columns store values that are shared by all rows in the same partition.FROZENfor collection data types. In frozen collections the values of the collection are serialized into a single immutable value, and Amazon Keyspaces treats them like aBLOB.
- Parameters:
column_name (
Optional[str]) – The name of the column. For more information, see Identifiers in the Amazon Keyspaces Developer Guide .column_type (
Optional[str]) – The data type of the column. For more information, see Data types in the Amazon Keyspaces Developer Guide .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins column_property = cassandra_mixins.CfnTablePropsMixin.ColumnProperty( column_name="columnName", column_type="columnType" )
Attributes
- column_name
The name of the column.
For more information, see Identifiers in the Amazon Keyspaces Developer Guide .
- column_type
The data type of the column.
For more information, see Data types in the Amazon Keyspaces Developer Guide .
EncryptionSpecificationProperty
- class CfnTablePropsMixin.EncryptionSpecificationProperty(*, encryption_type=None, kms_key_identifier=None)
Bases:
objectSpecifies the encryption at rest option selected for the table.
- Parameters:
encryption_type (
Optional[str]) – The encryption at rest options for the table. - AWS owned key (default) -AWS_OWNED_KMS_KEY- Customer managed key -CUSTOMER_MANAGED_KMS_KEY.. epigraph:: If you chooseCUSTOMER_MANAGED_KMS_KEY, akms_key_identifierin the format of a key ARN is required. Valid values:CUSTOMER_MANAGED_KMS_KEY|AWS_OWNED_KMS_KEY. Default: - “AWS_OWNED_KMS_KEY”kms_key_identifier (
Optional[str]) – Requires akms_key_identifierin the format of a key ARN.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins encryption_specification_property = cassandra_mixins.CfnTablePropsMixin.EncryptionSpecificationProperty( encryption_type="encryptionType", kms_key_identifier="kmsKeyIdentifier" )
Attributes
- encryption_type
The encryption at rest options for the table.
AWS owned key (default) -
AWS_OWNED_KMS_KEYCustomer managed key -
CUSTOMER_MANAGED_KMS_KEY
If you choose
CUSTOMER_MANAGED_KMS_KEY, akms_key_identifierin the format of a key ARN is required.Valid values:
CUSTOMER_MANAGED_KMS_KEY|AWS_OWNED_KMS_KEY.
- kms_key_identifier
Requires a
kms_key_identifierin the format of a key ARN.
ProvisionedThroughputProperty
- class CfnTablePropsMixin.ProvisionedThroughputProperty(*, read_capacity_units=None, write_capacity_units=None)
Bases:
objectThe provisioned throughput for the table, which consists of
ReadCapacityUnitsandWriteCapacityUnits.- Parameters:
read_capacity_units (
Union[int,float,None]) – The amount of read capacity that’s provisioned for the table. For more information, see Read/write capacity mode in the Amazon Keyspaces Developer Guide .write_capacity_units (
Union[int,float,None]) –The amount of write capacity that’s provisioned for the table. For more information, see Read/write capacity mode in the Amazon Keyspaces Developer Guide .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins provisioned_throughput_property = cassandra_mixins.CfnTablePropsMixin.ProvisionedThroughputProperty( read_capacity_units=123, write_capacity_units=123 )
Attributes
- read_capacity_units
The amount of read capacity that’s provisioned for the table.
For more information, see Read/write capacity mode in the Amazon Keyspaces Developer Guide .
- write_capacity_units
The amount of write capacity that’s provisioned for the table.
For more information, see Read/write capacity mode in the Amazon Keyspaces Developer Guide .
ReplicaSpecificationProperty
- class CfnTablePropsMixin.ReplicaSpecificationProperty(*, read_capacity_auto_scaling=None, read_capacity_units=None, region=None)
Bases:
objectThe AWS Region specific settings of a multi-Region table.
For a multi-Region table, you can configure the table’s read capacity differently per AWS 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)
- Parameters:
read_capacity_auto_scaling (
Union[IResolvable,AutoScalingSettingProperty,Dict[str,Any],None]) – The read capacity auto scaling settings for the multi-Region table in the specified AWS Region.read_capacity_units (
Union[int,float,None]) – The provisioned read capacity units for the multi-Region table in the specified AWS Region.region (
Optional[str]) – The AWS Region.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins replica_specification_property = cassandra_mixins.CfnTablePropsMixin.ReplicaSpecificationProperty( read_capacity_auto_scaling=cassandra_mixins.CfnTablePropsMixin.AutoScalingSettingProperty( auto_scaling_disabled=False, maximum_units=123, minimum_units=123, scaling_policy=cassandra_mixins.CfnTablePropsMixin.ScalingPolicyProperty( target_tracking_scaling_policy_configuration=cassandra_mixins.CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty( disable_scale_in=False, scale_in_cooldown=123, scale_out_cooldown=123, target_value=123 ) ) ), read_capacity_units=123, region="region" )
Attributes
- read_capacity_auto_scaling
The read capacity auto scaling settings for the multi-Region table in the specified AWS Region.
- read_capacity_units
The provisioned read capacity units for the multi-Region table in the specified AWS Region.
ScalingPolicyProperty
- class CfnTablePropsMixin.ScalingPolicyProperty(*, target_tracking_scaling_policy_configuration=None)
Bases:
objectAmazon Keyspaces supports the
target trackingauto 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.
- Parameters:
target_tracking_scaling_policy_configuration (
Union[IResolvable,TargetTrackingScalingPolicyConfigurationProperty,Dict[str,Any],None]) – The auto scaling policy that scales a table based on the ratio of consumed to provisioned capacity.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins scaling_policy_property = cassandra_mixins.CfnTablePropsMixin.ScalingPolicyProperty( target_tracking_scaling_policy_configuration=cassandra_mixins.CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty( disable_scale_in=False, scale_in_cooldown=123, scale_out_cooldown=123, target_value=123 ) )
Attributes
- target_tracking_scaling_policy_configuration
The auto scaling policy that scales a table based on the ratio of consumed to provisioned capacity.
TargetTrackingScalingPolicyConfigurationProperty
- class CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty(*, disable_scale_in=None, scale_in_cooldown=None, scale_out_cooldown=None, target_value=None)
Bases:
objectAmazon Keyspaces supports the
target trackingauto scaling policy for a provisioned table.This policy scales a table based on the ratio of consumed to provisioned capacity. The auto scaling target is a percentage of the provisioned 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 definetargetValueas a percentage. Adoublebetween 20 and 90. (Required)disableScaleIn: Abooleanthat specifies ifscale-inis disabled or enabled for the table. This parameter is disabled by default. To turn onscale-in, set thebooleanvalue toFALSE. 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)
- Parameters:
disable_scale_in (
Union[bool,IResolvable,None]) – Specifies ifscale-inis 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.scale_in_cooldown (
Union[int,float,None]) – Specifies ascale-incool down period. A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts. Default: - 0scale_out_cooldown (
Union[int,float,None]) – 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. Default: - 0target_value (
Union[int,float,None]) – 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 definetargetValueas a percentage. Anintegerbetween 20 and 90.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins target_tracking_scaling_policy_configuration_property = cassandra_mixins.CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty( disable_scale_in=False, scale_in_cooldown=123, scale_out_cooldown=123, target_value=123 )
Attributes
- disable_scale_in
Specifies if
scale-inis 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.
- scale_in_cooldown
Specifies a
scale-incool down period.A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts.
- scale_out_cooldown
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.
- target_value
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
targetValueas a percentage. Anintegerbetween 20 and 90.
WarmThroughputProperty
- class CfnTablePropsMixin.WarmThroughputProperty(*, read_units_per_second=None, write_units_per_second=None)
Bases:
objectWarm throughput configuration for the table.
- Parameters:
read_units_per_second (
Union[int,float,None])write_units_per_second (
Union[int,float,None])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cassandra import mixins as cassandra_mixins warm_throughput_property = cassandra_mixins.CfnTablePropsMixin.WarmThroughputProperty( read_units_per_second=123, write_units_per_second=123 )
Attributes
- read_units_per_second
-
- Type:
see