Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
The Select
operation returns a set of attributes for ItemNames
that match the select expression. Select
is similar to the standard SQL SELECT statement.
The total size of the response cannot exceed 1 MB in total size. Amazon SimpleDB automatically adjusts the number of items returned per page to enforce this limit. For example, if the client asks to retrieve 2500 items, but each individual item is 10 kB in size, the system returns 100 items and an appropriate NextToken
so the client can access the next page of results.
For information on how to construct select expressions, see Using Select to Create Amazon SimpleDB Queries in the Developer Guide.
This operation returns paginated results.
- select :: Text -> Select
- data Select
- sConsistentRead :: Lens' Select (Maybe Bool)
- sNextToken :: Lens' Select (Maybe Text)
- sSelectExpression :: Lens' Select Text
- selectResponse :: Int -> SelectResponse
- data SelectResponse
- srsItems :: Lens' SelectResponse [Item]
- srsNextToken :: Lens' SelectResponse (Maybe Text)
- srsResponseStatus :: Lens' SelectResponse Int
Creating a Request
Creates a value of Select
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sConsistentRead
-true
sNextToken
-ItemNames
sSelectExpression
- The expression used to query the domain.
See: select
smart constructor.
Request Lenses
Destructuring the Response
Creates a value of SelectResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
srsItems
- A list of items that match the select expression.srsNextToken
-MaxNumberOfItems
srsResponseStatus
- -- | The response status code.
data SelectResponse Source #
See: selectResponse
smart constructor.
Response Lenses
srsNextToken :: Lens' SelectResponse (Maybe Text) Source #
MaxNumberOfItems
srsResponseStatus :: Lens' SelectResponse Int Source #
- - | The response status code.