Class: AWSCDK::GuardDuty::CfnDetector::TagItemProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
guard_duty/cfn_detector.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.



904
905
906
907
908
909
# File 'guard_duty/cfn_detector.rb', line 904

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.



915
916
917
# File 'guard_duty/cfn_detector.rb', line 915

def key
  @key
end

#valueString (readonly)

The tag value.



920
921
922
# File 'guard_duty/cfn_detector.rb', line 920

def value
  @value
end

Class Method Details

.jsii_propertiesObject



922
923
924
925
926
927
# File 'guard_duty/cfn_detector.rb', line 922

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

Instance Method Details

#to_jsiiObject



929
930
931
932
933
934
935
936
# File 'guard_duty/cfn_detector.rb', line 929

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