diff --git a/src/main/java/software/amazon/cloudformation/proxy/ProxyClient.java b/src/main/java/software/amazon/cloudformation/proxy/ProxyClient.java index 5985e20e..11e41928 100644 --- a/src/main/java/software/amazon/cloudformation/proxy/ProxyClient.java +++ b/src/main/java/software/amazon/cloudformation/proxy/ProxyClient.java @@ -72,9 +72,11 @@ public interface ProxyClient { * {@link software.amazon.awssdk.core.exception.SdkClientException} if * there is client side problem */ - + default CompletableFuture - injectCredentialsAndInvokeV2Async(RequestT request, Function> requestFunction); + injectCredentialsAndInvokeV2Async(RequestT request, Function> requestFunction) { + throw new UnsupportedOperationException(); + } /** * This is a synchronous version of making API calls which implement Iterable in @@ -92,9 +94,11 @@ public interface ProxyClient { * {@link software.amazon.awssdk.core.exception.SdkClientException} if * there is client side problem */ - > + default > IterableT - injectCredentialsAndInvokeIterableV2(RequestT request, Function requestFunction); + injectCredentialsAndInvokeIterableV2(RequestT request, Function requestFunction) { + throw new UnsupportedOperationException(); + } /** * This is a synchronous version of making API calls which implement @@ -111,10 +115,12 @@ public interface ProxyClient { * {@link software.amazon.awssdk.core.exception.SdkClientException} if * there is client side problem */ - + default ResponseInputStream injectCredentialsAndInvokeV2InputStream(RequestT request, - Function> requestFunction); + Function> requestFunction) { + throw new UnsupportedOperationException(); + } /** * This is a synchronous version of making API calls which implement @@ -131,9 +137,11 @@ public interface ProxyClient { * {@link software.amazon.awssdk.core.exception.SdkClientException} if * there is client side problem */ - + default ResponseBytes - injectCredentialsAndInvokeV2Bytes(RequestT request, Function> requestFunction); + injectCredentialsAndInvokeV2Bytes(RequestT request, Function> requestFunction) { + throw new UnsupportedOperationException(); + } /** * @return the actual AWS service client that we need to use to provide the