Class: AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteVirtualServiceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteVirtualServiceProperty
- Defined in:
- app_mesh/cfn_gateway_route.rb
Overview
An object that represents the virtual service that traffic is routed to.
Instance Attribute Summary collapse
-
#virtual_service_name ⇒ String
readonly
The name of the virtual service that traffic is routed to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(virtual_service_name:) ⇒ GatewayRouteVirtualServiceProperty
constructor
A new instance of GatewayRouteVirtualServiceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(virtual_service_name:) ⇒ GatewayRouteVirtualServiceProperty
Returns a new instance of GatewayRouteVirtualServiceProperty.
947 948 949 950 |
# File 'app_mesh/cfn_gateway_route.rb', line 947 def initialize(virtual_service_name:) @virtual_service_name = virtual_service_name Jsii::Type.check_type(@virtual_service_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "virtualServiceName") end |
Instance Attribute Details
#virtual_service_name ⇒ String (readonly)
The name of the virtual service that traffic is routed to.
956 957 958 |
# File 'app_mesh/cfn_gateway_route.rb', line 956 def virtual_service_name @virtual_service_name end |
Class Method Details
.jsii_properties ⇒ Object
958 959 960 961 962 |
# File 'app_mesh/cfn_gateway_route.rb', line 958 def self.jsii_properties { :virtual_service_name => "virtualServiceName", } end |
Instance Method Details
#to_jsii ⇒ Object
964 965 966 967 968 969 970 |
# File 'app_mesh/cfn_gateway_route.rb', line 964 def to_jsii result = {} result.merge!({ "virtualServiceName" => @virtual_service_name, }) result.compact end |