| 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 |
Amazonka.MediaConvert.ListPresets
Description
Retrieve a JSON array of up to twenty of your presets. This will return the presets themselves, not just a list of them. To retrieve the next twenty presets, use the nextToken string returned with the array.
This operation returns paginated results.
Synopsis
- data ListPresets = ListPresets' {}
- newListPresets :: ListPresets
- listPresets_category :: Lens' ListPresets (Maybe Text)
- listPresets_listBy :: Lens' ListPresets (Maybe PresetListBy)
- listPresets_maxResults :: Lens' ListPresets (Maybe Natural)
- listPresets_nextToken :: Lens' ListPresets (Maybe Text)
- listPresets_order :: Lens' ListPresets (Maybe Order)
- data ListPresetsResponse = ListPresetsResponse' {}
- newListPresetsResponse :: Int -> ListPresetsResponse
- listPresetsResponse_nextToken :: Lens' ListPresetsResponse (Maybe Text)
- listPresetsResponse_presets :: Lens' ListPresetsResponse (Maybe [Preset])
- listPresetsResponse_httpStatus :: Lens' ListPresetsResponse Int
Creating a Request
data ListPresets Source #
See: newListPresets smart constructor.
Constructors
| ListPresets' | |
Fields
| |
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:
ListPresets, listPresets_category - Optionally, specify a preset category to limit responses to only presets
from that category.
$sel:listBy:ListPresets', listPresets_listBy - Optional. When you request a list of presets, you can choose to list
them alphabetically by NAME or chronologically by CREATION_DATE. If you
don't specify, the service will list them by name.
$sel:maxResults:ListPresets', listPresets_maxResults - Optional. Number of presets, up to twenty, that will be returned at one
time
ListPresets, listPresets_nextToken - Use this string, provided with the response to a previous request, to
request the next batch of presets.
$sel:order:ListPresets', listPresets_order - Optional. When you request lists of resources, you can specify whether
they are sorted in ASCENDING or DESCENDING order. Default varies by
resource.
Request Lenses
listPresets_category :: Lens' ListPresets (Maybe Text) Source #
Optionally, specify a preset category to limit responses to only presets from that category.
listPresets_listBy :: Lens' ListPresets (Maybe PresetListBy) Source #
Optional. When you request a list of presets, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
listPresets_maxResults :: Lens' ListPresets (Maybe Natural) Source #
Optional. Number of presets, up to twenty, that will be returned at one time
listPresets_nextToken :: Lens' ListPresets (Maybe Text) Source #
Use this string, provided with the response to a previous request, to request the next batch of presets.
listPresets_order :: Lens' ListPresets (Maybe Order) Source #
Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
Destructuring the Response
data ListPresetsResponse Source #
See: newListPresetsResponse smart constructor.
Constructors
| ListPresetsResponse' | |
Instances
newListPresetsResponse Source #
Arguments
| :: Int | |
| -> ListPresetsResponse |
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:
ListPresets, listPresetsResponse_nextToken - Use this string to request the next batch of presets.
$sel:presets:ListPresetsResponse', listPresetsResponse_presets - List of presets
$sel:httpStatus:ListPresetsResponse', listPresetsResponse_httpStatus - The response's http status code.
Response Lenses
listPresetsResponse_nextToken :: Lens' ListPresetsResponse (Maybe Text) Source #
Use this string to request the next batch of presets.
listPresetsResponse_presets :: Lens' ListPresetsResponse (Maybe [Preset]) Source #
List of presets
listPresetsResponse_httpStatus :: Lens' ListPresetsResponse Int Source #
The response's http status code.