Update Go AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2019-07-13 00:03:55 +03:00
committed by Andrey Smirnov
parent d08be990ef
commit 94a72b23ff
2183 changed files with 885887 additions and 228114 deletions
+893 -128
View File
File diff suppressed because it is too large Load Diff
+34
View File
@@ -0,0 +1,34 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// +build go1.10,integration
package batch_test
import (
"context"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/awstesting/integration"
"github.com/aws/aws-sdk-go/service/batch"
)
var _ aws.Config
var _ awserr.Error
var _ request.Request
func TestInteg_00_DescribeComputeEnvironments(t *testing.T) {
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()
sess := integration.SessionWithDefaultRegion("us-west-2")
svc := batch.New(sess)
params := &batch.DescribeComputeEnvironmentsInput{}
_, err := svc.DescribeComputeEnvironmentsWithContext(ctx, params)
if err != nil {
t.Errorf("expect no error, got %v", err)
}
}
+4 -3
View File
@@ -29,8 +29,9 @@ var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "batch" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
ServiceName = "batch" // Name of service.
EndpointsID = ServiceName // ID to lookup a service endpoint with.
ServiceID = "Batch" // ServiceID is a unique identifer of a specific service.
)
// New creates a new instance of the Batch client with a session.
@@ -55,11 +56,11 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2016-08-10",
JSONVersion: "1.1",
},
handlers,
),