Class: AWSCDK::WAF::CfnIPSetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
waf/cfn_ip_set_props.rb

Overview

Properties for defining a CfnIPSet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, ip_set_descriptors: nil) ⇒ CfnIPSetProps

Returns a new instance of CfnIPSetProps.

Parameters:



11
12
13
14
15
16
# File 'waf/cfn_ip_set_props.rb', line 11

def initialize(name:, ip_set_descriptors: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @ip_set_descriptors = ip_set_descriptors
  Jsii::Type.check_type(@ip_set_descriptors, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmLkNmbklQU2V0LklQU2V0RGVzY3JpcHRvclByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "ipSetDescriptors") unless @ip_set_descriptors.nil?
end

Instance Attribute Details

#ip_set_descriptorsAWSCDK::IResolvable, ... (readonly)

The IP address type ( IPV4 or IPV6 ) and the IP address range (in CIDR notation) that web requests originate from.

If the WebACL is associated with an Amazon CloudFront distribution and the viewer did not use an HTTP proxy or a load balancer to send the request, this is the value of the c-ip field in the CloudFront access logs.



31
32
33
# File 'waf/cfn_ip_set_props.rb', line 31

def ip_set_descriptors
  @ip_set_descriptors
end

#nameString (readonly)

The name of the IPSet .

You can't change the name of an IPSet after you create it.



24
25
26
# File 'waf/cfn_ip_set_props.rb', line 24

def name
  @name
end

Class Method Details

.jsii_propertiesObject



33
34
35
36
37
38
# File 'waf/cfn_ip_set_props.rb', line 33

def self.jsii_properties
  {
    :name => "name",
    :ip_set_descriptors => "ipSetDescriptors",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
# File 'waf/cfn_ip_set_props.rb', line 40

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