@ConditionalOnMissingBean(name = "cloudDirectoryRepository")
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public AmazonCloudDirectoryRepository cloudDirectoryRepository(final CasConfigurationProperties casProperties,
                                                                   @Qualifier("amazonCloudDirectory")
                                                                   final CloudDirectoryClient amazonCloudDirectory) {
        val cloud = casProperties.getAuthn().getCloudDirectory();
        return new DefaultAmazonCloudDirectoryRepository(amazonCloudDirectory, cloud);
    }
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