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 |
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' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- instanceId :: Text
- newListApprovedOrigins :: Text -> ListApprovedOrigins
- listApprovedOrigins_nextToken :: Lens' ListApprovedOrigins (Maybe Text)
- listApprovedOrigins_maxResults :: Lens' ListApprovedOrigins (Maybe Natural)
- 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.
ListApprovedOrigins' | |
|
Instances
newListApprovedOrigins Source #
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:nextToken: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.
$sel:maxResults:ListApprovedOrigins'
, listApprovedOrigins_maxResults
- The maximum number of results to return per page.
$sel:instanceId:ListApprovedOrigins'
, listApprovedOrigins_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
Request Lenses
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_maxResults :: Lens' ListApprovedOrigins (Maybe Natural) Source #
The maximum number of results to return per page.
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.
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:
$sel:nextToken: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.