Class CortexS3AutoConfiguration

java.lang.Object
ai.chatur.cortex.spring.backup.CortexS3AutoConfiguration

@AutoConfiguration @ConditionalOnClass(software.amazon.awssdk.services.s3.S3Client.class) @ConditionalOnProperty(prefix="cortex.s3", name="enabled", havingValue="true") @EnableConfigurationProperties(CortexProperties.class) public class CortexS3AutoConfiguration extends Object
Registers the S3 client, switched by cortex.s3.enabled.

Separate from CortexBackupAutoConfiguration so the client can be switched on and off on its own: a consumer who does not want S3 leaves it off and pays for nothing, and the AWS SDK stays a compileOnly dependency that the starter never forces on anyone.

Backups are the only thing in Cortex that uses this client today, and CortexBackupAutoConfiguration refuses to start without it — but the switch is genuinely independent, so an application may enable the client for its own purposes with backups off.

  • Constructor Details

    • CortexS3AutoConfiguration

      public CortexS3AutoConfiguration()
      Creates the auto-configuration. Spring instantiates this; consumers do not.