private DeleteConnectionResponse deleteResource()

in aws-events-connection/src/main/java/software/amazon/events/connection/DeleteHandler.java [55:67]


    private DeleteConnectionResponse deleteResource(DeleteConnectionRequest awsRequest, ProxyClient<EventBridgeClient> proxyClient) {
        try {
            DeleteConnectionResponse awsResponse = proxyClient.injectCredentialsAndInvokeV2(awsRequest, proxyClient.client()::deleteConnection);
            logger.log(String.format("%s successfully called DeleteConnection. Still need to stabilize.", ResourceModel.TYPE_NAME));
            return awsResponse;
        } catch (final ConcurrentModificationException e) {
            throw new CfnResourceConflictException(e);
        } catch (final ResourceNotFoundException e) {
            throw new CfnNotFoundException(e);
        } catch (final AwsServiceException e) {
            throw new CfnGeneralServiceException(ResourceModel.TYPE_NAME, e);
        }
    }