@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "amazonS3ServiceRegistryClient")
    public S3Client amazonS3ServiceRegistryClient(final CasConfigurationProperties casProperties) {
        val amz = casProperties.getServiceRegistry().getAmazonS3();
        val credentials = ChainingAWSCredentialsProvider.getInstance(amz.getCredentialAccessKey(),
            amz.getCredentialSecretKey(), amz.getProfilePath(), amz.getProfileName());
        val builder = S3Client.builder();
        AmazonClientConfigurationBuilder.prepareSyncClientBuilder(builder, credentials, amz);
        return builder.build();
    }
This is {@link CasAmazonS3ServiceRegistryAutoConfiguration}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-aws-s3-service-registry/src/main/java/org/apereo/cas/config/CasAmazonS3ServiceRegistryAutoConfiguration.java