private S3Resource validateParentS3Resource(S3Resource parentS3Resource) {
        String parentResourceType = parentS3Resource.getType();
        if (!S3ResourceType.OUTPOST.toString().equals(parentResourceType)
            && !S3ResourceType.OBJECT_LAMBDAS.toString().equals(parentResourceType)) {
            throw new IllegalArgumentException("Invalid 'parentS3Resource' type. An S3 access point resource must be " +
                                               "associated with an outpost or object lambdas parent resource.");
        }
        return parentS3Resource;
    }
An {@link S3Resource} that represents an S3 access point.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/S3AccessPointResource.java