Class: AWSCDK::AppMesh::CfnGatewayRoute::HttpPathMatchProperty

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

Overview

An object representing the path to match in the request.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exact: nil, regex: nil) ⇒ HttpPathMatchProperty

Returns a new instance of HttpPathMatchProperty.

Parameters:

  • exact (String, nil) (defaults to: nil)

    The exact path to match on.

  • regex (String, nil) (defaults to: nil)

    The regex used to match the path.



1660
1661
1662
1663
1664
1665
# File 'app_mesh/cfn_gateway_route.rb', line 1660

def initialize(exact: nil, regex: nil)
  @exact = exact
  Jsii::Type.check_type(@exact, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "exact") unless @exact.nil?
  @regex = regex
  Jsii::Type.check_type(@regex, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regex") unless @regex.nil?
end

Instance Attribute Details

#exactString? (readonly)

The exact path to match on.



1671
1672
1673
# File 'app_mesh/cfn_gateway_route.rb', line 1671

def exact
  @exact
end

#regexString? (readonly)

The regex used to match the path.



1676
1677
1678
# File 'app_mesh/cfn_gateway_route.rb', line 1676

def regex
  @regex
end

Class Method Details

.jsii_propertiesObject



1678
1679
1680
1681
1682
1683
# File 'app_mesh/cfn_gateway_route.rb', line 1678

def self.jsii_properties
  {
    :exact => "exact",
    :regex => "regex",
  }
end

Instance Method Details

#to_jsiiObject



1685
1686
1687
1688
1689
1690
1691
1692
# File 'app_mesh/cfn_gateway_route.rb', line 1685

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