Class: AWSCDK::Glue::CfnTrigger::ConditionProperty

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

Overview

Defines a condition under which a trigger fires.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(crawler_name: nil, crawl_state: nil, job_name: nil, logical_operator: nil, state: nil) ⇒ ConditionProperty

Returns a new instance of ConditionProperty.

Parameters:

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

    The name of the crawler to which this condition applies.

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

    The state of the crawler to which this condition applies.

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

    The name of the job whose JobRuns this condition applies to, and on which this trigger waits.

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

    A logical operator.

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

    The condition state.



739
740
741
742
743
744
745
746
747
748
749
750
# File 'glue/cfn_trigger.rb', line 739

def initialize(crawler_name: nil, crawl_state: nil, job_name: nil, logical_operator: nil, state: nil)
  @crawler_name = crawler_name
  Jsii::Type.check_type(@crawler_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "crawlerName") unless @crawler_name.nil?
  @crawl_state = crawl_state
  Jsii::Type.check_type(@crawl_state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "crawlState") unless @crawl_state.nil?
  @job_name = job_name
  Jsii::Type.check_type(@job_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jobName") unless @job_name.nil?
  @logical_operator = logical_operator
  Jsii::Type.check_type(@logical_operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logicalOperator") unless @logical_operator.nil?
  @state = state
  Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "state") unless @state.nil?
end

Instance Attribute Details

#crawl_stateString? (readonly)

The state of the crawler to which this condition applies.



761
762
763
# File 'glue/cfn_trigger.rb', line 761

def crawl_state
  @crawl_state
end

#crawler_nameString? (readonly)

The name of the crawler to which this condition applies.



756
757
758
# File 'glue/cfn_trigger.rb', line 756

def crawler_name
  @crawler_name
end

#job_nameString? (readonly)

The name of the job whose JobRuns this condition applies to, and on which this trigger waits.



766
767
768
# File 'glue/cfn_trigger.rb', line 766

def job_name
  @job_name
end

#logical_operatorString? (readonly)

A logical operator.



771
772
773
# File 'glue/cfn_trigger.rb', line 771

def logical_operator
  @logical_operator
end

#stateString? (readonly)

The condition state.

Currently, the values supported are SUCCEEDED , STOPPED , TIMEOUT , and FAILED .



778
779
780
# File 'glue/cfn_trigger.rb', line 778

def state
  @state
end

Class Method Details

.jsii_propertiesObject



780
781
782
783
784
785
786
787
788
# File 'glue/cfn_trigger.rb', line 780

def self.jsii_properties
  {
    :crawler_name => "crawlerName",
    :crawl_state => "crawlState",
    :job_name => "jobName",
    :logical_operator => "logicalOperator",
    :state => "state",
  }
end

Instance Method Details

#to_jsiiObject



790
791
792
793
794
795
796
797
798
799
800
# File 'glue/cfn_trigger.rb', line 790

def to_jsii
  result = {}
  result.merge!({
    "crawlerName" => @crawler_name,
    "crawlState" => @crawl_state,
    "jobName" => @job_name,
    "logicalOperator" => @logical_operator,
    "state" => @state,
  })
  result.compact
end