Class: AWSCDK::Route53::CfnHostedZone::HostedZoneTagProperty

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

Overview

A complex type that contains information about a tag that you want to add or edit for the specified health check or hosted zone.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ HostedZoneTagProperty

Returns a new instance of HostedZoneTagProperty.

Parameters:

  • key (String)

    The value of Key depends on the operation that you want to perform:.

  • value (String)

    The value of Value depends on the operation that you want to perform:.



687
688
689
690
691
692
# File 'route53/cfn_hosted_zone.rb', line 687

def initialize(key:, value:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#keyString (readonly)

The value of Key depends on the operation that you want to perform:.

  • Add a tag to a health check or hosted zone : Key is the name that you want to give the new tag.
  • Edit a tag : Key is the name of the tag that you want to change the Value for.
  • Delete a key : Key is the name of the tag you want to remove.
  • Give a name to a health check : Edit the default Name tag. In the Amazon Route 53 console, the list of your health checks includes a Name column that lets you see the name that you've given to each health check.


703
704
705
# File 'route53/cfn_hosted_zone.rb', line 703

def key
  @key
end

#valueString (readonly)

The value of Value depends on the operation that you want to perform:.

  • Add a tag to a health check or hosted zone : Value is the value that you want to give the new tag.
  • Edit a tag : Value is the new value that you want to assign the tag.


711
712
713
# File 'route53/cfn_hosted_zone.rb', line 711

def value
  @value
end

Class Method Details

.jsii_propertiesObject



713
714
715
716
717
718
# File 'route53/cfn_hosted_zone.rb', line 713

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

Instance Method Details

#to_jsiiObject



720
721
722
723
724
725
726
727
# File 'route53/cfn_hosted_zone.rb', line 720

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