Class: AWSCDK::AppMesh::CfnMesh::MeshServiceDiscoveryProperty

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

Overview

An object that represents the service discovery information for a service mesh.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip_preference: nil) ⇒ MeshServiceDiscoveryProperty

Returns a new instance of MeshServiceDiscoveryProperty.

Parameters:

  • ip_preference (String, nil) (defaults to: nil)

    The IP version to use to control traffic within the mesh.



627
628
629
630
# File 'app_mesh/cfn_mesh.rb', line 627

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

Instance Attribute Details

#ip_preferenceString? (readonly)

The IP version to use to control traffic within the mesh.



636
637
638
# File 'app_mesh/cfn_mesh.rb', line 636

def ip_preference
  @ip_preference
end

Class Method Details

.jsii_propertiesObject



638
639
640
641
642
# File 'app_mesh/cfn_mesh.rb', line 638

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

Instance Method Details

#to_jsiiObject



644
645
646
647
648
649
650
# File 'app_mesh/cfn_mesh.rb', line 644

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