Class: AWSCDK::Route53::MxRecordValue
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53::MxRecordValue
- Defined in:
- route53/mx_record_value.rb
Overview
Properties for a MX record value.
Instance Attribute Summary collapse
-
#host_name ⇒ String
readonly
The mail server host name.
-
#priority ⇒ Numeric
readonly
The priority.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(host_name:, priority:) ⇒ MxRecordValue
constructor
A new instance of MxRecordValue.
- #to_jsii ⇒ Object
Constructor Details
#initialize(host_name:, priority:) ⇒ MxRecordValue
Returns a new instance of MxRecordValue.
9 10 11 12 13 14 |
# File 'route53/mx_record_value.rb', line 9 def initialize(host_name:, priority:) @host_name = host_name Jsii::Type.check_type(@host_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostName") @priority = priority Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority") end |
Instance Attribute Details
#host_name ⇒ String (readonly)
The mail server host name.
19 20 21 |
# File 'route53/mx_record_value.rb', line 19 def host_name @host_name end |
#priority ⇒ Numeric (readonly)
The priority.
23 24 25 |
# File 'route53/mx_record_value.rb', line 23 def priority @priority end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'route53/mx_record_value.rb', line 25 def self.jsii_properties { :host_name => "hostName", :priority => "priority", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'route53/mx_record_value.rb', line 32 def to_jsii result = {} result.merge!({ "hostName" => @host_name, "priority" => @priority, }) result.compact end |