Class: AWSCDK::GuardDuty::CfnTrustedEntitySet::TagItemProperty

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

Overview

Describes a tag.

For more information, see 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.



627
628
629
630
631
632
# File 'guard_duty/cfn_trusted_entity_set.rb', line 627

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.



638
639
640
# File 'guard_duty/cfn_trusted_entity_set.rb', line 638

def key
  @key
end

#valueString (readonly)

The tag value.

This is optional.



645
646
647
# File 'guard_duty/cfn_trusted_entity_set.rb', line 645

def value
  @value
end

Class Method Details

.jsii_propertiesObject



647
648
649
650
651
652
# File 'guard_duty/cfn_trusted_entity_set.rb', line 647

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

Instance Method Details

#to_jsiiObject



654
655
656
657
658
659
660
661
# File 'guard_duty/cfn_trusted_entity_set.rb', line 654

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