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 |
List all related items for an incident record.
This operation returns paginated results.
Synopsis
- data ListRelatedItems = ListRelatedItems' {}
- newListRelatedItems :: Text -> ListRelatedItems
- listRelatedItems_nextToken :: Lens' ListRelatedItems (Maybe Text)
- listRelatedItems_maxResults :: Lens' ListRelatedItems (Maybe Natural)
- listRelatedItems_incidentRecordArn :: Lens' ListRelatedItems Text
- data ListRelatedItemsResponse = ListRelatedItemsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- relatedItems :: [RelatedItem]
- newListRelatedItemsResponse :: Int -> ListRelatedItemsResponse
- listRelatedItemsResponse_nextToken :: Lens' ListRelatedItemsResponse (Maybe Text)
- listRelatedItemsResponse_httpStatus :: Lens' ListRelatedItemsResponse Int
- listRelatedItemsResponse_relatedItems :: Lens' ListRelatedItemsResponse [RelatedItem]
Creating a Request
data ListRelatedItems Source #
See: newListRelatedItems
smart constructor.
ListRelatedItems' | |
|
Instances
Create a value of ListRelatedItems
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:ListRelatedItems'
, listRelatedItems_nextToken
- The pagination token to continue to the next page of results.
$sel:maxResults:ListRelatedItems'
, listRelatedItems_maxResults
- The maximum number of related items per page.
$sel:incidentRecordArn:ListRelatedItems'
, listRelatedItems_incidentRecordArn
- The Amazon Resource Name (ARN) of the incident record that you are
listing related items for.
Request Lenses
listRelatedItems_nextToken :: Lens' ListRelatedItems (Maybe Text) Source #
The pagination token to continue to the next page of results.
listRelatedItems_maxResults :: Lens' ListRelatedItems (Maybe Natural) Source #
The maximum number of related items per page.
listRelatedItems_incidentRecordArn :: Lens' ListRelatedItems Text Source #
The Amazon Resource Name (ARN) of the incident record that you are listing related items for.
Destructuring the Response
data ListRelatedItemsResponse Source #
See: newListRelatedItemsResponse
smart constructor.
ListRelatedItemsResponse' | |
|
Instances
newListRelatedItemsResponse Source #
Create a value of ListRelatedItemsResponse
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:ListRelatedItems'
, listRelatedItemsResponse_nextToken
- The pagination token to continue to the next page of results.
$sel:httpStatus:ListRelatedItemsResponse'
, listRelatedItemsResponse_httpStatus
- The response's http status code.
$sel:relatedItems:ListRelatedItemsResponse'
, listRelatedItemsResponse_relatedItems
- Details about each related item.
Response Lenses
listRelatedItemsResponse_nextToken :: Lens' ListRelatedItemsResponse (Maybe Text) Source #
The pagination token to continue to the next page of results.
listRelatedItemsResponse_httpStatus :: Lens' ListRelatedItemsResponse Int Source #
The response's http status code.
listRelatedItemsResponse_relatedItems :: Lens' ListRelatedItemsResponse [RelatedItem] Source #
Details about each related item.