list_commands
async
¶
list_commands(
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
max_results: Optional[CommandMaxResults] = None,
next_token: Optional[NextToken] = None,
namespace: Optional[CommandNamespace] = None,
command_parameter_name: Optional[CommandParameterName] = None,
sort_order: Optional[SortOrder] = None,
) -> ListCommandsResponse
List all commands in your account.
Parameters:
-
max_results(Optional[CommandMaxResults], default:None) –The maximum number of results to return in this operation. By default, the API returns up to a maximum of 25 results. You can override this default value to return up to a maximum of 100 results for this operation.
-
next_token(Optional[NextToken], default:None) –To retrieve the next set of results, the
nextTokenvalue from a previous response; otherwisenullto receive the first set of results. -
namespace(Optional[CommandNamespace], default:None) –The namespace of the command. By default, the API returns all commands that have been created for both
AWS-IoTandAWS-IoT-FleetWisenamespaces. You can override this default value if you want to return all commands that have been created only for a specific namespace. -
command_parameter_name(Optional[CommandParameterName], default:None) –A filter that can be used to display the list of commands that have a specific command parameter name.
-
sort_order(Optional[SortOrder], default:None) –Specify whether to list the commands that you have created in the ascending or descending order. By default, the API returns all commands in the descending order based on the time that they were created.
Raises:
-
InternalServerException–Internal error from the service that indicates an unexpected error or that the service is unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
ValidationException–The request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 | |