Class: AWSCDK::AppMesh::CfnVirtualNode::DNSServiceDiscoveryProperty

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

Overview

An object that represents the DNS service discovery information for your virtual node.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostname:, ip_preference: nil, response_type: nil) ⇒ DNSServiceDiscoveryProperty

Returns a new instance of DNSServiceDiscoveryProperty.

Parameters:

  • hostname (String)

    Specifies the DNS service discovery hostname for the virtual node.

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

    The preferred IP version that this virtual node uses.

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

    Specifies the DNS response type for the virtual node.



992
993
994
995
996
997
998
999
# File 'app_mesh/cfn_virtual_node.rb', line 992

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

Instance Attribute Details

#hostnameString (readonly)

Specifies the DNS service discovery hostname for the virtual node.



1005
1006
1007
# File 'app_mesh/cfn_virtual_node.rb', line 1005

def hostname
  @hostname
end

#ip_preferenceString? (readonly)

The preferred IP version that this virtual node uses.

Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.



1012
1013
1014
# File 'app_mesh/cfn_virtual_node.rb', line 1012

def ip_preference
  @ip_preference
end

#response_typeString? (readonly)

Specifies the DNS response type for the virtual node.



1017
1018
1019
# File 'app_mesh/cfn_virtual_node.rb', line 1017

def response_type
  @response_type
end

Class Method Details

.jsii_propertiesObject



1019
1020
1021
1022
1023
1024
1025
# File 'app_mesh/cfn_virtual_node.rb', line 1019

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

Instance Method Details

#to_jsiiObject



1027
1028
1029
1030
1031
1032
1033
1034
1035
# File 'app_mesh/cfn_virtual_node.rb', line 1027

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