protected Map<String, AttributeValue> buildAttributeValueMap(final Map<String, ?> attributes) {
        return attributes
            .entrySet()
            .stream()
            .collect(Collectors.toMap(Map.Entry::getKey,
                value -> {
                    val values = CollectionUtils.toCollection(value.getValue());
                    val attributeValues = values
                        .stream()
                        .map(attrValue -> AttributeValue.builder()
                            .string(attrValue.toString())
                            .build())
                        .toList();
                    return AttributeValue.builder().set(attributeValues).build();
                }));
    }
This is {@link AmazonVerifiedPermissionsRegisteredServiceAccessStrategy}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-aws/src/main/java/org/apereo/cas/aws/authz/AmazonVerifiedPermissionsRegisteredServiceAccessStrategy.java