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
    Modifier and Type
    Field
    Description
    static final String
    The name of the AmazonSNS client created specifically for job state notifications.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.amazonaws.services.sns.AmazonSNS
    jobNotificationsSNSClient(com.amazonaws.auth.AWSCredentialsProvider credentialsProvider, com.amazonaws.regions.AwsRegionProvider awsRegionProvider, com.amazonaws.ClientConfiguration clientConfiguration)
    Create a named AmazonSNS client to be used by JobNotification SNS publishers, unless a bean by that name already exists in context.
    com.amazonaws.ClientConfiguration
    jobNotificationsSNSClientConfiguration(com.amazonaws.retry.RetryPolicy retryPolicy)
    Create a named ClientConfiguration to be used by the AmazonSNS client, unless a bean by that name already exists in context.
    com.amazonaws.retry.RetryPolicy
    Create a named RetryPolicy to be used by the AmazonSNS client, unless a bean by that name already exists in context.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SNS_CLIENT_BEAN_NAME

      public static final String SNS_CLIENT_BEAN_NAME
      The name of the AmazonSNS client created specifically for job state notifications.

      Note: this name must match the bean name defined in SnsConfiguration in order to override it.

      See Also:
  • Constructor Details

    • AWSAutoConfiguration

      public AWSAutoConfiguration()
  • Method Details

    • jobNotificationsSNSClientRetryPolicy

      @Bean(name="SNSClientRetryPolicy") @ConditionalOnMissingBean(name="SNSClientRetryPolicy") public com.amazonaws.retry.RetryPolicy jobNotificationsSNSClientRetryPolicy(RetryProperties retryProperties)
      Create a named RetryPolicy to be used by the AmazonSNS client, unless a bean by that name already exists in context.
      Parameters:
      retryProperties - The retry properties
      Returns:
      a named RetryPolicy
    • jobNotificationsSNSClientConfiguration

      @Bean(name="SNSClientConfiguration") @ConditionalOnMissingBean(name="SNSClientConfiguration") public com.amazonaws.ClientConfiguration jobNotificationsSNSClientConfiguration(@Qualifier("SNSClientRetryPolicy") com.amazonaws.retry.RetryPolicy retryPolicy)
      Create a named ClientConfiguration to be used by the AmazonSNS client, unless a bean by that name already exists in context.
      Parameters:
      retryPolicy - The retry policy
      Returns:
      a named ClientConfiguration
    • jobNotificationsSNSClient

      @Bean(name="amazonSNS") @ConditionalOnMissingBean(name="amazonSNS") @ConditionalOnProperty(value="genie.notifications.sns.enabled", havingValue="true") public com.amazonaws.services.sns.AmazonSNS jobNotificationsSNSClient(com.amazonaws.auth.AWSCredentialsProvider credentialsProvider, com.amazonaws.regions.AwsRegionProvider awsRegionProvider, @Qualifier("SNSClientConfiguration") com.amazonaws.ClientConfiguration clientConfiguration)
      Create a named AmazonSNS client to be used by JobNotification SNS publishers, unless a bean by that name already exists in context.
      Parameters:
      credentialsProvider - The credentials provider
      awsRegionProvider - The region provider
      clientConfiguration - The client configuration
      Returns:
      an AmazonSNS client