Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

AWS SDK for the Go programming language.

License

NotificationsYou must be signed in to change notification settings

aws/aws-sdk-go-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Go Build statusCodegen Build statusSDK DocumentationMigration GuideAPI ReferenceApache V2 License

aws-sdk-go-v2 is the v2 AWS SDK for the Go programming language.

The v2 SDK requires a minimum version ofGo 1.21.

Check out therelease notes for information about the latest bugfixes, updates, and features added to the SDK.

Jump To:

Maintenance and support for SDK major versions

For information about maintenance and support for SDK major versions and their underlying dependencies, see thefollowing in the AWS SDKs and Tools Shared Configuration and Credentials Reference Guide:

Go version support policy

The v2 SDK follows the upstreamrelease policywith an additional six months of support for the most recently deprecatedlanguage version.

AWS reserves the right to drop support for unsupported Go versions earlier toaddress critical security issues.

Getting started

To get started working with the SDK setup your project for Go modules, and retrieve the SDK dependencies withgo get.This example shows how you can use the v2 SDK to make an API request using the SDK'sAmazon DynamoDB client.

Initialize Project
$ mkdir~/helloaws$cd~/helloaws$ go mod init helloaws
Add SDK Dependencies
$ go get github.com/aws/aws-sdk-go-v2/aws$ go get github.com/aws/aws-sdk-go-v2/config$ go get github.com/aws/aws-sdk-go-v2/service/dynamodb
Write Code

In your preferred editor add the following content tomain.go

package mainimport ("context""fmt""log""github.com/aws/aws-sdk-go-v2/aws""github.com/aws/aws-sdk-go-v2/config""github.com/aws/aws-sdk-go-v2/service/dynamodb")funcmain() {// Using the SDK's default configuration, load additional config// and credentials values from the environment variables, shared// credentials, and shared configuration filescfg,err:=config.LoadDefaultConfig(context.TODO(),config.WithRegion("us-west-2"))iferr!=nil {log.Fatalf("unable to load SDK config, %v",err)    }// Using the Config value, create the DynamoDB clientsvc:=dynamodb.NewFromConfig(cfg)// Build the request with its input parametersresp,err:=svc.ListTables(context.TODO(),&dynamodb.ListTablesInput{Limit:aws.Int32(5),    })iferr!=nil {log.Fatalf("failed to list tables, %v",err)    }fmt.Println("Tables:")for_,tableName:=rangeresp.TableNames {fmt.Println(tableName)    }}
Compile and Execute
$ go run.Tables:tableOnetableTwo

Getting Help

Please use these community resources for getting help. We use the GitHub issuesfor tracking bugs and feature requests.

This SDK implements AWS service APIs. For general issues regarding the AWS services and their limitations, you may also take a look at theAmazon Web Services Discussion Forums.

Opening Issues

If you encounter a bug with the AWS SDK for Go we would like to hear about it.Search theexisting issues and seeif others are also experiencing the same issue before opening a new issue. Pleaseinclude the version of AWS SDK for Go, Go language, and OS you’re using. Pleasealso include reproduction case when appropriate.

The GitHub issues are intended for bug reports and feature requests. For helpand questions with using AWS SDK for Go please make use of the resources listedin theGetting Help section.Keeping the list of open issues lean will help us respond in a timely manner.

Feedback and contributing

The v2 SDK will use GitHubIssues to track feature requests and issues with the SDK. In addition, we'll use GitHubProjects to track large tasks spanning multiple pull requests, such as refactoring the SDK's internal request lifecycle. You can provide feedback to us in several ways.

GitHub issues. To provide feedback or report bugs, file GitHubIssues on the SDK. This is the preferred mechanism to give feedback so that other users can engage in the conversation, +1 issues, etc. Issues you open will be evaluated, and included in our roadmap for the GA launch.

Contributing. You can open pull requests for fixes or additions to the AWS SDK for Go 2.0. All pull requests must be submitted under the Apache 2.0 license and will be reviewed by an SDK team member before being merged in. Accompanying unit tests, where possible, are appreciated.

Resources

SDK Developer Guide - Use this document to learn how to get started anduse the AWS SDK for Go V2.

SDK Migration Guide - Use this document to learn how to migrate to V2 from the AWS SDK for Go.

SDK API Reference Documentation - Use thisdocument to look up all API operation input and output parameters for AWSservices supported by the SDK. The API reference also includes documentation ofthe SDK, and examples how to using the SDK, service client API operations, andAPI operation require parameters.

Service Documentation - Use thisdocumentation to learn how to interface with AWS services. These guides aregreat for getting started with a service, or when looking for moreinformation about a service. While this document is not required for coding,services may supply helpful samples to look out for.

Forum - Ask questions, get help, and give feedback

Issues - Report issues, submit pull requests, and get involved(seeApache 2.0 License)


[8]ページ先頭

©2009-2025 Movatter.jp