-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsdynamodb_TableAttributes.go
65 lines (62 loc) · 2.14 KB
/
awsdynamodb_TableAttributes.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
61
62
63
64
package awsdynamodb
import (
"github.com/aws/aws-cdk-go/awscdk/awskms"
)
// Reference to a dynamodb table.
//
// 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"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var key key
//
// tableAttributes := &tableAttributes{
// encryptionKey: key,
// globalIndexes: []*string{
// jsii.String("globalIndexes"),
// },
// localIndexes: []*string{
// jsii.String("localIndexes"),
// },
// tableArn: jsii.String("tableArn"),
// tableName: jsii.String("tableName"),
// tableStreamArn: jsii.String("tableStreamArn"),
// }
//
// Experimental.
type TableAttributes struct {
// KMS encryption key, if this table uses a customer-managed encryption key.
// Experimental.
EncryptionKey awskms.IKey `field:"optional" json:"encryptionKey" yaml:"encryptionKey"`
// The name of the global indexes set for this Table.
//
// Note that you need to set either this property,
// or {@link localIndexes},
// if you want methods like grantReadData()
// to grant permissions for indexes as well as the table itself.
// Experimental.
GlobalIndexes *[]*string `field:"optional" json:"globalIndexes" yaml:"globalIndexes"`
// The name of the local indexes set for this Table.
//
// Note that you need to set either this property,
// or {@link globalIndexes},
// if you want methods like grantReadData()
// to grant permissions for indexes as well as the table itself.
// Experimental.
LocalIndexes *[]*string `field:"optional" json:"localIndexes" yaml:"localIndexes"`
// The ARN of the dynamodb table.
//
// One of this, or {@link tableName}, is required.
// Experimental.
TableArn *string `field:"optional" json:"tableArn" yaml:"tableArn"`
// The table name of the dynamodb table.
//
// One of this, or {@link tableArn}, is required.
// Experimental.
TableName *string `field:"optional" json:"tableName" yaml:"tableName"`
// The ARN of the table's stream.
// Experimental.
TableStreamArn *string `field:"optional" json:"tableStreamArn" yaml:"tableStreamArn"`
}