Class: AWSCDK::Route53::SrvRecordValue
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53::SrvRecordValue
- Defined in:
- route53/srv_record_value.rb
Overview
Properties for a SRV record value.
Instance Attribute Summary collapse
-
#host_name ⇒ String
readonly
The server host name.
-
#port ⇒ Numeric
readonly
The port.
-
#priority ⇒ Numeric
readonly
The priority.
-
#weight ⇒ Numeric
readonly
The weight.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(host_name:, port:, priority:, weight:) ⇒ SrvRecordValue
constructor
A new instance of SrvRecordValue.
- #to_jsii ⇒ Object
Constructor Details
#initialize(host_name:, port:, priority:, weight:) ⇒ SrvRecordValue
Returns a new instance of SrvRecordValue.
11 12 13 14 15 16 17 18 19 20 |
# File 'route53/srv_record_value.rb', line 11 def initialize(host_name:, port:, priority:, weight:) @host_name = host_name Jsii::Type.check_type(@host_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostName") @port = port Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") @priority = priority Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority") @weight = weight Jsii::Type.check_type(@weight, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "weight") end |
Instance Attribute Details
#host_name ⇒ String (readonly)
The server host name.
25 26 27 |
# File 'route53/srv_record_value.rb', line 25 def host_name @host_name end |
#port ⇒ Numeric (readonly)
The port.
29 30 31 |
# File 'route53/srv_record_value.rb', line 29 def port @port end |
#priority ⇒ Numeric (readonly)
The priority.
33 34 35 |
# File 'route53/srv_record_value.rb', line 33 def priority @priority end |
#weight ⇒ Numeric (readonly)
The weight.
37 38 39 |
# File 'route53/srv_record_value.rb', line 37 def weight @weight end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'route53/srv_record_value.rb', line 39 def self.jsii_properties { :host_name => "hostName", :port => "port", :priority => "priority", :weight => "weight", } end |
Instance Method Details
#to_jsii ⇒ Object
48 49 50 51 52 53 54 55 56 57 |
# File 'route53/srv_record_value.rb', line 48 def to_jsii result = {} result.merge!({ "hostName" => @host_name, "port" => @port, "priority" => @priority, "weight" => @weight, }) result.compact end |