Class: AWSCDK::AppMesh::VirtualGatewayAttributes

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

Overview

Unterface with properties necessary to import a reusable VirtualGateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mesh:, virtual_gateway_name:) ⇒ VirtualGatewayAttributes

Returns a new instance of VirtualGatewayAttributes.

Parameters:

  • mesh (AWSCDK::AppMesh::IMesh)

    The Mesh that the VirtualGateway belongs to.

  • virtual_gateway_name (String)

    The name of the VirtualGateway.



9
10
11
12
13
14
# File 'app_mesh/virtual_gateway_attributes.rb', line 9

def initialize(mesh:, virtual_gateway_name:)
  @mesh = mesh
  Jsii::Type.check_type(@mesh, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5JTWVzaCJ9")), "mesh")
  @virtual_gateway_name = virtual_gateway_name
  Jsii::Type.check_type(@virtual_gateway_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "virtualGatewayName")
end

Instance Attribute Details

#meshAWSCDK::AppMesh::IMesh (readonly)

The Mesh that the VirtualGateway belongs to.



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

def mesh
  @mesh
end

#virtual_gateway_nameString (readonly)

The name of the VirtualGateway.

Returns:

  • (String)


23
24
25
# File 'app_mesh/virtual_gateway_attributes.rb', line 23

def virtual_gateway_name
  @virtual_gateway_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'app_mesh/virtual_gateway_attributes.rb', line 25

def self.jsii_properties
  {
    :mesh => "mesh",
    :virtual_gateway_name => "virtualGatewayName",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'app_mesh/virtual_gateway_attributes.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "mesh" => @mesh,
    "virtualGatewayName" => @virtual_gateway_name,
  })
  result.compact
end