Class: AWSCDK::Route53::SrvRecordValue

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53/srv_record_value.rb

Overview

Properties for a SRV record value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host_name:, port:, priority:, weight:) ⇒ SrvRecordValue

Returns a new instance of SrvRecordValue.

Parameters:

  • host_name (String)

    The server host name.

  • port (Numeric)

    The port.

  • priority (Numeric)

    The priority.

  • weight (Numeric)

    The weight.



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_nameString (readonly)

The server host name.

Returns:

  • (String)


25
26
27
# File 'route53/srv_record_value.rb', line 25

def host_name
  @host_name
end

#portNumeric (readonly)

The port.

Returns:

  • (Numeric)


29
30
31
# File 'route53/srv_record_value.rb', line 29

def port
  @port
end

#priorityNumeric (readonly)

The priority.

Returns:

  • (Numeric)


33
34
35
# File 'route53/srv_record_value.rb', line 33

def priority
  @priority
end

#weightNumeric (readonly)

The weight.

Returns:

  • (Numeric)


37
38
39
# File 'route53/srv_record_value.rb', line 37

def weight
  @weight
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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