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 ListPresets operation gets a list of the default presets included with Elastic Transcoder and the presets that you've added in an AWS region.
This operation returns paginated results.
Synopsis
- data ListPresets = ListPresets' {}
- newListPresets :: ListPresets
- listPresets_ascending :: Lens' ListPresets (Maybe Text)
- listPresets_pageToken :: Lens' ListPresets (Maybe Text)
- data ListPresetsResponse = ListPresetsResponse' {
- nextPageToken :: Maybe Text
- presets :: Maybe [Preset]
- httpStatus :: Int
- newListPresetsResponse :: Int -> ListPresetsResponse
- listPresetsResponse_nextPageToken :: Lens' ListPresetsResponse (Maybe Text)
- listPresetsResponse_presets :: Lens' ListPresetsResponse (Maybe [Preset])
- listPresetsResponse_httpStatus :: Lens' ListPresetsResponse Int
Creating a Request
data ListPresets Source #
The ListPresetsRequest
structure.
See: newListPresets
smart constructor.
ListPresets' | |
|
Instances
newListPresets :: ListPresets Source #
Create a value of ListPresets
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:ascending:ListPresets'
, listPresets_ascending
- To list presets in chronological order by the date and time that they
were created, enter true
. To list presets in reverse chronological
order, enter false
.
$sel:pageToken:ListPresets'
, listPresets_pageToken
- When Elastic Transcoder returns more than one page of results, use
pageToken
in subsequent GET
requests to get each successive page of
results.
Request Lenses
listPresets_ascending :: Lens' ListPresets (Maybe Text) Source #
To list presets in chronological order by the date and time that they
were created, enter true
. To list presets in reverse chronological
order, enter false
.
listPresets_pageToken :: Lens' ListPresets (Maybe Text) Source #
When Elastic Transcoder returns more than one page of results, use
pageToken
in subsequent GET
requests to get each successive page of
results.
Destructuring the Response
data ListPresetsResponse Source #
The ListPresetsResponse
structure.
See: newListPresetsResponse
smart constructor.
ListPresetsResponse' | |
|
Instances
newListPresetsResponse Source #
Create a value of ListPresetsResponse
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:nextPageToken:ListPresetsResponse'
, listPresetsResponse_nextPageToken
- A value that you use to access the second and subsequent pages of
results, if any. When the presets fit on one page or when you've
reached the last page of results, the value of NextPageToken
is
null
.
$sel:presets:ListPresetsResponse'
, listPresetsResponse_presets
- An array of Preset
objects.
$sel:httpStatus:ListPresetsResponse'
, listPresetsResponse_httpStatus
- The response's http status code.
Response Lenses
listPresetsResponse_nextPageToken :: Lens' ListPresetsResponse (Maybe Text) Source #
A value that you use to access the second and subsequent pages of
results, if any. When the presets fit on one page or when you've
reached the last page of results, the value of NextPageToken
is
null
.
listPresetsResponse_presets :: Lens' ListPresetsResponse (Maybe [Preset]) Source #
An array of Preset
objects.
listPresetsResponse_httpStatus :: Lens' ListPresetsResponse Int Source #
The response's http status code.