Class: AWSCDK::Wisdom::CfnAIAgent::TagConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnAIAgent::TagConditionProperty
- Defined in:
- wisdom/cfn_ai_agent.rb
Overview
An object that can be used to specify tag conditions.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The tag key in the tag condition.
-
#value ⇒ String?
readonly
The tag value in the tag condition.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value: nil) ⇒ TagConditionProperty
constructor
A new instance of TagConditionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value: nil) ⇒ TagConditionProperty
Returns a new instance of TagConditionProperty.
1425 1426 1427 1428 1429 1430 |
# File 'wisdom/cfn_ai_agent.rb', line 1425 def initialize(key:, value: nil) @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") unless @value.nil? end |
Instance Attribute Details
#key ⇒ String (readonly)
The tag key in the tag condition.
1436 1437 1438 |
# File 'wisdom/cfn_ai_agent.rb', line 1436 def key @key end |
#value ⇒ String? (readonly)
The tag value in the tag condition.
1441 1442 1443 |
# File 'wisdom/cfn_ai_agent.rb', line 1441 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1443 1444 1445 1446 1447 1448 |
# File 'wisdom/cfn_ai_agent.rb', line 1443 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1450 1451 1452 1453 1454 1455 1456 1457 |
# File 'wisdom/cfn_ai_agent.rb', line 1450 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |