Copyright | (c) 2013-2021 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 |
Updates a trigger definition.
Synopsis
- data UpdateTrigger = UpdateTrigger' {}
- newUpdateTrigger :: Text -> TriggerUpdate -> UpdateTrigger
- updateTrigger_name :: Lens' UpdateTrigger Text
- updateTrigger_triggerUpdate :: Lens' UpdateTrigger TriggerUpdate
- data UpdateTriggerResponse = UpdateTriggerResponse' {
- trigger :: Maybe Trigger
- httpStatus :: Int
- newUpdateTriggerResponse :: Int -> UpdateTriggerResponse
- updateTriggerResponse_trigger :: Lens' UpdateTriggerResponse (Maybe Trigger)
- updateTriggerResponse_httpStatus :: Lens' UpdateTriggerResponse Int
Creating a Request
data UpdateTrigger Source #
See: newUpdateTrigger
smart constructor.
UpdateTrigger' | |
|
Instances
Create a value of UpdateTrigger
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:UpdateTrigger'
, updateTrigger_name
- The name of the trigger to update.
$sel:triggerUpdate:UpdateTrigger'
, updateTrigger_triggerUpdate
- The new values with which to update the trigger.
Request Lenses
updateTrigger_name :: Lens' UpdateTrigger Text Source #
The name of the trigger to update.
updateTrigger_triggerUpdate :: Lens' UpdateTrigger TriggerUpdate Source #
The new values with which to update the trigger.
Destructuring the Response
data UpdateTriggerResponse Source #
See: newUpdateTriggerResponse
smart constructor.
UpdateTriggerResponse' | |
|
Instances
newUpdateTriggerResponse Source #
Create a value of UpdateTriggerResponse
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:trigger:UpdateTriggerResponse'
, updateTriggerResponse_trigger
- The resulting trigger definition.
$sel:httpStatus:UpdateTriggerResponse'
, updateTriggerResponse_httpStatus
- The response's http status code.
Response Lenses
updateTriggerResponse_trigger :: Lens' UpdateTriggerResponse (Maybe Trigger) Source #
The resulting trigger definition.
updateTriggerResponse_httpStatus :: Lens' UpdateTriggerResponse Int Source #
The response's http status code.