def iter_describe_scalable_targets(
self,
service_namespace: "capo_application_auto_scaling.types.service_namespace.ServiceNamespace",
*,
config_overrides: Optional[ApplicationAutoScalingClientConfig] = None,
resource_ids: Optional[
"capo_application_auto_scaling.types.resource_ids_max_len1600.ResourceIdsMaxLen1600"
] = None,
scalable_dimension: Optional[
"capo_application_auto_scaling.types.scalable_dimension.ScalableDimension"
] = None,
max_results: Optional[
"capo_application_auto_scaling.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_application_auto_scaling.types.xml_string.XmlString"
] = None,
) -> "Iterator[capo_application_auto_scaling.types.scalable_target.ScalableTarget]":
_token = next_token
while True:
_response = self.describe_scalable_targets(
service_namespace,
config_overrides=config_overrides,
resource_ids=resource_ids,
scalable_dimension=scalable_dimension,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("scalable_targets",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break