computing / Waiter / InstanceStopped

InstanceStopped

class computing.Waiter.InstanceStopped
waiter = client.get_waiter('instance_stopped')
wait(**kwargs)

Polls computing.Client.describe_instances() every 20 seconds until a successful state is reached. An error is returned after 40 failed checks.

See also: AWS API Documentation

Request Syntax

waiter.wait(
    InstanceId=[
        'string',
    ],
    Tenancy=[
        'string',
    ],
    WaiterConfig={
        'Delay': 123,
        'MaxAttempts': 123
    }
)
Parameters:
  • InstanceId (list) –

    • (string) –

  • Tenancy (list) –

    • (string) –

  • WaiterConfig (dict) –

    A dictionary that provides parameters to control waiting behavior.

    • Delay (integer) –

      The amount of time in seconds to wait between attempts. Default: 20

    • MaxAttempts (integer) –

      The maximum number of attempts to be made. Default: 40

Returns:

None