Class: AWSCDK::APIGatewayv2::CfnRoutingRule::MatchHeaderValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::CfnRoutingRule::MatchHeaderValueProperty
- Defined in:
- api_gatewayv2/cfn_routing_rule.rb
Overview
Represents a MatchHeaderValue .
Instance Attribute Summary collapse
-
#header ⇒ String
readonly
The case insensitive header name to be matched.
-
#value_glob ⇒ String
readonly
The case sensitive header glob value to be matched against entire header value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(header:, value_glob:) ⇒ MatchHeaderValueProperty
constructor
A new instance of MatchHeaderValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(header:, value_glob:) ⇒ MatchHeaderValueProperty
Returns a new instance of MatchHeaderValueProperty.
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
#header ⇒ String (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_glob ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |