Class: AWSCDK::NetworkFirewall::CfnFirewall::SubnetMappingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnFirewall::SubnetMappingProperty
- Defined in:
- network_firewall/cfn_firewall.rb
Overview
The ID for a subnet that you want to associate with the firewall.
AWS Network Firewall creates an instance of the associated firewall in each subnet that you specify, to filter traffic in the subnet's Availability Zone.
Instance Attribute Summary collapse
-
#ip_address_type ⇒ String?
readonly
The subnet's IP address type.
-
#subnet_id ⇒ String
readonly
The unique identifier for the subnet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(subnet_id:, ip_address_type: nil) ⇒ SubnetMappingProperty
constructor
A new instance of SubnetMappingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(subnet_id:, ip_address_type: nil) ⇒ SubnetMappingProperty
Returns a new instance of SubnetMappingProperty.
745 746 747 748 749 750 |
# File 'network_firewall/cfn_firewall.rb', line 745 def initialize(subnet_id:, ip_address_type: nil) @subnet_id = subnet_id Jsii::Type.check_type(@subnet_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetId") @ip_address_type = ip_address_type Jsii::Type.check_type(@ip_address_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipAddressType") unless @ip_address_type.nil? end |
Instance Attribute Details
#ip_address_type ⇒ String? (readonly)
The subnet's IP address type.
You can't change the IP address type after you create the subnet.
763 764 765 |
# File 'network_firewall/cfn_firewall.rb', line 763 def ip_address_type @ip_address_type end |
#subnet_id ⇒ String (readonly)
The unique identifier for the subnet.
756 757 758 |
# File 'network_firewall/cfn_firewall.rb', line 756 def subnet_id @subnet_id end |
Class Method Details
.jsii_properties ⇒ Object
765 766 767 768 769 770 |
# File 'network_firewall/cfn_firewall.rb', line 765 def self.jsii_properties { :subnet_id => "subnetId", :ip_address_type => "ipAddressType", } end |
Instance Method Details
#to_jsii ⇒ Object
772 773 774 775 776 777 778 779 |
# File 'network_firewall/cfn_firewall.rb', line 772 def to_jsii result = {} result.merge!({ "subnetId" => @subnet_id, "ipAddressType" => @ip_address_type, }) result.compact end |