Class ProfileCredentialsBuilder
- All Implemented Interfaces:
AWSCredentialsProviderBuilder
- Since:
- 4.3.0
In the adapter configuration file this class is aliased as aws2-profile-credentials-builder which is the preferred alternative to the fully qualified classname when building your configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.adaptris.aws2.AWSCredentialsProviderBuilder
AWSCredentialsProviderBuilder.BuilderConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.auth.credentials.AwsCredentialsProviderbuild()The profile configuration file.The profile within configuration.The refresh interval in nano seconds.voidsetConfigFile(String configFile) The profile configuration file.voidsetProfileName(String profileName) The profile within configuration.voidsetRefreshIntervalNanos(Long refreshIntervalNanos) The refresh interval in nano seconds.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adaptris.aws2.AWSCredentialsProviderBuilder
build
-
Constructor Details
-
ProfileCredentialsBuilder
public ProfileCredentialsBuilder()
-
-
Method Details
-
build
- Specified by:
buildin interfaceAWSCredentialsProviderBuilder- Throws:
Exception
-
withConfigFile
-
withProfileName
-
withRefreshIntervalNanos
-
getConfigFile
The profile configuration file.If not specified then the behaviour is down to the AWS SDK. This probably means that
~/.aws2/configis used as the configuration file. -
setConfigFile
The profile configuration file.If not specified then the behaviour is down to the AWS SDK. This probably means that
~/.aws2/configis used as the configuration file. -
getProfileName
The profile within configuration.If not specified then the behaviour is down to the AWS SDK. This will probably mean the default profile.
-
setProfileName
The profile within configuration.If not specified then the behaviour is down to the AWS SDK. This will probably mean the default profile.
-
getRefreshIntervalNanos
The refresh interval in nano seconds.This maps onto
ProfileCredentialsProvider#setRefreshIntervalNanos(long}. The correspondingProfileCredentialsProvider#setRefreshForceIntervalNanos(long)is set to 2x whatever you have configured here. -
setRefreshIntervalNanos
The refresh interval in nano seconds.This maps onto
ProfileCredentialsProvider#setRefreshIntervalNanos(long}. The correspondingProfileCredentialsProvider#setRefreshForceIntervalNanos(long)is set to 2x whatever you have configured here.
-