Lists the Slack channel 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/support_app.py
| def list_slack_channel_configurations(
self,
*,
config_overrides: Optional[SupportAppClientConfig] = None,
next_token: Optional[
"capo_support_app.types.pagination_token.paginationToken"
] = None,
) -> "capo_support_app.types.list_slack_channel_configurations_result.ListSlackChannelConfigurationsResult":
"""<p>Lists the Slack channel 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.
"""
def _handler(
req: "OperationRequest[capo_support_app.types.list_slack_channel_configurations_request.ListSlackChannelConfigurationsRequest]",
) -> OperationResponse[
"capo_support_app.types.list_slack_channel_configurations_result.ListSlackChannelConfigurationsResult"
]:
import capo_support_app._operations.support_app.list_slack_channel_configurations
output, http_response = (
capo_support_app._operations.support_app.list_slack_channel_configurations.list_slack_channel_configurations(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListSlackChannelConfigurations")
)
input_: capo_support_app.types.list_slack_channel_configurations_request.ListSlackChannelConfigurationsRequest = {}
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
|