@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "amazonS3SamlRegisteredServiceMetadataResolutionPlanConfigurer")
    public SamlRegisteredServiceMetadataResolutionPlanConfigurer amazonS3SamlRegisteredServiceMetadataResolutionPlanConfigurer(
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("amazonS3SamlRegisteredServiceMetadataResolver")
        final SamlRegisteredServiceMetadataResolver amazonS3SamlRegisteredServiceMetadataResolver) {
        return BeanSupplier.of(SamlRegisteredServiceMetadataResolutionPlanConfigurer.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> plan -> plan.registerMetadataResolver(amazonS3SamlRegisteredServiceMetadataResolver))
            .otherwiseProxy()
            .get();
    }
This is {@link SamlIdPAmazonS3RegisteredServiceMetadataConfiguration}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-saml-idp-metadata-aws-s3/src/main/java/org/apereo/cas/config/SamlIdPAmazonS3RegisteredServiceMetadataConfiguration.java