Class: AWSCDK::Route53::CfnHostedZone::HostedZoneTagProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53::CfnHostedZone::HostedZoneTagProperty
- 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
-
#key ⇒ String
readonly
The value of
Keydepends on the operation that you want to perform:. -
#value ⇒ String
readonly
The value of
Valuedepends on the operation that you want to perform:.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ HostedZoneTagProperty
constructor
A new instance of HostedZoneTagProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ HostedZoneTagProperty
Returns a new instance of HostedZoneTagProperty.
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
#key ⇒ String (readonly)
The value of Key depends on the operation that you want to perform:.
- Add a tag to a health check or hosted zone :
Keyis the name that you want to give the new tag. - Edit a tag :
Keyis the name of the tag that you want to change theValuefor. - Delete a key :
Keyis the name of the tag you want to remove. - Give a name to a health check : Edit the default
Nametag. 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 |
#value ⇒ String (readonly)
The value of Value depends on the operation that you want to perform:.
- Add a tag to a health check or hosted zone :
Valueis the value that you want to give the new tag. - Edit a tag :
Valueis 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_properties ⇒ Object
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_jsii ⇒ Object
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 |