Class: AWSCDK::Elasticache::CfnReplicationGroup::ReadEndPointProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elasticache/cfn_replication_group.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(addresses: nil, addresses_list: nil, ports: nil, ports_list: nil) ⇒ ReadEndPointProperty

Returns a new instance of ReadEndPointProperty.

Parameters:

  • addresses (String, nil) (defaults to: nil)

    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.

  • addresses_list (Array<String>, nil) (defaults to: nil)

    A list of endpoints for the read-only replicas.

  • ports (String, nil) (defaults to: nil)

    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.

  • ports_list (Array<String>, nil) (defaults to: nil)

    A list of ports for the read-only replicas.



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

#addressesString? (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_listArray<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

#portsString? (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_listArray<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_propertiesObject



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_jsiiObject



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