Class: AWSCDK::EC2::CfnVerifiedAccessEndpoint::NetworkInterfaceOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnVerifiedAccessEndpoint::NetworkInterfaceOptionsProperty
- 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
-
#network_interface_id ⇒ String?
readonly
The ID of the network interface.
-
#port ⇒ Numeric?
readonly
The IP port number.
-
#port_ranges ⇒ AWSCDK::IResolvable, ...
readonly
The port ranges.
-
#protocol ⇒ String?
readonly
The IP protocol.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(network_interface_id: nil, port: nil, port_ranges: nil, protocol: nil) ⇒ NetworkInterfaceOptionsProperty
constructor
A new instance of NetworkInterfaceOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(network_interface_id: nil, port: nil, port_ranges: nil, protocol: nil) ⇒ NetworkInterfaceOptionsProperty
Returns a new instance of NetworkInterfaceOptionsProperty.
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_id ⇒ String? (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 |
#port ⇒ Numeric? (readonly)
The IP port number.
941 942 943 |
# File 'ec2/cfn_verified_access_endpoint.rb', line 941 def port @port end |
#port_ranges ⇒ AWSCDK::IResolvable, ... (readonly)
The port ranges.
946 947 948 |
# File 'ec2/cfn_verified_access_endpoint.rb', line 946 def port_ranges @port_ranges end |
#protocol ⇒ String? (readonly)
The IP protocol.
951 952 953 |
# File 'ec2/cfn_verified_access_endpoint.rb', line 951 def protocol @protocol end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |