Class: AWSCDK::Route53::AliasRecordTargetConfig

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

Overview

Represents the properties of an alias target destination.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dns_name:, hosted_zone_id:, evaluate_target_health: nil) ⇒ AliasRecordTargetConfig

Returns a new instance of AliasRecordTargetConfig.

Parameters:

  • dns_name (String)

    DNS name of the target.

  • hosted_zone_id (String)

    Hosted zone ID of the target.

  • evaluate_target_health (Boolean, nil) (defaults to: nil)

    Evaluate the target health.



10
11
12
13
14
15
16
17
# File 'route53/alias_record_target_config.rb', line 10

def initialize(dns_name:, hosted_zone_id:, evaluate_target_health: nil)
  @dns_name = dns_name
  Jsii::Type.check_type(@dns_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dnsName")
  @hosted_zone_id = hosted_zone_id
  Jsii::Type.check_type(@hosted_zone_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostedZoneId")
  @evaluate_target_health = evaluate_target_health
  Jsii::Type.check_type(@evaluate_target_health, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "evaluateTargetHealth") unless @evaluate_target_health.nil?
end

Instance Attribute Details

#dns_nameString (readonly)

DNS name of the target.

Returns:

  • (String)


22
23
24
# File 'route53/alias_record_target_config.rb', line 22

def dns_name
  @dns_name
end

#evaluate_target_healthBoolean? (readonly)

Note:

Default: - no health check configuration

Evaluate the target health.

Returns:

  • (Boolean, nil)


31
32
33
# File 'route53/alias_record_target_config.rb', line 31

def evaluate_target_health
  @evaluate_target_health
end

#hosted_zone_idString (readonly)

Hosted zone ID of the target.

Returns:

  • (String)


26
27
28
# File 'route53/alias_record_target_config.rb', line 26

def hosted_zone_id
  @hosted_zone_id
end

Class Method Details

.jsii_propertiesObject



33
34
35
36
37
38
39
# File 'route53/alias_record_target_config.rb', line 33

def self.jsii_properties
  {
    :dns_name => "dnsName",
    :hosted_zone_id => "hostedZoneId",
    :evaluate_target_health => "evaluateTargetHealth",
  }
end

Instance Method Details

#to_jsiiObject



41
42
43
44
45
46
47
48
49
# File 'route53/alias_record_target_config.rb', line 41

def to_jsii
  result = {}
  result.merge!({
    "dnsName" => @dns_name,
    "hostedZoneId" => @hosted_zone_id,
    "evaluateTargetHealth" => @evaluate_target_health,
  })
  result.compact
end