Class: AWSCDK::AppMesh::GatewayRouteHostnameMatchConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::GatewayRouteHostnameMatchConfig
- Defined in:
- app_mesh/gateway_route_hostname_match_config.rb
Overview
Configuration for gateway route host name match.
Instance Attribute Summary collapse
-
#hostname_match ⇒ AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteHostnameMatchProperty
readonly
GatewayRoute CFN configuration for host name match.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hostname_match:) ⇒ GatewayRouteHostnameMatchConfig
constructor
A new instance of GatewayRouteHostnameMatchConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(hostname_match:) ⇒ GatewayRouteHostnameMatchConfig
Returns a new instance of GatewayRouteHostnameMatchConfig.
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_match ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |