Class: AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteHostnameRewriteProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteHostnameRewriteProperty
- Defined in:
- app_mesh/cfn_gateway_route.rb
Overview
An object representing the gateway route host name to rewrite.
Instance Attribute Summary collapse
-
#default_target_hostname ⇒ String?
readonly
The default target host name to write to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(default_target_hostname: nil) ⇒ GatewayRouteHostnameRewriteProperty
constructor
A new instance of GatewayRouteHostnameRewriteProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(default_target_hostname: nil) ⇒ GatewayRouteHostnameRewriteProperty
Returns a new instance of GatewayRouteHostnameRewriteProperty.
688 689 690 691 |
# File 'app_mesh/cfn_gateway_route.rb', line 688 def initialize(default_target_hostname: nil) @default_target_hostname = default_target_hostname Jsii::Type.check_type(@default_target_hostname, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultTargetHostname") unless @default_target_hostname.nil? end |
Instance Attribute Details
#default_target_hostname ⇒ String? (readonly)
The default target host name to write to.
697 698 699 |
# File 'app_mesh/cfn_gateway_route.rb', line 697 def default_target_hostname @default_target_hostname end |
Class Method Details
.jsii_properties ⇒ Object
699 700 701 702 703 |
# File 'app_mesh/cfn_gateway_route.rb', line 699 def self.jsii_properties { :default_target_hostname => "defaultTargetHostname", } end |
Instance Method Details
#to_jsii ⇒ Object
705 706 707 708 709 710 711 |
# File 'app_mesh/cfn_gateway_route.rb', line 705 def to_jsii result = {} result.merge!({ "defaultTargetHostname" => @default_target_hostname, }) result.compact end |