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
+1316 -206
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -20,7 +20,7 @@
// own servers, or any system that has access to AWS. You can access and use
// Step Functions using the console, the AWS SDKs, or an HTTP API. For more
// information about Step Functions, see the AWS Step Functions Developer Guide
// (http://docs.aws.amazon.com/step-functions/latest/dg/welcome.html).
// (https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html) .
//
// See https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23 for more information on this service.
//
+15
View File
@@ -88,6 +88,13 @@ const (
// and roleArn are not specified.
ErrCodeMissingRequiredParameter = "MissingRequiredParameter"
// ErrCodeResourceNotFound for service response error code
// "ResourceNotFound".
//
// Could not fine the referenced resource. Only state machine and activity ARNs
// are supported.
ErrCodeResourceNotFound = "ResourceNotFound"
// ErrCodeStateMachineAlreadyExists for service response error code
// "StateMachineAlreadyExists".
//
@@ -121,4 +128,12 @@ const (
// ErrCodeTaskTimedOut for service response error code
// "TaskTimedOut".
ErrCodeTaskTimedOut = "TaskTimedOut"
// ErrCodeTooManyTags for service response error code
// "TooManyTags".
//
// You've exceeded the number of tags allowed for a resource. See the Limits
// Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html)
// in the AWS Step Functions Developer Guide.
ErrCodeTooManyTags = "TooManyTags"
)
+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 sfn_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/sfn"
)
var _ aws.Config
var _ awserr.Error
var _ request.Request
func TestInteg_00_ListActivities(t *testing.T) {
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()
sess := integration.SessionWithDefaultRegion("us-west-2")
svc := sfn.New(sess)
params := &sfn.ListActivitiesInput{}
_, err := svc.ListActivitiesWithContext(ctx, params)
if err != nil {
t.Errorf("expect no error, got %v", err)
}
}
+4 -2
View File
@@ -29,8 +29,9 @@ var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "states" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
ServiceName = "states" // Name of service.
EndpointsID = ServiceName // ID to lookup a service endpoint with.
ServiceID = "SFN" // ServiceID is a unique identifer of a specific service.
)
// New creates a new instance of the SFN client with a session.
@@ -55,6 +56,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
+12
View File
@@ -124,6 +124,10 @@ type SFNAPI interface {
ListStateMachinesPages(*sfn.ListStateMachinesInput, func(*sfn.ListStateMachinesOutput, bool) bool) error
ListStateMachinesPagesWithContext(aws.Context, *sfn.ListStateMachinesInput, func(*sfn.ListStateMachinesOutput, bool) bool, ...request.Option) error
ListTagsForResource(*sfn.ListTagsForResourceInput) (*sfn.ListTagsForResourceOutput, error)
ListTagsForResourceWithContext(aws.Context, *sfn.ListTagsForResourceInput, ...request.Option) (*sfn.ListTagsForResourceOutput, error)
ListTagsForResourceRequest(*sfn.ListTagsForResourceInput) (*request.Request, *sfn.ListTagsForResourceOutput)
SendTaskFailure(*sfn.SendTaskFailureInput) (*sfn.SendTaskFailureOutput, error)
SendTaskFailureWithContext(aws.Context, *sfn.SendTaskFailureInput, ...request.Option) (*sfn.SendTaskFailureOutput, error)
SendTaskFailureRequest(*sfn.SendTaskFailureInput) (*request.Request, *sfn.SendTaskFailureOutput)
@@ -144,6 +148,14 @@ type SFNAPI interface {
StopExecutionWithContext(aws.Context, *sfn.StopExecutionInput, ...request.Option) (*sfn.StopExecutionOutput, error)
StopExecutionRequest(*sfn.StopExecutionInput) (*request.Request, *sfn.StopExecutionOutput)
TagResource(*sfn.TagResourceInput) (*sfn.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *sfn.TagResourceInput, ...request.Option) (*sfn.TagResourceOutput, error)
TagResourceRequest(*sfn.TagResourceInput) (*request.Request, *sfn.TagResourceOutput)
UntagResource(*sfn.UntagResourceInput) (*sfn.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *sfn.UntagResourceInput, ...request.Option) (*sfn.UntagResourceOutput, error)
UntagResourceRequest(*sfn.UntagResourceInput) (*request.Request, *sfn.UntagResourceOutput)
UpdateStateMachine(*sfn.UpdateStateMachineInput) (*sfn.UpdateStateMachineOutput, error)
UpdateStateMachineWithContext(aws.Context, *sfn.UpdateStateMachineInput, ...request.Option) (*sfn.UpdateStateMachineOutput, error)
UpdateStateMachineRequest(*sfn.UpdateStateMachineInput) (*request.Request, *sfn.UpdateStateMachineOutput)