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

Description

Creates a new trigger.

Synopsis

Creating a Request

data CreateTrigger Source #

See: newCreateTrigger smart constructor.

Constructors

CreateTrigger' 

Fields

Instances

Instances details
Eq CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

Read CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

Show CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

Generic CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

Associated Types

type Rep CreateTrigger :: Type -> Type #

NFData CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

Methods

rnf :: CreateTrigger -> () #

Hashable CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

ToJSON CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

AWSRequest CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

Associated Types

type AWSResponse CreateTrigger #

ToHeaders CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

ToPath CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

ToQuery CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

type Rep CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

type AWSResponse CreateTrigger Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

newCreateTrigger Source #

Create a value of CreateTrigger 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:workflowName:CreateTrigger', createTrigger_workflowName - The name of the workflow associated with the trigger.

$sel:schedule:CreateTrigger', createTrigger_schedule - A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

This field is required when the trigger type is SCHEDULED.

$sel:predicate:CreateTrigger', createTrigger_predicate - A predicate to specify when the new trigger should fire.

This field is required when the trigger type is CONDITIONAL.

$sel:startOnCreation:CreateTrigger', createTrigger_startOnCreation - Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.

$sel:eventBatchingCondition:CreateTrigger', createTrigger_eventBatchingCondition - Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

$sel:description:CreateTrigger', createTrigger_description - A description of the new trigger.

$sel:tags:CreateTrigger', createTrigger_tags - The tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.

$sel:name:CreateTrigger', createTrigger_name - The name of the trigger.

$sel:type':CreateTrigger', createTrigger_type - The type of the new trigger.

$sel:actions:CreateTrigger', createTrigger_actions - The actions initiated by this trigger when it fires.

Request Lenses

createTrigger_workflowName :: Lens' CreateTrigger (Maybe Text) Source #

The name of the workflow associated with the trigger.

createTrigger_schedule :: Lens' CreateTrigger (Maybe Text) Source #

A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

This field is required when the trigger type is SCHEDULED.

createTrigger_predicate :: Lens' CreateTrigger (Maybe Predicate) Source #

A predicate to specify when the new trigger should fire.

This field is required when the trigger type is CONDITIONAL.

createTrigger_startOnCreation :: Lens' CreateTrigger (Maybe Bool) Source #

Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.

createTrigger_eventBatchingCondition :: Lens' CreateTrigger (Maybe EventBatchingCondition) Source #

Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

createTrigger_description :: Lens' CreateTrigger (Maybe Text) Source #

A description of the new trigger.

createTrigger_tags :: Lens' CreateTrigger (Maybe (HashMap Text Text)) Source #

The tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.

createTrigger_name :: Lens' CreateTrigger Text Source #

The name of the trigger.

createTrigger_type :: Lens' CreateTrigger TriggerType Source #

The type of the new trigger.

createTrigger_actions :: Lens' CreateTrigger [Action] Source #

The actions initiated by this trigger when it fires.

Destructuring the Response

data CreateTriggerResponse Source #

See: newCreateTriggerResponse smart constructor.

Constructors

CreateTriggerResponse' 

Fields

Instances

Instances details
Eq CreateTriggerResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

Read CreateTriggerResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

Show CreateTriggerResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

Generic CreateTriggerResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

Associated Types

type Rep CreateTriggerResponse :: Type -> Type #

NFData CreateTriggerResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

Methods

rnf :: CreateTriggerResponse -> () #

type Rep CreateTriggerResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTrigger

type Rep CreateTriggerResponse = D1 ('MetaData "CreateTriggerResponse" "Amazonka.Glue.CreateTrigger" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "CreateTriggerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateTriggerResponse Source #

Create a value of CreateTriggerResponse 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:name:CreateTrigger', createTriggerResponse_name - The name of the trigger.

$sel:httpStatus:CreateTriggerResponse', createTriggerResponse_httpStatus - The response's http status code.

Response Lenses