@Override
    public void saveOrUpdate(final SamlMetadataDocument document) {
        val dynamoDb = samlIdPProperties.getMetadata().getDynamoDb();
        val values = buildTableAttributeValuesMap(document);
        val putItemRequest = PutItemRequest.builder().tableName(dynamoDb.getTableName()).item(values).build();
        LOGGER.debug("Submitting put request [{}] for record [{}]", putItemRequest, document);
        val putItemResult = dynamoDbClient.putItem(putItemRequest);
        LOGGER.debug("Record added with result [{}]", putItemResult);
    }
This is {@link DynamoDbSamlRegisteredServiceMetadataResolver}.

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