Class: AWSCDK::ElasticLoadBalancingv2::CfnListenerRule::PathPatternConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elastic_load_balancingv2/cfn_listener_rule.rb

Overview

Information about a path pattern condition.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(regex_values: nil, values: nil) ⇒ PathPatternConfigProperty

Returns a new instance of PathPatternConfigProperty.

Parameters:

  • regex_values (Array<String>, nil) (defaults to: nil)
  • values (Array<String>, nil) (defaults to: nil)

    The path patterns to compare against the request URL.



1317
1318
1319
1320
1321
1322
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1317

def initialize(regex_values: nil, values: nil)
  @regex_values = regex_values
  Jsii::Type.check_type(@regex_values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "regexValues") unless @regex_values.nil?
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") unless @values.nil?
end

Instance Attribute Details

#regex_valuesArray<String>? (readonly)



1326
1327
1328
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1326

def regex_values
  @regex_values
end

#valuesArray<String>? (readonly)

The path patterns to compare against the request URL.

The maximum size of each string is 128 characters. The comparison is case sensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).

If you specify multiple strings, the condition is satisfied if one of them matches the request URL. The path pattern is compared only to the path of the URL, not to its query string.



1335
1336
1337
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1335

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1337
1338
1339
1340
1341
1342
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1337

def self.jsii_properties
  {
    :regex_values => "regexValues",
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



1344
1345
1346
1347
1348
1349
1350
1351
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1344

def to_jsii
  result = {}
  result.merge!({
    "regexValues" => @regex_values,
    "values" => @values,
  })
  result.compact
end