Upgrade AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2017-09-28 17:57:05 +03:00
parent 9a767b7631
commit 182c21e38c
1096 changed files with 309697 additions and 132612 deletions
+414 -338
View File
File diff suppressed because it is too large Load Diff
+31
View File
@@ -0,0 +1,31 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package emr provides the client and types for making API
// requests to Amazon Elastic MapReduce.
//
// Amazon EMR is a web service that makes it easy to process large amounts of
// data efficiently. Amazon EMR uses Hadoop processing combined with several
// AWS products to do tasks such as web indexing, data mining, log file analysis,
// machine learning, scientific simulation, and data warehousing.
//
// See https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31 for more information on this service.
//
// See emr package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/emr/
//
// Using the Client
//
// To Amazon Elastic MapReduce with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently.
//
// See the SDK's documentation for more information on how to use the SDK.
// https://docs.aws.amazon.com/sdk-for-go/api/
//
// See aws.Config documentation for more information on configuring SDK clients.
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
//
// See the Amazon Elastic MapReduce client EMR for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/emr/#New
package emr
+2 -2
View File
@@ -1,4 +1,4 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package emriface provides an interface to enable mocking the Amazon Elastic MapReduce service client
// for testing your code.
@@ -21,7 +21,7 @@ import (
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the the SDK's request pipeline.
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // Amazon Elastic MapReduce.
+1 -1
View File
@@ -1,4 +1,4 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package emr
File diff suppressed because it is too large Load Diff
+7 -8
View File
@@ -1,4 +1,4 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package emr
@@ -11,13 +11,12 @@ import (
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// Amazon EMR is a web service that makes it easy to process large amounts of
// data efficiently. Amazon EMR uses Hadoop processing combined with several
// AWS products to do tasks such as web indexing, data mining, log file analysis,
// machine learning, scientific simulation, and data warehousing.
// The service client's operations are safe to be used concurrently.
// It is not safe to mutate any of the client's properties though.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31
// EMR provides the API operation methods for making requests to
// Amazon Elastic MapReduce. See this package's package overview docs
// for details on the service.
//
// EMR methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type EMR struct {
*client.Client
}
+22 -7
View File
@@ -1,4 +1,4 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package emr
@@ -11,7 +11,7 @@ import (
// WaitUntilClusterRunning uses the Amazon EMR API operation
// DescribeCluster to wait for a condition to be met before returning.
// If the condition is not meet within the max attempt window an error will
// If the condition is not met within the max attempt window, an error will
// be returned.
func (c *EMR) WaitUntilClusterRunning(input *DescribeClusterInput) error {
return c.WaitUntilClusterRunningWithContext(aws.BackgroundContext(), input)
@@ -59,7 +59,12 @@ func (c *EMR) WaitUntilClusterRunningWithContext(ctx aws.Context, input *Describ
},
Logger: c.Config.Logger,
NewRequest: func(opts []request.Option) (*request.Request, error) {
req, _ := c.DescribeClusterRequest(input)
var inCpy *DescribeClusterInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeClusterRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -72,7 +77,7 @@ func (c *EMR) WaitUntilClusterRunningWithContext(ctx aws.Context, input *Describ
// WaitUntilClusterTerminated uses the Amazon EMR API operation
// DescribeCluster to wait for a condition to be met before returning.
// If the condition is not meet within the max attempt window an error will
// If the condition is not met within the max attempt window, an error will
// be returned.
func (c *EMR) WaitUntilClusterTerminated(input *DescribeClusterInput) error {
return c.WaitUntilClusterTerminatedWithContext(aws.BackgroundContext(), input)
@@ -105,7 +110,12 @@ func (c *EMR) WaitUntilClusterTerminatedWithContext(ctx aws.Context, input *Desc
},
Logger: c.Config.Logger,
NewRequest: func(opts []request.Option) (*request.Request, error) {
req, _ := c.DescribeClusterRequest(input)
var inCpy *DescribeClusterInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeClusterRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -118,7 +128,7 @@ func (c *EMR) WaitUntilClusterTerminatedWithContext(ctx aws.Context, input *Desc
// WaitUntilStepComplete uses the Amazon EMR API operation
// DescribeStep to wait for a condition to be met before returning.
// If the condition is not meet within the max attempt window an error will
// If the condition is not met within the max attempt window, an error will
// be returned.
func (c *EMR) WaitUntilStepComplete(input *DescribeStepInput) error {
return c.WaitUntilStepCompleteWithContext(aws.BackgroundContext(), input)
@@ -156,7 +166,12 @@ func (c *EMR) WaitUntilStepCompleteWithContext(ctx aws.Context, input *DescribeS
},
Logger: c.Config.Logger,
NewRequest: func(opts []request.Option) (*request.Request, error) {
req, _ := c.DescribeStepRequest(input)
var inCpy *DescribeStepInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeStepRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil