-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnTable_LocalSecondaryIndexProperty.go
53 lines (50 loc) · 2.72 KB
/
CfnTable_LocalSecondaryIndexProperty.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
package awsdynamodb
// Represents the properties of a local secondary index.
//
// A local secondary index can only be created when its parent table is created.
//
// 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"
//
// localSecondaryIndexProperty := &LocalSecondaryIndexProperty{
// IndexName: jsii.String("indexName"),
// KeySchema: []interface{}{
// &KeySchemaProperty{
// AttributeName: jsii.String("attributeName"),
// KeyType: jsii.String("keyType"),
// },
// },
// Projection: &ProjectionProperty{
// NonKeyAttributes: []*string{
// jsii.String("nonKeyAttributes"),
// },
// ProjectionType: jsii.String("projectionType"),
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-localsecondaryindex.html
//
type CfnTable_LocalSecondaryIndexProperty struct {
// The name of the local secondary index.
//
// The name must be unique among all other indexes on this table.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-localsecondaryindex.html#cfn-dynamodb-table-localsecondaryindex-indexname
//
IndexName *string `field:"required" json:"indexName" yaml:"indexName"`
// The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types: - `HASH` - partition key - `RANGE` - sort key > The partition key of an item is also known as its *hash attribute* .
//
// The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
// >
// > The sort key of an item is also known as its *range attribute* . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-localsecondaryindex.html#cfn-dynamodb-table-localsecondaryindex-keyschema
//
KeySchema interface{} `field:"required" json:"keySchema" yaml:"keySchema"`
// Represents attributes that are copied (projected) from the table into the local secondary index.
//
// These are in addition to the primary key attributes and index key attributes, which are automatically projected.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-localsecondaryindex.html#cfn-dynamodb-table-localsecondaryindex-projection
//
Projection interface{} `field:"required" json:"projection" yaml:"projection"`
}