Class: AWSCDK::CE::CfnAnomalyMonitor::ResourceTagProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ce/cfn_anomaly_monitor.rb

Overview

The tag structure that contains a tag key and value.

Tagging is supported only for the following Cost Explorer resource types: AnomalyMonitor , AnomalySubscription , CostCategory .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ ResourceTagProperty

Returns a new instance of ResourceTagProperty.

Parameters:

  • key (String)

    The key that's associated with the tag.

  • value (String)

    The value that's associated with the tag.



599
600
601
602
603
604
# File 'ce/cfn_anomaly_monitor.rb', line 599

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 key that's associated with the tag.



610
611
612
# File 'ce/cfn_anomaly_monitor.rb', line 610

def key
  @key
end

#valueString (readonly)

The value that's associated with the tag.



615
616
617
# File 'ce/cfn_anomaly_monitor.rb', line 615

def value
  @value
end

Class Method Details

.jsii_propertiesObject



617
618
619
620
621
622
# File 'ce/cfn_anomaly_monitor.rb', line 617

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

Instance Method Details

#to_jsiiObject



624
625
626
627
628
629
630
631
# File 'ce/cfn_anomaly_monitor.rb', line 624

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