Skip to content

list_slack_workspace_configurations async

list_slack_workspace_configurations(
    *,
    config_overrides: Optional[AsyncSupportAppClientConfig] = None,
    next_token: Optional[paginationToken] = None,
) -> ListSlackWorkspaceConfigurationsResult

Lists the Slack workspace configurations for an Amazon Web Services account.

Parameters:

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

    If the results of a search are large, the API only returns a portion of the results and includes a nextToken pagination token in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When the API returns the last set of results, the response doesn't include a pagination token value.

Raises:

Source code in docs_src/capo_support_app/_services/async_support_app.py
async def list_slack_workspace_configurations(
    self,
    *,
    config_overrides: Optional[AsyncSupportAppClientConfig] = None,
    next_token: Optional[
        "capo_support_app.types.pagination_token.paginationToken"
    ] = None,
) -> "capo_support_app.types.list_slack_workspace_configurations_result.ListSlackWorkspaceConfigurationsResult":
    """<p>Lists the Slack workspace configurations for an Amazon Web Services account.</p>

    Args:
        next_token: <p>If the results of a search are large, the API only returns a portion of the results and includes a <code>nextToken</code> pagination token in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When the API returns the last set of results, the response doesn't include a pagination token value.</p>

    Raises:
        capo_support_app.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permission to perform this action.</p>
        capo_support_app.errors.internal_server_exception.InternalServerException: <p>We can’t process your request right now because of a server issue. Try again later.</p>
        capo_support_app.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_support_app.types.list_slack_workspace_configurations_request.ListSlackWorkspaceConfigurationsRequest]",
    ) -> AsyncOperationResponse[
        "capo_support_app.types.list_slack_workspace_configurations_result.ListSlackWorkspaceConfigurationsResult"
    ]:
        import capo_support_app._operations.support_app.list_slack_workspace_configurations

        (
            output,
            http_response,
        ) = await capo_support_app._operations.support_app.list_slack_workspace_configurations.async_list_slack_workspace_configurations(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSlackWorkspaceConfigurations")
    )
    input_: capo_support_app.types.list_slack_workspace_configurations_request.ListSlackWorkspaceConfigurationsRequest = {}
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output