Class AbstractAwsSyncProcessor<T extends software.amazon.awssdk.core.SdkClient,U extends software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder<U,T> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<U,T>>
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processors.aws.v2.AbstractAwsProcessor<T>
org.apache.nifi.processors.aws.v2.AbstractAwsSyncProcessor<T,U>
- Type Parameters:
T- client typeU- client builder type
- All Implemented Interfaces:
ConfigurableComponent,Processor,VerifiableProcessor
- Direct Known Subclasses:
AbstractAwsMachineLearningJobStarter,AbstractAwsMachineLearningJobStatusProcessor,AbstractDynamoDBProcessor
public abstract class AbstractAwsSyncProcessor<T extends software.amazon.awssdk.core.SdkClient,U extends software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder<U,T> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<U,T>>
extends AbstractAwsProcessor<T>
Base class for aws sync client processors using the AWS v2 SDK.
- See Also:
-
Field Summary
Fields inherited from class org.apache.nifi.processors.aws.v2.AbstractAwsProcessor
AWS_CREDENTIALS_PROVIDER_SERVICE, DEFAULT_USER_AGENT, ENDPOINT_OVERRIDE, PROXY_CONFIGURATION_SERVICE, REGION, REL_FAILURE, REL_SUCCESS, SSL_CONTEXT_SERVICE, TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <B extends software.amazon.awssdk.awscore.client.builder.AwsClientBuilder>
voidconfigureHttpClient(B clientBuilder, ProcessContext context) Configure the http client on the builder.createClient(ProcessContext context) Creates the AWS SDK client.createClient(ProcessContext context, software.amazon.awssdk.regions.Region region) Creates an AWS client using process context and AWS client details.protected abstract UcreateClientBuilder(ProcessContext context) Construct the AWS SDK client builder and perform any service-specific configuration of the builder.private software.amazon.awssdk.http.SdkHttpClientcreateSdkHttpClient(ProcessContext context) Methods inherited from class org.apache.nifi.processors.aws.v2.AbstractAwsProcessor
configureClientBuilder, configureClientBuilder, configureEndpoint, configureSdkHttpClient, getClient, getClient, getCredentialsProvider, getRegion, getRelationships, migrateProperties, onScheduled, onStopped, onTrigger, onTrigger, verifyMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateRelationships
-
Constructor Details
-
AbstractAwsSyncProcessor
public AbstractAwsSyncProcessor()
-
-
Method Details
-
createClientBuilder
Construct the AWS SDK client builder and perform any service-specific configuration of the builder.- Parameters:
context- The process context- Returns:
- The SDK client builder
-
createClient
Creates the AWS SDK client.- Overrides:
createClientin classAbstractAwsProcessor<T extends software.amazon.awssdk.core.SdkClient>- Parameters:
context- The process context- Returns:
- The created client
-
createClient
Description copied from class:AbstractAwsProcessorCreates an AWS client using process context and AWS client details.- Specified by:
createClientin classAbstractAwsProcessor<T extends software.amazon.awssdk.core.SdkClient>- Parameters:
context- process contextregion- the AWS Region- Returns:
- AWS client
-
configureHttpClient
protected <B extends software.amazon.awssdk.awscore.client.builder.AwsClientBuilder> void configureHttpClient(B clientBuilder, ProcessContext context) Description copied from class:AbstractAwsProcessorConfigure the http client on the builder.- Specified by:
configureHttpClientin classAbstractAwsProcessor<T extends software.amazon.awssdk.core.SdkClient>- Type Parameters:
B- The builder type- Parameters:
clientBuilder- The client buildercontext- The process context
-
createSdkHttpClient
-