| 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.Connect.ListPrompts
Description
Provides information about the prompts for the specified Amazon Connect instance.
This operation returns paginated results.
Synopsis
- data ListPrompts = ListPrompts' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- instanceId :: Text
- newListPrompts :: Text -> ListPrompts
- listPrompts_maxResults :: Lens' ListPrompts (Maybe Natural)
- listPrompts_nextToken :: Lens' ListPrompts (Maybe Text)
- listPrompts_instanceId :: Lens' ListPrompts Text
- data ListPromptsResponse = ListPromptsResponse' {}
- newListPromptsResponse :: Int -> ListPromptsResponse
- listPromptsResponse_nextToken :: Lens' ListPromptsResponse (Maybe Text)
- listPromptsResponse_promptSummaryList :: Lens' ListPromptsResponse (Maybe [PromptSummary])
- listPromptsResponse_httpStatus :: Lens' ListPromptsResponse Int
Creating a Request
data ListPrompts Source #
See: newListPrompts smart constructor.
Constructors
| ListPrompts' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListPrompts |
Create a value of ListPrompts 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:ListPrompts', listPrompts_maxResults - The maximum number of results to return per page. The default MaxResult
size is 100.
ListPrompts, listPrompts_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.
ListPrompts, listPrompts_instanceId - The identifier of the Amazon Connect instance.
Request Lenses
listPrompts_maxResults :: Lens' ListPrompts (Maybe Natural) Source #
The maximum number of results to return per page. The default MaxResult size is 100.
listPrompts_nextToken :: Lens' ListPrompts (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.
listPrompts_instanceId :: Lens' ListPrompts Text Source #
The identifier of the Amazon Connect instance.
Destructuring the Response
data ListPromptsResponse Source #
See: newListPromptsResponse smart constructor.
Constructors
| ListPromptsResponse' | |
Fields
| |
Instances
newListPromptsResponse Source #
Arguments
| :: Int | |
| -> ListPromptsResponse |
Create a value of ListPromptsResponse 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:
ListPrompts, listPromptsResponse_nextToken - If there are additional results, this is the token for the next set of
results.
$sel:promptSummaryList:ListPromptsResponse', listPromptsResponse_promptSummaryList - Information about the prompts.
$sel:httpStatus:ListPromptsResponse', listPromptsResponse_httpStatus - The response's http status code.
Response Lenses
listPromptsResponse_nextToken :: Lens' ListPromptsResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listPromptsResponse_promptSummaryList :: Lens' ListPromptsResponse (Maybe [PromptSummary]) Source #
Information about the prompts.
listPromptsResponse_httpStatus :: Lens' ListPromptsResponse Int Source #
The response's http status code.