@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public SamlIdPMetadataGenerator samlIdPMetadataGenerator(
        final ConfigurableApplicationContext applicationContext,
        final CasConfigurationProperties casProperties,
        @Qualifier("amazonDynamoDbSamlIdPMetadataClient")
        final DynamoDbClient amazonDynamoDBClient,
        @Qualifier("samlIdPMetadataGeneratorConfigurationContext")
        final SamlIdPMetadataGeneratorConfigurationContext samlIdPMetadataGeneratorConfigurationContext) {
        return BeanSupplier.of(SamlIdPMetadataGenerator.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> new DynamoDbSamlIdPMetadataGenerator(samlIdPMetadataGeneratorConfigurationContext, amazonDynamoDBClient))
            .otherwiseProxy()
            .get();
    }
This is {@link SamlIdPDynamoDbIdPMetadataConfiguration}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-saml-idp-metadata-dynamodb/src/main/java/org/apereo/cas/config/SamlIdPDynamoDbIdPMetadataConfiguration.java