Skip to content

iter_describe_tape_recovery_points async

iter_describe_tape_recovery_points(
    gateway_arn: GatewayARN,
    *,
    config_overrides: Optional[AsyncStorageGatewayClientConfig] = None,
    marker: Optional[Marker] = None,
    limit: Optional[PositiveIntObject] = None,
) -> AsyncIterator[TapeRecoveryPointInfo]
Source code in docs_src/capo_storage_gateway/_services/async_storage_gateway.py
async def iter_describe_tape_recovery_points(
    self,
    gateway_arn: "capo_storage_gateway.types.gateway_arn.GatewayARN",
    *,
    config_overrides: Optional[AsyncStorageGatewayClientConfig] = None,
    marker: Optional["capo_storage_gateway.types.marker.Marker"] = None,
    limit: Optional[
        "capo_storage_gateway.types.positive_int_object.PositiveIntObject"
    ] = None,
) -> "AsyncIterator[capo_storage_gateway.types.tape_recovery_point_info.TapeRecoveryPointInfo]":
    _token = marker
    while True:
        _response = await self.describe_tape_recovery_points(
            gateway_arn,
            config_overrides=config_overrides,
            marker=_token,
            limit=limit,
        )
        _page = _resolve_path(_response, ("tape_recovery_point_infos",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("marker",))
        if not _token:
            break