Class: AWSCDK::AppMesh::GatewayRouteAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/gateway_route_attributes.rb

Overview

Interface with properties necessary to import a reusable GatewayRoute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gateway_route_name:, virtual_gateway:) ⇒ GatewayRouteAttributes

Returns a new instance of GatewayRouteAttributes.

Parameters:

  • gateway_route_name (String)

    The name of the GatewayRoute.

  • virtual_gateway (AWSCDK::AppMesh::IVirtualGateway)

    The VirtualGateway this GatewayRoute is associated with.



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_nameString (readonly)

The name of the GatewayRoute.

Returns:

  • (String)


19
20
21
# File 'app_mesh/gateway_route_attributes.rb', line 19

def gateway_route_name
  @gateway_route_name
end

#virtual_gatewayAWSCDK::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_propertiesObject



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_jsiiObject



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