in aws-events-connection/src/main/java/software/amazon/events/connection/CreateHandler.java [73:85]
private CreateConnectionResponse createResource(CreateConnectionRequest awsRequest, ProxyClient<EventBridgeClient> proxyClient) {
try {
CreateConnectionResponse awsResponse = proxyClient.injectCredentialsAndInvokeV2(awsRequest, proxyClient.client()::createConnection);
logger.log(String.format("%s successfully called CreateConnection. Still need to stabilize.", ResourceModel.TYPE_NAME));
return awsResponse;
} catch (final ResourceAlreadyExistsException e) {
throw new CfnAlreadyExistsException(e);
} catch (final LimitExceededException e) {
throw new CfnServiceLimitExceededException(e);
} catch (final AwsServiceException e) {
throw new CfnGeneralServiceException(ResourceModel.TYPE_NAME, e);
}
}