Class: AWSCDK::AppMesh::CfnRoute::MatchRangeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/cfn_route.rb

Overview

An object that represents the range of values to match on.

The first character of the range is included in the range, though the last character is not. For example, if the range specified were 1-100, only values 1-99 would be matched.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_end:, start:) ⇒ MatchRangeProperty

Returns a new instance of MatchRangeProperty.

Parameters:

  • _end (Numeric)

    The end of the range.

  • start (Numeric)

    The start of the range.



1631
1632
1633
1634
1635
1636
# File 'app_mesh/cfn_route.rb', line 1631

def initialize(_end:, start:)
  @_end = _end
  Jsii::Type.check_type(@_end, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "end")
  @start = start
  Jsii::Type.check_type(@start, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "start")
end

Instance Attribute Details

#_endNumeric (readonly)

The end of the range.



1642
1643
1644
# File 'app_mesh/cfn_route.rb', line 1642

def _end
  @_end
end

#startNumeric (readonly)

The start of the range.



1647
1648
1649
# File 'app_mesh/cfn_route.rb', line 1647

def start
  @start
end

Class Method Details

.jsii_propertiesObject



1649
1650
1651
1652
1653
1654
# File 'app_mesh/cfn_route.rb', line 1649

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

Instance Method Details

#to_jsiiObject



1656
1657
1658
1659
1660
1661
1662
1663
# File 'app_mesh/cfn_route.rb', line 1656

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