Search code examples
pythonboto3documentationaws-ssm

BOTO3 Waiter Types for SSM


Does anyone know the available waiter types for SSM? The BOTO3 documentation is missing a section. It says "See the waiters section", but there is no such a section.

Googling online didn't help much, as it's not a common topic at all.


Solution

  • You can verify this as follows:

    ssm = boto3.client('ssm')
    
    print(ssm.waiter_names) 
    

    This will print out empty array:

    []
    

    For comparison, for ec2:

    ec2 = boto3.client('ec2')
    
    print(ec2.waiter_names)
    

    Will give (not all shown):

    ['export_task_completed',
     'image_available',
     'image_exists',
     'instance_exists',
     'instance_running',
     'instance_status_ok',
     'instance_stopped',
     'subnet_available',
     'system_status_ok',
     'volume_available',
     'volume_deleted',
     'volume_in_use',
     'vpc_available',
     'vpc_exists',
     'vpc_peering_connection_deleted',
     'vpc_peering_connection_exists',
     'vpn_connection_available',
     'vpn_connection_deleted']
    

    get_waiter method is probably inherited from some parent class.