Class: AWSCDK::Wisdom::CfnAIAgent::TagConditionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wisdom/cfn_ai_agent.rb

Overview

An object that can be used to specify tag conditions.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value: nil) ⇒ TagConditionProperty

Returns a new instance of TagConditionProperty.

Parameters:

  • key (String)

    The tag key in the tag condition.

  • value (String, nil) (defaults to: nil)

    The tag value in the tag condition.



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

#keyString (readonly)

The tag key in the tag condition.



1436
1437
1438
# File 'wisdom/cfn_ai_agent.rb', line 1436

def key
  @key
end

#valueString? (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_propertiesObject



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_jsiiObject



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