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 |
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.
Synopsis
- data Select = Select' {}
- newSelect :: Text -> Select
- select_consistentRead :: Lens' Select (Maybe Bool)
- select_nextToken :: Lens' Select (Maybe Text)
- select_selectExpression :: Lens' Select Text
- data SelectResponse = SelectResponse' {}
- newSelectResponse :: Int -> SelectResponse
- selectResponse_items :: Lens' SelectResponse (Maybe [Item])
- selectResponse_nextToken :: Lens' SelectResponse (Maybe Text)
- selectResponse_httpStatus :: Lens' SelectResponse Int
Creating a Request
See: newSelect
smart constructor.
Select' | |
|
Instances
Create a value of Select
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:consistentRead:Select'
, select_consistentRead
- Determines whether or not strong consistency should be enforced when
data is read from SimpleDB. If true
, any data previously written to
SimpleDB will be returned. Otherwise, results will be consistent
eventually, and the client may not see data that was written immediately
before your read.
$sel:nextToken:Select'
, select_nextToken
- A string informing Amazon SimpleDB where to start the next list of
ItemNames
.
$sel:selectExpression:Select'
, select_selectExpression
- The expression used to query the domain.
Request Lenses
select_consistentRead :: Lens' Select (Maybe Bool) Source #
Determines whether or not strong consistency should be enforced when
data is read from SimpleDB. If true
, any data previously written to
SimpleDB will be returned. Otherwise, results will be consistent
eventually, and the client may not see data that was written immediately
before your read.
select_nextToken :: Lens' Select (Maybe Text) Source #
A string informing Amazon SimpleDB where to start the next list of
ItemNames
.
Destructuring the Response
data SelectResponse Source #
See: newSelectResponse
smart constructor.
SelectResponse' | |
|
Instances
Create a value of SelectResponse
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:items:SelectResponse'
, selectResponse_items
- A list of items that match the select expression.
$sel:nextToken:Select'
, selectResponse_nextToken
- An opaque token indicating that more items than MaxNumberOfItems
were
matched, the response size exceeded 1 megabyte, or the execution time
exceeded 5 seconds.
$sel:httpStatus:SelectResponse'
, selectResponse_httpStatus
- The response's http status code.
Response Lenses
selectResponse_items :: Lens' SelectResponse (Maybe [Item]) Source #
A list of items that match the select expression.
selectResponse_nextToken :: Lens' SelectResponse (Maybe Text) Source #
An opaque token indicating that more items than MaxNumberOfItems
were
matched, the response size exceeded 1 megabyte, or the execution time
exceeded 5 seconds.
selectResponse_httpStatus :: Lens' SelectResponse Int Source #
The response's http status code.