Class: AWSCDK::APIGatewayv2::CfnRoutingRule::MatchHeaderValueProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
api_gatewayv2/cfn_routing_rule.rb

Overview

Represents a MatchHeaderValue .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header:, value_glob:) ⇒ MatchHeaderValueProperty

Returns a new instance of MatchHeaderValueProperty.

Parameters:

  • header (String)

    The case insensitive header name to be matched.

  • value_glob (String)

    The case sensitive header glob value to be matched against entire header value.



725
726
727
728
729
730
# File 'api_gatewayv2/cfn_routing_rule.rb', line 725

def initialize(header:, value_glob:)
  @header = header
  Jsii::Type.check_type(@header, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "header")
  @value_glob = value_glob
  Jsii::Type.check_type(@value_glob, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "valueGlob")
end

Instance Attribute Details

#headerString (readonly)

The case insensitive header name to be matched.

The header name must be less than 40 characters and the only allowed characters are a-z , A-Z , 0-9 , and the following special characters: *?-!#$%&'.^_|~.` .



738
739
740
# File 'api_gatewayv2/cfn_routing_rule.rb', line 738

def header
  @header
end

#value_globString (readonly)

The case sensitive header glob value to be matched against entire header value.

The header glob value must be less than 128 characters and the only allowed characters are a-z , A-Z , 0-9 , and the following special characters: *?-!#$%&'.^_|~. Wildcard matching is supported for header glob values but must be forprefix-match,suffix-match, orinfix-match` .



745
746
747
# File 'api_gatewayv2/cfn_routing_rule.rb', line 745

def value_glob
  @value_glob
end

Class Method Details

.jsii_propertiesObject



747
748
749
750
751
752
# File 'api_gatewayv2/cfn_routing_rule.rb', line 747

def self.jsii_properties
  {
    :header => "header",
    :value_glob => "valueGlob",
  }
end

Instance Method Details

#to_jsiiObject



754
755
756
757
758
759
760
761
# File 'api_gatewayv2/cfn_routing_rule.rb', line 754

def to_jsii
  result = {}
  result.merge!({
    "header" => @header,
    "valueGlob" => @value_glob,
  })
  result.compact
end