| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.Glue.CreateTrigger
Description
Creates a new trigger.
Synopsis
- createTrigger :: Text -> TriggerType -> CreateTrigger
- data CreateTrigger
- ctSchedule :: Lens' CreateTrigger (Maybe Text)
- ctPredicate :: Lens' CreateTrigger (Maybe Predicate)
- ctStartOnCreation :: Lens' CreateTrigger (Maybe Bool)
- ctDescription :: Lens' CreateTrigger (Maybe Text)
- ctName :: Lens' CreateTrigger Text
- ctType :: Lens' CreateTrigger TriggerType
- ctActions :: Lens' CreateTrigger [Action]
- createTriggerResponse :: Int -> CreateTriggerResponse
- data CreateTriggerResponse
- ctrsName :: Lens' CreateTriggerResponse (Maybe Text)
- ctrsResponseStatus :: Lens' CreateTriggerResponse Int
Creating a Request
Arguments
| :: Text | |
| -> TriggerType | |
| -> CreateTrigger |
Creates a value of CreateTrigger with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ctSchedule- Acronexpression 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.ctPredicate- A predicate to specify when the new trigger should fire. This field is required when the trigger type is CONDITIONAL.ctStartOnCreation- Set to true to start SCHEDULED and CONDITIONAL triggers when created. True not supported for ON_DEMAND triggers.ctDescription- A description of the new trigger.ctName- The name of the trigger.ctType- The type of the new trigger.ctActions- The actions initiated by this trigger when it fires.
data CreateTrigger Source #
See: createTrigger smart constructor.
Instances
Request Lenses
ctSchedule :: 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.
ctPredicate :: 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.
ctStartOnCreation :: Lens' CreateTrigger (Maybe Bool) Source #
Set to true to start SCHEDULED and CONDITIONAL triggers when created. True not supported for ON_DEMAND triggers.
ctDescription :: Lens' CreateTrigger (Maybe Text) Source #
A description of the new trigger.
ctType :: Lens' CreateTrigger TriggerType Source #
The type of the new trigger.
ctActions :: Lens' CreateTrigger [Action] Source #
The actions initiated by this trigger when it fires.
Destructuring the Response
createTriggerResponse Source #
Arguments
| :: Int | |
| -> CreateTriggerResponse |
Creates a value of CreateTriggerResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ctrsName- The name of the trigger.ctrsResponseStatus- -- | The response status code.
data CreateTriggerResponse Source #
See: createTriggerResponse smart constructor.
Instances
Response Lenses
ctrsResponseStatus :: Lens' CreateTriggerResponse Int Source #
- - | The response status code.