Class: AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteHostnameRewriteProperty

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

Overview

An object representing the gateway route host name to rewrite.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_target_hostname: nil) ⇒ GatewayRouteHostnameRewriteProperty

Returns a new instance of GatewayRouteHostnameRewriteProperty.

Parameters:

  • default_target_hostname (String, nil) (defaults to: nil)

    The default target host name to write to.



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_hostnameString? (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_propertiesObject



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_jsiiObject



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