首页 > 解决方案 > SSM 的 BOTO3 服务员类型

问题描述

有人知道 SSM 可用的服务员类型吗?BOTO3 文档缺少一节。它说“见服务员部分”,但没有这样的部分。

在线搜索并没有太大帮助,因为它根本不是一个常见的话题。

标签: pythonboto3documentationaws-ssm

解决方案


您可以按如下方式验证这一点:

ssm = boto3.client('ssm')

print(ssm.waiter_names) 

这将打印出空数组:

[]

为了比较,对于ec2

ec2 = boto3.client('ec2')

print(ec2.waiter_names)

将给出(未全部显示):

['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方法可能是从某个父类继承的。


推荐阅读