Class: AWSCDK::AppMesh::HeaderMatchConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::HeaderMatchConfig
- Defined in:
- app_mesh/header_match_config.rb
Overview
Configuration for HeaderMatch.
Instance Attribute Summary collapse
-
#header_match ⇒ AWSCDK::AppMesh::CfnRoute::HttpRouteHeaderProperty
readonly
Route CFN configuration for the route header match.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(header_match:) ⇒ HeaderMatchConfig
constructor
A new instance of HeaderMatchConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(header_match:) ⇒ HeaderMatchConfig
Returns a new instance of HeaderMatchConfig.
8 9 10 11 |
# File 'app_mesh/header_match_config.rb', line 8 def initialize(header_match:) @header_match = header_match.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnRoute::HttpRouteHeaderProperty.new(**header_match.transform_keys(&:to_sym)) : header_match Jsii::Type.check_type(@header_match, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5Sb3V0ZS5IdHRwUm91dGVIZWFkZXJQcm9wZXJ0eSJ9")), "headerMatch") end |
Instance Attribute Details
#header_match ⇒ AWSCDK::AppMesh::CfnRoute::HttpRouteHeaderProperty (readonly)
Route CFN configuration for the route header match.
16 17 18 |
# File 'app_mesh/header_match_config.rb', line 16 def header_match @header_match end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'app_mesh/header_match_config.rb', line 18 def self.jsii_properties { :header_match => "headerMatch", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'app_mesh/header_match_config.rb', line 24 def to_jsii result = {} result.merge!({ "headerMatch" => @header_match, }) result.compact end |