Class: AWSCDK::WAFRegional::CfnIPSetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFRegional::CfnIPSetProps
- Defined in:
- waf_regional/cfn_ip_set_props.rb
Overview
Properties for defining a CfnIPSet.
Instance Attribute Summary collapse
-
#ip_set_descriptors ⇒ AWSCDK::IResolvable, ...
readonly
The IP address type (
IPV4orIPV6) and the IP address range (in CIDR notation) that web requests originate from. -
#name ⇒ String
readonly
A friendly name or description of the
IPSet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, ip_set_descriptors: nil) ⇒ CfnIPSetProps
constructor
A new instance of CfnIPSetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, ip_set_descriptors: nil) ⇒ CfnIPSetProps
Returns a new instance of CfnIPSetProps.
11 12 13 14 15 16 |
# File 'waf_regional/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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmcmVnaW9uYWwuQ2ZuSVBTZXQuSVBTZXREZXNjcmlwdG9yUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "ipSetDescriptors") unless @ip_set_descriptors.nil? end |
Instance Attribute Details
#ip_set_descriptors ⇒ AWSCDK::IResolvable, ... (readonly)
The IP address type ( IPV4 or IPV6 ) and the IP address range (in CIDR notation) that web requests originate from.
29 30 31 |
# File 'waf_regional/cfn_ip_set_props.rb', line 29 def ip_set_descriptors @ip_set_descriptors end |
#name ⇒ String (readonly)
A friendly name or description of the IPSet .
You can't change the name of an IPSet after you create it.
24 25 26 |
# File 'waf_regional/cfn_ip_set_props.rb', line 24 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'waf_regional/cfn_ip_set_props.rb', line 31 def self.jsii_properties { :name => "name", :ip_set_descriptors => "ipSetDescriptors", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'waf_regional/cfn_ip_set_props.rb', line 38 def to_jsii result = {} result.merge!({ "name" => @name, "ipSetDescriptors" => @ip_set_descriptors, }) result.compact end |