Class: AWSCDK::AppMesh::MeshServiceDiscovery

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

Overview

Properties for Mesh Service Discovery.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip_preference: nil) ⇒ MeshServiceDiscovery

Returns a new instance of MeshServiceDiscovery.

Parameters:



8
9
10
11
# File 'app_mesh/mesh_service_discovery.rb', line 8

def initialize(ip_preference: nil)
  @ip_preference = ip_preference
  Jsii::Type.check_type(@ip_preference, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5JcFByZWZlcmVuY2UifQ==")), "ipPreference") unless @ip_preference.nil?
end

Instance Attribute Details

#ip_preferenceAWSCDK::AppMesh::IPPreference? (readonly)

Note:

Default: - No IP preference is applied to any of the Virtual Nodes in the Mesh. Virtual Nodes without an IP preference will have the following configured. Envoy listeners are configured to bind only to IPv4. Envoy will use IPv4 when sending traffic to a local application. For DNS service discovery, the Envoy DNS resolver to prefer using IPv6 and fall back to IPv4. For CloudMap service discovery, App Mesh will prefer using IPv4 and fall back to IPv6 for IPs returned by CloudMap.

IP preference applied to all Virtual Nodes in the Mesh.



17
18
19
# File 'app_mesh/mesh_service_discovery.rb', line 17

def ip_preference
  @ip_preference
end

Class Method Details

.jsii_propertiesObject



19
20
21
22
23
# File 'app_mesh/mesh_service_discovery.rb', line 19

def self.jsii_properties
  {
    :ip_preference => "ipPreference",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "ipPreference" => @ip_preference,
  })
  result.compact
end