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.

NamesList

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

func NamesList(nameBuilder NameBuilder, namesList ...NameBuilder) ProjectionBuilder

NamesList returns a ProjectionBuilder representing the list of item attribute names specified by the argument NameBuilders. The resulting ProjectionBuilder can be used as a part of other ProjectionBuilders or as an argument to the WithProjection() method for the Builder struct.

Example:

// projection represents the list of names {"foo", "bar"} projection := expression.NamesList(expression.Name("foo"), expression.Name("bar")) // Used in another Projection Expression anotherProjection := expression.AddNames(projection, expression.Name("baz")) // Used to make an Builder builder := expression.NewBuilder().WithProjection(newProjection)

Expression Equivalent:

expression.NamesList(expression.Name("foo"), expression.Name("bar")) "foo, bar"

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")
namesList

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")

ProjectionBuilder

ProjectionBuilder represents Projection Expressions in DynamoDB. ProjectionBuilders are the building blocks of Builders. More Information at: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ProjectionExpressions.html

On this page: