func attributeDefinition(name string, attributeType AttributeType) *dynamodb.AttributeDefinition {
	return &dynamodb.AttributeDefinition{
		AttributeName: aws.String(name),
		AttributeType: aws.String(string(attributeType)),
	}
}
attributeDefinition initializes and returns an AttributeDefition.
package gonamo
import (
	"fmt"
	"log"
	"strconv"
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/service/dynamodb"
)
func AwsStringOrNil(s string) *string {
	if len(s) == 0 {
		return nil
	}
	return aws.String(s)
}
func AttributeValue(attributeType AttributeType, attributeValue interface{}) *dynamodb.AttributeValue {
	if attributeValue == nil {
		return nil
	}
	var attr dynamodb.AttributeValue
	switch attributeType {
	case StringType:
		attr.S = aws.String(attributeValue.(string))
	case StringArrayType:
		slice := attributeValue.([]string)
		ss := make([]*string, len(slice))
		for i, s := range slice {
			ss[i] = AwsStringOrNil(s)
		}
		attr.SS = ss
	case NumberType:
		attr.N = aws.String(fmt.Sprintf("%v", attributeValue))
	case BoolType:
		attr.BOOL = aws.Bool(attributeValue.(bool))
	default:
		log.Printf("WARNING: Unknown attributeType provided to attributeValue(%v, %v)\n", attributeType, attributeValue)
	}
	return &attr
}