Class: AWSCDK::VPCLattice::CfnServiceNetworkServiceAssociation::DNSEntryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
vpc_lattice/cfn_service_network_service_association.rb

Overview

The DNS information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_name: nil, hosted_zone_id: nil) ⇒ DNSEntryProperty

Returns a new instance of DNSEntryProperty.

Parameters:

  • domain_name (String, nil) (defaults to: nil)

    The domain name of the service.

  • hosted_zone_id (String, nil) (defaults to: nil)

    The ID of the hosted zone.



654
655
656
657
658
659
# File 'vpc_lattice/cfn_service_network_service_association.rb', line 654

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_nameString? (readonly)

The domain name of the service.



665
666
667
# File 'vpc_lattice/cfn_service_network_service_association.rb', line 665

def domain_name
  @domain_name
end

#hosted_zone_idString? (readonly)

The ID of the hosted zone.



670
671
672
# File 'vpc_lattice/cfn_service_network_service_association.rb', line 670

def hosted_zone_id
  @hosted_zone_id
end

Class Method Details

.jsii_propertiesObject



672
673
674
675
676
677
# File 'vpc_lattice/cfn_service_network_service_association.rb', line 672

def self.jsii_properties
  {
    :domain_name => "domainName",
    :hosted_zone_id => "hostedZoneId",
  }
end

Instance Method Details

#to_jsiiObject



679
680
681
682
683
684
685
686
# File 'vpc_lattice/cfn_service_network_service_association.rb', line 679

def to_jsii
  result = {}
  result.merge!({
    "domainName" => @domain_name,
    "hostedZoneId" => @hosted_zone_id,
  })
  result.compact
end