Class: AWSCDK::GuardDuty::CfnMalwareProtectionPlan::TagItemProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GuardDuty::CfnMalwareProtectionPlan::TagItemProperty
- Defined in:
- guard_duty/cfn_malware_protection_plan.rb
Overview
Describes a 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.
814 815 816 817 818 819 |
# File 'guard_duty/cfn_malware_protection_plan.rb', line 814 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.
825 826 827 |
# File 'guard_duty/cfn_malware_protection_plan.rb', line 825 def key @key end |
#value ⇒ String (readonly)
The tag value.
830 831 832 |
# File 'guard_duty/cfn_malware_protection_plan.rb', line 830 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
832 833 834 835 836 837 |
# File 'guard_duty/cfn_malware_protection_plan.rb', line 832 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
839 840 841 842 843 844 845 846 |
# File 'guard_duty/cfn_malware_protection_plan.rb', line 839 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |