Class: AWSCDK::Route53::AliasRecordTargetConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53::AliasRecordTargetConfig
- Defined in:
- route53/alias_record_target_config.rb
Overview
Represents the properties of an alias target destination.
Instance Attribute Summary collapse
-
#dns_name ⇒ String
readonly
DNS name of the target.
-
#evaluate_target_health ⇒ Boolean?
readonly
Evaluate the target health.
-
#hosted_zone_id ⇒ String
readonly
Hosted zone ID of the target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dns_name:, hosted_zone_id:, evaluate_target_health: nil) ⇒ AliasRecordTargetConfig
constructor
A new instance of AliasRecordTargetConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dns_name:, hosted_zone_id:, evaluate_target_health: nil) ⇒ AliasRecordTargetConfig
Returns a new instance of AliasRecordTargetConfig.
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_name ⇒ String (readonly)
DNS name of the target.
22 23 24 |
# File 'route53/alias_record_target_config.rb', line 22 def dns_name @dns_name end |
#evaluate_target_health ⇒ Boolean? (readonly)
Note:
Default: - no health check configuration
Evaluate the target health.
31 32 33 |
# File 'route53/alias_record_target_config.rb', line 31 def evaluate_target_health @evaluate_target_health end |
#hosted_zone_id ⇒ String (readonly)
Hosted zone ID of the target.
26 27 28 |
# File 'route53/alias_record_target_config.rb', line 26 def hosted_zone_id @hosted_zone_id end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |