Class: AWSCDK::NetworkFirewall::CfnRuleGroup::AddressProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
network_firewall/cfn_rule_group.rb

Overview

A single IP address specification.

This is used in the match attributes source and destination specifications.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address_definition:) ⇒ AddressProperty

Returns a new instance of AddressProperty.

Parameters:

  • address_definition (String)

    Specify an IP address or a block of IP addresses in Classless Inter-Domain Routing (CIDR) notation.



644
645
646
647
# File 'network_firewall/cfn_rule_group.rb', line 644

def initialize(address_definition:)
  @address_definition = address_definition
  Jsii::Type.check_type(@address_definition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "addressDefinition")
end

Instance Attribute Details

#address_definitionString (readonly)

Specify an IP address or a block of IP addresses in Classless Inter-Domain Routing (CIDR) notation.

Network Firewall supports all address ranges for IPv4 and IPv6.

Examples:

  • To configure Network Firewall to inspect for the IP address 192.0.2.44, specify 192.0.2.44/32 .
  • To configure Network Firewall to inspect for IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24 .
  • To configure Network Firewall to inspect for the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128 .
  • To configure Network Firewall to inspect for IP addresses from 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify 1111:0000:0000:0000:0000:0000:0000:0000/64 .

For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing .



664
665
666
# File 'network_firewall/cfn_rule_group.rb', line 664

def address_definition
  @address_definition
end

Class Method Details

.jsii_propertiesObject



666
667
668
669
670
# File 'network_firewall/cfn_rule_group.rb', line 666

def self.jsii_properties
  {
    :address_definition => "addressDefinition",
  }
end

Instance Method Details

#to_jsiiObject



672
673
674
675
676
677
678
# File 'network_firewall/cfn_rule_group.rb', line 672

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