Class: AWSCDK::Glue::CfnTrigger::ConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnTrigger::ConditionProperty
- Defined in:
- glue/cfn_trigger.rb
Overview
Defines a condition under which a trigger fires.
Instance Attribute Summary collapse
-
#crawl_state ⇒ String?
readonly
The state of the crawler to which this condition applies.
-
#crawler_name ⇒ String?
readonly
The name of the crawler to which this condition applies.
-
#job_name ⇒ String?
readonly
The name of the job whose
JobRunsthis condition applies to, and on which this trigger waits. -
#logical_operator ⇒ String?
readonly
A logical operator.
-
#state ⇒ String?
readonly
The condition state.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(crawler_name: nil, crawl_state: nil, job_name: nil, logical_operator: nil, state: nil) ⇒ ConditionProperty
constructor
A new instance of ConditionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(crawler_name: nil, crawl_state: nil, job_name: nil, logical_operator: nil, state: nil) ⇒ ConditionProperty
Returns a new instance of ConditionProperty.
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_state ⇒ String? (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_name ⇒ String? (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_name ⇒ String? (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_operator ⇒ String? (readonly)
A logical operator.
771 772 773 |
# File 'glue/cfn_trigger.rb', line 771 def logical_operator @logical_operator end |
#state ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |