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 |
Retrieves the definition of a trigger.
Synopsis
- data GetTrigger = GetTrigger' {}
- newGetTrigger :: Text -> GetTrigger
- getTrigger_name :: Lens' GetTrigger Text
- data GetTriggerResponse = GetTriggerResponse' {
- trigger :: Maybe Trigger
- httpStatus :: Int
- newGetTriggerResponse :: Int -> GetTriggerResponse
- getTriggerResponse_trigger :: Lens' GetTriggerResponse (Maybe Trigger)
- getTriggerResponse_httpStatus :: Lens' GetTriggerResponse Int
Creating a Request
data GetTrigger Source #
See: newGetTrigger
smart constructor.
Instances
Create a value of GetTrigger
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:GetTrigger'
, getTrigger_name
- The name of the trigger to retrieve.
Request Lenses
getTrigger_name :: Lens' GetTrigger Text Source #
The name of the trigger to retrieve.
Destructuring the Response
data GetTriggerResponse Source #
See: newGetTriggerResponse
smart constructor.
GetTriggerResponse' | |
|
Instances
newGetTriggerResponse Source #
Create a value of GetTriggerResponse
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:GetTriggerResponse'
, getTriggerResponse_trigger
- The requested trigger definition.
$sel:httpStatus:GetTriggerResponse'
, getTriggerResponse_httpStatus
- The response's http status code.
Response Lenses
getTriggerResponse_trigger :: Lens' GetTriggerResponse (Maybe Trigger) Source #
The requested trigger definition.
getTriggerResponse_httpStatus :: Lens' GetTriggerResponse Int Source #
The response's http status code.