-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsdynamodb_LocalSecondaryIndexProps.go
40 lines (37 loc) · 1.37 KB
/
awsdynamodb_LocalSecondaryIndexProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package awsdynamodb
// Properties for a local secondary index.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// localSecondaryIndexProps := &localSecondaryIndexProps{
// indexName: jsii.String("indexName"),
// sortKey: &attribute{
// name: jsii.String("name"),
// type: awscdk.Aws_dynamodb.attributeType_BINARY,
// },
//
// // the properties below are optional
// nonKeyAttributes: []*string{
// jsii.String("nonKeyAttributes"),
// },
// projectionType: awscdk.*Aws_dynamodb.projectionType_KEYS_ONLY,
// }
//
// Experimental.
type LocalSecondaryIndexProps struct {
// The name of the secondary index.
// Experimental.
IndexName *string `field:"required" json:"indexName" yaml:"indexName"`
// The non-key attributes that are projected into the secondary index.
// Experimental.
NonKeyAttributes *[]*string `field:"optional" json:"nonKeyAttributes" yaml:"nonKeyAttributes"`
// The set of attributes that are projected into the secondary index.
// Experimental.
ProjectionType ProjectionType `field:"optional" json:"projectionType" yaml:"projectionType"`
// The attribute of a sort key for the local secondary index.
// Experimental.
SortKey *Attribute `field:"required" json:"sortKey" yaml:"sortKey"`
}