Deletes the Microsoft Teams team authorization allowing for channels to be configured in that Microsoft Teams team. Note that the Microsoft Teams team must have no channels configured to remove it.
Parameters:
-
team_id
(UUID)
–
The ID of the Microsoft Teams team authorized with AWS Chatbot.
To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more information, see Step 1: Configure a Microsoft Teams client in the AWS Chatbot Administrator Guide.
Raises:
Source code in docs_src/capo_chatbot/_services/async_chatbot.py
| async def delete_microsoft_teams_configured_team(
self,
team_id: "capo_chatbot.types.uuid.UUID",
*,
config_overrides: Optional[AsyncchatbotClientConfig] = None,
) -> "capo_chatbot.types.delete_teams_configured_team_result.DeleteTeamsConfiguredTeamResult":
"""<p>Deletes the Microsoft Teams team authorization allowing for channels to be configured in that Microsoft Teams team. Note that the Microsoft Teams team must have no channels configured to remove it. </p>
Args:
team_id: <p>The ID of the Microsoft Teams team authorized with AWS Chatbot.</p> <p>To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more information, see <a href="https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html#teams-client-setup">Step 1: Configure a Microsoft Teams client</a> in the <i> AWS Chatbot Administrator Guide</i>. </p>
Raises:
capo_chatbot.errors.delete_teams_configured_team_exception.DeleteTeamsConfiguredTeamException: <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.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_chatbot.types.delete_teams_configured_team_request.DeleteTeamsConfiguredTeamRequest]",
) -> AsyncOperationResponse[
"capo_chatbot.types.delete_teams_configured_team_result.DeleteTeamsConfiguredTeamResult"
]:
import capo_chatbot._operations.wheatley_orchestration_20171011.delete_microsoft_teams_configured_team
(
output,
http_response,
) = await capo_chatbot._operations.wheatley_orchestration_20171011.delete_microsoft_teams_configured_team.async_delete_microsoft_teams_configured_team(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteMicrosoftTeamsConfiguredTeam")
)
input_: capo_chatbot.types.delete_teams_configured_team_request.DeleteTeamsConfiguredTeamRequest = {
"team_id": team_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|