Skip to content

list_organization_service_access_status

list_organization_service_access_status(
    *,
    config_overrides: Optional[NetworkManagerClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListOrganizationServiceAccessStatusResponse

Gets the status of the Service Linked Role (SLR) deployment for the accounts in a given Amazon Web Services Organization.

Parameters:

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of results to return.

  • next_token (Optional[NextToken], default: None ) –

    The token for the next page of results.

Raises:

Source code in docs_src/capo_networkmanager/_services/network_manager.py
def list_organization_service_access_status(
    self,
    *,
    config_overrides: Optional[NetworkManagerClientConfig] = None,
    max_results: Optional[
        "capo_networkmanager.types.max_results.MaxResults"
    ] = None,
    next_token: Optional["capo_networkmanager.types.next_token.NextToken"] = None,
) -> "capo_networkmanager.types.list_organization_service_access_status_response.ListOrganizationServiceAccessStatusResponse":
    """<p>Gets the status of the Service Linked Role (SLR) deployment for the accounts in a given Amazon Web Services Organization.</p>

    Args:
        max_results: <p>The maximum number of results to return.</p>
        next_token: <p>The token for the next page of results.</p>

    Raises:
        capo_networkmanager.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_networkmanager.types.list_organization_service_access_status_request.ListOrganizationServiceAccessStatusRequest]",
    ) -> OperationResponse[
        "capo_networkmanager.types.list_organization_service_access_status_response.ListOrganizationServiceAccessStatusResponse"
    ]:
        import capo_networkmanager._operations.network_manager.list_organization_service_access_status

        output, http_response = (
            capo_networkmanager._operations.network_manager.list_organization_service_access_status.list_organization_service_access_status(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListOrganizationServiceAccessStatus")
    )
    input_: capo_networkmanager.types.list_organization_service_access_status_request.ListOrganizationServiceAccessStatusRequest = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output