// PutItem inserts the provided data and marshal maps it using the aws sdk
PutItem inserts the provided data and marshal maps it using the aws sdk
// PutItem inserts the provided data and marshal maps it using the aws sdk
func (s *Builder) PutItem(ctx context.Context, data interface{}) (*dynamodb.PutItemOutput, error) {
	if s.err != nil {
		return nil, s.err
	}
	if s.client == nil {
		return nil, ErrClientNotSet
	}
	input, err := s.ToPut(data)
	if err != nil {
		return nil, err
	}
	output, err := s.client.PutItemWithContext(ctx, &input)
	return output, err
}
func ( s * Builder ) PutItem ( ctx context . Context , data interface { } ) ( * dynamodb . PutItemOutput , error ) { if s . err != nil { return nil , s . err } if s . client == nil { return nil , ErrClientNotSet } input , err := s . ToPut ( data ) if err != nil { return nil , err } output , err := s . client . PutItemWithContext ( ctx , & input ) return output , err }
PutItem inserts the provided data and marshal maps it using the aws sdk
PutItem inserts the provided data and marshal maps it using the aws sdk