MCPcopy
hub / github.com/aws/aws-cli / get_waiter

Method get_waiter

awscli/botocore/client.py:1154–1176  ·  view source on GitHub ↗

Returns an object that can wait for some condition. :type waiter_name: str :param waiter_name: The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. :returns: The specified waiter object. :rtype: boto

(self, waiter_name)

Source from the content-addressed store, hash-verified

1152 return self._cache['waiter_config']
1153
1154 def get_waiter(self, waiter_name):
1155 """Returns an object that can wait for some condition.
1156
1157 :type waiter_name: str
1158 :param waiter_name: The name of the waiter to get. See the waiters
1159 section of the service docs for a list of available waiters.
1160
1161 :returns: The specified waiter object.
1162 :rtype: botocore.waiter.Waiter
1163 """
1164 config = self._get_waiter_config()
1165 if not config:
1166 raise ValueError(f"Waiter does not exist: {waiter_name}")
1167 model = waiter.WaiterModel(config)
1168 mapping = {}
1169 for name in model.waiter_names:
1170 mapping[xform_name(name)] = name
1171 if waiter_name not in mapping:
1172 raise ValueError(f"Waiter does not exist: {waiter_name}")
1173
1174 return waiter.create_waiter_with_client(
1175 mapping[waiter_name], model, self
1176 )
1177
1178 @CachedProperty
1179 def waiter_names(self):

Callers 15

wait_bucket_existsMethod · 0.45
_wait_for_keyMethod · 0.45
object_not_existsMethod · 0.45
wait_object_existsMethod · 0.45
test_can_get_waitersMethod · 0.45
setup_moduleFunction · 0.45
clear_out_bucketFunction · 0.45
create_bucketMethod · 0.45
_wait_for_keyMethod · 0.45

Calls 2

_get_waiter_configMethod · 0.95
xform_nameFunction · 0.90