Tables

package
v0.0.0-...-e828fe8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QuoteTableIn = &dynamodb.CreateTableInput{
	AttributeDefinitions: []*dynamodb.AttributeDefinition{
		{
			AttributeName: aws.String("Quote_ID"),
			AttributeType: aws.String("S"),
		},
		{
			AttributeName: aws.String("Said_By"),
			AttributeType: aws.String("S"),
		},

		{
			AttributeName: aws.String("Short_Quote"),
			AttributeType: aws.String("S"),
		},
	},

	TableName: aws.String("temp"),

	KeySchema: []*dynamodb.KeySchemaElement{
		{
			AttributeName: aws.String("Quote_ID"),
			KeyType:       aws.String("HASH"),
		},
	},

	ProvisionedThroughput: &dynamodb.ProvisionedThroughput{
		ReadCapacityUnits:  aws.Int64(1),
		WriteCapacityUnits: aws.Int64(1),
	},

	GlobalSecondaryIndexes: []*dynamodb.GlobalSecondaryIndex{
		{
			IndexName: aws.String("Said_By_IDX"),

			KeySchema: []*dynamodb.KeySchemaElement{
				{
					AttributeName: aws.String("Said_By"),
					KeyType:       aws.String("HASH"),
				},
				{
					AttributeName: aws.String("Quote_ID"),
					KeyType:       aws.String("RANGE"),
				},
			},

			ProvisionedThroughput: &dynamodb.ProvisionedThroughput{
				ReadCapacityUnits:  aws.Int64(1),
				WriteCapacityUnits: aws.Int64(1),
			},

			Projection: &dynamodb.Projection{
				ProjectionType: aws.String("ALL"),
			},
		},
		{
			IndexName: aws.String("Short_Quote_IDX"),

			KeySchema: []*dynamodb.KeySchemaElement{
				{
					AttributeName: aws.String("Short_Quote"),
					KeyType:       aws.String("HASH"),
				},
			},

			ProvisionedThroughput: &dynamodb.ProvisionedThroughput{
				ReadCapacityUnits:  aws.Int64(1),
				WriteCapacityUnits: aws.Int64(1),
			},

			Projection: &dynamodb.Projection{
				ProjectionType: aws.String("ALL"),
			},
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL