Class: AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteRewriteProperty

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

Overview

An object that represents the gateway route to rewrite.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostname: nil) ⇒ GrpcGatewayRouteRewriteProperty

Returns a new instance of GrpcGatewayRouteRewriteProperty.

Parameters:



1184
1185
1186
1187
# File 'app_mesh/cfn_gateway_route.rb', line 1184

def initialize(hostname: nil)
  @hostname = hostname.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteHostnameRewriteProperty.new(**hostname.transform_keys(&:to_sym)) : hostname
  Jsii::Type.check_type(@hostname, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5HYXRld2F5Um91dGVIb3N0bmFtZVJld3JpdGVQcm9wZXJ0eSJ9XX19")), "hostname") unless @hostname.nil?
end

Instance Attribute Details

#hostnameAWSCDK::IResolvable, ... (readonly)

The host name of the gateway route to rewrite.



1193
1194
1195
# File 'app_mesh/cfn_gateway_route.rb', line 1193

def hostname
  @hostname
end

Class Method Details

.jsii_propertiesObject



1195
1196
1197
1198
1199
# File 'app_mesh/cfn_gateway_route.rb', line 1195

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

Instance Method Details

#to_jsiiObject



1201
1202
1203
1204
1205
1206
1207
# File 'app_mesh/cfn_gateway_route.rb', line 1201

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