@Override
    protected SamlIdPMetadataDocument finalizeMetadataDocument(final SamlIdPMetadataDocument document,
                                                               final Optional<SamlRegisteredService> registeredService) {
        document.setAppliesTo(getAppliesToFor(registeredService));
        val dynamoDb = getConfigurationContext().getCasProperties().getAuthn().getSamlIdp().getMetadata().getDynamoDb();

        val values = buildTableAttributeValuesMap(document);
        val putItemRequest = PutItemRequest.builder().tableName(dynamoDb.getIdpMetadataTableName()).item(values).build();
        LOGGER.debug("Submitting put request [{}] for record [{}]", putItemRequest, document);
        val putItemResult = dynamoDbClient.putItem(putItemRequest);
        LOGGER.debug("Record added with result [{}]", putItemResult);
        return document;
    }
This is {@link DynamoDbSamlIdPMetadataGenerator}.

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