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 |
Synopsis
- data EventInfo = EventInfo' {}
- newEventInfo :: EventInfo
- eventInfo_state :: Lens' EventInfo (Maybe Text)
- eventInfo_name :: Lens' EventInfo (Maybe Text)
Documentation
Information about an event. The event might be a push, pull request, scheduled request, or another type of event.
See: newEventInfo
smart constructor.
Instances
Eq EventInfo Source # | |
Read EventInfo Source # | |
Show EventInfo Source # | |
Generic EventInfo Source # | |
NFData EventInfo Source # | |
Defined in Amazonka.CodeGuruReviewer.Types.EventInfo | |
Hashable EventInfo Source # | |
Defined in Amazonka.CodeGuruReviewer.Types.EventInfo | |
ToJSON EventInfo Source # | |
Defined in Amazonka.CodeGuruReviewer.Types.EventInfo | |
FromJSON EventInfo Source # | |
type Rep EventInfo Source # | |
Defined in Amazonka.CodeGuruReviewer.Types.EventInfo type Rep EventInfo = D1 ('MetaData "EventInfo" "Amazonka.CodeGuruReviewer.Types.EventInfo" "libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer" 'False) (C1 ('MetaCons "EventInfo'" 'PrefixI 'True) (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
newEventInfo :: EventInfo Source #
Create a value of EventInfo
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:state:EventInfo'
, eventInfo_state
- The state of an event. The state might be open, closed, or another
state.
$sel:name:EventInfo'
, eventInfo_name
- The name of the event. The possible names are pull_request
,
workflow_dispatch
, schedule
, and push