Batch.Client.
list_scheduling_policies
(**kwargs)¶Returns a list of Batch scheduling policies.
See also: AWS API Documentation
Request Syntax
response = client.list_scheduling_policies(
maxResults=123,
nextToken='string'
)
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.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.
Note
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.
dict
Response Syntax
{
'schedulingPolicies': [
{
'arn': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
schedulingPolicies (list) --
A list of scheduling policies that match the request.
(dict) --
An object that contains the details of a scheduling policy that's returned in a ListSchedulingPolicy
action.
arn (string) --
Amazon Resource Name (ARN) of the scheduling policy.
nextToken (string) --
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.
Exceptions
Batch.Client.exceptions.ClientException
Batch.Client.exceptions.ServerException