list_command_executions
async
¶
list_command_executions(
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
max_results: Optional[CommandMaxResults] = None,
next_token: Optional[NextToken] = None,
namespace: Optional[CommandNamespace] = None,
status: Optional[CommandExecutionStatus] = None,
sort_order: Optional[SortOrder] = None,
started_time_filter: Optional[TimeFilter] = None,
completed_time_filter: Optional[TimeFilter] = None,
target_arn: Optional[TargetArn] = None,
command_arn: Optional[CommandArn] = None,
) -> ListCommandExecutionsResponse
List all command executions.
-
You must provide only the
startedTimeFilteror thecompletedTimeFilterinformation. If you provide both time filters, the API will generate an error. You can use this information to retrieve a list of command executions within a specific timeframe. -
You must provide only the
commandArnor thethingArninformation depending on whether you want to list executions for a specific command or an IoT thing. If you provide both fields, the API will generate an error.
For more information about considerations for using this API, see List command executions in your account (CLI).
Parameters:
-
max_results(Optional[CommandMaxResults], default:None) –The maximum number of results to return in 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.
-
status(Optional[CommandExecutionStatus], default:None) –List all command executions for the device that have a particular status. For example, you can filter the list to display only command executions that have failed or timed out.
-
sort_order(Optional[SortOrder], default:None) –Specify whether to list the command executions that were created in the ascending or descending order. By default, the API returns all commands in the descending order based on the start time or completion time of the executions, that are determined by the
startTimeFilterandcompleteTimeFilterparameters. -
started_time_filter(Optional[TimeFilter], default:None) –List all command executions that started any time before or after the date and time that you specify. The date and time uses the format
yyyy-MM-dd'T'HH:mm. -
completed_time_filter(Optional[TimeFilter], default:None) –List all command executions that completed any time before or after the date and time that you specify. The date and time uses the format
yyyy-MM-dd'T'HH:mm. -
target_arn(Optional[TargetArn], default:None) –The Amazon Resource Number (ARN) of the target device. You can use this information to list all command executions for a particular device.
-
command_arn(Optional[CommandArn], default:None) –The Amazon Resource Number (ARN) of the command. You can use this information to list all command executions for a particular command.
Raises:
-
InternalServerException–Internal error from the service that indicates an unexpected error or that the service is unavailable.
-
ResourceNotFoundException–The specified resource does not exist.
-
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
10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 | |