Show / Hide Table of Contents

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

See: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes

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 },
                 // applies 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.

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.

Back to top Generated by DocFX