Class: AWSCDK::FMS::CfnPolicy::PortRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FMS::CfnPolicy::PortRangeProperty
- Defined in:
- fms/cfn_policy.rb
Overview
TCP or UDP protocols: The range of ports the rule applies to.
Instance Attribute Summary collapse
-
#from ⇒ Numeric
readonly
The beginning port number of the range.
-
#to ⇒ Numeric
readonly
The ending port number of the range.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(from:, to:) ⇒ PortRangeProperty
constructor
A new instance of PortRangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(from:, to:) ⇒ PortRangeProperty
Returns a new instance of PortRangeProperty.
1184 1185 1186 1187 1188 1189 |
# File 'fms/cfn_policy.rb', line 1184 def initialize(from:, to:) @from = from Jsii::Type.check_type(@from, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "from") @to = to Jsii::Type.check_type(@to, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "to") end |
Instance Attribute Details
#from ⇒ Numeric (readonly)
The beginning port number of the range.
1195 1196 1197 |
# File 'fms/cfn_policy.rb', line 1195 def from @from end |
#to ⇒ Numeric (readonly)
The ending port number of the range.
1200 1201 1202 |
# File 'fms/cfn_policy.rb', line 1200 def to @to end |
Class Method Details
.jsii_properties ⇒ Object
1202 1203 1204 1205 1206 1207 |
# File 'fms/cfn_policy.rb', line 1202 def self.jsii_properties { :from => "from", :to => "to", } end |
Instance Method Details
#to_jsii ⇒ Object
1209 1210 1211 1212 1213 1214 1215 1216 |
# File 'fms/cfn_policy.rb', line 1209 def to_jsii result = {} result.merge!({ "from" => @from, "to" => @to, }) result.compact end |