-
Notifications
You must be signed in to change notification settings - Fork 17
/
GlobalSecondaryIndexProps.go
61 lines (58 loc) · 2.14 KB
/
GlobalSecondaryIndexProps.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package awsdynamodb
// Properties for a global 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"
//
// globalSecondaryIndexProps := &GlobalSecondaryIndexProps{
// IndexName: jsii.String("indexName"),
// PartitionKey: &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,
// ReadCapacity: jsii.Number(123),
// SortKey: &Attribute{
// Name: jsii.String("name"),
// Type: awscdk.*Aws_dynamodb.AttributeType_BINARY,
// },
// WriteCapacity: jsii.Number(123),
// }
//
type GlobalSecondaryIndexProps struct {
// The name of the secondary index.
IndexName *string `field:"required" json:"indexName" yaml:"indexName"`
// The non-key attributes that are projected into the secondary index.
// Default: - No additional attributes.
//
NonKeyAttributes *[]*string `field:"optional" json:"nonKeyAttributes" yaml:"nonKeyAttributes"`
// The set of attributes that are projected into the secondary index.
// Default: ALL.
//
ProjectionType ProjectionType `field:"optional" json:"projectionType" yaml:"projectionType"`
// Partition key attribute definition.
PartitionKey *Attribute `field:"required" json:"partitionKey" yaml:"partitionKey"`
// Sort key attribute definition.
// Default: no sort key.
//
SortKey *Attribute `field:"optional" json:"sortKey" yaml:"sortKey"`
// The read capacity for the global secondary index.
//
// Can only be provided if table billingMode is Provisioned or undefined.
// Default: 5.
//
ReadCapacity *float64 `field:"optional" json:"readCapacity" yaml:"readCapacity"`
// The write capacity for the global secondary index.
//
// Can only be provided if table billingMode is Provisioned or undefined.
// Default: 5.
//
WriteCapacity *float64 `field:"optional" json:"writeCapacity" yaml:"writeCapacity"`
}