RoboMaker / Client / list_fleets
list_fleets#
- RoboMaker.Client.list_fleets(**kwargs)#
Warning
End of support notice: On September 10, 2025, Amazon Web Services will discontinue support for Amazon Web Services RoboMaker. After September 10, 2025, you will no longer be able to access the Amazon Web Services RoboMaker console or Amazon Web Services RoboMaker resources. For more information on transitioning to Batch to help run containerized simulations, visit https://aws.amazon.com/blogs/hpc/run-simulations-using-multiple-containers-in-a-single-aws-batch-job/.
Warning
This API is no longer supported. For more information, see the May 2, 2022 update in the Support policy page.
Returns a list of fleets. You can optionally provide filters to retrieve specific fleets.
Danger
This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.
See also: AWS API Documentation
Request Syntax
response = client.list_fleets( nextToken='string', maxResults=123, filters=[ { 'name': 'string', 'values': [ 'string', ] }, ] )
- Parameters:
nextToken (string) –
If the previous paginated request did not return all of the remaining results, the response object’s
nextToken
parameter value is set to a token. To retrieve the next set of results, callListFleets
again and assign that token to the request object’snextToken
parameter. If there are no remaining results, the previous response object’s NextToken parameter is set to null.Note
This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
maxResults (integer) – When this parameter is used,
ListFleets
only returnsmaxResults
results in a single page along with anextToken
response element. The remaining results of the initial request can be seen by sending anotherListFleets
request with the returnednextToken
value. This value can be between 1 and 200. If this parameter is not used, thenListFleets
returns up to 200 results and anextToken
value if applicable.filters (list) –
Optional filters to limit results.
The filter name
name
is supported. When filtering, you must use the complete value of the filtered item. You can use up to three filters.(dict) –
Information about a filter.
name (string) –
The name of the filter.
values (list) –
A list of values.
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'fleetDetails': [ { 'name': 'string', 'arn': 'string', 'createdAt': datetime(2015, 1, 1), 'lastDeploymentStatus': 'Pending'|'Preparing'|'InProgress'|'Failed'|'Succeeded'|'Canceled', 'lastDeploymentJob': 'string', 'lastDeploymentTime': datetime(2015, 1, 1) }, ], 'nextToken': 'string' }
Response Structure
(dict) –
fleetDetails (list) –
A list of fleet details meeting the request criteria.
(dict) –
Information about a fleet.
name (string) –
The name of the fleet.
arn (string) –
The Amazon Resource Name (ARN) of the fleet.
createdAt (datetime) –
The time, in milliseconds since the epoch, when the fleet was created.
lastDeploymentStatus (string) –
The status of the last fleet deployment.
lastDeploymentJob (string) –
The Amazon Resource Name (ARN) of the last deployment job.
lastDeploymentTime (datetime) –
The time of the last deployment.
nextToken (string) –
If the previous paginated request did not return all of the remaining results, the response object’s
nextToken
parameter value is set to a token. To retrieve the next set of results, callListFleets
again and assign that token to the request object’snextToken
parameter. If there are no remaining results, the previous response object’s NextToken parameter is set to null.
Exceptions
RoboMaker.Client.exceptions.ResourceNotFoundException
RoboMaker.Client.exceptions.InvalidParameterException
RoboMaker.Client.exceptions.InternalServerException
RoboMaker.Client.exceptions.ThrottlingException