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();
// Source table in Account A
var sourceStack = new Stack(app, "SourceStack", new StackProps {
Env = new Environment { Region = "us-east-1", Account = "111111111111" }
});
// Region us-west-2
var sourceTable = new TableV2(sourceStack, "SourceTable", new TablePropsV2 {
TableName = "MyMultiAccountTable",
PartitionKey = new Attribute { Name = "pk", Type = AttributeType.STRING },
GlobalTableSettingsReplicationMode = GlobalTableSettingsReplicationMode.ALL
});
// After replica is deployed, update source stack with the ARN
sourceTable.Grants.MultiAccountReplicationTo("arn:aws:dynamodb:us-east-1:222222222222:table/MyMultiAccountTable");
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. |