list_command_invocations
¶
list_command_invocations(
*,
config_overrides: Optional[SSMClientConfig] = None,
command_id: Optional[CommandId] = None,
instance_id: Optional[InstanceId] = None,
max_results: Optional[CommandMaxResults] = None,
next_token: Optional[NextToken] = None,
filters: Optional[CommandFilterList] = None,
details: Optional[Boolean] = None,
) -> ListCommandInvocationsResult
An invocation is copy of a command sent to a specific managed node. A command can apply to one or more managed nodes. A command invocation applies to one managed node. For example, if a user runs SendCommand against three managed nodes, then a command invocation is created for each requested managed node ID. ListCommandInvocations provide status about command execution.
Parameters:
-
command_id(Optional[CommandId], default:None) –(Optional) The invocations for a specific command ID.
-
instance_id(Optional[InstanceId], default:None) –(Optional) The command execution details for a specific managed node ID.
-
max_results(Optional[CommandMaxResults], default:None) –(Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
-
next_token(Optional[NextToken], default:None) –(Optional) The token for the next set of items to return. (You received this token from a previous call.)
-
filters(Optional[CommandFilterList], default:None) –(Optional) One or more filters. Use a filter to return a more specific list of results.
-
details(Optional[Boolean], default:None) –(Optional) If set this returns the response of the command executions and any command output. The default value is
false.
Raises:
-
InternalServerError–An error occurred on the server side.
-
InvalidCommandId–The specified command ID isn't valid. Verify the ID and try again.
-
InvalidFilterKey–The specified key isn't valid.
-
InvalidInstanceId–The following problems can cause this exception:
-
You don't have permission to access the managed node.
-
Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
-
SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
-
The managed node isn't in a valid state. Valid states are:
Running,Pending,Stopped, andStopping. Invalid states are:Shutting-downandTerminated.
-
-
InvalidNextToken–The specified token isn't valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/ssm.py
7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 | |