Class: AWSCDK::GroundStation::CfnDataflowEndpointGroupV2::SocketAddressProperty

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

Overview

Information about the socket address.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, port:) ⇒ SocketAddressProperty

Returns a new instance of SocketAddressProperty.

Parameters:

  • name (String)

    Name of a socket address.

  • port (Numeric)

    Port of a socket address.



1013
1014
1015
1016
1017
1018
# File 'ground_station/cfn_dataflow_endpoint_group_v2.rb', line 1013

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

Instance Attribute Details

#nameString (readonly)

Name of a socket address.



1024
1025
1026
# File 'ground_station/cfn_dataflow_endpoint_group_v2.rb', line 1024

def name
  @name
end

#portNumeric (readonly)

Port of a socket address.



1029
1030
1031
# File 'ground_station/cfn_dataflow_endpoint_group_v2.rb', line 1029

def port
  @port
end

Class Method Details

.jsii_propertiesObject



1031
1032
1033
1034
1035
1036
# File 'ground_station/cfn_dataflow_endpoint_group_v2.rb', line 1031

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

Instance Method Details

#to_jsiiObject



1038
1039
1040
1041
1042
1043
1044
1045
# File 'ground_station/cfn_dataflow_endpoint_group_v2.rb', line 1038

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