@ThreadSafe public final class ProfileCsmConfigurationProvider extends Object implements CsmConfigurationProvider
AwsProfileNameLoader
will be used to
find the profile to load the configuration from.Modifier and Type | Field and Description |
---|---|
static String |
CSM_CLIENT_ID_PROPERTY |
static String |
CSM_ENABLED_PROPERTY |
static String |
CSM_HOST_PROPERTY |
static String |
CSM_PORT_PROPERTY |
Constructor and Description |
---|
ProfileCsmConfigurationProvider()
No-arg constructor.
|
ProfileCsmConfigurationProvider(String profileName)
Create an instance that loads the configuration from the given profile
name.
|
ProfileCsmConfigurationProvider(String profileName,
AwsProfileFileLocationProvider configFileLocationProvider)
Create an instance that loads the configuration from the given profile
name and config file location.
|
Modifier and Type | Method and Description |
---|---|
CsmConfiguration |
getConfiguration() |
public static final String CSM_ENABLED_PROPERTY
public static final String CSM_HOST_PROPERTY
public static final String CSM_PORT_PROPERTY
public static final String CSM_CLIENT_ID_PROPERTY
public ProfileCsmConfigurationProvider()
AwsProfileNameLoader
and AwsProfileFileLocationProvider.DEFAULT_CONFIG_LOCATION_PROVIDER
will be
used to find locate the profile name and config file respectively.public ProfileCsmConfigurationProvider(String profileName)
AwsProfileFileLocationProvider.DEFAULT_CONFIG_LOCATION_PROVIDER
will be used to find locate the config file.profileName
- The name of the profile.public ProfileCsmConfigurationProvider(String profileName, AwsProfileFileLocationProvider configFileLocationProvider)
profileName
- The name of the profile.configFileLocationProvider
- The provider to use to locate the
config file.public CsmConfiguration getConfiguration()
getConfiguration
in interface CsmConfigurationProvider
Copyright © 2021. All rights reserved.