Class: AWSCDK::AppMesh::CfnMesh::MeshServiceDiscoveryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnMesh::MeshServiceDiscoveryProperty
- Defined in:
- app_mesh/cfn_mesh.rb
Overview
An object that represents the service discovery information for a service mesh.
Instance Attribute Summary collapse
-
#ip_preference ⇒ String?
readonly
The IP version to use to control traffic within the mesh.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ip_preference: nil) ⇒ MeshServiceDiscoveryProperty
constructor
A new instance of MeshServiceDiscoveryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ip_preference: nil) ⇒ MeshServiceDiscoveryProperty
Returns a new instance of MeshServiceDiscoveryProperty.
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_preference ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |