| Copyright | (c) 2013-2017 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.
- createTrigger :: Text -> TriggerType -> CreateTrigger
- data CreateTrigger
- ctSchedule :: Lens' CreateTrigger (Maybe Text)
- ctPredicate :: Lens' CreateTrigger (Maybe Predicate)
- 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 * * ? *).ctPredicate- A predicate to specify when the new trigger should fire.ctDescription- A description of the new trigger.ctName- The name to assign to the new 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 * * ? *) .
ctPredicate :: Lens' CreateTrigger (Maybe Predicate) Source #
A predicate to specify when the new trigger should fire.
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 assigned to the new trigger.ctrsResponseStatus- -- | The response status code.
data CreateTriggerResponse Source #
See: createTriggerResponse smart constructor.
Response Lenses
ctrsResponseStatus :: Lens' CreateTriggerResponse Int Source #
- - | The response status code.