@ConditionalOnMissingBean(name = "amazonCloudDirectory")
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public CloudDirectoryClient amazonCloudDirectory(final CasConfigurationProperties casProperties) {
        val cloud = casProperties.getAuthn().getCloudDirectory();
        val builder = CloudDirectoryClient.builder();
        AmazonClientConfigurationBuilder.prepareSyncClientBuilder(builder,
            ChainingAWSCredentialsProvider.getInstance(cloud.getCredentialAccessKey(),
                cloud.getCredentialSecretKey(), cloud.getProfilePath(), cloud.getProfileName()), cloud);
        return builder.build();
    }
This is {@link CasCloudDirectoryAuthenticationAutoConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-cloud-directory-authentication/src/main/java/org/apereo/cas/config/CasCloudDirectoryAuthenticationAutoConfiguration.java