| 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.ListApprovedOrigins
Description
This API is in preview release for Amazon Connect and is subject to change.
Returns a paginated list of all approved origins associated with the instance.
This operation returns paginated results.
Synopsis
- data ListApprovedOrigins = ListApprovedOrigins' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- instanceId :: Text
- newListApprovedOrigins :: Text -> ListApprovedOrigins
- listApprovedOrigins_maxResults :: Lens' ListApprovedOrigins (Maybe Natural)
- listApprovedOrigins_nextToken :: Lens' ListApprovedOrigins (Maybe Text)
- listApprovedOrigins_instanceId :: Lens' ListApprovedOrigins Text
- data ListApprovedOriginsResponse = ListApprovedOriginsResponse' {}
- newListApprovedOriginsResponse :: Int -> ListApprovedOriginsResponse
- listApprovedOriginsResponse_nextToken :: Lens' ListApprovedOriginsResponse (Maybe Text)
- listApprovedOriginsResponse_origins :: Lens' ListApprovedOriginsResponse (Maybe [Text])
- listApprovedOriginsResponse_httpStatus :: Lens' ListApprovedOriginsResponse Int
Creating a Request
data ListApprovedOrigins Source #
See: newListApprovedOrigins smart constructor.
Constructors
| ListApprovedOrigins' | |
Fields
| |
Instances
newListApprovedOrigins Source #
Arguments
| :: Text | |
| -> ListApprovedOrigins |
Create a value of ListApprovedOrigins 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:ListApprovedOrigins', listApprovedOrigins_maxResults - The maximum number of results to return per page.
ListApprovedOrigins, listApprovedOrigins_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.
ListApprovedOrigins, listApprovedOrigins_instanceId - The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
Request Lenses
listApprovedOrigins_maxResults :: Lens' ListApprovedOrigins (Maybe Natural) Source #
The maximum number of results to return per page.
listApprovedOrigins_nextToken :: Lens' ListApprovedOrigins (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.
listApprovedOrigins_instanceId :: Lens' ListApprovedOrigins Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
Destructuring the Response
data ListApprovedOriginsResponse Source #
See: newListApprovedOriginsResponse smart constructor.
Constructors
| ListApprovedOriginsResponse' | |
Instances
newListApprovedOriginsResponse Source #
Create a value of ListApprovedOriginsResponse 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:
ListApprovedOrigins, listApprovedOriginsResponse_nextToken - If there are additional results, this is the token for the next set of
results.
$sel:origins:ListApprovedOriginsResponse', listApprovedOriginsResponse_origins - The approved origins.
$sel:httpStatus:ListApprovedOriginsResponse', listApprovedOriginsResponse_httpStatus - The response's http status code.
Response Lenses
listApprovedOriginsResponse_nextToken :: Lens' ListApprovedOriginsResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listApprovedOriginsResponse_origins :: Lens' ListApprovedOriginsResponse (Maybe [Text]) Source #
The approved origins.
listApprovedOriginsResponse_httpStatus :: Lens' ListApprovedOriginsResponse Int Source #
The response's http status code.