in aws-logs-querydefinition/src/main/java/software/amazon/logs/querydefinition/CreateHandler.java [43:53]
private PutQueryDefinitionResponse invokePutQueryDefinitionCall(AmazonWebServicesClientProxy proxy, ResourceModel model) {
try {
return proxy.injectCredentialsAndInvokeV2(Translator.translateToCreateRequest(model), ClientBuilder.getLogsClient()::putQueryDefinition);
} catch (InvalidParameterException ex) {
throw new CfnInvalidRequestException(ResourceModel.TYPE_NAME, ex);
} catch (ResourceNotFoundException ex) {
throw new CfnNotFoundException(ResourceModel.TYPE_NAME, model.getName());
} catch (ServiceUnavailableException ex) {
throw new CfnServiceInternalErrorException(ResourceModel.TYPE_NAME, ex);
}
}