waiters#

Waiter utilities.

aws_ssm_run_command.better_boto.waiters.wait_until_send_command_succeeded(ssm_client: SSMClient, command_id: str, instance_id: str, raises: bool = True, delays: int = 3, timeout: int = 60, verbose: bool = True) CommandInvocation[source]#

After you call send_command_ API, you can use this function to wait until it succeeds. If it fails, it will raise an exception.

Reference:

Parameters:
  • ssm_client

  • command_id – the SSM run command “command_id”, it is from the ssm_client.send_command(…) response

  • instance_id – ec2 instance id

  • raises – if True, then raises error if command failed, otherwise, just return the CommandInvocation represents the failed invocation.

  • delays – check the command invocation status every delays seconds

  • timeout – how long we consider this command is timed out

  • verbose – whether to print the progress

Raises:

RunCommandError if raises is True and command failed.