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

package types_test

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

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

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

	case *types.TypedAttributeValueMemberDatetimeValue:
		_ = v.Value // Value is time.Time

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

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

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

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

	}
}

var _ *string
var _ *string
var _ *bool
var _ *time.Time
var _ []byte
