async 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[AsyncchatbotClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_chatbot.types.delete_slack_user_identity_request.DeleteSlackUserIdentityRequest]",
) -> AsyncOperationResponse[
"capo_chatbot.types.delete_slack_user_identity_result.DeleteSlackUserIdentityResult"
]:
import capo_chatbot._operations.wheatley_orchestration_20171011.delete_slack_user_identity
(
output,
http_response,
) = await capo_chatbot._operations.wheatley_orchestration_20171011.delete_slack_user_identity.async_delete_slack_user_identity(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output