Class: AWSCDK::Route53::PublicHostedZoneAttributes

Inherits:
HostedZoneAttributes
  • Object
show all
Defined in:
route53/public_hosted_zone_attributes.rb

Overview

Reference to a public hosted zone.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hosted_zone_id:, zone_name:) ⇒ PublicHostedZoneAttributes

Returns a new instance of PublicHostedZoneAttributes.

Parameters:

  • hosted_zone_id (String)

    Identifier of the hosted zone.

  • zone_name (String)

    Name of the hosted zone.



9
10
11
12
13
14
# File 'route53/public_hosted_zone_attributes.rb', line 9

def initialize(hosted_zone_id:, zone_name:)
  @hosted_zone_id = hosted_zone_id
  Jsii::Type.check_type(@hosted_zone_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostedZoneId")
  @zone_name = zone_name
  Jsii::Type.check_type(@zone_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "zoneName")
end

Instance Attribute Details

#hosted_zone_idString (readonly)

Identifier of the hosted zone.

Returns:

  • (String)


19
20
21
# File 'route53/public_hosted_zone_attributes.rb', line 19

def hosted_zone_id
  @hosted_zone_id
end

#zone_nameString (readonly)

Name of the hosted zone.

Returns:

  • (String)


23
24
25
# File 'route53/public_hosted_zone_attributes.rb', line 23

def zone_name
  @zone_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'route53/public_hosted_zone_attributes.rb', line 25

def self.jsii_properties
  {
    :hosted_zone_id => "hostedZoneId",
    :zone_name => "zoneName",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
40
# File 'route53/public_hosted_zone_attributes.rb', line 32

def to_jsii
  result = {}
  result.merge!(super)
  result.merge!({
    "hostedZoneId" => @hosted_zone_id,
    "zoneName" => @zone_name,
  })
  result.compact
end