Class: AWSCDK::Glue::CfnTrigger::PredicateProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnTrigger::PredicateProperty
- Defined in:
- glue/cfn_trigger.rb
Overview
Defines the predicate of the trigger, which determines when it fires.
Instance Attribute Summary collapse
-
#conditions ⇒ AWSCDK::IResolvable, ...
readonly
A list of the conditions that determine when the trigger will fire.
-
#logical ⇒ String?
readonly
An optional field if only one condition is listed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(conditions: nil, logical: nil) ⇒ PredicateProperty
constructor
A new instance of PredicateProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(conditions: nil, logical: nil) ⇒ PredicateProperty
Returns a new instance of PredicateProperty.
889 890 891 892 893 894 |
# File 'glue/cfn_trigger.rb', line 889 def initialize(conditions: nil, logical: nil) @conditions = conditions Jsii::Type.check_type(@conditions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ2x1ZS5DZm5UcmlnZ2VyLkNvbmRpdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "conditions") unless @conditions.nil? @logical = logical Jsii::Type.check_type(@logical, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logical") unless @logical.nil? end |
Instance Attribute Details
#conditions ⇒ AWSCDK::IResolvable, ... (readonly)
A list of the conditions that determine when the trigger will fire.
900 901 902 |
# File 'glue/cfn_trigger.rb', line 900 def conditions @conditions end |
#logical ⇒ String? (readonly)
An optional field if only one condition is listed.
If multiple conditions are listed, then this field is required.
907 908 909 |
# File 'glue/cfn_trigger.rb', line 907 def logical @logical end |
Class Method Details
.jsii_properties ⇒ Object
909 910 911 912 913 914 |
# File 'glue/cfn_trigger.rb', line 909 def self.jsii_properties { :conditions => "conditions", :logical => "logical", } end |
Instance Method Details
#to_jsii ⇒ Object
916 917 918 919 920 921 922 923 |
# File 'glue/cfn_trigger.rb', line 916 def to_jsii result = {} result.merge!({ "conditions" => @conditions, "logical" => @logical, }) result.compact end |