Class AttributeType
Data types for attributes within a table.
Inheritance
System.Object
AttributeType
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.AWS.DynamoDB.dll
Syntax (csharp)
public sealed class AttributeType : Enum
Syntax (vb)
Public NotInheritable Class AttributeType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var globalTable = new Table(this, "Table", new TableProps {
PartitionKey = new Attribute { Name = "id", Type = AttributeType.STRING },
ReplicationRegions = new [] { "us-east-1", "us-east-2", "us-west-2" },
BillingMode = BillingMode.PROVISIONED
});
globalTable.AutoScaleWriteCapacity(new EnableScalingProps {
MinCapacity = 1,
MaxCapacity = 10
}).ScaleOnUtilization(new UtilizationScalingProps { TargetUtilizationPercent = 75 });
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 |