@Internal public class AWSGeneralUtil extends Object
Constructor and Description |
---|
AWSGeneralUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
closeResources(software.amazon.awssdk.utils.SdkAutoCloseable... resources) |
static software.amazon.awssdk.http.async.SdkAsyncHttpClient |
createAsyncHttpClient(software.amazon.awssdk.utils.AttributeMap config,
software.amazon.awssdk.http.nio.netty.NettyNioAsyncHttpClient.Builder httpClientBuilder) |
static software.amazon.awssdk.http.async.SdkAsyncHttpClient |
createAsyncHttpClient(software.amazon.awssdk.http.nio.netty.NettyNioAsyncHttpClient.Builder httpClientBuilder) |
static software.amazon.awssdk.http.async.SdkAsyncHttpClient |
createAsyncHttpClient(Properties configProperties) |
static software.amazon.awssdk.http.async.SdkAsyncHttpClient |
createAsyncHttpClient(Properties configProperties,
software.amazon.awssdk.http.nio.netty.NettyNioAsyncHttpClient.Builder httpClientBuilder) |
static AWSConfigConstants.CredentialProvider |
getCredentialProviderType(Properties configProps,
String configPrefix)
Determines and returns the credential provider type from the given properties.
|
static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider |
getCredentialsProvider(Map<String,?> configProps)
Return a
AwsCredentialsProvider instance corresponding to the configuration
properties. |
static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider |
getCredentialsProvider(Properties configProps)
Return a
AwsCredentialsProvider instance corresponding to the configuration
properties. |
static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider |
getCredentialsProvider(Properties configProps,
String configPrefix) |
static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider |
getProfileCredentialProvider(Properties configProps,
String configPrefix) |
static software.amazon.awssdk.regions.Region |
getRegion(Properties configProps)
Creates a
Region object from the given Properties. |
static boolean |
isValidRegion(software.amazon.awssdk.regions.Region region)
Checks whether or not a region is valid.
|
static void |
validateAwsConfiguration(Properties config)
Validates configuration properties related to Amazon AWS service.
|
static void |
validateAwsCredentials(Properties config) |
public static AWSConfigConstants.CredentialProvider getCredentialProviderType(Properties configProps, String configPrefix)
public static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getCredentialsProvider(Map<String,?> configProps)
AwsCredentialsProvider
instance corresponding to the configuration
properties.configProps
- the configuration property mappublic static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getCredentialsProvider(Properties configProps)
AwsCredentialsProvider
instance corresponding to the configuration
properties.configProps
- the configuration propertiespublic static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getCredentialsProvider(Properties configProps, String configPrefix)
public static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getProfileCredentialProvider(Properties configProps, String configPrefix)
public static software.amazon.awssdk.http.async.SdkAsyncHttpClient createAsyncHttpClient(Properties configProperties)
public static software.amazon.awssdk.http.async.SdkAsyncHttpClient createAsyncHttpClient(Properties configProperties, software.amazon.awssdk.http.nio.netty.NettyNioAsyncHttpClient.Builder httpClientBuilder)
public static software.amazon.awssdk.http.async.SdkAsyncHttpClient createAsyncHttpClient(software.amazon.awssdk.http.nio.netty.NettyNioAsyncHttpClient.Builder httpClientBuilder)
public static software.amazon.awssdk.http.async.SdkAsyncHttpClient createAsyncHttpClient(software.amazon.awssdk.utils.AttributeMap config, software.amazon.awssdk.http.nio.netty.NettyNioAsyncHttpClient.Builder httpClientBuilder)
public static software.amazon.awssdk.regions.Region getRegion(Properties configProps)
Region
object from the given Properties.configProps
- the properties containing the regionpublic static boolean isValidRegion(software.amazon.awssdk.regions.Region region)
region
- The AWS region to checkpublic static void validateAwsConfiguration(Properties config)
config
- the properties to setup credentials and regionpublic static void closeResources(software.amazon.awssdk.utils.SdkAutoCloseable... resources)
public static void validateAwsCredentials(Properties config)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.