in aws-timestream-scheduledquery/src/main/java/software/amazon/timestream/scheduledquery/DeleteHandler.java [61:82]
private void initiateDeleteScheduledQuery(
ResourceHandlerRequest<ResourceModel> request, CallbackContext callbackContext, ResourceModel model) {
final DeleteScheduledQueryRequest deleteScheduledQueryRequest =
new DeleteScheduledQueryRequest()
.withScheduledQueryArn(model.getArn());
try {
this.proxy.injectCredentialsAndInvoke(deleteScheduledQueryRequest, timestreamClient::deleteScheduledQuery);
} catch (InternalServerException ex) {
throw new CfnInternalFailureException(ex);
} catch (ThrottlingException ex) {
throw new CfnThrottlingException(DELETE_SCHEDULED_QUERY, ex);
} catch (ValidationException | InvalidEndpointException ex) {
throw new CfnInvalidRequestException(request.toString(), ex);
} catch (ResourceNotFoundException ex) {
throw new CfnNotFoundException(ex);
} catch (AccessDeniedException ex) {
throw new CfnAccessDeniedException(DELETE_SCHEDULED_QUERY, ex);
}
callbackContext.setDeleteScheduledQueryStarted(true);
}