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 SnsClient client created specifically for job state notifications.
    static final String
    Bean name for the SNS client override configuration.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    software.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 named SnsClient to be used by JobNotification SNS publishers, unless a bean by that name already exists in context.
    software.amazon.awssdk.core.client.config.ClientOverrideConfiguration
    Create a named ClientOverrideConfiguration to be used by the SnsClient, 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 SnsClient client created specifically for job state notifications.
      See Also:
    • SNS_CLIENT_OVERRIDE_CONFIG_BEAN_NAME

      public static final String 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 named ClientOverrideConfiguration to be used by the SnsClient, 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 named SnsClient 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
      overrideConfig - The client override configuration
      Returns:
      an SnsClient