Class: AWSCDK::FMS::CfnPolicy::PortRangeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fms/cfn_policy.rb

Overview

TCP or UDP protocols: The range of ports the rule applies to.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from:, to:) ⇒ PortRangeProperty

Returns a new instance of PortRangeProperty.

Parameters:

  • from (Numeric)

    The beginning port number of the range.

  • to (Numeric)

    The ending port number of the range.



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

#fromNumeric (readonly)

The beginning port number of the range.



1195
1196
1197
# File 'fms/cfn_policy.rb', line 1195

def from
  @from
end

#toNumeric (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_propertiesObject



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_jsiiObject



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