Class: AWSCDK::NetworkFirewall::CfnFirewall::SubnetMappingProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subnet_id:, ip_address_type: nil) ⇒ SubnetMappingProperty

Returns a new instance of SubnetMappingProperty.

Parameters:

  • subnet_id (String)

    The unique identifier for the subnet.

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

    The subnet's IP address type.



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_typeString? (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_idString (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_propertiesObject



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_jsiiObject



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