Class: AWSCDK::Route53::CfnHealthCheck::HealthCheckTagProperty

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

Overview

The HealthCheckTag property describes one key-value pair that is associated with an AWS::Route53::HealthCheck resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ HealthCheckTagProperty

Returns a new instance of HealthCheckTagProperty.

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:.



908
909
910
911
912
913
# File 'route53/cfn_health_check.rb', line 908

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.


924
925
926
# File 'route53/cfn_health_check.rb', line 924

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.


932
933
934
# File 'route53/cfn_health_check.rb', line 932

def value
  @value
end

Class Method Details

.jsii_propertiesObject



934
935
936
937
938
939
# File 'route53/cfn_health_check.rb', line 934

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

Instance Method Details

#to_jsiiObject



941
942
943
944
945
946
947
948
# File 'route53/cfn_health_check.rb', line 941

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