Class: AWSCDK::Glue::CfnTrigger::PredicateProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_trigger.rb

Overview

Defines the predicate of the trigger, which determines when it fires.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(conditions: nil, logical: nil) ⇒ PredicateProperty

Returns a new instance of PredicateProperty.

Parameters:



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

#conditionsAWSCDK::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

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



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_jsiiObject



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