Class S3Config

java.lang.Object
org.saidone.config.S3Config

@Configuration @ConfigurationProperties(prefix="application.service.vault.storage.s3") public class S3Config extends Object
Configuration properties and bean factory for the Amazon S3 client used by the vault storage backend.

Properties are bound from the application.service.vault.storage.s3.* namespace.

  • Constructor Details

    • S3Config

      public S3Config()
  • Method Details

    • s3Client

      @Bean public software.amazon.awssdk.services.s3.S3Client s3Client()
      Builds the Amazon S3 client used as storage backend.

      If a custom endpoint is provided, it is applied through SdkClientBuilder.endpointOverride(URI) and static credentials built from key and secret are configured.

      Returns:
      configured S3Client