Class: AWSCDK::ServiceDiscovery::CfnPublicDNSNamespace::SOAProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_discovery/cfn_public_dns_namespace.rb

Overview

Start of Authority (SOA) properties for a public or private DNS namespace.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ttl: nil) ⇒ SOAProperty

Returns a new instance of SOAProperty.

Parameters:

  • ttl (Numeric, nil) (defaults to: nil)

    The time to live (TTL) for purposes of negative caching.



643
644
645
646
# File 'service_discovery/cfn_public_dns_namespace.rb', line 643

def initialize(ttl: nil)
  @ttl = ttl
  Jsii::Type.check_type(@ttl, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "ttl") unless @ttl.nil?
end

Instance Attribute Details

#ttlNumeric? (readonly)

The time to live (TTL) for purposes of negative caching.



652
653
654
# File 'service_discovery/cfn_public_dns_namespace.rb', line 652

def ttl
  @ttl
end

Class Method Details

.jsii_propertiesObject



654
655
656
657
658
# File 'service_discovery/cfn_public_dns_namespace.rb', line 654

def self.jsii_properties
  {
    :ttl => "ttl",
  }
end

Instance Method Details

#to_jsiiObject



660
661
662
663
664
665
666
# File 'service_discovery/cfn_public_dns_namespace.rb', line 660

def to_jsii
  result = {}
  result.merge!({
    "ttl" => @ttl,
  })
  result.compact
end