private static AttributeValue toAttributeValue(final YubiKeyAccount account) {
        val devices = account.getDevices()
            .stream()
            .map(device -> {
                val attributes = CollectionUtils.<String, AttributeValue>wrap(
                    "id", AttributeValue.builder().n(String.valueOf(device.getId())).build(),
                    "name", AttributeValue.builder().s(device.getName()).build(),
                    "publicId", AttributeValue.builder().s(device.getPublicId()).build(),
                    "registrationDate", AttributeValue.builder().s(device.getRegistrationDate().toString()).build()
                );
                if (StringUtils.isNotBlank(device.getTenant())) {
                    attributes.put("tenant", AttributeValue.builder().s(device.getTenant()).build());
                }
                return AttributeValue.builder().m(attributes).build();
            })
            .collect(Collectors.toList());
        return AttributeValue.builder().l(devices).build();
    }
This is {@link DynamoDbYubiKeyFacilitator}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-yubikey-dynamodb/src/main/java/org/apereo/cas/adaptors/yubikey/dao/DynamoDbYubiKeyFacilitator.java