Skip to content

iter_list_studio_session_mappings

iter_list_studio_session_mappings(
    *,
    config_overrides: Optional[EMRClientConfig] = None,
    studio_id: Optional[XmlStringMaxLen256] = None,
    identity_type: Optional[IdentityType] = None,
    marker: Optional[Marker] = None,
) -> Iterator[SessionMappingSummary]
Source code in docs_src/capo_emr/_services/emr.py
def iter_list_studio_session_mappings(
    self,
    *,
    config_overrides: Optional[EMRClientConfig] = None,
    studio_id: Optional[
        "capo_emr.types.xml_string_max_len256.XmlStringMaxLen256"
    ] = None,
    identity_type: Optional["capo_emr.types.identity_type.IdentityType"] = None,
    marker: Optional["capo_emr.types.marker.Marker"] = None,
) -> "Iterator[capo_emr.types.session_mapping_summary.SessionMappingSummary]":
    _token = marker
    while True:
        _response = self.list_studio_session_mappings(
            config_overrides=config_overrides,
            studio_id=studio_id,
            identity_type=identity_type,
            marker=_token,
        )
        _page = _resolve_path(_response, ("session_mappings",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("marker",))
        if not _token:
            break