Class AttributeType
Data types for attributes within a table.
Inheritance
System.Object
AttributeType
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class AttributeType : Enum
Syntax (vb)
Public NotInheritable Class AttributeType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK;
var app = new App();
var stack = new Stack(app, "Stack", new StackProps { Env = new Environment { Region = "us-west-2" } });
var globalTable = new TableV2(stack, "GlobalTable", new TablePropsV2 {
PartitionKey = new Attribute { Name = "pk", Type = AttributeType.STRING },
// applys to all replicas, i.e., us-west-2, us-east-1, us-east-2
RemovalPolicy = RemovalPolicy.DESTROY,
Replicas = new [] { new ReplicaTableProps { Region = "us-east-1" }, new ReplicaTableProps { Region = "us-east-2" } }
});
Synopsis
Fields
BINARY | Up to 400KiB of binary data (which must be encoded as base64 before sending to DynamoDB). |
NUMBER | Numeric values made of up to 38 digits (positive, negative or zero). |
STRING | Up to 400KiB of UTF-8 encoded text. |
value__ |
Fields
BINARY
Up to 400KiB of binary data (which must be encoded as base64 before sending to DynamoDB).
public const AttributeType BINARY
Field Value
Type | Description |
---|---|
AttributeType |
NUMBER
Numeric values made of up to 38 digits (positive, negative or zero).
public const AttributeType NUMBER
Field Value
Type | Description |
---|---|
AttributeType |
STRING
Up to 400KiB of UTF-8 encoded text.
public const AttributeType STRING
Field Value
Type | Description |
---|---|
AttributeType |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |