Class: AWSCDK::VPCLattice::CfnService::DNSEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::VPCLattice::CfnService::DNSEntryProperty
- Defined in:
- vpc_lattice/cfn_service.rb
Overview
Describes the DNS information of a service.
Instance Attribute Summary collapse
-
#domain_name ⇒ String?
readonly
The domain name of the service.
-
#hosted_zone_id ⇒ String?
readonly
The ID of the hosted zone.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain_name: nil, hosted_zone_id: nil) ⇒ DNSEntryProperty
constructor
A new instance of DNSEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(domain_name: nil, hosted_zone_id: nil) ⇒ DNSEntryProperty
Returns a new instance of DNSEntryProperty.
636 637 638 639 640 641 |
# File 'vpc_lattice/cfn_service.rb', line 636 def initialize(domain_name: nil, hosted_zone_id: nil) @domain_name = domain_name Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainName") unless @domain_name.nil? @hosted_zone_id = hosted_zone_id Jsii::Type.check_type(@hosted_zone_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostedZoneId") unless @hosted_zone_id.nil? end |
Instance Attribute Details
#domain_name ⇒ String? (readonly)
The domain name of the service.
647 648 649 |
# File 'vpc_lattice/cfn_service.rb', line 647 def domain_name @domain_name end |
#hosted_zone_id ⇒ String? (readonly)
The ID of the hosted zone.
652 653 654 |
# File 'vpc_lattice/cfn_service.rb', line 652 def hosted_zone_id @hosted_zone_id end |
Class Method Details
.jsii_properties ⇒ Object
654 655 656 657 658 659 |
# File 'vpc_lattice/cfn_service.rb', line 654 def self.jsii_properties { :domain_name => "domainName", :hosted_zone_id => "hostedZoneId", } end |
Instance Method Details
#to_jsii ⇒ Object
661 662 663 664 665 666 667 668 |
# File 'vpc_lattice/cfn_service.rb', line 661 def to_jsii result = {} result.merge!({ "domainName" => @domain_name, "hostedZoneId" => @hosted_zone_id, }) result.compact end |