Deletes the Slack workspace authorization that allows channels to be configured in that workspace. This requires all configured channels in the workspace to be deleted.
Parameters:
-
slack_team_id
(SlackTeamId)
–
The ID of the Slack workspace authorized with AWS Chatbot.
Raises:
Source code in docs_src/capo_chatbot/_services/async_chatbot.py
| async def delete_slack_workspace_authorization(
self,
slack_team_id: "capo_chatbot.types.slack_team_id.SlackTeamId",
*,
config_overrides: Optional[AsyncchatbotClientConfig] = None,
) -> "capo_chatbot.types.delete_slack_workspace_authorization_result.DeleteSlackWorkspaceAuthorizationResult":
"""<p>Deletes the Slack workspace authorization that allows channels to be configured in that workspace. This requires all configured channels in the workspace to be deleted. </p>
Args:
slack_team_id: <p>The ID of the Slack workspace authorized with AWS Chatbot.</p>
Raises:
capo_chatbot.errors.delete_slack_workspace_authorization_fault.DeleteSlackWorkspaceAuthorizationFault: <p>There was an issue deleting your Slack workspace.</p>
capo_chatbot.errors.invalid_parameter_exception.InvalidParameterException: <p>Your request input doesn't meet the constraints required by AWS Chatbot.</p>
capo_chatbot.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_chatbot.types.delete_slack_workspace_authorization_request.DeleteSlackWorkspaceAuthorizationRequest]",
) -> AsyncOperationResponse[
"capo_chatbot.types.delete_slack_workspace_authorization_result.DeleteSlackWorkspaceAuthorizationResult"
]:
import capo_chatbot._operations.wheatley_orchestration_20171011.delete_slack_workspace_authorization
(
output,
http_response,
) = await capo_chatbot._operations.wheatley_orchestration_20171011.delete_slack_workspace_authorization.async_delete_slack_workspace_authorization(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteSlackWorkspaceAuthorization")
)
input_: capo_chatbot.types.delete_slack_workspace_authorization_request.DeleteSlackWorkspaceAuthorizationRequest = {
"slack_team_id": slack_team_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|