public abstract class AbstractAwsClientProvider<T extends software.amazon.awssdk.core.SdkClient> extends BootstrapPropertiesClientProvider<T>
| Modifier and Type | Field and Description |
|---|---|
private static String |
ACCESS_KEY_PROPS_NAME |
private static String |
REGION_KEY_PROPS_NAME |
private static String |
SECRET_KEY_PROPS_NAME |
logger| Constructor and Description |
|---|
AbstractAwsClientProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createClient(software.amazon.awssdk.auth.credentials.AwsCredentials credentials,
String region)
Create a client with the given credentials and region.
|
protected abstract T |
createDefaultClient(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider)
Create a default client with the given credentials provider.
|
protected T |
getConfiguredClient(Properties clientProperties)
Get Configured Client using either Client Properties or AWS Default Credentials Provider
|
getClient, getClientProperties, getRequiredPropertyNamesprivate static final String ACCESS_KEY_PROPS_NAME
private static final String SECRET_KEY_PROPS_NAME
private static final String REGION_KEY_PROPS_NAME
protected T getConfiguredClient(Properties clientProperties)
getConfiguredClient in class BootstrapPropertiesClientProvider<T extends software.amazon.awssdk.core.SdkClient>clientProperties - Client Propertiesprotected abstract T createClient(software.amazon.awssdk.auth.credentials.AwsCredentials credentials, String region)
credentials - AWS credentialsregion - AWS regionprotected abstract T createDefaultClient(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider)
credentialsProvider - AWS credentials providerCopyright © 2023 Apache NiFi Project. All rights reserved.