Deletes a Amazon Chime webhook configuration for AWS Chatbot.
Parameters:
-
chat_configuration_arn
(ChatConfigurationArn)
–
The Amazon Resource Name (ARN) of the ChimeWebhookConfiguration to delete.
Raises:
Source code in docs_src/capo_chatbot/_services/async_chatbot.py
| async def delete_chime_webhook_configuration(
self,
chat_configuration_arn: "capo_chatbot.types.chat_configuration_arn.ChatConfigurationArn",
*,
config_overrides: Optional[AsyncchatbotClientConfig] = None,
) -> "capo_chatbot.types.delete_chime_webhook_configuration_result.DeleteChimeWebhookConfigurationResult":
"""<p>Deletes a Amazon Chime webhook configuration for AWS Chatbot.</p>
Args:
chat_configuration_arn: <p>The Amazon Resource Name (ARN) of the ChimeWebhookConfiguration to delete.</p>
Raises:
capo_chatbot.errors.delete_chime_webhook_configuration_exception.DeleteChimeWebhookConfigurationException: <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.invalid_request_exception.InvalidRequestException: <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_chime_webhook_configuration_request.DeleteChimeWebhookConfigurationRequest]",
) -> AsyncOperationResponse[
"capo_chatbot.types.delete_chime_webhook_configuration_result.DeleteChimeWebhookConfigurationResult"
]:
import capo_chatbot._operations.wheatley_orchestration_20171011.delete_chime_webhook_configuration
(
output,
http_response,
) = await capo_chatbot._operations.wheatley_orchestration_20171011.delete_chime_webhook_configuration.async_delete_chime_webhook_configuration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteChimeWebhookConfiguration")
)
input_: capo_chatbot.types.delete_chime_webhook_configuration_request.DeleteChimeWebhookConfigurationRequest = {
"chat_configuration_arn": chat_configuration_arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|