@Internal public class AWSClientUtil extends AWSGeneralUtil
| Constructor and Description |
|---|
AWSClientUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <S extends software.amazon.awssdk.core.SdkClient,T extends software.amazon.awssdk.awscore.client.builder.AwsAsyncClientBuilder<? extends T,S> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<? extends T,S>> |
createAwsAsyncClient(Properties configProps,
software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient,
T clientBuilder,
String awsUserAgentPrefixFormat,
String awsClientUserAgentPrefix)
Creates an AWS Async Client.
|
static <S extends software.amazon.awssdk.core.SdkClient,T extends software.amazon.awssdk.awscore.client.builder.AwsAsyncClientBuilder<? extends T,S> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<? extends T,S>> |
createAwsAsyncClient(Properties configProps,
software.amazon.awssdk.core.client.config.SdkClientConfiguration clientConfiguration,
software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient,
T clientBuilder,
String awsUserAgentPrefixFormat,
String awsClientUserAgentPrefix)
Creates an AWS Async Client.
|
static <S extends software.amazon.awssdk.core.SdkClient,T extends software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder<? extends T,S> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<? extends T,S>> |
createAwsSyncClient(Properties configProps,
software.amazon.awssdk.http.SdkHttpClient httpClient,
T clientBuilder,
String awsUserAgentPrefixFormat,
String awsClientUserAgentPrefix)
Creates an AWS Sync Client.
|
static String |
formatFlinkUserAgentPrefix(String userAgentFormat)
Creates a user agent prefix for Flink.
|
closeResources, createAsyncHttpClient, createAsyncHttpClient, createAsyncHttpClient, createAsyncHttpClient, createSyncHttpClient, getCredentialProviderType, getCredentialsProvider, getCredentialsProvider, getCredentialsProvider, getProfileCredentialProvider, getRegion, getStsEndpoint, isValidRegion, validateAwsConfiguration, validateAwsCredentialspublic static String formatFlinkUserAgentPrefix(String userAgentFormat)
userAgentFormat - flink user agent prefix format with placeholders for version and
commit id.public static <S extends software.amazon.awssdk.core.SdkClient,T extends software.amazon.awssdk.awscore.client.builder.AwsAsyncClientBuilder<? extends T,S> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<? extends T,S>> S createAwsAsyncClient(Properties configProps, software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient, T clientBuilder, String awsUserAgentPrefixFormat, String awsClientUserAgentPrefix)
configProps - configuration propertieshttpClient - the underlying HTTP client used to talk to AWSpublic static <S extends software.amazon.awssdk.core.SdkClient,T extends software.amazon.awssdk.awscore.client.builder.AwsAsyncClientBuilder<? extends T,S> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<? extends T,S>> S createAwsAsyncClient(Properties configProps, software.amazon.awssdk.core.client.config.SdkClientConfiguration clientConfiguration, software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient, T clientBuilder, String awsUserAgentPrefixFormat, String awsClientUserAgentPrefix)
configProps - configuration propertiesclientConfiguration - the AWS SDK v2 config to instantiate the clienthttpClient - the underlying HTTP client used to talk to AWSclientBuilder - httpClientBuilder to build the underlying HTTP clientawsUserAgentPrefixFormat - user agent prefix for FlinkawsClientUserAgentPrefix - user agent prefix for kinesis clientpublic static <S extends software.amazon.awssdk.core.SdkClient,T extends software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder<? extends T,S> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<? extends T,S>> S createAwsSyncClient(Properties configProps, software.amazon.awssdk.http.SdkHttpClient httpClient, T clientBuilder, String awsUserAgentPrefixFormat, String awsClientUserAgentPrefix)
configProps - configuration propertieshttpClient - the underlying HTTP client used to talk to AWSclientBuilder - httpClientBuilder to build the underlying HTTP clientawsUserAgentPrefixFormat - user agent prefix for FlinkawsClientUserAgentPrefix - user agent prefix for kinesis clientCopyright © 2022–2023 The Apache Software Foundation. All rights reserved.