Class: AWSCDK::Route53::CfnHostedZone::HostedZoneConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53/cfn_hosted_zone.rb

Overview

A complex type that contains an optional comment about your hosted zone.

If you don't want to specify a comment, omit both the HostedZoneConfig and Comment elements.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comment: nil) ⇒ HostedZoneConfigProperty

Returns a new instance of HostedZoneConfigProperty.

Parameters:

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

    Any comments that you want to include about the hosted zone.



622
623
624
625
# File 'route53/cfn_hosted_zone.rb', line 622

def initialize(comment: nil)
  @comment = comment
  Jsii::Type.check_type(@comment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comment") unless @comment.nil?
end

Instance Attribute Details

#commentString? (readonly)

Any comments that you want to include about the hosted zone.



631
632
633
# File 'route53/cfn_hosted_zone.rb', line 631

def comment
  @comment
end

Class Method Details

.jsii_propertiesObject



633
634
635
636
637
# File 'route53/cfn_hosted_zone.rb', line 633

def self.jsii_properties
  {
    :comment => "comment",
  }
end

Instance Method Details

#to_jsiiObject



639
640
641
642
643
644
645
# File 'route53/cfn_hosted_zone.rb', line 639

def to_jsii
  result = {}
  result.merge!({
    "comment" => @comment,
  })
  result.compact
end