Class: AWSCDK::GuardDuty::CfnTrustedEntitySet::TagItemProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GuardDuty::CfnTrustedEntitySet::TagItemProperty
- Defined in:
- guard_duty/cfn_trusted_entity_set.rb
Overview
Describes a tag.
For more information, see 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.
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
#key ⇒ String (readonly)
The tag key.
638 639 640 |
# File 'guard_duty/cfn_trusted_entity_set.rb', line 638 def key @key end |
#value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |