amazonka-glue-2.0: Amazon Glue SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Glue.Types.Condition

Description

 
Synopsis

Documentation

data Condition Source #

Defines a condition under which a trigger fires.

See: newCondition smart constructor.

Constructors

Condition' 

Fields

  • crawlState :: Maybe CrawlState

    The state of the crawler to which this condition applies.

  • crawlerName :: Maybe Text

    The name of the crawler to which this condition applies.

  • jobName :: Maybe Text

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

  • logicalOperator :: Maybe LogicalOperator

    A logical operator.

  • state :: Maybe JobRunState

    The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.

Instances

Instances details
FromJSON Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

ToJSON Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

Generic Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

Associated Types

type Rep Condition :: Type -> Type #

Read Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

Show Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

NFData Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

Methods

rnf :: Condition -> () #

Eq Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

Hashable Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

type Rep Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

newCondition :: Condition Source #

Create a value of Condition with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:crawlState:Condition', condition_crawlState - The state of the crawler to which this condition applies.

$sel:crawlerName:Condition', condition_crawlerName - The name of the crawler to which this condition applies.

$sel:jobName:Condition', condition_jobName - The name of the job whose JobRuns this condition applies to, and on which this trigger waits.

$sel:logicalOperator:Condition', condition_logicalOperator - A logical operator.

$sel:state:Condition', condition_state - The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.

condition_crawlState :: Lens' Condition (Maybe CrawlState) Source #

The state of the crawler to which this condition applies.

condition_crawlerName :: Lens' Condition (Maybe Text) Source #

The name of the crawler to which this condition applies.

condition_jobName :: Lens' Condition (Maybe Text) Source #

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

condition_state :: Lens' Condition (Maybe JobRunState) Source #

The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.