AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Represents the data for an attribute.

Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.

For more information, see Data Types in the Amazon DynamoDB Developer Guide.

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.Model.AttributeValue

Namespace: Amazon.DynamoDBv2.Model
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z

Syntax

C#
public class AttributeValue

The AttributeValue type exposes the following members

Constructors

NameDescription
Public Method AttributeValue()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method AttributeValue(string)

Instantiates AttributeValue with the parameterized properties

Public Method AttributeValue(List<String>)

Instantiates AttributeValue with the parameterized properties

Properties

NameTypeDescription
Public Property B System.IO.MemoryStream

Gets and sets the property B.

An attribute of type Binary. For example:

"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"

Public Property BOOL System.Boolean

Gets and sets the property BOOL.

An attribute of type Boolean. For example:

"BOOL": true

Public Property BS System.Collections.Generic.List<System.IO.MemoryStream>

Gets and sets the property BS.

An attribute of type Binary Set. For example:

"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]

Public Property IsBOOLSet System.Boolean

This property is set to true if the property Amazon.DynamoDBv2.Model.AttributeValue.BOOL is set; false otherwise. This property can be used to determine if the related property was returned by a service response or if the related property should be sent to the service during a service call.

Public Property IsLSet System.Boolean

This property is set to true if the property Amazon.DynamoDBv2.Model.AttributeValue.L is set; false otherwise. This property can be used to determine if the related property was returned by a service response or if the related property should be sent to the service during a service call.

Public Property IsMSet System.Boolean

This property is set to true if the property Amazon.DynamoDBv2.Model.AttributeValue.M is set; false otherwise. This property can be used to determine if the related property was returned by a service response or if the related property should be sent to the service during a service call.

Public Property L System.Collections.Generic.List<Amazon.DynamoDBv2.Model.AttributeValue>

Gets and sets the property L.

An attribute of type List. For example:

"L": ["Cookies", "Coffee", 3.14159]

Public Property M System.Collections.Generic.Dictionary<System.String, Amazon.DynamoDBv2.Model.AttributeValue>

Gets and sets the property M.

An attribute of type Map. For example:

"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}

Public Property N System.String

Gets and sets the property N.

An attribute of type Number. For example:

"N": "123.45"

Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.

Public Property NS System.Collections.Generic.List<System.String>

Gets and sets the property NS.

An attribute of type Number Set. For example:

"NS": ["42.2", "-19", "7.5", "3.14"]

Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.

Public Property NULL System.Boolean

Gets and sets the property NULL.

An attribute of type Null. For example:

"NULL": true

Public Property S System.String

Gets and sets the property S.

An attribute of type String. For example:

"S": "Hello"

Public Property SS System.Collections.Generic.List<System.String>

Gets and sets the property SS.

An attribute of type String Set. For example:

"SS": ["Giraffe", "Hippo" ,"Zebra"]

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Unity:
Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone