libZSservicesZSamazonka-glueZSamazonka-glue
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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.

  • 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.

  • 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.

  • crawlerName :: Maybe Text

    The name of the crawler to which this condition applies.

Instances

Instances details
Eq Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

Read Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

Show 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 #

NFData Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

Methods

rnf :: Condition -> () #

Hashable Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

ToJSON Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

FromJSON Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

type Rep Condition Source # 
Instance details

Defined in Amazonka.Glue.Types.Condition

type Rep Condition = D1 ('MetaData "Condition" "Amazonka.Glue.Types.Condition" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "Condition'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "crawlState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CrawlState)) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobRunState))) :*: (S1 ('MetaSel ('Just "jobName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "logicalOperator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LogicalOperator)) :*: S1 ('MetaSel ('Just "crawlerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

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: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.

$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:crawlerName:Condition', condition_crawlerName - The name of the crawler to which this condition applies.

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

The state of the crawler to which this condition applies.

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.

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_crawlerName :: Lens' Condition (Maybe Text) Source #

The name of the crawler to which this condition applies.