Class: AWSCDK::AppMesh::GatewayRouteAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::GatewayRouteAttributes
- Defined in:
- app_mesh/gateway_route_attributes.rb
Overview
Interface with properties necessary to import a reusable GatewayRoute.
Instance Attribute Summary collapse
-
#gateway_route_name ⇒ String
readonly
The name of the GatewayRoute.
-
#virtual_gateway ⇒ AWSCDK::AppMesh::IVirtualGateway
readonly
The VirtualGateway this GatewayRoute is associated with.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(gateway_route_name:, virtual_gateway:) ⇒ GatewayRouteAttributes
constructor
A new instance of GatewayRouteAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(gateway_route_name:, virtual_gateway:) ⇒ GatewayRouteAttributes
Returns a new instance of GatewayRouteAttributes.
9 10 11 12 13 14 |
# File 'app_mesh/gateway_route_attributes.rb', line 9 def initialize(gateway_route_name:, virtual_gateway:) @gateway_route_name = gateway_route_name Jsii::Type.check_type(@gateway_route_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayRouteName") @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)
The name of the GatewayRoute.
19 20 21 |
# File 'app_mesh/gateway_route_attributes.rb', line 19 def gateway_route_name @gateway_route_name end |
#virtual_gateway ⇒ AWSCDK::AppMesh::IVirtualGateway (readonly)
The VirtualGateway this GatewayRoute is associated with.
23 24 25 |
# File 'app_mesh/gateway_route_attributes.rb', line 23 def virtual_gateway @virtual_gateway end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'app_mesh/gateway_route_attributes.rb', line 25 def self.jsii_properties { :gateway_route_name => "gatewayRouteName", :virtual_gateway => "virtualGateway", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'app_mesh/gateway_route_attributes.rb', line 32 def to_jsii result = {} result.merge!({ "gatewayRouteName" => @gateway_route_name, "virtualGateway" => @virtual_gateway, }) result.compact end |