Class: AWSCDK::Cassandra::CfnTable::ReplicaSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cassandra::CfnTable::ReplicaSpecificationProperty
- Defined in:
- cassandra/cfn_table.rb
Overview
The 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)read_capacity_units: The provisioned read capacity units. (Optional)read_capacity_auto_scaling: The read capacity auto scaling settings for the table. (Optional)
Instance Attribute Summary collapse
-
#read_capacity_auto_scaling ⇒ AWSCDK::IResolvable, ...
readonly
The read capacity auto scaling settings for the multi-Region table in the specified AWS Region.
-
#read_capacity_units ⇒ Numeric?
readonly
The provisioned read capacity units for the multi-Region table in the specified AWS Region.
-
#region ⇒ String
readonly
The AWS Region.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(region:, read_capacity_auto_scaling: nil, read_capacity_units: nil) ⇒ ReplicaSpecificationProperty
constructor
A new instance of ReplicaSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(region:, read_capacity_auto_scaling: nil, read_capacity_units: nil) ⇒ ReplicaSpecificationProperty
Returns a new instance of ReplicaSpecificationProperty.
1139 1140 1141 1142 1143 1144 1145 1146 |
# File 'cassandra/cfn_table.rb', line 1139 def initialize(region:, read_capacity_auto_scaling: nil, read_capacity_units: nil) @region = region Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") @read_capacity_auto_scaling = read_capacity_auto_scaling.is_a?(Hash) ? ::AWSCDK::Cassandra::CfnTable::AutoScalingSettingProperty.new(**read_capacity_auto_scaling.transform_keys(&:to_sym)) : read_capacity_auto_scaling Jsii::Type.check_type(@read_capacity_auto_scaling, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jYXNzYW5kcmEuQ2ZuVGFibGUuQXV0b1NjYWxpbmdTZXR0aW5nUHJvcGVydHkifV19fQ==")), "readCapacityAutoScaling") unless @read_capacity_auto_scaling.nil? @read_capacity_units = read_capacity_units Jsii::Type.check_type(@read_capacity_units, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "readCapacityUnits") unless @read_capacity_units.nil? end |
Instance Attribute Details
#read_capacity_auto_scaling ⇒ AWSCDK::IResolvable, ... (readonly)
The read capacity auto scaling settings for the multi-Region table in the specified AWS Region.
1157 1158 1159 |
# File 'cassandra/cfn_table.rb', line 1157 def read_capacity_auto_scaling @read_capacity_auto_scaling end |
#read_capacity_units ⇒ Numeric? (readonly)
The provisioned read capacity units for the multi-Region table in the specified AWS Region.
1162 1163 1164 |
# File 'cassandra/cfn_table.rb', line 1162 def read_capacity_units @read_capacity_units end |
#region ⇒ String (readonly)
The AWS Region.
1152 1153 1154 |
# File 'cassandra/cfn_table.rb', line 1152 def region @region end |
Class Method Details
.jsii_properties ⇒ Object
1164 1165 1166 1167 1168 1169 1170 |
# File 'cassandra/cfn_table.rb', line 1164 def self.jsii_properties { :region => "region", :read_capacity_auto_scaling => "readCapacityAutoScaling", :read_capacity_units => "readCapacityUnits", } end |
Instance Method Details
#to_jsii ⇒ Object
1172 1173 1174 1175 1176 1177 1178 1179 1180 |
# File 'cassandra/cfn_table.rb', line 1172 def to_jsii result = {} result.merge!({ "region" => @region, "readCapacityAutoScaling" => @read_capacity_auto_scaling, "readCapacityUnits" => @read_capacity_units, }) result.compact end |