Class: AWSCDK::EC2::CfnVerifiedAccessEndpoint::NetworkInterfaceOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_verified_access_endpoint.rb

Overview

Describes the network interface options when creating an AWS Verified Access endpoint using the network-interface type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(network_interface_id: nil, port: nil, port_ranges: nil, protocol: nil) ⇒ NetworkInterfaceOptionsProperty

Returns a new instance of NetworkInterfaceOptionsProperty.

Parameters:



921
922
923
924
925
926
927
928
929
930
# File 'ec2/cfn_verified_access_endpoint.rb', line 921

def initialize(network_interface_id: nil, port: nil, port_ranges: nil, protocol: nil)
  @network_interface_id = network_interface_id
  Jsii::Type.check_type(@network_interface_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkInterfaceId") unless @network_interface_id.nil?
  @port = port
  Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") unless @port.nil?
  @port_ranges = port_ranges
  Jsii::Type.check_type(@port_ranges, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmblZlcmlmaWVkQWNjZXNzRW5kcG9pbnQuUG9ydFJhbmdlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "portRanges") unless @port_ranges.nil?
  @protocol = protocol
  Jsii::Type.check_type(@protocol, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocol") unless @protocol.nil?
end

Instance Attribute Details

#network_interface_idString? (readonly)

The ID of the network interface.



936
937
938
# File 'ec2/cfn_verified_access_endpoint.rb', line 936

def network_interface_id
  @network_interface_id
end

#portNumeric? (readonly)

The IP port number.



941
942
943
# File 'ec2/cfn_verified_access_endpoint.rb', line 941

def port
  @port
end

#protocolString? (readonly)

The IP protocol.



951
952
953
# File 'ec2/cfn_verified_access_endpoint.rb', line 951

def protocol
  @protocol
end

Class Method Details

.jsii_propertiesObject



953
954
955
956
957
958
959
960
# File 'ec2/cfn_verified_access_endpoint.rb', line 953

def self.jsii_properties
  {
    :network_interface_id => "networkInterfaceId",
    :port => "port",
    :port_ranges => "portRanges",
    :protocol => "protocol",
  }
end

Instance Method Details

#to_jsiiObject



962
963
964
965
966
967
968
969
970
971
# File 'ec2/cfn_verified_access_endpoint.rb', line 962

def to_jsii
  result = {}
  result.merge!({
    "networkInterfaceId" => @network_interface_id,
    "port" => @port,
    "portRanges" => @port_ranges,
    "protocol" => @protocol,
  })
  result.compact
end