// Code generated by smithy-go-codegen DO NOT EDIT.

package types_test

import (
	"fmt"
	"github.com/aws/aws-sdk-go-v2/service/dynamodb/types"
)

func ExampleAttributeValue_outputUsage() {
	var union types.AttributeValue
	// type switches can be used to check the union value
	switch v := union.(type) {
	case *types.AttributeValueMemberB:
		_ = v.Value // Value is []byte

	case *types.AttributeValueMemberBOOL:
		_ = v.Value // Value is bool

	case *types.AttributeValueMemberBS:
		_ = v.Value // Value is [][]byte

	case *types.AttributeValueMemberL:
		_ = v.Value // Value is []types.AttributeValue

	case *types.AttributeValueMemberM:
		_ = v.Value // Value is map[string]types.AttributeValue

	case *types.AttributeValueMemberN:
		_ = v.Value // Value is string

	case *types.AttributeValueMemberNS:
		_ = v.Value // Value is []string

	case *types.AttributeValueMemberNULL:
		_ = v.Value // Value is bool

	case *types.AttributeValueMemberS:
		_ = v.Value // Value is string

	case *types.AttributeValueMemberSS:
		_ = v.Value // Value is []string

	case *types.UnknownUnionMember:
		fmt.Println("unknown tag:", v.Tag)

	default:
		fmt.Println("union is nil or unknown type")

	}
}

var _ [][]byte
var _ map[string]types.AttributeValue
var _ []string
var _ *string
var _ *string
var _ *bool
var _ []types.AttributeValue
var _ *bool
var _ []string
var _ []byte
