Class: AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteVirtualServiceProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(virtual_service_name:) ⇒ GatewayRouteVirtualServiceProperty

Returns a new instance of GatewayRouteVirtualServiceProperty.

Parameters:

  • virtual_service_name (String)

    The name of the virtual service that traffic is routed to.



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_nameString (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_propertiesObject



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_jsiiObject



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