private UpdateConnectionResponse updateResource()

in aws-events-connection/src/main/java/software/amazon/events/connection/UpdateHandler.java [57:71]


    private UpdateConnectionResponse updateResource(UpdateConnectionRequest awsRequest, ProxyClient<EventBridgeClient> proxyClient) {
        try {
            UpdateConnectionResponse awsResponse = proxyClient.injectCredentialsAndInvokeV2(awsRequest, proxyClient.client()::updateConnection);
            logger.log(String.format("%s successfully called UpdateConnection. Still need to stabilize.", ResourceModel.TYPE_NAME));
            return awsResponse;
        } catch (final ResourceNotFoundException e) {
            throw new CfnNotFoundException(e);
        } catch (final ConcurrentModificationException e) {
            throw new CfnResourceConflictException(e);
        } catch (final LimitExceededException e) {
            throw new CfnServiceLimitExceededException(e);
        } catch (final AwsServiceException e) {
            throw new CfnGeneralServiceException(ResourceModel.TYPE_NAME, e);
        }
    }