package dynamodb

import "github.com/oslokommune/okctl/pkg/cfn/components/dynamodb"

Package dynamodb knows how to create a dynamodb table cloud formation resource

Index

Types

type Table

type Table struct {
	StoredName   string
	TableName    string
	PartitionKey string
}

Table contains the state required for building the CloudFormation template

func New

func New(resourceName, tableName string, partitionKey string) *Table

New returns an initialised DynamoDB cloud formation template - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html

func (*Table) Name

func (receiver *Table) Name() string

Name returns the name of the resource

func (*Table) NamedOutputs

func (receiver *Table) NamedOutputs() map[string]cloudformation.Output

NamedOutputs returns the named outputs

func (*Table) Ref

func (receiver *Table) Ref() string

Ref returns an AWS intrinsic ref to the resource

func (*Table) Resource

func (receiver *Table) Resource() cloudformation.Resource

Resource returns the cloud formation template

Source Files

dynamodbtable.go

Version
v0.0.106 (latest)
Published
Oct 21, 2022
Platform
linux/amd64
Imports
3 packages
Last checked
18 hours ago

Tools for package owners.