Class: AWSCDK::AppMesh::GatewayRouteBaseProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::GatewayRouteBaseProps
- Defined in:
- app_mesh/gateway_route_base_props.rb
Overview
Basic configuration properties for a GatewayRoute.
Direct Known Subclasses
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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(route_spec:, gateway_route_name: nil) ⇒ GatewayRouteBaseProps
constructor
A new instance of GatewayRouteBaseProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(route_spec:, gateway_route_name: nil) ⇒ GatewayRouteBaseProps
Returns a new instance of GatewayRouteBaseProps.
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_name ⇒ String? (readonly)
Note:
Default: - an automatically generated name
The name of the GatewayRoute.
24 25 26 |
# File 'app_mesh/gateway_route_base_props.rb', line 24 def gateway_route_name @gateway_route_name end |
#route_spec ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |