list_command_invocations
async
¶
list_command_invocations(
*,
config_overrides: Optional[AsyncSSMClientConfig] = 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/async_ssm.py
8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 | |