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 |
Synopsis
Documentation
data SortCriterion Source #
Specifies a field to sort by and a sort order.
See: newSortCriterion
smart constructor.
Instances
newSortCriterion :: SortCriterion Source #
Create a value of SortCriterion
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:sort:SortCriterion'
, sortCriterion_sort
- An ascending or descending sort.
$sel:fieldName:SortCriterion'
, sortCriterion_fieldName
- The name of the field on which to sort.
sortCriterion_sort :: Lens' SortCriterion (Maybe Sort) Source #
An ascending or descending sort.
sortCriterion_fieldName :: Lens' SortCriterion (Maybe Text) Source #
The name of the field on which to sort.