Class: AWSCDK::GuardDuty::CfnPublishingDestination::TagItemProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GuardDuty::CfnPublishingDestination::TagItemProperty
- Defined in:
- guard_duty/cfn_publishing_destination.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.
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
#key ⇒ String (readonly)
The tag key.
625 626 627 |
# File 'guard_duty/cfn_publishing_destination.rb', line 625 def key @key end |
#value ⇒ String (readonly)
The tag value.
630 631 632 |
# File 'guard_duty/cfn_publishing_destination.rb', line 630 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |