dynamodb

package
v0.0.0-...-d0813e5 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package dynamodb provides a client for Amazon DynamoDB.

Index

Constants

View Source
const (
	AttributeActionAdd    = "ADD"
	AttributeActionDelete = "DELETE"
	AttributeActionPut    = "PUT"
)

Possible values for DynamoDB.

View Source
const (
	ComparisonOperatorBeginsWith  = "BEGINS_WITH"
	ComparisonOperatorBetween     = "BETWEEN"
	ComparisonOperatorContains    = "CONTAINS"
	ComparisonOperatorEq          = "EQ"
	ComparisonOperatorGe          = "GE"
	ComparisonOperatorGt          = "GT"
	ComparisonOperatorIn          = "IN"
	ComparisonOperatorLe          = "LE"
	ComparisonOperatorLt          = "LT"
	ComparisonOperatorNe          = "NE"
	ComparisonOperatorNotContains = "NOT_CONTAINS"
	ComparisonOperatorNotNull     = "NOT_NULL"
	ComparisonOperatorNull        = "NULL"
)

Possible values for DynamoDB.

View Source
const (
	ConditionalOperatorAnd = "AND"
	ConditionalOperatorOr  = "OR"
)

Possible values for DynamoDB.

View Source
const (
	IndexStatusActive   = "ACTIVE"
	IndexStatusCreating = "CREATING"
	IndexStatusDeleting = "DELETING"
	IndexStatusUpdating = "UPDATING"
)

Possible values for DynamoDB.

View Source
const (
	KeyTypeHash  = "HASH"
	KeyTypeRange = "RANGE"
)

Possible values for DynamoDB.

View Source
const (
	ProjectionTypeAll      = "ALL"
	ProjectionTypeInclude  = "INCLUDE"
	ProjectionTypeKeysOnly = "KEYS_ONLY"
)

Possible values for DynamoDB.

View Source
const (
	ReturnConsumedCapacityIndexes = "INDEXES"
	ReturnConsumedCapacityNone    = "NONE"
	ReturnConsumedCapacityTotal   = "TOTAL"
)

Possible values for DynamoDB.

View Source
const (
	ReturnItemCollectionMetricsNone = "NONE"
	ReturnItemCollectionMetricsSize = "SIZE"
)

Possible values for DynamoDB.

View Source
const (
	ReturnValueAllNew     = "ALL_NEW"
	ReturnValueAllOld     = "ALL_OLD"
	ReturnValueNone       = "NONE"
	ReturnValueUpdatedNew = "UPDATED_NEW"
	ReturnValueUpdatedOld = "UPDATED_OLD"
)

Possible values for DynamoDB.

View Source
const (
	ScalarAttributeTypeB = "B"
	ScalarAttributeTypeN = "N"
	ScalarAttributeTypeS = "S"
)

Possible values for DynamoDB.

View Source
const (
	SelectAllAttributes          = "ALL_ATTRIBUTES"
	SelectAllProjectedAttributes = "ALL_PROJECTED_ATTRIBUTES"
	SelectCount                  = "COUNT"
	SelectSpecificAttributes     = "SPECIFIC_ATTRIBUTES"
)

Possible values for DynamoDB.

View Source
const (
	TableStatusActive   = "ACTIVE"
	TableStatusCreating = "CREATING"
	TableStatusDeleting = "DELETING"
	TableStatusUpdating = "UPDATING"
)

Possible values for DynamoDB.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeDefinition

type AttributeDefinition struct {
	AttributeName aws.StringValue `json:"AttributeName"`
	AttributeType aws.StringValue `json:"AttributeType"`
}

AttributeDefinition is undocumented.

type AttributeValue

type AttributeValue struct {
	B    []byte                    `json:"B,omitempty"`
	BOOL aws.BooleanValue          `json:"BOOL,omitempty"`
	BS   [][]byte                  `json:"BS,omitempty"`
	L    []AttributeValue          `json:"L,omitempty"`
	M    map[string]AttributeValue `json:"M,omitempty"`
	N    aws.StringValue           `json:"N,omitempty"`
	NS   []string                  `json:"NS,omitempty"`
	NULL aws.BooleanValue          `json:"NULL,omitempty"`
	S    aws.StringValue           `json:"S,omitempty"`
	SS   []string                  `json:"SS,omitempty"`
}

AttributeValue is undocumented.

type AttributeValueUpdate

type AttributeValueUpdate struct {
	Action aws.StringValue `json:"Action,omitempty"`
	Value  *AttributeValue `json:"Value,omitempty"`
}

AttributeValueUpdate is undocumented.

type BatchGetItemInput

type BatchGetItemInput struct {
	RequestItems           map[string]KeysAndAttributes `json:"RequestItems"`
	ReturnConsumedCapacity aws.StringValue              `json:"ReturnConsumedCapacity,omitempty"`
}

BatchGetItemInput is undocumented.

type BatchGetItemOutput

type BatchGetItemOutput struct {
	ConsumedCapacity []ConsumedCapacity                     `json:"ConsumedCapacity,omitempty"`
	Responses        map[string][]map[string]AttributeValue `json:"Responses,omitempty"`
	UnprocessedKeys  map[string]KeysAndAttributes           `json:"UnprocessedKeys,omitempty"`
}

BatchGetItemOutput is undocumented.

type BatchWriteItemInput

type BatchWriteItemInput struct {
	RequestItems                map[string][]WriteRequest `json:"RequestItems"`
	ReturnConsumedCapacity      aws.StringValue           `json:"ReturnConsumedCapacity,omitempty"`
	ReturnItemCollectionMetrics aws.StringValue           `json:"ReturnItemCollectionMetrics,omitempty"`
}

BatchWriteItemInput is undocumented.

type BatchWriteItemOutput

type BatchWriteItemOutput struct {
	ConsumedCapacity      []ConsumedCapacity                 `json:"ConsumedCapacity,omitempty"`
	ItemCollectionMetrics map[string][]ItemCollectionMetrics `json:"ItemCollectionMetrics,omitempty"`
	UnprocessedItems      map[string][]WriteRequest          `json:"UnprocessedItems,omitempty"`
}

BatchWriteItemOutput is undocumented.

type Capacity

type Capacity struct {
	CapacityUnits aws.DoubleValue `json:"CapacityUnits,omitempty"`
}

Capacity is undocumented.

type Condition

type Condition struct {
	AttributeValueList []AttributeValue `json:"AttributeValueList,omitempty"`
	ComparisonOperator aws.StringValue  `json:"ComparisonOperator"`
}

Condition is undocumented.

type ConsumedCapacity

type ConsumedCapacity struct {
	CapacityUnits          aws.DoubleValue     `json:"CapacityUnits,omitempty"`
	GlobalSecondaryIndexes map[string]Capacity `json:"GlobalSecondaryIndexes,omitempty"`
	LocalSecondaryIndexes  map[string]Capacity `json:"LocalSecondaryIndexes,omitempty"`
	Table                  *Capacity           `json:"Table,omitempty"`
	TableName              aws.StringValue     `json:"TableName,omitempty"`
}

ConsumedCapacity is undocumented.

type CreateTableInput

type CreateTableInput struct {
	AttributeDefinitions   []AttributeDefinition  `json:"AttributeDefinitions"`
	GlobalSecondaryIndexes []GlobalSecondaryIndex `json:"GlobalSecondaryIndexes,omitempty"`
	KeySchema              []KeySchemaElement     `json:"KeySchema"`
	LocalSecondaryIndexes  []LocalSecondaryIndex  `json:"LocalSecondaryIndexes,omitempty"`
	ProvisionedThroughput  *ProvisionedThroughput `json:"ProvisionedThroughput"`
	TableName              aws.StringValue        `json:"TableName"`
}

CreateTableInput is undocumented.

type CreateTableOutput

type CreateTableOutput struct {
	TableDescription *TableDescription `json:"TableDescription,omitempty"`
}

CreateTableOutput is undocumented.

type DeleteItemInput

type DeleteItemInput struct {
	ConditionExpression         aws.StringValue                   `json:"ConditionExpression,omitempty"`
	ConditionalOperator         aws.StringValue                   `json:"ConditionalOperator,omitempty"`
	Expected                    map[string]ExpectedAttributeValue `json:"Expected,omitempty"`
	ExpressionAttributeNames    map[string]string                 `json:"ExpressionAttributeNames,omitempty"`
	ExpressionAttributeValues   map[string]AttributeValue         `json:"ExpressionAttributeValues,omitempty"`
	Key                         map[string]AttributeValue         `json:"Key"`
	ReturnConsumedCapacity      aws.StringValue                   `json:"ReturnConsumedCapacity,omitempty"`
	ReturnItemCollectionMetrics aws.StringValue                   `json:"ReturnItemCollectionMetrics,omitempty"`
	ReturnValues                aws.StringValue                   `json:"ReturnValues,omitempty"`
	TableName                   aws.StringValue                   `json:"TableName"`
}

DeleteItemInput is undocumented.

type DeleteItemOutput

type DeleteItemOutput struct {
	Attributes            map[string]AttributeValue `json:"Attributes,omitempty"`
	ConsumedCapacity      *ConsumedCapacity         `json:"ConsumedCapacity,omitempty"`
	ItemCollectionMetrics *ItemCollectionMetrics    `json:"ItemCollectionMetrics,omitempty"`
}

DeleteItemOutput is undocumented.

type DeleteRequest

type DeleteRequest struct {
	Key map[string]AttributeValue `json:"Key"`
}

DeleteRequest is undocumented.

type DeleteTableInput

type DeleteTableInput struct {
	TableName aws.StringValue `json:"TableName"`
}

DeleteTableInput is undocumented.

type DeleteTableOutput

type DeleteTableOutput struct {
	TableDescription *TableDescription `json:"TableDescription,omitempty"`
}

DeleteTableOutput is undocumented.

type DescribeTableInput

type DescribeTableInput struct {
	TableName aws.StringValue `json:"TableName"`
}

DescribeTableInput is undocumented.

type DescribeTableOutput

type DescribeTableOutput struct {
	Table *TableDescription `json:"Table,omitempty"`
}

DescribeTableOutput is undocumented.

type DynamoDB

type DynamoDB struct {
	// contains filtered or unexported fields
}

DynamoDB is a client for Amazon DynamoDB.

func New

func New(creds aws.CredentialsProvider, region string, client *http.Client) *DynamoDB

New returns a new DynamoDB client.

func (*DynamoDB) BatchGetItem

func (c *DynamoDB) BatchGetItem(req *BatchGetItemInput) (resp *BatchGetItemOutput, err error)

BatchGetItem the BatchGetItem operation returns the attributes of one or more items from one or more tables. You identify requested items by primary key. A single operation can retrieve up to 16 MB of data, which can contain as many as 100 items. BatchGetItem will return a partial result if the response size limit is exceeded, the table's provisioned throughput is exceeded, or an internal processing failure occurs. If a partial result is returned, the operation returns a value for UnprocessedKeys . You can use this value to retry the operation starting with the next item to get. For example, if you ask to retrieve 100 items, but each individual item is 300 KB in size, the system returns 52 items (so as not to exceed the 16 MB limit). It also returns an appropriate UnprocessedKeys value so you can get the next page of results. If desired, your application can include its own logic to assemble the pages of results into one data set. If none of the items can be processed due to insufficient provisioned throughput on all of the tables in the request, then BatchGetItem will return a ProvisionedThroughputExceededException . If at least one of the items is successfully processed, then BatchGetItem completes successfully, while returning the keys of the unread items in UnprocessedKeys If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. However, we strongly recommend that you use an exponential backoff algorithm . If you retry the batch operation immediately, the underlying read or write requests can still fail due to throttling on the individual tables. If you delay the batch operation using exponential backoff, the individual requests in the batch are much more likely to succeed. For more information, go to Batch Operations and Error Handling in the Amazon DynamoDB Developer Guide By default, BatchGetItem performs eventually consistent reads on every table in the request. If you want strongly consistent reads instead, you can set ConsistentRead to true for any or all tables. In order to minimize response latency, BatchGetItem retrieves items in parallel. When designing your application, keep in mind that DynamoDB does not return attributes in any particular order. To help parse the response by item, include the primary key values for the items in your request in the AttributesToGet parameter. If a requested item does not exist, it is not returned in the result. Requests for nonexistent items consume the minimum read capacity units according to the type of read. For more information, see Capacity Units Calculations in the Amazon DynamoDB Developer Guide

func (*DynamoDB) BatchWriteItem

func (c *DynamoDB) BatchWriteItem(req *BatchWriteItemInput) (resp *BatchWriteItemOutput, err error)

BatchWriteItem the BatchWriteItem operation puts or deletes multiple items in one or more tables. A single call to BatchWriteItem can write up to 16 MB of data, which can comprise as many as 25 put or delete requests. Individual items to be written can be as large as 400 The individual PutItem and DeleteItem operations specified in BatchWriteItem are atomic; however BatchWriteItem as a whole is not. If any requested operations fail because the table's provisioned throughput is exceeded or an internal processing failure occurs, the failed operations are returned in the UnprocessedItems response parameter. You can investigate and optionally resend the requests. Typically, you would call BatchWriteItem in a loop. Each iteration would check for unprocessed items and submit a new BatchWriteItem request with those unprocessed items until all items have been processed. Note that if none of the items can be processed due to insufficient provisioned throughput on all of the tables in the request, then BatchWriteItem will return a ProvisionedThroughputExceededException If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. However, we strongly recommend that you use an exponential backoff algorithm . If you retry the batch operation immediately, the underlying read or write requests can still fail due to throttling on the individual tables. If you delay the batch operation using exponential backoff, the individual requests in the batch are much more likely to succeed. For more information, go to Batch Operations and Error Handling in the Amazon DynamoDB Developer Guide With BatchWriteItem , you can efficiently write or delete large amounts of data, such as from Amazon Elastic MapReduce or copy data from another database into DynamoDB. In order to improve performance with these large-scale operations, BatchWriteItem does not behave in the same way as individual PutItem and DeleteItem calls would For example, you cannot specify conditions on individual put and delete requests, and BatchWriteItem does not return deleted items in the response. If you use a programming language that supports concurrency, such as Java, you can use threads to write items in parallel. Your application must include the necessary logic to manage the threads. With languages that don't support threading, such as you must update or delete the specified items one at a time. In both situations, BatchWriteItem provides an alternative where the API performs the specified put and delete operations in parallel, giving you the power of the thread pool approach without having to introduce complexity into your application. Parallel processing reduces latency, but each specified put and delete request consumes the same number of write capacity units whether it is processed in parallel or not. Delete operations on nonexistent items consume one write capacity unit. If one or more of the following is true, DynamoDB rejects the entire batch write operation: One or more tables specified in the BatchWriteItem request does not exist. Primary key attributes specified on an item in the request do not match those in the corresponding table's primary key schema. You try to perform multiple operations on the same item in the same BatchWriteItem request. For example, you cannot put and delete the same item in the same BatchWriteItem request. There are more than 25 requests in the batch.

func (*DynamoDB) CreateTable

func (c *DynamoDB) CreateTable(req *CreateTableInput) (resp *CreateTableOutput, err error)

CreateTable the CreateTable operation adds a new table to your account. In an AWS account, table names must be unique within each region. That is, you can have two tables with same name if you create the tables in different regions. CreateTable is an asynchronous operation. Upon receiving a CreateTable request, DynamoDB immediately returns a response with a TableStatus of . After the table is created, DynamoDB sets the TableStatus to . You can perform read and write operations only on an table. If you want to create multiple tables with secondary indexes on them, you must create them sequentially. Only one table with secondary indexes can be in the state at any given time. You can use the DescribeTable API to check the table status.

func (*DynamoDB) DeleteItem

func (c *DynamoDB) DeleteItem(req *DeleteItemInput) (resp *DeleteItemOutput, err error)

DeleteItem deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value. In addition to deleting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter. Unless you specify conditions, the DeleteItem is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response. Conditional deletes are useful for deleting items only if specific conditions are met. If those conditions are met, DynamoDB performs the delete. Otherwise, the item is not deleted.

func (*DynamoDB) DeleteTable

func (c *DynamoDB) DeleteTable(req *DeleteTableInput) (resp *DeleteTableOutput, err error)

DeleteTable the DeleteTable operation deletes a table and all of its items. After a DeleteTable request, the specified table is in the state until DynamoDB completes the deletion. If the table is in the state, you can delete it. If a table is in or states, then DynamoDB returns a ResourceInUseException . If the specified table does not exist, DynamoDB returns a ResourceNotFoundException . If table is already in the state, no error is returned. When you delete a table, any indexes on that table are also deleted. Use the DescribeTable API to check the status of the table.

func (*DynamoDB) DescribeTable

func (c *DynamoDB) DescribeTable(req *DescribeTableInput) (resp *DescribeTableOutput, err error)

DescribeTable returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table.

func (*DynamoDB) GetItem

func (c *DynamoDB) GetItem(req *GetItemInput) (resp *GetItemOutput, err error)

GetItem the GetItem operation returns a set of attributes for the item with the given primary key. If there is no matching item, GetItem does not return any data. GetItem provides an eventually consistent read by default. If your application requires a strongly consistent read, set ConsistentRead to true . Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.

func (*DynamoDB) ListTables

func (c *DynamoDB) ListTables(req *ListTablesInput) (resp *ListTablesOutput, err error)

ListTables returns an array of table names associated with the current account and endpoint. The output from ListTables is paginated, with each page returning a maximum of 100 table names.

func (*DynamoDB) PutItem

func (c *DynamoDB) PutItem(req *PutItemInput) (resp *PutItemOutput, err error)

PutItem creates a new item, or replaces an old item with a new item. If an item that has the same primary key as the new item already exists in the specified table, the new item completely replaces the existing item. You can perform a conditional put operation (add a new item if one with the specified primary key doesn't exist), or replace an existing item if it has certain attribute values. In addition to putting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter. When you add an item, the primary key attribute(s) are the only required attributes. Attribute values cannot be null. String and Binary type attributes must have lengths greater than zero. Set type attributes cannot be empty. Requests with empty values will be rejected with a ValidationException exception. You can request that PutItem return either a copy of the original item (before the update) or a copy of the updated item (after the update). For more information, see the ReturnValues description below. For more information about using this see Working with Items in the Amazon DynamoDB Developer Guide

func (*DynamoDB) Query

func (c *DynamoDB) Query(req *QueryInput) (resp *QueryOutput, err error)

Query a Query operation directly accesses items from a table using the table primary key, or from an index using the index key. You must provide a specific hash key value. You can narrow the scope of the query by using comparison operators on the range key value, or on the index key. You can use the ScanIndexForward parameter to get results in forward or reverse order, by range key or by index key. Queries that do not return results consume the minimum number of read capacity units for that type of read operation. If the total number of items meeting the query criteria exceeds the result set size limit of 1 MB, the query stops and results are returned to the user with LastEvaluatedKey to continue the query in a subsequent operation. Unlike a Scan operation, a Query operation never returns both an empty result set and a LastEvaluatedKey . The LastEvaluatedKey is only provided if the results exceed 1 MB, or if you have used Limit . You can query a table, a local secondary index, or a global secondary index. For a query on a table or on a local secondary index, you can set ConsistentRead to true and obtain a strongly consistent result. Global secondary indexes support eventually consistent reads only, so do not specify ConsistentRead when querying a global secondary index.

func (*DynamoDB) Scan

func (c *DynamoDB) Scan(req *ScanInput) (resp *ScanOutput, err error)

Scan the Scan operation returns one or more items and item attributes by accessing every item in the table. To have DynamoDB return fewer items, you can provide a ScanFilter operation. If the total number of scanned items exceeds the maximum data set size limit of 1 MB, the scan stops and results are returned to the user as a LastEvaluatedKey value to continue the scan in a subsequent operation. The results also include the number of items exceeding the limit. A scan can result in no table data meeting the filter criteria. The result set is eventually consistent. By default, Scan operations proceed sequentially; however, for faster performance on large tables, applications can request a parallel Scan operation by specifying the Segment and TotalSegments parameters. For more information, see Parallel Scan in the Amazon DynamoDB Developer Guide

func (*DynamoDB) UpdateItem

func (c *DynamoDB) UpdateItem(req *UpdateItemInput) (resp *UpdateItemOutput, err error)

UpdateItem edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values). You can also return the item's attribute values in the same UpdateItem operation using the ReturnValues parameter.

func (*DynamoDB) UpdateTable

func (c *DynamoDB) UpdateTable(req *UpdateTableInput) (resp *UpdateTableOutput, err error)

UpdateTable updates the provisioned throughput for the given table. Setting the throughput for a table helps you manage performance and is part of the provisioned throughput feature of DynamoDB. The provisioned throughput values can be upgraded or downgraded based on the maximums and minimums listed in the Limits section in the Amazon DynamoDB Developer Guide The table must be in the state for this operation to succeed. UpdateTable is an asynchronous operation; while executing the operation, the table is in the state. While the table is in the state, the table still has the provisioned throughput from before the call. The new provisioned throughput setting is in effect only when the table returns to the state after the UpdateTable operation. You cannot add, modify or delete indexes using UpdateTable . Indexes can only be defined at table creation time.

type DynamoDBAPI

type DynamoDBAPI interface {
	BatchGetItem(req *BatchGetItemInput) (resp *BatchGetItemOutput, err error)
	BatchWriteItem(req *BatchWriteItemInput) (resp *BatchWriteItemOutput, err error)
	CreateTable(req *CreateTableInput) (resp *CreateTableOutput, err error)
	DeleteItem(req *DeleteItemInput) (resp *DeleteItemOutput, err error)
	DeleteTable(req *DeleteTableInput) (resp *DeleteTableOutput, err error)
	DescribeTable(req *DescribeTableInput) (resp *DescribeTableOutput, err error)
	GetItem(req *GetItemInput) (resp *GetItemOutput, err error)
	ListTables(req *ListTablesInput) (resp *ListTablesOutput, err error)
	PutItem(req *PutItemInput) (resp *PutItemOutput, err error)
	Query(req *QueryInput) (resp *QueryOutput, err error)
	Scan(req *ScanInput) (resp *ScanOutput, err error)
	UpdateItem(req *UpdateItemInput) (resp *UpdateItemOutput, err error)
	UpdateTable(req *UpdateTableInput) (resp *UpdateTableOutput, err error)
}

type ExpectedAttributeValue

type ExpectedAttributeValue struct {
	AttributeValueList []AttributeValue `json:"AttributeValueList,omitempty"`
	ComparisonOperator aws.StringValue  `json:"ComparisonOperator,omitempty"`
	Exists             aws.BooleanValue `json:"Exists,omitempty"`
	Value              *AttributeValue  `json:"Value,omitempty"`
}

ExpectedAttributeValue is undocumented.

type GetItemInput

type GetItemInput struct {
	AttributesToGet          []string                  `json:"AttributesToGet,omitempty"`
	ConsistentRead           aws.BooleanValue          `json:"ConsistentRead,omitempty"`
	ExpressionAttributeNames map[string]string         `json:"ExpressionAttributeNames,omitempty"`
	Key                      map[string]AttributeValue `json:"Key"`
	ProjectionExpression     aws.StringValue           `json:"ProjectionExpression,omitempty"`
	ReturnConsumedCapacity   aws.StringValue           `json:"ReturnConsumedCapacity,omitempty"`
	TableName                aws.StringValue           `json:"TableName"`
}

GetItemInput is undocumented.

type GetItemOutput

type GetItemOutput struct {
	ConsumedCapacity *ConsumedCapacity         `json:"ConsumedCapacity,omitempty"`
	Item             map[string]AttributeValue `json:"Item,omitempty"`
}

GetItemOutput is undocumented.

type GlobalSecondaryIndex

type GlobalSecondaryIndex struct {
	IndexName             aws.StringValue        `json:"IndexName"`
	KeySchema             []KeySchemaElement     `json:"KeySchema"`
	Projection            *Projection            `json:"Projection"`
	ProvisionedThroughput *ProvisionedThroughput `json:"ProvisionedThroughput"`
}

GlobalSecondaryIndex is undocumented.

type GlobalSecondaryIndexDescription

type GlobalSecondaryIndexDescription struct {
	IndexName             aws.StringValue                   `json:"IndexName,omitempty"`
	IndexSizeBytes        aws.LongValue                     `json:"IndexSizeBytes,omitempty"`
	IndexStatus           aws.StringValue                   `json:"IndexStatus,omitempty"`
	ItemCount             aws.LongValue                     `json:"ItemCount,omitempty"`
	KeySchema             []KeySchemaElement                `json:"KeySchema,omitempty"`
	Projection            *Projection                       `json:"Projection,omitempty"`
	ProvisionedThroughput *ProvisionedThroughputDescription `json:"ProvisionedThroughput,omitempty"`
}

GlobalSecondaryIndexDescription is undocumented.

type GlobalSecondaryIndexUpdate

type GlobalSecondaryIndexUpdate struct {
	Update *UpdateGlobalSecondaryIndexAction `json:"Update,omitempty"`
}

GlobalSecondaryIndexUpdate is undocumented.

type ItemCollectionMetrics

type ItemCollectionMetrics struct {
	ItemCollectionKey   map[string]AttributeValue `json:"ItemCollectionKey,omitempty"`
	SizeEstimateRangeGB []float64                 `json:"SizeEstimateRangeGB,omitempty"`
}

ItemCollectionMetrics is undocumented.

type KeySchemaElement

type KeySchemaElement struct {
	AttributeName aws.StringValue `json:"AttributeName"`
	KeyType       aws.StringValue `json:"KeyType"`
}

KeySchemaElement is undocumented.

type KeysAndAttributes

type KeysAndAttributes struct {
	AttributesToGet          []string                    `json:"AttributesToGet,omitempty"`
	ConsistentRead           aws.BooleanValue            `json:"ConsistentRead,omitempty"`
	ExpressionAttributeNames map[string]string           `json:"ExpressionAttributeNames,omitempty"`
	Keys                     []map[string]AttributeValue `json:"Keys"`
	ProjectionExpression     aws.StringValue             `json:"ProjectionExpression,omitempty"`
}

KeysAndAttributes is undocumented.

type ListTablesInput

type ListTablesInput struct {
	ExclusiveStartTableName aws.StringValue  `json:"ExclusiveStartTableName,omitempty"`
	Limit                   aws.IntegerValue `json:"Limit,omitempty"`
}

ListTablesInput is undocumented.

type ListTablesOutput

type ListTablesOutput struct {
	LastEvaluatedTableName aws.StringValue `json:"LastEvaluatedTableName,omitempty"`
	TableNames             []string        `json:"TableNames,omitempty"`
}

ListTablesOutput is undocumented.

type LocalSecondaryIndex

type LocalSecondaryIndex struct {
	IndexName  aws.StringValue    `json:"IndexName"`
	KeySchema  []KeySchemaElement `json:"KeySchema"`
	Projection *Projection        `json:"Projection"`
}

LocalSecondaryIndex is undocumented.

type LocalSecondaryIndexDescription

type LocalSecondaryIndexDescription struct {
	IndexName      aws.StringValue    `json:"IndexName,omitempty"`
	IndexSizeBytes aws.LongValue      `json:"IndexSizeBytes,omitempty"`
	ItemCount      aws.LongValue      `json:"ItemCount,omitempty"`
	KeySchema      []KeySchemaElement `json:"KeySchema,omitempty"`
	Projection     *Projection        `json:"Projection,omitempty"`
}

LocalSecondaryIndexDescription is undocumented.

type Projection

type Projection struct {
	NonKeyAttributes []string        `json:"NonKeyAttributes,omitempty"`
	ProjectionType   aws.StringValue `json:"ProjectionType,omitempty"`
}

Projection is undocumented.

type ProvisionedThroughput

type ProvisionedThroughput struct {
	ReadCapacityUnits  aws.LongValue `json:"ReadCapacityUnits"`
	WriteCapacityUnits aws.LongValue `json:"WriteCapacityUnits"`
}

ProvisionedThroughput is undocumented.

type ProvisionedThroughputDescription

type ProvisionedThroughputDescription struct {
	LastDecreaseDateTime   *aws.UnixTimestamp `json:"LastDecreaseDateTime,omitempty"`
	LastIncreaseDateTime   *aws.UnixTimestamp `json:"LastIncreaseDateTime,omitempty"`
	NumberOfDecreasesToday aws.LongValue      `json:"NumberOfDecreasesToday,omitempty"`
	ReadCapacityUnits      aws.LongValue      `json:"ReadCapacityUnits,omitempty"`
	WriteCapacityUnits     aws.LongValue      `json:"WriteCapacityUnits,omitempty"`
}

ProvisionedThroughputDescription is undocumented.

type PutItemInput

type PutItemInput struct {
	ConditionExpression         aws.StringValue                   `json:"ConditionExpression,omitempty"`
	ConditionalOperator         aws.StringValue                   `json:"ConditionalOperator,omitempty"`
	Expected                    map[string]ExpectedAttributeValue `json:"Expected,omitempty"`
	ExpressionAttributeNames    map[string]string                 `json:"ExpressionAttributeNames,omitempty"`
	ExpressionAttributeValues   map[string]AttributeValue         `json:"ExpressionAttributeValues,omitempty"`
	Item                        map[string]AttributeValue         `json:"Item"`
	ReturnConsumedCapacity      aws.StringValue                   `json:"ReturnConsumedCapacity,omitempty"`
	ReturnItemCollectionMetrics aws.StringValue                   `json:"ReturnItemCollectionMetrics,omitempty"`
	ReturnValues                aws.StringValue                   `json:"ReturnValues,omitempty"`
	TableName                   aws.StringValue                   `json:"TableName"`
}

PutItemInput is undocumented.

type PutItemOutput

type PutItemOutput struct {
	Attributes            map[string]AttributeValue `json:"Attributes,omitempty"`
	ConsumedCapacity      *ConsumedCapacity         `json:"ConsumedCapacity,omitempty"`
	ItemCollectionMetrics *ItemCollectionMetrics    `json:"ItemCollectionMetrics,omitempty"`
}

PutItemOutput is undocumented.

type PutRequest

type PutRequest struct {
	Item map[string]AttributeValue `json:"Item"`
}

PutRequest is undocumented.

type QueryInput

type QueryInput struct {
	AttributesToGet           []string                  `json:"AttributesToGet,omitempty"`
	ConditionalOperator       aws.StringValue           `json:"ConditionalOperator,omitempty"`
	ConsistentRead            aws.BooleanValue          `json:"ConsistentRead,omitempty"`
	ExclusiveStartKey         map[string]AttributeValue `json:"ExclusiveStartKey,omitempty"`
	ExpressionAttributeNames  map[string]string         `json:"ExpressionAttributeNames,omitempty"`
	ExpressionAttributeValues map[string]AttributeValue `json:"ExpressionAttributeValues,omitempty"`
	FilterExpression          aws.StringValue           `json:"FilterExpression,omitempty"`
	IndexName                 aws.StringValue           `json:"IndexName,omitempty"`
	KeyConditions             map[string]Condition      `json:"KeyConditions"`
	Limit                     aws.IntegerValue          `json:"Limit,omitempty"`
	ProjectionExpression      aws.StringValue           `json:"ProjectionExpression,omitempty"`
	QueryFilter               map[string]Condition      `json:"QueryFilter,omitempty"`
	ReturnConsumedCapacity    aws.StringValue           `json:"ReturnConsumedCapacity,omitempty"`
	ScanIndexForward          aws.BooleanValue          `json:"ScanIndexForward,omitempty"`
	Select                    aws.StringValue           `json:"Select,omitempty"`
	TableName                 aws.StringValue           `json:"TableName"`
}

QueryInput is undocumented.

type QueryOutput

type QueryOutput struct {
	ConsumedCapacity *ConsumedCapacity           `json:"ConsumedCapacity,omitempty"`
	Count            aws.IntegerValue            `json:"Count,omitempty"`
	Items            []map[string]AttributeValue `json:"Items,omitempty"`
	LastEvaluatedKey map[string]AttributeValue   `json:"LastEvaluatedKey,omitempty"`
	ScannedCount     aws.IntegerValue            `json:"ScannedCount,omitempty"`
}

QueryOutput is undocumented.

type ScanInput

type ScanInput struct {
	AttributesToGet           []string                  `json:"AttributesToGet,omitempty"`
	ConditionalOperator       aws.StringValue           `json:"ConditionalOperator,omitempty"`
	ExclusiveStartKey         map[string]AttributeValue `json:"ExclusiveStartKey,omitempty"`
	ExpressionAttributeNames  map[string]string         `json:"ExpressionAttributeNames,omitempty"`
	ExpressionAttributeValues map[string]AttributeValue `json:"ExpressionAttributeValues,omitempty"`
	FilterExpression          aws.StringValue           `json:"FilterExpression,omitempty"`
	Limit                     aws.IntegerValue          `json:"Limit,omitempty"`
	ProjectionExpression      aws.StringValue           `json:"ProjectionExpression,omitempty"`
	ReturnConsumedCapacity    aws.StringValue           `json:"ReturnConsumedCapacity,omitempty"`
	ScanFilter                map[string]Condition      `json:"ScanFilter,omitempty"`
	Segment                   aws.IntegerValue          `json:"Segment,omitempty"`
	Select                    aws.StringValue           `json:"Select,omitempty"`
	TableName                 aws.StringValue           `json:"TableName"`
	TotalSegments             aws.IntegerValue          `json:"TotalSegments,omitempty"`
}

ScanInput is undocumented.

type ScanOutput

type ScanOutput struct {
	ConsumedCapacity *ConsumedCapacity           `json:"ConsumedCapacity,omitempty"`
	Count            aws.IntegerValue            `json:"Count,omitempty"`
	Items            []map[string]AttributeValue `json:"Items,omitempty"`
	LastEvaluatedKey map[string]AttributeValue   `json:"LastEvaluatedKey,omitempty"`
	ScannedCount     aws.IntegerValue            `json:"ScannedCount,omitempty"`
}

ScanOutput is undocumented.

type TableDescription

type TableDescription struct {
	AttributeDefinitions   []AttributeDefinition             `json:"AttributeDefinitions,omitempty"`
	CreationDateTime       *aws.UnixTimestamp                `json:"CreationDateTime,omitempty"`
	GlobalSecondaryIndexes []GlobalSecondaryIndexDescription `json:"GlobalSecondaryIndexes,omitempty"`
	ItemCount              aws.LongValue                     `json:"ItemCount,omitempty"`
	KeySchema              []KeySchemaElement                `json:"KeySchema,omitempty"`
	LocalSecondaryIndexes  []LocalSecondaryIndexDescription  `json:"LocalSecondaryIndexes,omitempty"`
	ProvisionedThroughput  *ProvisionedThroughputDescription `json:"ProvisionedThroughput,omitempty"`
	TableName              aws.StringValue                   `json:"TableName,omitempty"`
	TableSizeBytes         aws.LongValue                     `json:"TableSizeBytes,omitempty"`
	TableStatus            aws.StringValue                   `json:"TableStatus,omitempty"`
}

TableDescription is undocumented.

type UpdateGlobalSecondaryIndexAction

type UpdateGlobalSecondaryIndexAction struct {
	IndexName             aws.StringValue        `json:"IndexName"`
	ProvisionedThroughput *ProvisionedThroughput `json:"ProvisionedThroughput"`
}

UpdateGlobalSecondaryIndexAction is undocumented.

type UpdateItemInput

type UpdateItemInput struct {
	AttributeUpdates            map[string]AttributeValueUpdate   `json:"AttributeUpdates,omitempty"`
	ConditionExpression         aws.StringValue                   `json:"ConditionExpression,omitempty"`
	ConditionalOperator         aws.StringValue                   `json:"ConditionalOperator,omitempty"`
	Expected                    map[string]ExpectedAttributeValue `json:"Expected,omitempty"`
	ExpressionAttributeNames    map[string]string                 `json:"ExpressionAttributeNames,omitempty"`
	ExpressionAttributeValues   map[string]AttributeValue         `json:"ExpressionAttributeValues,omitempty"`
	Key                         map[string]AttributeValue         `json:"Key"`
	ReturnConsumedCapacity      aws.StringValue                   `json:"ReturnConsumedCapacity,omitempty"`
	ReturnItemCollectionMetrics aws.StringValue                   `json:"ReturnItemCollectionMetrics,omitempty"`
	ReturnValues                aws.StringValue                   `json:"ReturnValues,omitempty"`
	TableName                   aws.StringValue                   `json:"TableName"`
	UpdateExpression            aws.StringValue                   `json:"UpdateExpression,omitempty"`
}

UpdateItemInput is undocumented.

type UpdateItemOutput

type UpdateItemOutput struct {
	Attributes            map[string]AttributeValue `json:"Attributes,omitempty"`
	ConsumedCapacity      *ConsumedCapacity         `json:"ConsumedCapacity,omitempty"`
	ItemCollectionMetrics *ItemCollectionMetrics    `json:"ItemCollectionMetrics,omitempty"`
}

UpdateItemOutput is undocumented.

type UpdateTableInput

type UpdateTableInput struct {
	GlobalSecondaryIndexUpdates []GlobalSecondaryIndexUpdate `json:"GlobalSecondaryIndexUpdates,omitempty"`
	ProvisionedThroughput       *ProvisionedThroughput       `json:"ProvisionedThroughput,omitempty"`
	TableName                   aws.StringValue              `json:"TableName"`
}

UpdateTableInput is undocumented.

type UpdateTableOutput

type UpdateTableOutput struct {
	TableDescription *TableDescription `json:"TableDescription,omitempty"`
}

UpdateTableOutput is undocumented.

type WriteRequest

type WriteRequest struct {
	DeleteRequest *DeleteRequest `json:"DeleteRequest,omitempty"`
	PutRequest    *PutRequest    `json:"PutRequest,omitempty"`
}

WriteRequest is undocumented.

Jump to

Keyboard shortcuts

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