Class: AWSCDK::Route53::ZoneDelegationOptions

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

Overview

Options available when creating a delegation relationship from one PublicHostedZone to another.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comment: nil, ttl: nil) ⇒ ZoneDelegationOptions

Returns a new instance of ZoneDelegationOptions.

Parameters:

  • comment (String, nil) (defaults to: nil)

    A comment to add on the DNS record created to incorporate the delegation.

  • ttl (AWSCDK::Duration, nil) (defaults to: nil)

    The TTL (Time To Live) of the DNS delegation record in DNS caches.



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

#commentString? (readonly)

Note:

Default: none

A comment to add on the DNS record created to incorporate the delegation.

Returns:

  • (String, nil)


20
21
22
# File 'route53/zone_delegation_options.rb', line 20

def comment
  @comment
end

#ttlAWSCDK::Duration? (readonly)

Note:

Default: 172800

The TTL (Time To Live) of the DNS delegation record in DNS caches.

Returns:



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

def ttl
  @ttl
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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