list_commands
¶
list_commands(
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 | |