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 |
Returns a list of audience segments that you have created in your account in this Region.
This operation returns paginated results.
Synopsis
- data ListSegments = ListSegments' {}
- newListSegments :: ListSegments
- listSegments_maxResults :: Lens' ListSegments (Maybe Natural)
- listSegments_nextToken :: Lens' ListSegments (Maybe Text)
- data ListSegmentsResponse = ListSegmentsResponse' {}
- newListSegmentsResponse :: Int -> ListSegmentsResponse
- listSegmentsResponse_nextToken :: Lens' ListSegmentsResponse (Maybe Text)
- listSegmentsResponse_segments :: Lens' ListSegmentsResponse (Maybe [Segment])
- listSegmentsResponse_httpStatus :: Lens' ListSegmentsResponse Int
Creating a Request
data ListSegments Source #
See: newListSegments
smart constructor.
Instances
newListSegments :: ListSegments Source #
Create a value of ListSegments
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:ListSegments'
, listSegments_maxResults
- The maximum number of results to include in the response. If you omit
this, the default of 50 is used.
ListSegments
, listSegments_nextToken
- The token to use when requesting the next set of results. You received
this token from a previous ListSegments
operation.
Request Lenses
listSegments_maxResults :: Lens' ListSegments (Maybe Natural) Source #
The maximum number of results to include in the response. If you omit this, the default of 50 is used.
listSegments_nextToken :: Lens' ListSegments (Maybe Text) Source #
The token to use when requesting the next set of results. You received
this token from a previous ListSegments
operation.
Destructuring the Response
data ListSegmentsResponse Source #
See: newListSegmentsResponse
smart constructor.
Instances
newListSegmentsResponse Source #
Create a value of ListSegmentsResponse
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:
ListSegments
, listSegmentsResponse_nextToken
- The token to use in a subsequent ListSegments
operation to return the
next set of results.
$sel:segments:ListSegmentsResponse'
, listSegmentsResponse_segments
- An array of structures that contain information about the segments in
this Region.
$sel:httpStatus:ListSegmentsResponse'
, listSegmentsResponse_httpStatus
- The response's http status code.
Response Lenses
listSegmentsResponse_nextToken :: Lens' ListSegmentsResponse (Maybe Text) Source #
The token to use in a subsequent ListSegments
operation to return the
next set of results.
listSegmentsResponse_segments :: Lens' ListSegmentsResponse (Maybe [Segment]) Source #
An array of structures that contain information about the segments in this Region.
listSegmentsResponse_httpStatus :: Lens' ListSegmentsResponse Int Source #
The response's http status code.