Class: AWSCDK::MemoryDB::CfnMultiRegionClusterProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MemoryDB::CfnMultiRegionClusterProps
- Defined in:
- memory_db/cfn_multi_region_cluster_props.rb
Overview
Properties for defining a CfnMultiRegionCluster.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the multi-Region cluster.
-
#engine ⇒ String?
readonly
The name of the engine used by the multi-Region cluster.
-
#engine_version ⇒ String?
readonly
The version of the engine used by the multi-Region cluster.
-
#multi_region_cluster_name_suffix ⇒ String?
readonly
A suffix to be added to the Multi-Region cluster name.
-
#multi_region_parameter_group_name ⇒ String?
readonly
The name of the multi-Region parameter group associated with the cluster.
-
#node_type ⇒ String
readonly
The node type used by the multi-Region cluster.
-
#num_shards ⇒ Numeric?
readonly
The number of shards in the multi-Region cluster.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A list of tags to be applied to the multi-Region cluster.
-
#tls_enabled ⇒ Boolean, ...
readonly
Indiciates if the multi-Region cluster is TLS enabled.
-
#update_strategy ⇒ String?
readonly
The strategy to use for the update operation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(node_type:, description: nil, engine: nil, engine_version: nil, multi_region_cluster_name_suffix: nil, multi_region_parameter_group_name: nil, num_shards: nil, tags: nil, tls_enabled: nil, update_strategy: nil) ⇒ CfnMultiRegionClusterProps
constructor
A new instance of CfnMultiRegionClusterProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(node_type:, description: nil, engine: nil, engine_version: nil, multi_region_cluster_name_suffix: nil, multi_region_parameter_group_name: nil, num_shards: nil, tags: nil, tls_enabled: nil, update_strategy: nil) ⇒ CfnMultiRegionClusterProps
Returns a new instance of CfnMultiRegionClusterProps.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 19 def initialize(node_type:, description: nil, engine: nil, engine_version: nil, multi_region_cluster_name_suffix: nil, multi_region_parameter_group_name: nil, num_shards: nil, tags: nil, tls_enabled: nil, update_strategy: nil) @node_type = node_type Jsii::Type.check_type(@node_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nodeType") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @engine = engine Jsii::Type.check_type(@engine, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "engine") unless @engine.nil? @engine_version = engine_version Jsii::Type.check_type(@engine_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "engineVersion") unless @engine_version.nil? @multi_region_cluster_name_suffix = multi_region_cluster_name_suffix Jsii::Type.check_type(@multi_region_cluster_name_suffix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "multiRegionClusterNameSuffix") unless @multi_region_cluster_name_suffix.nil? @multi_region_parameter_group_name = multi_region_parameter_group_name Jsii::Type.check_type(@multi_region_parameter_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "multiRegionParameterGroupName") unless @multi_region_parameter_group_name.nil? @num_shards = num_shards Jsii::Type.check_type(@num_shards, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "numShards") unless @num_shards.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? @tls_enabled = tls_enabled Jsii::Type.check_type(@tls_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "tlsEnabled") unless @tls_enabled.nil? @update_strategy = update_strategy Jsii::Type.check_type(@update_strategy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "updateStrategy") unless @update_strategy.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the multi-Region cluster.
51 52 53 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 51 def description @description end |
#engine ⇒ String? (readonly)
The name of the engine used by the multi-Region cluster.
56 57 58 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 56 def engine @engine end |
#engine_version ⇒ String? (readonly)
The version of the engine used by the multi-Region cluster.
61 62 63 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 61 def engine_version @engine_version end |
#multi_region_cluster_name_suffix ⇒ String? (readonly)
A suffix to be added to the Multi-Region cluster name.
Amazon MemoryDB automatically applies a prefix to the Multi-Region cluster Name when it is created. Each Amazon Region has its own prefix. For instance, a Multi-Region cluster Name created in the US-West-1 region will begin with "virxk", along with the suffix name you provide. The suffix guarantees uniqueness of the Multi-Region cluster name across multiple regions.
68 69 70 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 68 def multi_region_cluster_name_suffix @multi_region_cluster_name_suffix end |
#multi_region_parameter_group_name ⇒ String? (readonly)
The name of the multi-Region parameter group associated with the cluster.
73 74 75 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 73 def multi_region_parameter_group_name @multi_region_parameter_group_name end |
#node_type ⇒ String (readonly)
The node type used by the multi-Region cluster.
46 47 48 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 46 def node_type @node_type end |
#num_shards ⇒ Numeric? (readonly)
The number of shards in the multi-Region cluster.
78 79 80 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 78 def num_shards @num_shards end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A list of tags to be applied to the multi-Region cluster.
83 84 85 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 83 def @tags end |
#tls_enabled ⇒ Boolean, ... (readonly)
Indiciates if the multi-Region cluster is TLS enabled.
88 89 90 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 88 def tls_enabled @tls_enabled end |
#update_strategy ⇒ String? (readonly)
The strategy to use for the update operation.
Supported values are "coordinated" or "uncoordinated".
95 96 97 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 95 def update_strategy @update_strategy end |
Class Method Details
.jsii_properties ⇒ Object
97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 97 def self.jsii_properties { :node_type => "nodeType", :description => "description", :engine => "engine", :engine_version => "engineVersion", :multi_region_cluster_name_suffix => "multiRegionClusterNameSuffix", :multi_region_parameter_group_name => "multiRegionParameterGroupName", :num_shards => "numShards", :tags => "tags", :tls_enabled => "tlsEnabled", :update_strategy => "updateStrategy", } end |
Instance Method Details
#to_jsii ⇒ Object
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'memory_db/cfn_multi_region_cluster_props.rb', line 112 def to_jsii result = {} result.merge!({ "nodeType" => @node_type, "description" => @description, "engine" => @engine, "engineVersion" => @engine_version, "multiRegionClusterNameSuffix" => @multi_region_cluster_name_suffix, "multiRegionParameterGroupName" => @multi_region_parameter_group_name, "numShards" => @num_shards, "tags" => @tags, "tlsEnabled" => @tls_enabled, "updateStrategy" => @update_strategy, }) result.compact end |