Class: AWSCDK::ServiceDiscovery::NonIPInstanceBaseProps
- Inherits:
-
BaseInstanceProps
- Object
- BaseInstanceProps
- AWSCDK::ServiceDiscovery::NonIPInstanceBaseProps
- Defined in:
- service_discovery/non_ip_instance_base_props.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#custom_attributes ⇒ Hash{String => String}?
readonly
Custom attributes of the instance.
-
#instance_id ⇒ String?
readonly
The id of the instance resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(custom_attributes: nil, instance_id: nil) ⇒ NonIPInstanceBaseProps
constructor
A new instance of NonIPInstanceBaseProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(custom_attributes: nil, instance_id: nil) ⇒ NonIPInstanceBaseProps
Returns a new instance of NonIPInstanceBaseProps.
8 9 10 11 12 13 |
# File 'service_discovery/non_ip_instance_base_props.rb', line 8 def initialize(custom_attributes: nil, instance_id: nil) @custom_attributes = custom_attributes Jsii::Type.check_type(@custom_attributes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "customAttributes") unless @custom_attributes.nil? @instance_id = instance_id Jsii::Type.check_type(@instance_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceId") unless @instance_id.nil? end |
Instance Attribute Details
#custom_attributes ⇒ Hash{String => String}? (readonly)
Note:
Default: none
Custom attributes of the instance.
19 20 21 |
# File 'service_discovery/non_ip_instance_base_props.rb', line 19 def custom_attributes @custom_attributes end |
#instance_id ⇒ String? (readonly)
Note:
Default: Automatically generated name
The id of the instance resource.
24 25 26 |
# File 'service_discovery/non_ip_instance_base_props.rb', line 24 def instance_id @instance_id end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'service_discovery/non_ip_instance_base_props.rb', line 26 def self.jsii_properties { :custom_attributes => "customAttributes", :instance_id => "instanceId", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'service_discovery/non_ip_instance_base_props.rb', line 33 def to_jsii result = {} result.merge!(super) result.merge!({ "customAttributes" => @custom_attributes, "instanceId" => @instance_id, }) result.compact end |