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 |
Lists all engagements that have happened in an incident.
This operation returns paginated results.
Synopsis
- data ListEngagements = ListEngagements' {}
- newListEngagements :: ListEngagements
- listEngagements_timeRangeValue :: Lens' ListEngagements (Maybe TimeRange)
- listEngagements_nextToken :: Lens' ListEngagements (Maybe Text)
- listEngagements_incidentId :: Lens' ListEngagements (Maybe Text)
- listEngagements_maxResults :: Lens' ListEngagements (Maybe Natural)
- data ListEngagementsResponse = ListEngagementsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- engagements :: [Engagement]
- newListEngagementsResponse :: Int -> ListEngagementsResponse
- listEngagementsResponse_nextToken :: Lens' ListEngagementsResponse (Maybe Text)
- listEngagementsResponse_httpStatus :: Lens' ListEngagementsResponse Int
- listEngagementsResponse_engagements :: Lens' ListEngagementsResponse [Engagement]
Creating a Request
data ListEngagements Source #
See: newListEngagements
smart constructor.
ListEngagements' | |
|
Instances
newListEngagements :: ListEngagements Source #
Create a value of ListEngagements
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:timeRangeValue:ListEngagements'
, listEngagements_timeRangeValue
- The time range to lists engagements for an incident.
$sel:nextToken:ListEngagements'
, listEngagements_nextToken
- The pagination token to continue to the next page of results.
$sel:incidentId:ListEngagements'
, listEngagements_incidentId
- The Amazon Resource Name (ARN) of the incident you're listing
engagements for.
$sel:maxResults:ListEngagements'
, listEngagements_maxResults
- The maximum number of engagements per page of results.
Request Lenses
listEngagements_timeRangeValue :: Lens' ListEngagements (Maybe TimeRange) Source #
The time range to lists engagements for an incident.
listEngagements_nextToken :: Lens' ListEngagements (Maybe Text) Source #
The pagination token to continue to the next page of results.
listEngagements_incidentId :: Lens' ListEngagements (Maybe Text) Source #
The Amazon Resource Name (ARN) of the incident you're listing engagements for.
listEngagements_maxResults :: Lens' ListEngagements (Maybe Natural) Source #
The maximum number of engagements per page of results.
Destructuring the Response
data ListEngagementsResponse Source #
See: newListEngagementsResponse
smart constructor.
ListEngagementsResponse' | |
|
Instances
newListEngagementsResponse Source #
Create a value of ListEngagementsResponse
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:nextToken:ListEngagements'
, listEngagementsResponse_nextToken
- The pagination token to continue to the next page of results.
$sel:httpStatus:ListEngagementsResponse'
, listEngagementsResponse_httpStatus
- The response's http status code.
$sel:engagements:ListEngagementsResponse'
, listEngagementsResponse_engagements
- A list of each engagement that occurred during the specified time range
of an incident.
Response Lenses
listEngagementsResponse_nextToken :: Lens' ListEngagementsResponse (Maybe Text) Source #
The pagination token to continue to the next page of results.
listEngagementsResponse_httpStatus :: Lens' ListEngagementsResponse Int Source #
The response's http status code.
listEngagementsResponse_engagements :: Lens' ListEngagementsResponse [Engagement] Source #
A list of each engagement that occurred during the specified time range of an incident.