Class: AWSCDK::Elasticache::CfnReplicationGroup::ReadEndPointProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticache::CfnReplicationGroup::ReadEndPointProperty
- Defined in:
- elasticache/cfn_replication_group.rb
Overview
Instance Attribute Summary collapse
-
#addresses ⇒ String?
readonly
A string containing a comma-separated list of endpoints for the primary and read-only replicas, formatted as [address1, address2, ...].
-
#addresses_list ⇒ Array<String>?
readonly
A list of endpoints for the read-only replicas.
-
#ports ⇒ String?
readonly
A string containing a comma-separated list of ports for the read-only replicas, formatted as [port1, port2, ...].
-
#ports_list ⇒ Array<String>?
readonly
A list of ports for the read-only replicas.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(addresses: nil, addresses_list: nil, ports: nil, ports_list: nil) ⇒ ReadEndPointProperty
constructor
A new instance of ReadEndPointProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(addresses: nil, addresses_list: nil, ports: nil, ports_list: nil) ⇒ ReadEndPointProperty
Returns a new instance of ReadEndPointProperty.
1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 |
# File 'elasticache/cfn_replication_group.rb', line 1469 def initialize(addresses: nil, addresses_list: nil, ports: nil, ports_list: nil) @addresses = addresses Jsii::Type.check_type(@addresses, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "addresses") unless @addresses.nil? @addresses_list = addresses_list Jsii::Type.check_type(@addresses_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "addressesList") unless @addresses_list.nil? @ports = ports Jsii::Type.check_type(@ports, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ports") unless @ports.nil? @ports_list = ports_list Jsii::Type.check_type(@ports_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "portsList") unless @ports_list.nil? end |
Instance Attribute Details
#addresses ⇒ String? (readonly)
A string containing a comma-separated list of endpoints for the primary and read-only replicas, formatted as [address1, address2, ...]. The order of the addresses maps to the order of the ports from the ReadEndPoint.Ports attribute.
1484 1485 1486 |
# File 'elasticache/cfn_replication_group.rb', line 1484 def addresses @addresses end |
#addresses_list ⇒ Array<String>? (readonly)
A list of endpoints for the read-only replicas.
The order of the addresses maps to the order of the ports from the ReadEndPoint.Ports attribute.
1491 1492 1493 |
# File 'elasticache/cfn_replication_group.rb', line 1491 def addresses_list @addresses_list end |
#ports ⇒ String? (readonly)
A string containing a comma-separated list of ports for the read-only replicas, formatted as [port1, port2, ...]. The order of the ports maps to the order of the addresses from the ReadEndPoint.Addresses attribute.
1496 1497 1498 |
# File 'elasticache/cfn_replication_group.rb', line 1496 def ports @ports end |
#ports_list ⇒ Array<String>? (readonly)
A list of ports for the read-only replicas.
The order of the ports maps to the order of the addresses from the ReadEndPoint.Addresses attribute.
1503 1504 1505 |
# File 'elasticache/cfn_replication_group.rb', line 1503 def ports_list @ports_list end |
Class Method Details
.jsii_properties ⇒ Object
1505 1506 1507 1508 1509 1510 1511 1512 |
# File 'elasticache/cfn_replication_group.rb', line 1505 def self.jsii_properties { :addresses => "addresses", :addresses_list => "addressesList", :ports => "ports", :ports_list => "portsList", } end |
Instance Method Details
#to_jsii ⇒ Object
1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 |
# File 'elasticache/cfn_replication_group.rb', line 1514 def to_jsii result = {} result.merge!({ "addresses" => @addresses, "addressesList" => @addresses_list, "ports" => @ports, "portsList" => @ports_list, }) result.compact end |