Skip to content

Commit

Permalink
chore: add type alias for TransactWriteItem
Browse files Browse the repository at this point in the history
  • Loading branch information
omkar-till committed Nov 22, 2023
1 parent 43bf06d commit 51556e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/service/dynamodb"
"github.com/aws/aws-sdk-go-v2/service/dynamodb/types"
)

type ClientOptions struct {
Expand All @@ -25,6 +26,8 @@ type Client struct {
Keys map[string]string
}

type TransactWriteItem types.TransactWriteItem

// Create a new instance of DynamoTable. internally creates aws connection configuration for the db
// If DynamoTable.Endpoint is specified connects to the db at the given URL, or the default credential of the system is used
// To connect to AWS DynamoDB from a running pod or EC2 instance, use the default credentials without Endpoint option
Expand Down

0 comments on commit 51556e2

Please sign in to comment.