Class: AWSCDK::AppMesh::CfnVirtualNode::AWSCloudMapServiceDiscoveryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualNode::AWSCloudMapServiceDiscoveryProperty
- Defined in:
- app_mesh/cfn_virtual_node.rb
Overview
An object that represents the AWS Cloud Map service discovery information for your virtual node.
AWS Cloud Map is not available in the eu-south-1 Region.
Instance Attribute Summary collapse
-
#attributes ⇒ AWSCDK::IResolvable, ...
readonly
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance.
-
#ip_preference ⇒ String?
readonly
The preferred IP version that this virtual node uses.
-
#namespace_name ⇒ String
readonly
The HTTP name of the AWS Cloud Map namespace to use.
-
#service_name ⇒ String
readonly
The name of the AWS Cloud Map service to use.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(namespace_name:, service_name:, attributes: nil, ip_preference: nil) ⇒ AWSCloudMapServiceDiscoveryProperty
constructor
A new instance of AWSCloudMapServiceDiscoveryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(namespace_name:, service_name:, attributes: nil, ip_preference: nil) ⇒ AWSCloudMapServiceDiscoveryProperty
Returns a new instance of AWSCloudMapServiceDiscoveryProperty.
717 718 719 720 721 722 723 724 725 726 |
# File 'app_mesh/cfn_virtual_node.rb', line 717 def initialize(namespace_name:, service_name:, attributes: nil, ip_preference: nil) @namespace_name = namespace_name Jsii::Type.check_type(@namespace_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "namespaceName") @service_name = service_name Jsii::Type.check_type(@service_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceName") @attributes = attributes Jsii::Type.check_type(@attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5WaXJ0dWFsTm9kZS5Bd3NDbG91ZE1hcEluc3RhbmNlQXR0cmlidXRlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "attributes") unless @attributes.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
#attributes ⇒ AWSCDK::IResolvable, ... (readonly)
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance.
Only instances that match all of the specified key/value pairs will be returned.
744 745 746 |
# File 'app_mesh/cfn_virtual_node.rb', line 744 def attributes @attributes end |
#ip_preference ⇒ String? (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.
751 752 753 |
# File 'app_mesh/cfn_virtual_node.rb', line 751 def ip_preference @ip_preference end |
#namespace_name ⇒ String (readonly)
The HTTP name of the AWS Cloud Map namespace to use.
732 733 734 |
# File 'app_mesh/cfn_virtual_node.rb', line 732 def namespace_name @namespace_name end |
#service_name ⇒ String (readonly)
The name of the AWS Cloud Map service to use.
737 738 739 |
# File 'app_mesh/cfn_virtual_node.rb', line 737 def service_name @service_name end |
Class Method Details
.jsii_properties ⇒ Object
753 754 755 756 757 758 759 760 |
# File 'app_mesh/cfn_virtual_node.rb', line 753 def self.jsii_properties { :namespace_name => "namespaceName", :service_name => "serviceName", :attributes => "attributes", :ip_preference => "ipPreference", } end |
Instance Method Details
#to_jsii ⇒ Object
762 763 764 765 766 767 768 769 770 771 |
# File 'app_mesh/cfn_virtual_node.rb', line 762 def to_jsii result = {} result.merge!({ "namespaceName" => @namespace_name, "serviceName" => @service_name, "attributes" => @attributes, "ipPreference" => @ip_preference, }) result.compact end |