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
+10 -12
View File
@@ -1,6 +1,5 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package mobileanalytics provides a client for Amazon Mobile Analytics.
package mobileanalytics
import (
@@ -17,19 +16,18 @@ const opPutEvents = "PutEvents"
// PutEventsRequest generates a "aws/request.Request" representing the
// client's request for the PutEvents operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
// value will be populated with the request's response once the request complets
// successfuly.
//
// See PutEvents for usage and error information.
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the PutEvents method directly
// instead.
// See PutEvents for more information on using the PutEvents
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the PutEventsRequest method.
// req, resp := client.PutEventsRequest(params)
+27
View File
@@ -0,0 +1,27 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package mobileanalytics provides the client and types for making API
// requests to Amazon Mobile Analytics.
//
// Amazon Mobile Analytics is a service for collecting, visualizing, and understanding
// app usage data at scale.
//
// See mobileanalytics package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/mobileanalytics/
//
// Using the Client
//
// To Amazon Mobile Analytics 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 Mobile Analytics client MobileAnalytics for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/mobileanalytics/#New
package mobileanalytics
+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 mobileanalytics
@@ -1,60 +0,0 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package mobileanalytics_test
import (
"bytes"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/mobileanalytics"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleMobileAnalytics_PutEvents() {
sess := session.Must(session.NewSession())
svc := mobileanalytics.New(sess)
params := &mobileanalytics.PutEventsInput{
ClientContext: aws.String("String"), // Required
Events: []*mobileanalytics.Event{ // Required
{ // Required
EventType: aws.String("String50Chars"), // Required
Timestamp: aws.String("ISO8601Timestamp"), // Required
Attributes: map[string]*string{
"Key": aws.String("String0to1000Chars"), // Required
// More values...
},
Metrics: map[string]*float64{
"Key": aws.Float64(1.0), // Required
// More values...
},
Session: &mobileanalytics.Session{
Duration: aws.Int64(1),
Id: aws.String("String50Chars"),
StartTimestamp: aws.String("ISO8601Timestamp"),
StopTimestamp: aws.String("ISO8601Timestamp"),
},
Version: aws.String("String10Chars"),
},
// More values...
},
ClientContextEncoding: aws.String("String"),
}
resp, err := svc.PutEvents(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
@@ -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 mobileanalyticsiface provides an interface to enable mocking the Amazon Mobile Analytics 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 Mobile Analytics.
+7 -5
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 mobileanalytics
@@ -11,10 +11,12 @@ import (
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// Amazon Mobile Analytics is a service for collecting, visualizing, and understanding
// app usage data at scale.
// The service client's operations are safe to be used concurrently.
// It is not safe to mutate any of the client's properties though.
// MobileAnalytics provides the API operation methods for making requests to
// Amazon Mobile Analytics. See this package's package overview docs
// for details on the service.
//
// MobileAnalytics methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type MobileAnalytics struct {
*client.Client
}