Class: AWSCDK::Route53::ZoneDelegationOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53::ZoneDelegationOptions
- Defined in:
- route53/zone_delegation_options.rb
Overview
Options available when creating a delegation relationship from one PublicHostedZone to another.
Instance Attribute Summary collapse
-
#comment ⇒ String?
readonly
A comment to add on the DNS record created to incorporate the delegation.
-
#ttl ⇒ AWSCDK::Duration?
readonly
The TTL (Time To Live) of the DNS delegation record in DNS caches.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(comment: nil, ttl: nil) ⇒ ZoneDelegationOptions
constructor
A new instance of ZoneDelegationOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(comment: nil, ttl: nil) ⇒ ZoneDelegationOptions
Returns a new instance of ZoneDelegationOptions.
9 10 11 12 13 14 |
# File 'route53/zone_delegation_options.rb', line 9 def initialize(comment: nil, ttl: nil) @comment = comment Jsii::Type.check_type(@comment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comment") unless @comment.nil? @ttl = ttl Jsii::Type.check_type(@ttl, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "ttl") unless @ttl.nil? end |
Instance Attribute Details
#comment ⇒ String? (readonly)
Note:
Default: none
A comment to add on the DNS record created to incorporate the delegation.
20 21 22 |
# File 'route53/zone_delegation_options.rb', line 20 def comment @comment end |
#ttl ⇒ AWSCDK::Duration? (readonly)
Note:
Default: 172800
The TTL (Time To Live) of the DNS delegation record in DNS caches.
25 26 27 |
# File 'route53/zone_delegation_options.rb', line 25 def ttl @ttl end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'route53/zone_delegation_options.rb', line 27 def self.jsii_properties { :comment => "comment", :ttl => "ttl", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'route53/zone_delegation_options.rb', line 34 def to_jsii result = {} result.merge!({ "comment" => @comment, "ttl" => @ttl, }) result.compact end |