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)
| 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): |