in aws-rds-dbproxy/src/main/java/software/amazon/rds/dbproxy/ReadHandler.java [28:48]
public ProgressEvent<ResourceModel, CallbackContext> handleRequest(
final AmazonWebServicesClientProxy proxy,
final ResourceHandlerRequest<ResourceModel> request,
final CallbackContext callbackContext,
final Logger logger) {
clientProxy = proxy;
rdsClient = AmazonRDSClientBuilder.defaultClient();
final ResourceModel model;
try {
model = describeDBProxy(request.getDesiredResourceState().getDBProxyName());
} catch (DBProxyNotFoundException | CfnNotFoundException e) {
return ProgressEvent.defaultFailureHandler(e, HandlerErrorCode.NotFound);
}
return ProgressEvent.<ResourceModel, CallbackContext>builder()
.resourceModel(model)
.status(OperationStatus.SUCCESS)
.build();
}