AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Name

import "github.com/aws/aws-sdk-go/service/dynamodb/expression"

func Name(name string) NameBuilder

Name creates a NameBuilder. The argument should represent the desired item attribute. It is possible to reference nested item attributes by using square brackets for lists and dots for maps. For documentation on specifying item attributes, see: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.Attributes.html

Example:

// Specify a top-level attribute name := expression.Name("TopLevel") // Specify a nested attribute nested := expression.Name("Record[6].SongList") // Use Name() to create a condition expression condition := expression.Name("foo").Equal(expression.Name("bar"))

name

Type: string

NameBuilder

NameBuilder represents a name of a top level item attribute or a nested attribute. Since NameBuilder represents a DynamoDB Operand, it implements the OperandBuilder interface. Methods and functions in the package take NameBuilder as an argument and establishes relationships between operands. NameBuilder should only be initialized using the function Name().

Example:

// Create a NameBuilder representing the item attribute "aName" nameBuilder := expression.Name("aName")

On this page: