Class: AWSCDK::ServiceDiscovery::CfnPrivateDNSNamespace::SOAProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_discovery/cfn_private_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.



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

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.



663
664
665
# File 'service_discovery/cfn_private_dns_namespace.rb', line 663

def ttl
  @ttl
end

Class Method Details

.jsii_propertiesObject



665
666
667
668
669
# File 'service_discovery/cfn_private_dns_namespace.rb', line 665

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

Instance Method Details

#to_jsiiObject



671
672
673
674
675
676
677
# File 'service_discovery/cfn_private_dns_namespace.rb', line 671

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