Class CfnGlobalTable.ProjectionProperty
Represents attributes that are copied (projected) from the table into an index.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnGlobalTable.ProjectionProperty : CfnGlobalTable.IProjectionProperty
Syntax (vb)
Public Class CfnGlobalTable.ProjectionProperty Implements CfnGlobalTable.IProjectionProperty
Remarks
These are in addition to the primary key attributes and index key attributes, which are automatically projected.
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 projectionProperty = new ProjectionProperty {
NonKeyAttributes = new [] { "nonKeyAttributes" },
ProjectionType = "projectionType"
};
Synopsis
Constructors
ProjectionProperty() | Represents attributes that are copied (projected) from the table into an index. |
Properties
NonKeyAttributes | Represents the non-key attribute names which will be projected into the index. |
ProjectionType | The set of attributes that are projected into the index:. |
Constructors
ProjectionProperty()
Represents attributes that are copied (projected) from the table into an index.
public ProjectionProperty()
Remarks
These are in addition to the primary key attributes and index key attributes, which are automatically projected.
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 projectionProperty = new ProjectionProperty {
NonKeyAttributes = new [] { "nonKeyAttributes" },
ProjectionType = "projectionType"
};
Properties
NonKeyAttributes
Represents the non-key attribute names which will be projected into the index.
public string[]? NonKeyAttributes { get; set; }
Property Value
string[]
Remarks
For global and local secondary indexes, the total count of NonKeyAttributes
summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total. This limit only applies when you specify the ProjectionType of INCLUDE
. You still can specify the ProjectionType of ALL
to project all attributes from the source table, even if the table has more than 100 attributes.
ProjectionType
The set of attributes that are projected into the index:.
public string? ProjectionType { get; set; }
Property Value
Remarks
When using the DynamoDB console, ALL
is selected by default.