{"id":18636725,"url":"https://github.com/andream16/aws-sdk-go-bindings","last_synced_at":"2025-04-11T09:31:06.441Z","repository":{"id":57506426,"uuid":"137505095","full_name":"andream16/aws-sdk-go-bindings","owner":"andream16","description":"Helper package to easily access some aws-sdk-go's methods (SNS, SQS, DynamoDB, Rekognition, S3) \u0026 aws-lambda-go utilities.","archived":false,"fork":false,"pushed_at":"2019-04-25T21:41:04.000Z","size":343,"stargazers_count":13,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T23:33:13.582Z","etag":null,"topics":["aws-dynamodb","aws-lambda-golang","aws-rekognition","aws-s3","aws-sdk","aws-sdk-go","aws-sns","aws-sqs","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andream16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-15T15:40:21.000Z","updated_at":"2022-03-08T03:53:11.000Z","dependencies_parsed_at":"2022-08-29T20:01:02.022Z","dependency_job_id":null,"html_url":"https://github.com/andream16/aws-sdk-go-bindings","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andream16%2Faws-sdk-go-bindings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andream16%2Faws-sdk-go-bindings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andream16%2Faws-sdk-go-bindings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andream16%2Faws-sdk-go-bindings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andream16","download_url":"https://codeload.github.com/andream16/aws-sdk-go-bindings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248368207,"owners_count":21092317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-dynamodb","aws-lambda-golang","aws-rekognition","aws-s3","aws-sdk","aws-sdk-go","aws-sns","aws-sqs","go","golang"],"created_at":"2024-11-07T05:31:36.390Z","updated_at":"2025-04-11T09:31:06.162Z","avatar_url":"https://github.com/andream16.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-sdk-go-bindings [![CircleCI](https://circleci.com/gh/andream16/aws-sdk-go-bindings.svg?style=svg)](https://circleci.com/gh/andream16/aws-sdk-go-bindings) [![GoDoc](https://godoc.org/github.com/andream16/aws-sdk-go-bindings?status.svg)](https://godoc.org/github.com/andream16/aws-sdk-go-bindings) [![Go Report Card](https://goreportcard.com/badge/github.com/AndreaM16/aws-sdk-go-bindings)](https://goreportcard.com/report/github.com/AndreaM16/aws-sdk-go-bindings) [![Apache V2 License](http://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/andream16/aws-sdk-go-bindings/blob/master/LICENSE.txt)\n\nHelper to easily access some [aws-sdk-go](https://github.com/aws/aws-sdk-go)'s methods and lambda utilities like preparing an sns default message and unmarshal an image coming out from a stream like:\n\n```\n// UnmarshalDynamoEvent unmarshals a events.DynamoDBEventRecord into a given target.\n// Out has to be a pointer.\nfunc UnmarshalDynamoEvent(event events.DynamoDBEventRecord, out interface{}) error {\n\n\tif reflect.DeepEqual(event, reflect.Zero(reflect.TypeOf(event)).Interface()) {\n\t\treturn errors.Wrap(bindings.ErrInvalidParameter, \"event\")\n\t}\n\tif reflect.ValueOf(out).Kind() != reflect.Ptr {\n\t\treturn errors.Wrap(bindings.ErrInvalidParameter, \"out\")\n\t}\n\n\timg := event.Change.NewImage\n\tif len(img) == 0 {\n\t\treturn errors.New(\"event's image is empty\")\n\t}\n\n\tm := make(map[string]*dynamodb.AttributeValue, len(img))\n\n\tfor k, v := range img {\n\n\t\tb, err := v.MarshalJSON()\n\t\tif err != nil {\n\t\t\treturn errors.Wrap(err, \"unable to marshal current element to json\")\n\t\t}\n\n\t\tvar attr dynamodb.AttributeValue\n\n\t\terr = json.Unmarshal(b, \u0026attr)\n\t\tif err != nil {\n\t\t\treturn errors.Wrap(err, \"unable to unmarshal current element to json\")\n\t\t}\n\n\t\tm[k] = \u0026attr\n\n\t}\n\n\treturn dynamodbattribute.UnmarshalMap(m, out)\n\n}\n```\n\n## Contributors\n\nSpecial thanks to:\n\n - [martingallagher](https://github.com/martingallagher/)\n - [ferruvich](https://github.com/ferruvich/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandream16%2Faws-sdk-go-bindings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandream16%2Faws-sdk-go-bindings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandream16%2Faws-sdk-go-bindings/lists"}