Skip to content

Commit 51556e2

Browse files
committed
chore: add type alias for TransactWriteItem
1 parent 43bf06d commit 51556e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/aws/aws-sdk-go-v2/config"
99
"github.com/aws/aws-sdk-go-v2/credentials"
1010
"github.com/aws/aws-sdk-go-v2/service/dynamodb"
11+
"github.com/aws/aws-sdk-go-v2/service/dynamodb/types"
1112
)
1213

1314
type ClientOptions struct {
@@ -25,6 +26,8 @@ type Client struct {
2526
Keys map[string]string
2627
}
2728

29+
type TransactWriteItem types.TransactWriteItem
30+
2831
// Create a new instance of DynamoTable. internally creates aws connection configuration for the db
2932
// If DynamoTable.Endpoint is specified connects to the db at the given URL, or the default credential of the system is used
3033
// To connect to AWS DynamoDB from a running pod or EC2 instance, use the default credentials without Endpoint option

0 commit comments

Comments
 (0)