Class: AWSCDK::AppMesh::CfnRoute::HttpPathMatchProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/cfn_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.



1184
1185
1186
1187
1188
1189
# File 'app_mesh/cfn_route.rb', line 1184

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.



1195
1196
1197
# File 'app_mesh/cfn_route.rb', line 1195

def exact
  @exact
end

#regexString? (readonly)

The regex used to match the path.



1200
1201
1202
# File 'app_mesh/cfn_route.rb', line 1200

def regex
  @regex
end

Class Method Details

.jsii_propertiesObject



1202
1203
1204
1205
1206
1207
# File 'app_mesh/cfn_route.rb', line 1202

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

Instance Method Details

#to_jsiiObject



1209
1210
1211
1212
1213
1214
1215
1216
# File 'app_mesh/cfn_route.rb', line 1209

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