in aws-rds-dbproxyendpoint/src/main/java/software/amazon/rds/dbproxyendpoint/CreateHandler.java [162:188]
private ProgressEvent<ResourceModel, CallbackContext> validateModel(ResourceModel model) {
if (StringUtils.isNotEmpty(model.getDBProxyEndpointArn())){
return ProgressEvent.defaultFailureHandler(
new CfnInvalidRequestException(DB_PROXY_ENDPOINT_ARN_READ_ONLY_MESSAGE),
HandlerErrorCode.InvalidRequest);
}
if (StringUtils.isNotEmpty(model.getEndpoint())){
return ProgressEvent.defaultFailureHandler(
new CfnInvalidRequestException(ENDPOINT_READ_ONLY_MESSAGE),
HandlerErrorCode.InvalidRequest);
}
if (StringUtils.isNotEmpty(model.getVpcId())){
return ProgressEvent.defaultFailureHandler(
new CfnInvalidRequestException(VPC_ID_READ_ONLY_MESSAGE),
HandlerErrorCode.InvalidRequest);
}
if (model.getIsDefault() != null){
return ProgressEvent.defaultFailureHandler(
new CfnInvalidRequestException(IS_DEFAULT_READ_ONLY_MESSAGE),
HandlerErrorCode.InvalidRequest);
}
return null;
}