Documentation ¶
Overview ¶
Support for the DynamoDB CreateTable endpoint.
example use:
see tests/create_table-livestest.go
Index ¶
Constants ¶
View Source
const ( ENDPOINT_NAME = "CreateTable" CREATETABLE_ENDPOINT = aws_const.ENDPOINT_PREFIX + ENDPOINT_NAME )
Variables ¶
This section is empty.
Functions ¶
func ValidTableName ¶
ValidTable is a local validator that helps callers determine if a table name is too long.
Types ¶
type Create ¶
type Create struct { TableName string AttributeDefinitions ep.AttributeDefinitions KeySchema ep.KeySchema LocalSecondaryIndexes ep.LocalSecondaryIndexes GlobalSecondaryIndexes ep.GlobalSecondaryIndexes ProvisionedThroughput ep.ProvisionedThroughput }
func NewCreate ¶
func NewCreate() *Create
NewCreate returns a pointer to an instantiation of the Create struct.
func (Create) EndpointReq ¶
EndpointReq implements the Endpoint interface.
func (Create) MarshalJSON ¶
type Request ¶
type Request Create
func (Request) EndpointReq ¶
EndpointReq implements the Endpoint interface on the local Request type.
func (Request) MarshalJSON ¶
type Response ¶
type Response struct { TableDescription struct { AttributeDefinitions ep.AttributeDefinitions CreationDateTime float64 ItemCount uint64 KeySchema ep.KeySchema LocalSecondaryIndexes []ep.LocalSecondaryIndexDesc GlobalSecondaryIndexes []ep.GlobalSecondaryIndexDesc ProvisionedThroughput ep.ProvisionedThroughputDesc TableName string TableSizeBytes uint64 TableStatus string } }
func NewResponse ¶
func NewResponse() *Response
NewResponse returns a pointer to an instantiation of the local Response struct.
Click to show internal directories.
Click to hide internal directories.