def iter_list_inference_gateways(
self,
*,
config_overrides: Optional[SageMakerClientConfig] = None,
identifier: Optional[
"capo_sagemaker.types.global_inference_gateway_identifier.GlobalInferenceGatewayIdentifier"
] = None,
filters: Optional[
"capo_sagemaker.types.global_inference_gateway_member_filters.GlobalInferenceGatewayMemberFilters"
] = None,
next_token: Optional[
"capo_sagemaker.types.global_inference_gateway_next_token.GlobalInferenceGatewayNextToken"
] = None,
max_results: Optional[
"capo_sagemaker.types.global_inference_gateway_max_results.GlobalInferenceGatewayMaxResults"
] = None,
) -> "Iterator[capo_sagemaker.types.global_inference_gateway_member_summary.GlobalInferenceGatewayMemberSummary]":
_token = next_token
while True:
_response = self.list_inference_gateways(
config_overrides=config_overrides,
identifier=identifier,
filters=filters,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("inference_gateway_summaries",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break