Class: AWSCDK::GuardDuty::CfnPublishingDestination::TagItemProperty

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



614
615
616
617
618
619
# File 'guard_duty/cfn_publishing_destination.rb', line 614

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.



625
626
627
# File 'guard_duty/cfn_publishing_destination.rb', line 625

def key
  @key
end

#valueString (readonly)

The tag value.



630
631
632
# File 'guard_duty/cfn_publishing_destination.rb', line 630

def value
  @value
end

Class Method Details

.jsii_propertiesObject



632
633
634
635
636
637
# File 'guard_duty/cfn_publishing_destination.rb', line 632

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

Instance Method Details

#to_jsiiObject



639
640
641
642
643
644
645
646
# File 'guard_duty/cfn_publishing_destination.rb', line 639

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