Class: AWSCDK::AppMesh::GatewayRouteProps

Inherits:
GatewayRouteBaseProps
  • Object
show all
Defined in:
app_mesh/gateway_route_props.rb

Overview

Properties to define a new GatewayRoute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(route_spec:, gateway_route_name: nil, virtual_gateway:) ⇒ GatewayRouteProps

Returns a new instance of GatewayRouteProps.

Parameters:



10
11
12
13
14
15
16
17
# File 'app_mesh/gateway_route_props.rb', line 10

def initialize(route_spec:, gateway_route_name: nil, virtual_gateway:)
  @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?
  @virtual_gateway = virtual_gateway
  Jsii::Type.check_type(@virtual_gateway, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5JVmlydHVhbEdhdGV3YXkifQ==")), "virtualGateway")
end

Instance Attribute Details

#gateway_route_nameString? (readonly)

Note:

Default: - an automatically generated name

The name of the GatewayRoute.

Returns:

  • (String, nil)


27
28
29
# File 'app_mesh/gateway_route_props.rb', line 27

def gateway_route_name
  @gateway_route_name
end

#route_specAWSCDK::AppMesh::GatewayRouteSpec (readonly)

What protocol the route uses.



22
23
24
# File 'app_mesh/gateway_route_props.rb', line 22

def route_spec
  @route_spec
end

#virtual_gatewayAWSCDK::AppMesh::IVirtualGateway (readonly)

The VirtualGateway this GatewayRoute is associated with.



31
32
33
# File 'app_mesh/gateway_route_props.rb', line 31

def virtual_gateway
  @virtual_gateway
end

Class Method Details

.jsii_propertiesObject



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

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

Instance Method Details

#to_jsiiObject



41
42
43
44
45
46
47
48
49
50
# File 'app_mesh/gateway_route_props.rb', line 41

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