Class AWSAutoConfiguration
java.lang.Object
com.netflix.genie.web.spring.autoconfigure.aws.AWSAutoConfiguration
@Configuration
@EnableConfigurationProperties({RetryProperties.class,SNSNotificationsProperties.class})
public class AWSAutoConfiguration
extends Object
AWS beans.
- Since:
- 4.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.services.sns.SnsClient
jobNotificationsSNSClient
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider awsRegionProvider, software.amazon.awssdk.core.client.config.ClientOverrideConfiguration overrideConfig) Create a namedSnsClient
to be used by JobNotification SNS publishers, unless a bean by that name already exists in context.software.amazon.awssdk.core.client.config.ClientOverrideConfiguration
jobNotificationsSNSClientOverrideConfig
(RetryProperties retryProperties) Create a namedClientOverrideConfiguration
to be used by theSnsClient
, unless a bean by that name already exists in context.
-
Field Details
-
SNS_CLIENT_BEAN_NAME
The name of theSnsClient
client created specifically for job state notifications.- See Also:
-
SNS_CLIENT_OVERRIDE_CONFIG_BEAN_NAME
Bean name for the SNS client override configuration. This constant is used to identify the bean that provides custom configuration for the AWS SNS client.- See Also:
-
-
Constructor Details
-
AWSAutoConfiguration
public AWSAutoConfiguration()
-
-
Method Details
-
jobNotificationsSNSClientOverrideConfig
@Bean(name="snsClientOverrideConfig") @ConditionalOnMissingBean(name="snsClientOverrideConfig") public software.amazon.awssdk.core.client.config.ClientOverrideConfiguration jobNotificationsSNSClientOverrideConfig(RetryProperties retryProperties) Create a namedClientOverrideConfiguration
to be used by theSnsClient
, unless a bean by that name already exists in context.- Parameters:
retryProperties
- The retry properties- Returns:
- a named
ClientOverrideConfiguration
-
jobNotificationsSNSClient
@Bean(name="snsClient") @ConditionalOnMissingBean(name="snsClient") @ConditionalOnProperty(value="genie.notifications.sns.enabled", havingValue="true") public software.amazon.awssdk.services.sns.SnsClient jobNotificationsSNSClient(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider awsRegionProvider, @Qualifier("snsClientOverrideConfig") software.amazon.awssdk.core.client.config.ClientOverrideConfiguration overrideConfig) Create a namedSnsClient
to be used by JobNotification SNS publishers, unless a bean by that name already exists in context.- Parameters:
credentialsProvider
- The credentials providerawsRegionProvider
- The region provideroverrideConfig
- The client override configuration- Returns:
- an
SnsClient
-