Enum AttributeType
Data types for attributes within a table.
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum AttributeType
Syntax (vb)
Public Enum AttributeType
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 mrscTable = new TableV2(stack, "MRSCTable", new TablePropsV2 {
PartitionKey = new Attribute { Name = "pk", Type = AttributeType.STRING },
MultiRegionConsistency = MultiRegionConsistency.STRONG,
Replicas = new [] { new ReplicaTableProps { Region = "us-east-1" } },
WitnessRegion = "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. |
Fields
Name | Description |
---|---|
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. |