Class: AWSCDK::GuardDuty::CfnMalwareProtectionPlan::TagItemProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
guard_duty/cfn_malware_protection_plan.rb

Overview

Describes a tag.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ TagItemProperty

Returns a new instance of TagItemProperty.

Parameters:

  • key (String)

    The tag key.

  • value (String)

    The tag value.



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

#keyString (readonly)

The tag key.



825
826
827
# File 'guard_duty/cfn_malware_protection_plan.rb', line 825

def key
  @key
end

#valueString (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_propertiesObject



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_jsiiObject



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