ClientType
- client typepublic abstract class AbstractAWSCredentialsProviderProcessor<ClientType extends com.amazonaws.AmazonWebServiceClient> extends AbstractAWSProcessor<ClientType>
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptor |
AWS_CREDENTIALS_PROVIDER_SERVICE
AWS credentials provider service
|
ACCESS_KEY, client, CREDENTIALS_FILE, DEFAULT_PROTOCOL, DEFAULT_USER_AGENT, ENDPOINT_OVERRIDE, PROXY_HOST, PROXY_HOST_PORT, region, REGION, REL_FAILURE, REL_SUCCESS, relationships, SECRET_KEY, SSL_CONTEXT_SERVICE, TIMEOUT
Constructor and Description |
---|
AbstractAWSCredentialsProviderProcessor() |
Modifier and Type | Method and Description |
---|---|
protected abstract ClientType |
createClient(ProcessContext context,
com.amazonaws.auth.AWSCredentialsProvider credentialsProvider,
com.amazonaws.ClientConfiguration config)
Abstract method to create aws client using credentials provider.
|
protected com.amazonaws.auth.AWSCredentialsProvider |
getCredentialsProvider(ProcessContext context)
Get credentials provider using the
AWSCredentialsProviderService |
void |
onScheduled(ProcessContext context)
This method checks if {#link
AWS_CREDENTIALS_PROVIDER_SERVICE is available and if it
is, uses the credentials provider, otherwise it invokes the AbstractAWSProcessor.onScheduled(ProcessContext)
which uses static AWSCredentials for the aws processors |
protected void |
onScheduledUsingControllerService(ProcessContext context)
Create aws client using credentials provider
|
void |
onShutDown() |
createClient, createConfiguration, customValidate, getClient, getCredentials, getRegion, getRelationships, initializeRegionAndEndpoint, onShutdown
onTrigger, onTrigger
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final PropertyDescriptor AWS_CREDENTIALS_PROVIDER_SERVICE
public AbstractAWSCredentialsProviderProcessor()
@OnScheduled public void onScheduled(ProcessContext context)
AWS_CREDENTIALS_PROVIDER_SERVICE
is available and if it
is, uses the credentials provider, otherwise it invokes the AbstractAWSProcessor.onScheduled(ProcessContext)
which uses static AWSCredentials for the aws processorsonScheduled
in class AbstractAWSProcessor<ClientType extends com.amazonaws.AmazonWebServiceClient>
protected void onScheduledUsingControllerService(ProcessContext context)
context
- the process context@OnShutdown public void onShutDown()
protected com.amazonaws.auth.AWSCredentialsProvider getCredentialsProvider(ProcessContext context)
AWSCredentialsProviderService
context
- the process contextprotected abstract ClientType createClient(ProcessContext context, com.amazonaws.auth.AWSCredentialsProvider credentialsProvider, com.amazonaws.ClientConfiguration config)
context
- process contextcredentialsProvider
- aws credentials providerconfig
- aws client configuration