Class: AWSCDK::ServiceDiscovery::CnameInstanceBaseProps
- Inherits:
-
BaseInstanceProps
- Object
- BaseInstanceProps
- AWSCDK::ServiceDiscovery::CnameInstanceBaseProps
- Defined in:
- service_discovery/cname_instance_base_props.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#custom_attributes ⇒ Hash{String => String}?
readonly
Custom attributes of the instance.
-
#instance_cname ⇒ String
readonly
If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com.
-
#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, instance_cname:) ⇒ CnameInstanceBaseProps
constructor
A new instance of CnameInstanceBaseProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(custom_attributes: nil, instance_id: nil, instance_cname:) ⇒ CnameInstanceBaseProps
Returns a new instance of CnameInstanceBaseProps.
9 10 11 12 13 14 15 16 |
# File 'service_discovery/cname_instance_base_props.rb', line 9 def initialize(custom_attributes: nil, instance_id: nil, instance_cname:) @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? @instance_cname = instance_cname Jsii::Type.check_type(@instance_cname, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceCname") end |
Instance Attribute Details
#custom_attributes ⇒ Hash{String => String}? (readonly)
Note:
Default: none
Custom attributes of the instance.
22 23 24 |
# File 'service_discovery/cname_instance_base_props.rb', line 22 def custom_attributes @custom_attributes end |
#instance_cname ⇒ String (readonly)
If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com. This value is required if the service specified by ServiceId includes settings for an CNAME record.
31 32 33 |
# File 'service_discovery/cname_instance_base_props.rb', line 31 def instance_cname @instance_cname end |
#instance_id ⇒ String? (readonly)
Note:
Default: Automatically generated name
The id of the instance resource.
27 28 29 |
# File 'service_discovery/cname_instance_base_props.rb', line 27 def instance_id @instance_id end |
Class Method Details
.jsii_properties ⇒ Object
33 34 35 36 37 38 39 |
# File 'service_discovery/cname_instance_base_props.rb', line 33 def self.jsii_properties { :custom_attributes => "customAttributes", :instance_id => "instanceId", :instance_cname => "instanceCname", } end |
Instance Method Details
#to_jsii ⇒ Object
41 42 43 44 45 46 47 48 49 50 |
# File 'service_discovery/cname_instance_base_props.rb', line 41 def to_jsii result = {} result.merge!(super) result.merge!({ "customAttributes" => @custom_attributes, "instanceId" => @instance_id, "instanceCname" => @instance_cname, }) result.compact end |