Class: AWSCDK::DynamoDB::CfnGlobalTable::GlobalTableWitnessProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DynamoDB::CfnGlobalTable::GlobalTableWitnessProperty
- Defined in:
- dynamo_db/cfn_global_table.rb
Overview
The witness Region for the MRSC global table.
A MRSC global table can be configured with either three replicas, or with two replicas and one witness.
The witness must be in a different Region than the replicas and within the same Region set:
- US Region set: US East (N. Virginia), US East (Ohio), US West (Oregon)
- EU Region set: Europe (Ireland), Europe (London), Europe (Paris), Europe (Frankfurt)
- AP Region set: Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Osaka)
Instance Attribute Summary collapse
-
#region ⇒ String?
readonly
The name of the AWS Region that serves as a witness for the MRSC global table.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(region: nil) ⇒ GlobalTableWitnessProperty
constructor
A new instance of GlobalTableWitnessProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(region: nil) ⇒ GlobalTableWitnessProperty
Returns a new instance of GlobalTableWitnessProperty.
1118 1119 1120 1121 |
# File 'dynamo_db/cfn_global_table.rb', line 1118 def initialize(region: nil) @region = region Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") unless @region.nil? end |
Instance Attribute Details
#region ⇒ String? (readonly)
The name of the AWS Region that serves as a witness for the MRSC global table.
1127 1128 1129 |
# File 'dynamo_db/cfn_global_table.rb', line 1127 def region @region end |
Class Method Details
.jsii_properties ⇒ Object
1129 1130 1131 1132 1133 |
# File 'dynamo_db/cfn_global_table.rb', line 1129 def self.jsii_properties { :region => "region", } end |
Instance Method Details
#to_jsii ⇒ Object
1135 1136 1137 1138 1139 1140 1141 |
# File 'dynamo_db/cfn_global_table.rb', line 1135 def to_jsii result = {} result.merge!({ "region" => @region, }) result.compact end |