Package org.nuxeo.runtime.aws
Class AWSConfigurationServiceImpl
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.runtime.aws.AWSConfigurationServiceImpl
-
- All Implemented Interfaces:
AWSConfigurationService
,Adaptable
,Component
,Extensible
,TimestampedService
public class AWSConfigurationServiceImpl extends DefaultComponent implements AWSConfigurationService
Implementation of the service providing AWS configuration.This service does a simple lookup in provided Nuxeo configuration. Instead of this service, you should probably use
NuxeoAWSCredentialsProvider
andNuxeoAWSRegionProvider
because they fall back to the default AWS SDK lookup behavior if no Nuxeo configuration is available.- Since:
- 10.3
- See Also:
NuxeoAWSCredentialsProvider
,NuxeoAWSRegionProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
XP_CONFIGURATION
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description AWSConfigurationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.amazonaws.auth.AWSCredentials
getAWSCredentials(String id)
Gets the AWS Credentials for the given configuration.String
getAWSRegion(String id)
Gets the AWS Region for the given configuration.-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.aws.AWSConfigurationService
getAWSCredentials, getAWSRegion
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Field Detail
-
XP_CONFIGURATION
public static final String XP_CONFIGURATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AWSConfigurationServiceImpl
public AWSConfigurationServiceImpl()
-
-
Method Detail
-
getAWSCredentials
public com.amazonaws.auth.AWSCredentials getAWSCredentials(String id)
Description copied from interface:AWSConfigurationService
Gets the AWS Credentials for the given configuration.- Specified by:
getAWSCredentials
in interfaceAWSConfigurationService
- Parameters:
id
- the configuration id, ornull
for the default- Returns:
- the AWS credentials, or
null
if not defined
-
getAWSRegion
public String getAWSRegion(String id)
Description copied from interface:AWSConfigurationService
Gets the AWS Region for the given configuration.- Specified by:
getAWSRegion
in interfaceAWSConfigurationService
- Parameters:
id
- the configuration id, ornull
for the default- Returns:
- the AWS Region, or
null
if not defined
-
-