ClientT - the AWS client like KinesisClient that is used to invoke the
web servicepublic interface ProxyClient<ClientT>
CreateStreamResponse call(ProxyClient<KinesisClient> client, CreateStreamRequest request) {
return client.injectCredentialsAndInvokeV2( request,
client.client()::createStream); // method reference } | Modifier and Type | Method and Description |
|---|---|
ClientT |
client() |
<RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResponseT extends software.amazon.awssdk.awscore.AwsResponse,IterableT extends software.amazon.awssdk.core.pagination.sync.SdkIterable<ResponseT>> |
injectCredentialsAndInvokeIterableV2(RequestT request,
Function<RequestT,IterableT> requestFunction)
This is a synchronous version of making API calls which implement Iterable in
the SDKv2
|
<RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResponseT extends software.amazon.awssdk.awscore.AwsResponse> |
injectCredentialsAndInvokeV2(RequestT request,
Function<RequestT,ResponseT> requestFunction)
This is the synchronous version of making API calls.
|
<RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResponseT extends software.amazon.awssdk.awscore.AwsResponse> |
injectCredentialsAndInvokeV2Async(RequestT request,
Function<RequestT,CompletableFuture<ResponseT>> requestFunction)
This is the asynchronous version of making API calls.
|
<RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResponseT extends software.amazon.awssdk.awscore.AwsResponse> ResponseT injectCredentialsAndInvokeV2(RequestT request,
Function<RequestT,ResponseT> requestFunction)
RequestT - the request typeResponseT - the response from the requestrequest, - the AWS service request that we need to makerequestFunction, - this is a Lambda closure that provide the actual API
that needs to be invoked.AwsServiceException
that is thrown or
SdkClientException if
there is client side problem<RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResponseT extends software.amazon.awssdk.awscore.AwsResponse> CompletableFuture<ResponseT> injectCredentialsAndInvokeV2Async(RequestT request, Function<RequestT,CompletableFuture<ResponseT>> requestFunction)
RequestT - the request typeResponseT - the response from the requestrequest, - the AWS service request that we need to makerequestFunction, - this is a Lambda closure that provide the actual API
that needs to be invoked.AwsServiceException
that is thrown or
SdkClientException if
there is client side problem<RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResponseT extends software.amazon.awssdk.awscore.AwsResponse,IterableT extends software.amazon.awssdk.core.pagination.sync.SdkIterable<ResponseT>> IterableT injectCredentialsAndInvokeIterableV2(RequestT request,
Function<RequestT,IterableT> requestFunction)
RequestT - the request typeResponseT - the response from the requestIterableT - the iterable collection from the responserequest, - the AWS service request that we need to makerequestFunction, - this is a Lambda closure that provide the actual API
that needs to be invoked.AwsServiceException
that is thrown or
SdkClientException if
there is client side problemClientT client()
Copyright © 2019 Amazon Web Services, Inc. All Rights Reserved.