Class: AWSCDK::GroundStation::CfnDataflowEndpointGroup::SocketAddressProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ground_station/cfn_dataflow_endpoint_group.rb

Overview

The address of the endpoint, such as 192.168.1.1 .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, port: nil) ⇒ SocketAddressProperty

Returns a new instance of SocketAddressProperty.

Parameters:

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

    The name of the endpoint, such as Endpoint 1 .

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

    The port of the endpoint, such as 55888 .



1007
1008
1009
1010
1011
1012
# File 'ground_station/cfn_dataflow_endpoint_group.rb', line 1007

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

Instance Attribute Details

#nameString? (readonly)

The name of the endpoint, such as Endpoint 1 .



1018
1019
1020
# File 'ground_station/cfn_dataflow_endpoint_group.rb', line 1018

def name
  @name
end

#portNumeric? (readonly)

The port of the endpoint, such as 55888 .



1023
1024
1025
# File 'ground_station/cfn_dataflow_endpoint_group.rb', line 1023

def port
  @port
end

Class Method Details

.jsii_propertiesObject



1025
1026
1027
1028
1029
1030
# File 'ground_station/cfn_dataflow_endpoint_group.rb', line 1025

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

Instance Method Details

#to_jsiiObject



1032
1033
1034
1035
1036
1037
1038
1039
# File 'ground_station/cfn_dataflow_endpoint_group.rb', line 1032

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