in aws-rds-dbproxyendpoint/src/main/java/software/amazon/rds/dbproxyendpoint/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 = describeDBProxyEndpoint(request.getDesiredResourceState().getDBProxyEndpointName());
} catch (DBProxyEndpointNotFoundException | CfnNotFoundException e) {
return ProgressEvent.defaultFailureHandler(e, HandlerErrorCode.NotFound);
}
return ProgressEvent.<ResourceModel, CallbackContext>builder()
.resourceModel(model)
.status(OperationStatus.SUCCESS)
.build();
}