Interface IGlobalSecondaryIndexProps
Properties for a global secondary index.
Inherited Members
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IGlobalSecondaryIndexProps : ISecondaryIndexProps, ISchemaOptions
Syntax (vb)
Public Interface IGlobalSecondaryIndexProps
Inherits ISecondaryIndexProps, ISchemaOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DynamoDB;
var globalSecondaryIndexProps = new GlobalSecondaryIndexProps {
IndexName = "indexName",
PartitionKey = new Attribute {
Name = "name",
Type = AttributeType.BINARY
},
// the properties below are optional
NonKeyAttributes = new [] { "nonKeyAttributes" },
ProjectionType = ProjectionType.KEYS_ONLY,
ReadCapacity = 123,
SortKey = new Attribute {
Name = "name",
Type = AttributeType.BINARY
},
WriteCapacity = 123
};
Synopsis
Properties
ReadCapacity | The read capacity for the global secondary index. |
WriteCapacity | The write capacity for the global secondary index. |
Properties
ReadCapacity
The read capacity for the global secondary index.
virtual Nullable<double> ReadCapacity { get; }
Property Value
System.Nullable<System.Double>
Remarks
Can only be provided if table billingMode is Provisioned or undefined.
Default: 5
WriteCapacity
The write capacity for the global secondary index.
virtual Nullable<double> WriteCapacity { get; }
Property Value
System.Nullable<System.Double>
Remarks
Can only be provided if table billingMode is Provisioned or undefined.
Default: 5