Skip to content

iter_describe_maintenance_window_schedule async

iter_describe_maintenance_window_schedule(
    *,
    config_overrides: Optional[AsyncSSMClientConfig] = None,
    window_id: Optional[MaintenanceWindowId] = None,
    targets: Optional[Targets] = None,
    resource_type: Optional[MaintenanceWindowResourceType] = None,
    filters: Optional[PatchOrchestratorFilterList] = None,
    max_results: Optional[MaintenanceWindowSearchMaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ScheduledWindowExecution]
Source code in docs_src/capo_ssm/_services/async_ssm.py
async def iter_describe_maintenance_window_schedule(
    self,
    *,
    config_overrides: Optional[AsyncSSMClientConfig] = None,
    window_id: Optional[
        "capo_ssm.types.maintenance_window_id.MaintenanceWindowId"
    ] = None,
    targets: Optional["capo_ssm.types.targets.Targets"] = None,
    resource_type: Optional[
        "capo_ssm.types.maintenance_window_resource_type.MaintenanceWindowResourceType"
    ] = None,
    filters: Optional[
        "capo_ssm.types.patch_orchestrator_filter_list.PatchOrchestratorFilterList"
    ] = None,
    max_results: Optional[
        "capo_ssm.types.maintenance_window_search_max_results.MaintenanceWindowSearchMaxResults"
    ] = None,
    next_token: Optional["capo_ssm.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_ssm.types.scheduled_window_execution.ScheduledWindowExecution]":
    _token = next_token
    while True:
        _response = await self.describe_maintenance_window_schedule(
            config_overrides=config_overrides,
            window_id=window_id,
            targets=targets,
            resource_type=resource_type,
            filters=filters,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("scheduled_window_executions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break