Deletes a user level permission for a Slack channel configuration.
Parameters:
-
chat_configuration_arn
(ChatConfigurationArn)
–
The ARN of the SlackChannelConfiguration associated with the user identity to delete.
-
slack_team_id
(SlackTeamId)
–
The ID of the Slack workspace authorized with AWS Chatbot.
-
slack_user_id
(SlackUserId)
–
The ID of the user in Slack
Raises:
Source code in docs_src/capo_chatbot/_services/chatbot.py
| def delete_slack_user_identity(
self,
chat_configuration_arn: "capo_chatbot.types.chat_configuration_arn.ChatConfigurationArn",
slack_team_id: "capo_chatbot.types.slack_team_id.SlackTeamId",
slack_user_id: "capo_chatbot.types.slack_user_id.SlackUserId",
*,
config_overrides: Optional[chatbotClientConfig] = None,
) -> "capo_chatbot.types.delete_slack_user_identity_result.DeleteSlackUserIdentityResult":
"""<p>Deletes a user level permission for a Slack channel configuration.</p>
Args:
chat_configuration_arn: <p>The ARN of the SlackChannelConfiguration associated with the user identity to delete.</p>
slack_team_id: <p>The ID of the Slack workspace authorized with AWS Chatbot.</p>
slack_user_id: <p>The ID of the user in Slack</p>
Raises:
capo_chatbot.errors.delete_slack_user_identity_exception.DeleteSlackUserIdentityException: <p>We can’t process your request right now because of a server issue. Try again later.</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.resource_not_found_exception.ResourceNotFoundException: <p>We were unable to find the resource for your request</p>
capo_chatbot.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_chatbot.types.delete_slack_user_identity_request.DeleteSlackUserIdentityRequest]",
) -> OperationResponse[
"capo_chatbot.types.delete_slack_user_identity_result.DeleteSlackUserIdentityResult"
]:
import capo_chatbot._operations.wheatley_orchestration_20171011.delete_slack_user_identity
output, http_response = (
capo_chatbot._operations.wheatley_orchestration_20171011.delete_slack_user_identity.delete_slack_user_identity(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteSlackUserIdentity")
)
input_: capo_chatbot.types.delete_slack_user_identity_request.DeleteSlackUserIdentityRequest = {
"chat_configuration_arn": chat_configuration_arn,
"slack_team_id": slack_team_id,
"slack_user_id": slack_user_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|