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. NonKeyAttributes *[]*string `field:"optional" json:"nonKeyAttributes" yaml:"nonKeyAttributes"` // The set of attributes that are projected into the secondary index. ProjectionType ProjectionType `field:"optional" json:"projectionType" yaml:"projectionType"` // Partition key attribute definition. PartitionKey *Attribute `field:"required" json:"partitionKey" yaml:"partitionKey"` // Sort key attribute definition. 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. 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. WriteCapacity *float64 `field:"optional" json:"writeCapacity" yaml:"writeCapacity"` }