dynamodb

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DynamoDBTables = map[string]*dynamodb.CreateTableInput{
	"offlinejobs": &dynamodb.CreateTableInput{
		KeySchema: []types.KeySchemaElement{
			{
				AttributeName: aws.String("Id"),
				KeyType:       "HASH",
			},
		},
		AttributeDefinitions: []types.AttributeDefinition{
			{
				AttributeName: aws.String("Id"),
				AttributeType: "N",
			},
			{
				AttributeName: aws.String("LastModified"),
				AttributeType: "N",
			},
			{
				AttributeName: aws.String("Created"),
				AttributeType: "N",
			},
			{
				AttributeName: aws.String("Status"),
				AttributeType: "N",
			},
		},
		GlobalSecondaryIndexes: []types.GlobalSecondaryIndex{
			{
				IndexName: aws.String("lastmodified"),
				KeySchema: []types.KeySchemaElement{
					{
						AttributeName: aws.String("Id"),
						KeyType:       "HASH",
					},
					{
						AttributeName: aws.String("LastModified"),
						KeyType:       "RANGE",
					},
				},
				Projection: &types.Projection{
					ProjectionType: "ALL",
				},
			},
			{
				IndexName: aws.String("created"),
				KeySchema: []types.KeySchemaElement{
					{
						AttributeName: aws.String("Id"),
						KeyType:       "HASH",
					},
					{
						AttributeName: aws.String("Created"),
						KeyType:       "RANGE",
					},
				},
				Projection: &types.Projection{
					ProjectionType: "ALL",
				},
			},
			{
				IndexName: aws.String("status"),
				KeySchema: []types.KeySchemaElement{
					{
						AttributeName: aws.String("Status"),
						KeyType:       "HASH",
					},
					{
						AttributeName: aws.String("LastModified"),
						KeyType:       "RANGE",
					},
				},
				Projection: &types.Projection{
					ProjectionType: "ALL",
				},
			},
		},
		BillingMode: types.BillingModePayPerRequest,
	},
}

DynamoDBTables is a map whose keys are DynamoDB table names and whose values are `dynamodb.CreateTableInput` instances.

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