Class: AWSCDK::AppMesh::GatewayRouteBaseProps

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

Overview

Basic configuration properties for a GatewayRoute.

Direct Known Subclasses

GatewayRouteProps

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(route_spec:, gateway_route_name: nil) ⇒ GatewayRouteBaseProps

Returns a new instance of GatewayRouteBaseProps.

Parameters:

  • route_spec (AWSCDK::AppMesh::GatewayRouteSpec)

    What protocol the route uses.

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

    The name of the GatewayRoute.



9
10
11
12
13
14
# File 'app_mesh/gateway_route_base_props.rb', line 9

def initialize(route_spec:, gateway_route_name: nil)
  @route_spec = route_spec
  Jsii::Type.check_type(@route_spec, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5HYXRld2F5Um91dGVTcGVjIn0=")), "routeSpec")
  @gateway_route_name = gateway_route_name
  Jsii::Type.check_type(@gateway_route_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayRouteName") unless @gateway_route_name.nil?
end

Instance Attribute Details

#gateway_route_nameString? (readonly)

Note:

Default: - an automatically generated name

The name of the GatewayRoute.

Returns:

  • (String, nil)


24
25
26
# File 'app_mesh/gateway_route_base_props.rb', line 24

def gateway_route_name
  @gateway_route_name
end

#route_specAWSCDK::AppMesh::GatewayRouteSpec (readonly)

What protocol the route uses.



19
20
21
# File 'app_mesh/gateway_route_base_props.rb', line 19

def route_spec
  @route_spec
end

Class Method Details

.jsii_propertiesObject



26
27
28
29
30
31
# File 'app_mesh/gateway_route_base_props.rb', line 26

def self.jsii_properties
  {
    :route_spec => "routeSpec",
    :gateway_route_name => "gatewayRouteName",
  }
end

Instance Method Details

#to_jsiiObject



33
34
35
36
37
38
39
40
# File 'app_mesh/gateway_route_base_props.rb', line 33

def to_jsii
  result = {}
  result.merge!({
    "routeSpec" => @route_spec,
    "gatewayRouteName" => @gateway_route_name,
  })
  result.compact
end