Class: AWSCDK::Wisdom::CfnAIAgent::OrConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnAIAgent::OrConditionProperty
- Defined in:
- wisdom/cfn_ai_agent.rb
Overview
A list of conditions which would be applied together with an OR condition.
Instance Attribute Summary collapse
-
#and_conditions ⇒ AWSCDK::IResolvable, ...
readonly
A list of conditions which would be applied together with an
ANDcondition. -
#tag_condition ⇒ AWSCDK::IResolvable, ...
readonly
A leaf node condition which can be used to specify a tag condition.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(and_conditions: nil, tag_condition: nil) ⇒ OrConditionProperty
constructor
A new instance of OrConditionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(and_conditions: nil, tag_condition: nil) ⇒ OrConditionProperty
Returns a new instance of OrConditionProperty.
1258 1259 1260 1261 1262 1263 |
# File 'wisdom/cfn_ai_agent.rb', line 1258 def initialize(and_conditions: nil, tag_condition: nil) @and_conditions = and_conditions Jsii::Type.check_type(@and_conditions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2lzZG9tLkNmbkFJQWdlbnQuVGFnQ29uZGl0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "andConditions") unless @and_conditions.nil? @tag_condition = tag_condition.is_a?(Hash) ? ::AWSCDK::Wisdom::CfnAIAgent::TagConditionProperty.new(**tag_condition.transform_keys(&:to_sym)) : tag_condition Jsii::Type.check_type(@tag_condition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193aXNkb20uQ2ZuQUlBZ2VudC5UYWdDb25kaXRpb25Qcm9wZXJ0eSJ9XX19")), "tagCondition") unless @tag_condition.nil? end |
Instance Attribute Details
#and_conditions ⇒ AWSCDK::IResolvable, ... (readonly)
A list of conditions which would be applied together with an AND condition.
1269 1270 1271 |
# File 'wisdom/cfn_ai_agent.rb', line 1269 def and_conditions @and_conditions end |
#tag_condition ⇒ AWSCDK::IResolvable, ... (readonly)
A leaf node condition which can be used to specify a tag condition.
1274 1275 1276 |
# File 'wisdom/cfn_ai_agent.rb', line 1274 def tag_condition @tag_condition end |
Class Method Details
.jsii_properties ⇒ Object
1276 1277 1278 1279 1280 1281 |
# File 'wisdom/cfn_ai_agent.rb', line 1276 def self.jsii_properties { :and_conditions => "andConditions", :tag_condition => "tagCondition", } end |
Instance Method Details
#to_jsii ⇒ Object
1283 1284 1285 1286 1287 1288 1289 1290 |
# File 'wisdom/cfn_ai_agent.rb', line 1283 def to_jsii result = {} result.merge!({ "andConditions" => @and_conditions, "tagCondition" => @tag_condition, }) result.compact end |