| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ConnectCases.ListCasesForContact
Description
Lists cases for a given contact.
Synopsis
- data ListCasesForContact = ListCasesForContact' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- contactArn :: Text
- domainId :: Text
- newListCasesForContact :: Text -> Text -> ListCasesForContact
- listCasesForContact_maxResults :: Lens' ListCasesForContact (Maybe Natural)
- listCasesForContact_nextToken :: Lens' ListCasesForContact (Maybe Text)
- listCasesForContact_contactArn :: Lens' ListCasesForContact Text
- listCasesForContact_domainId :: Lens' ListCasesForContact Text
- data ListCasesForContactResponse = ListCasesForContactResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- cases :: [CaseSummary]
- newListCasesForContactResponse :: Int -> ListCasesForContactResponse
- listCasesForContactResponse_nextToken :: Lens' ListCasesForContactResponse (Maybe Text)
- listCasesForContactResponse_httpStatus :: Lens' ListCasesForContactResponse Int
- listCasesForContactResponse_cases :: Lens' ListCasesForContactResponse [CaseSummary]
Creating a Request
data ListCasesForContact Source #
See: newListCasesForContact smart constructor.
Constructors
| ListCasesForContact' | |
Fields
| |
Instances
newListCasesForContact Source #
Arguments
| :: Text | |
| -> Text | |
| -> ListCasesForContact |
Create a value of ListCasesForContact 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:maxResults:ListCasesForContact', listCasesForContact_maxResults - The maximum number of results to return per page.
ListCasesForContact, listCasesForContact_nextToken - The token for the next set of results. Use the value returned in the
previous response in the next request to retrieve the next set of
results.
ListCasesForContact, listCasesForContact_contactArn - A unique identifier of a contact in Amazon Connect.
ListCasesForContact, listCasesForContact_domainId - The unique identifier of the Cases domain.
Request Lenses
listCasesForContact_maxResults :: Lens' ListCasesForContact (Maybe Natural) Source #
The maximum number of results to return per page.
listCasesForContact_nextToken :: Lens' ListCasesForContact (Maybe Text) Source #
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
listCasesForContact_contactArn :: Lens' ListCasesForContact Text Source #
A unique identifier of a contact in Amazon Connect.
listCasesForContact_domainId :: Lens' ListCasesForContact Text Source #
The unique identifier of the Cases domain.
Destructuring the Response
data ListCasesForContactResponse Source #
See: newListCasesForContactResponse smart constructor.
Constructors
| ListCasesForContactResponse' | |
Fields
| |
Instances
newListCasesForContactResponse Source #
Create a value of ListCasesForContactResponse 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:
ListCasesForContact, listCasesForContactResponse_nextToken - The token for the next set of results. This is null if there are no more
results to return.
$sel:httpStatus:ListCasesForContactResponse', listCasesForContactResponse_httpStatus - The response's http status code.
$sel:cases:ListCasesForContactResponse', listCasesForContactResponse_cases - A list of Case summary information.
Response Lenses
listCasesForContactResponse_nextToken :: Lens' ListCasesForContactResponse (Maybe Text) Source #
The token for the next set of results. This is null if there are no more results to return.
listCasesForContactResponse_httpStatus :: Lens' ListCasesForContactResponse Int Source #
The response's http status code.
listCasesForContactResponse_cases :: Lens' ListCasesForContactResponse [CaseSummary] Source #
A list of Case summary information.