Class: AWSCDK::ServiceDiscovery::CfnPrivateDNSNamespace::SOAProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ServiceDiscovery::CfnPrivateDNSNamespace::SOAProperty
- 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
-
#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.
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
#ttl ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |