Skip to content

Commit

Permalink
feat: dynamo binding file i missed
Browse files Browse the repository at this point in the history
Signed-off-by: Samantha Coyle <[email protected]>
  • Loading branch information
sicoyle committed Dec 17, 2024
1 parent 8e4c08d commit 365a55c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions bindings/aws/dynamodb/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ limitations under the License.

package dynamodb

type dynamoDBMetadata struct {
Region string `json:"region" mapstructure:"region"`
Endpoint string `json:"endpoint" mapstructure:"endpoint"`
AccessKey string `json:"accessKey" mapstructure:"accessKey"`
SecretKey string `json:"secretKey" mapstructure:"secretKey"`
SessionToken string `json:"sessionToken" mapstructure:"sessionToken"`
Table string `json:"table" mapstructure:"table"`
type dynamodbMetadata struct {
Region string `json:"region" mapstructure:"region" mdignore:"true"`
Endpoint string `json:"endpoint" mapstructure:"endpoint" mdignore:"true"`
AccessKey string `json:"accessKey" mapstructure:"accessKey" mdignore:"true"`
SecretKey string `json:"secretKey" mapstructure:"secretKey" mdignore:"true"`
SessionToken string `json:"sessionToken" mapstructure:"sessionToken" mdignore:"true"`
Table string `json:"table" mapstructure:"table" binding:"output"`
}

// Set the default values here.
// This unifies the setup across all components,
// and makes it easy for us to auto-generate the component metadata default values,
// while also leveraging the default values for types thanks to Go.
func Defaults() dynamoDBMetadata {
return dynamoDBMetadata{}
func Defaults() dynamodbMetadata {
return dynamodbMetadata{}
}

// Note: we do not include any mdignored field.
func Examples() dynamoDBMetadata {
return dynamoDBMetadata{
func Examples() dynamodbMetadata {
return dynamodbMetadata{
Endpoint: "http://localhost:4566",
Table: "Contracts",
}
Expand Down

0 comments on commit 365a55c

Please sign in to comment.