Class: AWSCDK::NetworkFirewall::CfnFirewallPolicy::IPSetProperty

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

Overview

A list of IP addresses and address ranges, in CIDR notation.

This is part of a rule variable.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition: nil) ⇒ IPSetProperty

Returns a new instance of IPSetProperty.

Parameters:

  • definition (Array<String>, nil) (defaults to: nil)

    The list of IP addresses and address ranges, in CIDR notation.



894
895
896
897
# File 'network_firewall/cfn_firewall_policy.rb', line 894

def initialize(definition: nil)
  @definition = definition
  Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "definition") unless @definition.nil?
end

Instance Attribute Details

#definitionArray<String>? (readonly)

The list of IP addresses and address ranges, in CIDR notation.



903
904
905
# File 'network_firewall/cfn_firewall_policy.rb', line 903

def definition
  @definition
end

Class Method Details

.jsii_propertiesObject



905
906
907
908
909
# File 'network_firewall/cfn_firewall_policy.rb', line 905

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

Instance Method Details

#to_jsiiObject



911
912
913
914
915
916
917
# File 'network_firewall/cfn_firewall_policy.rb', line 911

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