Class: AWSCDK::AppMesh::GatewayRouteProps
- Inherits:
-
GatewayRouteBaseProps
- Object
- GatewayRouteBaseProps
- AWSCDK::AppMesh::GatewayRouteProps
- Defined in:
- app_mesh/gateway_route_props.rb
Overview
Properties to define a new GatewayRoute.
Instance Attribute Summary collapse
-
#gateway_route_name ⇒ String?
readonly
The name of the GatewayRoute.
-
#route_spec ⇒ AWSCDK::AppMesh::GatewayRouteSpec
readonly
What protocol the route uses.
-
#virtual_gateway ⇒ AWSCDK::AppMesh::IVirtualGateway
readonly
The VirtualGateway this GatewayRoute is associated with.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(route_spec:, gateway_route_name: nil, virtual_gateway:) ⇒ GatewayRouteProps
constructor
A new instance of GatewayRouteProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(route_spec:, gateway_route_name: nil, virtual_gateway:) ⇒ GatewayRouteProps
Returns a new instance of GatewayRouteProps.
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_name ⇒ String? (readonly)
Note:
Default: - an automatically generated name
The name of the GatewayRoute.
27 28 29 |
# File 'app_mesh/gateway_route_props.rb', line 27 def gateway_route_name @gateway_route_name end |
#route_spec ⇒ AWSCDK::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_gateway ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |