Class: AWSCDK::AppMesh::GatewayRouteHostnameMatchConfig

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

Overview

Configuration for gateway route host name match.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostname_match:) ⇒ GatewayRouteHostnameMatchConfig

Returns a new instance of GatewayRouteHostnameMatchConfig.

Parameters:



8
9
10
11
# File 'app_mesh/gateway_route_hostname_match_config.rb', line 8

def initialize(hostname_match:)
  @hostname_match = hostname_match.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteHostnameMatchProperty.new(**hostname_match.transform_keys(&:to_sym)) : hostname_match
  Jsii::Type.check_type(@hostname_match, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5HYXRld2F5Um91dGUuR2F0ZXdheVJvdXRlSG9zdG5hbWVNYXRjaFByb3BlcnR5In0=")), "hostnameMatch")
end

Instance Attribute Details

#hostname_matchAWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteHostnameMatchProperty (readonly)

GatewayRoute CFN configuration for host name match.



16
17
18
# File 'app_mesh/gateway_route_hostname_match_config.rb', line 16

def hostname_match
  @hostname_match
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'app_mesh/gateway_route_hostname_match_config.rb', line 18

def self.jsii_properties
  {
    :hostname_match => "hostnameMatch",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'app_mesh/gateway_route_hostname_match_config.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "hostnameMatch" => @hostname_match,
  })
  result.compact
end