Class: AWSCDK::ServiceDiscovery::CfnPublicDNSNamespace::SOAProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ServiceDiscovery::CfnPublicDNSNamespace::SOAProperty
- 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
-
#ttl ⇒ Numeric?
readonly
The time to live (TTL) for purposes of negative caching.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ttl: nil) ⇒ SOAProperty
constructor
A new instance of SOAProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ttl: nil) ⇒ SOAProperty
Returns a new instance of SOAProperty.
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
#ttl ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |