Class: AWSCDK::ServiceDiscovery::CnameInstanceProps
- Inherits:
-
CnameInstanceBaseProps
- Object
- CnameInstanceBaseProps
- AWSCDK::ServiceDiscovery::CnameInstanceProps
- Defined in:
- service_discovery/cname_instance_props.rb
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.
-
#service ⇒ AWSCDK::ServiceDiscovery::IService
readonly
The Cloudmap service this resource is registered to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(custom_attributes: nil, instance_id: nil, instance_cname:, service:) ⇒ CnameInstanceProps
constructor
A new instance of CnameInstanceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(custom_attributes: nil, instance_id: nil, instance_cname:, service:) ⇒ CnameInstanceProps
Returns a new instance of CnameInstanceProps.
10 11 12 13 14 15 16 17 18 19 |
# File 'service_discovery/cname_instance_props.rb', line 10 def initialize(custom_attributes: nil, instance_id: nil, instance_cname:, service:) @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") @service = service Jsii::Type.check_type(@service, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VydmljZWRpc2NvdmVyeS5JU2VydmljZSJ9")), "service") end |
Instance Attribute Details
#custom_attributes ⇒ Hash{String => String}? (readonly)
Default: none
Custom attributes of the instance.
25 26 27 |
# File 'service_discovery/cname_instance_props.rb', line 25 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.
34 35 36 |
# File 'service_discovery/cname_instance_props.rb', line 34 def instance_cname @instance_cname end |
#instance_id ⇒ String? (readonly)
Default: Automatically generated name
The id of the instance resource.
30 31 32 |
# File 'service_discovery/cname_instance_props.rb', line 30 def instance_id @instance_id end |
#service ⇒ AWSCDK::ServiceDiscovery::IService (readonly)
The Cloudmap service this resource is registered to.
38 39 40 |
# File 'service_discovery/cname_instance_props.rb', line 38 def service @service end |
Class Method Details
.jsii_properties ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'service_discovery/cname_instance_props.rb', line 40 def self.jsii_properties { :custom_attributes => "customAttributes", :instance_id => "instanceId", :instance_cname => "instanceCname", :service => "service", } end |
Instance Method Details
#to_jsii ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 |
# File 'service_discovery/cname_instance_props.rb', line 49 def to_jsii result = {} result.merge!(super) result.merge!({ "customAttributes" => @custom_attributes, "instanceId" => @instance_id, "instanceCname" => @instance_cname, "service" => @service, }) result.compact end |