| 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.Batch.ListSchedulingPolicies
Description
Returns a list of Batch scheduling policies.
This operation returns paginated results.
Synopsis
- data ListSchedulingPolicies = ListSchedulingPolicies' {}
- newListSchedulingPolicies :: ListSchedulingPolicies
- listSchedulingPolicies_maxResults :: Lens' ListSchedulingPolicies (Maybe Int)
- listSchedulingPolicies_nextToken :: Lens' ListSchedulingPolicies (Maybe Text)
- data ListSchedulingPoliciesResponse = ListSchedulingPoliciesResponse' {}
- newListSchedulingPoliciesResponse :: Int -> ListSchedulingPoliciesResponse
- listSchedulingPoliciesResponse_nextToken :: Lens' ListSchedulingPoliciesResponse (Maybe Text)
- listSchedulingPoliciesResponse_schedulingPolicies :: Lens' ListSchedulingPoliciesResponse (Maybe [SchedulingPolicyListingDetail])
- listSchedulingPoliciesResponse_httpStatus :: Lens' ListSchedulingPoliciesResponse Int
Creating a Request
data ListSchedulingPolicies Source #
Contains the parameters for ListSchedulingPolicies.
See: newListSchedulingPolicies smart constructor.
Constructors
| ListSchedulingPolicies' | |
Fields
| |
Instances
newListSchedulingPolicies :: ListSchedulingPolicies Source #
Create a value of ListSchedulingPolicies 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:maxResults:ListSchedulingPolicies', listSchedulingPolicies_maxResults - The maximum number of results that's returned by
ListSchedulingPolicies in paginated output. When this parameter is
used, ListSchedulingPolicies only returns maxResults results in a
single page and a nextToken response element. You can see the
remaining results of the initial request by sending another
ListSchedulingPolicies request with the returned nextToken value.
This value can be between 1 and 100. If this parameter isn't used,
ListSchedulingPolicies returns up to 100 results and a nextToken
value if applicable.
ListSchedulingPolicies, listSchedulingPolicies_nextToken - The nextToken value that's returned from a previous paginated
ListSchedulingPolicies request where maxResults was used and the
results exceeded the value of that parameter. Pagination continues from
the end of the previous results that returned the nextToken value.
This value is null when there are no more results to return.
Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes.
Request Lenses
listSchedulingPolicies_maxResults :: Lens' ListSchedulingPolicies (Maybe Int) Source #
The maximum number of results that's returned by
ListSchedulingPolicies in paginated output. When this parameter is
used, ListSchedulingPolicies only returns maxResults results in a
single page and a nextToken response element. You can see the
remaining results of the initial request by sending another
ListSchedulingPolicies request with the returned nextToken value.
This value can be between 1 and 100. If this parameter isn't used,
ListSchedulingPolicies returns up to 100 results and a nextToken
value if applicable.
listSchedulingPolicies_nextToken :: Lens' ListSchedulingPolicies (Maybe Text) Source #
The nextToken value that's returned from a previous paginated
ListSchedulingPolicies request where maxResults was used and the
results exceeded the value of that parameter. Pagination continues from
the end of the previous results that returned the nextToken value.
This value is null when there are no more results to return.
Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes.
Destructuring the Response
data ListSchedulingPoliciesResponse Source #
See: newListSchedulingPoliciesResponse smart constructor.
Constructors
| ListSchedulingPoliciesResponse' | |
Fields
| |
Instances
newListSchedulingPoliciesResponse Source #
Create a value of ListSchedulingPoliciesResponse 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:
ListSchedulingPolicies, listSchedulingPoliciesResponse_nextToken - The nextToken value to include in a future ListSchedulingPolicies
request. When the results of a ListSchedulingPolicies request exceed
maxResults, this value can be used to retrieve the next page of
results. This value is null when there are no more results to return.
$sel:schedulingPolicies:ListSchedulingPoliciesResponse', listSchedulingPoliciesResponse_schedulingPolicies - A list of scheduling policies that match the request.
$sel:httpStatus:ListSchedulingPoliciesResponse', listSchedulingPoliciesResponse_httpStatus - The response's http status code.
Response Lenses
listSchedulingPoliciesResponse_nextToken :: Lens' ListSchedulingPoliciesResponse (Maybe Text) Source #
The nextToken value to include in a future ListSchedulingPolicies
request. When the results of a ListSchedulingPolicies request exceed
maxResults, this value can be used to retrieve the next page of
results. This value is null when there are no more results to return.
listSchedulingPoliciesResponse_schedulingPolicies :: Lens' ListSchedulingPoliciesResponse (Maybe [SchedulingPolicyListingDetail]) Source #
A list of scheduling policies that match the request.
listSchedulingPoliciesResponse_httpStatus :: Lens' ListSchedulingPoliciesResponse Int Source #
The response's http status code.