Class: AWSCDK::Elasticache::CfnServerlessCache::EndpointProperty

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

Overview

Represents the information required for client programs to connect to a cache node.

This value is read-only.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address: nil, port: nil) ⇒ EndpointProperty

Returns a new instance of EndpointProperty.

Parameters:

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

    The DNS hostname of the cache node.

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

    The port number that the cache engine is listening on.



954
955
956
957
958
959
# File 'elasticache/cfn_serverless_cache.rb', line 954

def initialize(address: nil, port: nil)
  @address = address
  Jsii::Type.check_type(@address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "address") unless @address.nil?
  @port = port
  Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "port") unless @port.nil?
end

Instance Attribute Details

#addressString? (readonly)

The DNS hostname of the cache node.



965
966
967
# File 'elasticache/cfn_serverless_cache.rb', line 965

def address
  @address
end

#portString? (readonly)

The port number that the cache engine is listening on.



970
971
972
# File 'elasticache/cfn_serverless_cache.rb', line 970

def port
  @port
end

Class Method Details

.jsii_propertiesObject



972
973
974
975
976
977
# File 'elasticache/cfn_serverless_cache.rb', line 972

def self.jsii_properties
  {
    :address => "address",
    :port => "port",
  }
end

Instance Method Details

#to_jsiiObject



979
980
981
982
983
984
985
986
# File 'elasticache/cfn_serverless_cache.rb', line 979

def to_jsii
  result = {}
  result.merge!({
    "address" => @address,
    "port" => @port,
  })
  result.compact
end