Class: AWSCDK::AppMesh::HeaderMatchConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/header_match_config.rb

Overview

Configuration for HeaderMatch.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header_match:) ⇒ HeaderMatchConfig

Returns a new instance of HeaderMatchConfig.

Parameters:



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_matchAWSCDK::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_propertiesObject



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_jsiiObject



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