Class: AWSCDK::GuardDuty::CfnThreatEntitySet::TagItemProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GuardDuty::CfnThreatEntitySet::TagItemProperty
- Defined in:
- guard_duty/cfn_threat_entity_set.rb
Overview
Describes a tag.
For more information, see Tag .
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The tag key.
-
#value ⇒ String
readonly
The tag value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ TagItemProperty
constructor
A new instance of TagItemProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ TagItemProperty
Returns a new instance of TagItemProperty.
629 630 631 632 633 634 |
# File 'guard_duty/cfn_threat_entity_set.rb', line 629 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 tag key.
640 641 642 |
# File 'guard_duty/cfn_threat_entity_set.rb', line 640 def key @key end |
#value ⇒ String (readonly)
The tag value.
This is optional.
647 648 649 |
# File 'guard_duty/cfn_threat_entity_set.rb', line 647 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
649 650 651 652 653 654 |
# File 'guard_duty/cfn_threat_entity_set.rb', line 649 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
656 657 658 659 660 661 662 663 |
# File 'guard_duty/cfn_threat_entity_set.rb', line 656 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |