Vendor aws-sdk-go (dep ensure) (#178)

This commit is contained in:
Onur Filiz
2018-04-27 18:18:36 -07:00
committed by Robbie Zhang
parent 228a1f7a5f
commit 8d67098d06
2785 changed files with 1973570 additions and 25 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,52 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package iotanalytics provides the client and types for making API
// requests to AWS IoT Analytics.
//
// AWS IoT Analytics provides advanced data analysis for AWS IoT. It allows
// you to collect large amounts of device data, process messages, store them,
// and then query the data and run sophisticated analytics to make accurate
// decisions in your IoT applications and machine learning use cases. AWS IoT
// Analytics enables advanced data exploration through integration with Jupyter
// Notebooks and data visualization through integration with Amazon QuickSight.
//
// Traditional analytics and business intelligence tools are designed to process
// structured data. IoT data often comes from devices that record noisy processes
// (such as temperature, motion, or sound). As a result, the data from these
// devices can have significant gaps, corrupted messages, and false readings
// that must be cleaned up before analysis can occur. Also, IoT data is often
// only meaningful in the context of other data from external sources.
//
// AWS IoT Analytics automates each of the steps required to analyze data from
// IoT devices. AWS IoT Analytics filters, transforms, and enriches IoT data
// before storing it in a time-series data store for analysis. You can set up
// the service to collect only the data you need from your devices, apply mathematical
// transforms to process the data, and enrich the data with device-specific
// metadata such as device type and location before storing it. Then, you can
// analyze your data by running queries using the built-in SQL query engine,
// or perform more complex analytics and machine learning inference. AWS IoT
// Analytics includes models for common IoT use cases so you can answer questions
// like which devices are about to fail or which customers are at risk of abandoning
// their wearable devices.
//
// See https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27 for more information on this service.
//
// See iotanalytics package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/iotanalytics/
//
// Using the Client
//
// To contact AWS IoT 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 AWS IoT Analytics client IoTAnalytics for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/iotanalytics/#New
package iotanalytics

View File

@@ -0,0 +1,48 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package iotanalytics
const (
// ErrCodeInternalFailureException for service response error code
// "InternalFailureException".
//
// There was an internal failure.
ErrCodeInternalFailureException = "InternalFailureException"
// ErrCodeInvalidRequestException for service response error code
// "InvalidRequestException".
//
// The request was not valid.
ErrCodeInvalidRequestException = "InvalidRequestException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The command caused an internal limit to be exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeResourceAlreadyExistsException for service response error code
// "ResourceAlreadyExistsException".
//
// A resource with the same name already exists.
ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// A resource with the specified name could not be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServiceUnavailableException for service response error code
// "ServiceUnavailableException".
//
// The service is temporarily unavailable.
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
// The request was denied due to request throttling.
ErrCodeThrottlingException = "ThrottlingException"
)

View File

@@ -0,0 +1,196 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package iotanalyticsiface provides an interface to enable mocking the AWS IoT Analytics service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package iotanalyticsiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/iotanalytics"
)
// IoTAnalyticsAPI provides an interface to enable mocking the
// iotanalytics.IoTAnalytics service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// 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 SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AWS IoT Analytics.
// func myFunc(svc iotanalyticsiface.IoTAnalyticsAPI) bool {
// // Make svc.BatchPutMessage request
// }
//
// func main() {
// sess := session.New()
// svc := iotanalytics.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockIoTAnalyticsClient struct {
// iotanalyticsiface.IoTAnalyticsAPI
// }
// func (m *mockIoTAnalyticsClient) BatchPutMessage(input *iotanalytics.BatchPutMessageInput) (*iotanalytics.BatchPutMessageOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockIoTAnalyticsClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type IoTAnalyticsAPI interface {
BatchPutMessage(*iotanalytics.BatchPutMessageInput) (*iotanalytics.BatchPutMessageOutput, error)
BatchPutMessageWithContext(aws.Context, *iotanalytics.BatchPutMessageInput, ...request.Option) (*iotanalytics.BatchPutMessageOutput, error)
BatchPutMessageRequest(*iotanalytics.BatchPutMessageInput) (*request.Request, *iotanalytics.BatchPutMessageOutput)
CancelPipelineReprocessing(*iotanalytics.CancelPipelineReprocessingInput) (*iotanalytics.CancelPipelineReprocessingOutput, error)
CancelPipelineReprocessingWithContext(aws.Context, *iotanalytics.CancelPipelineReprocessingInput, ...request.Option) (*iotanalytics.CancelPipelineReprocessingOutput, error)
CancelPipelineReprocessingRequest(*iotanalytics.CancelPipelineReprocessingInput) (*request.Request, *iotanalytics.CancelPipelineReprocessingOutput)
CreateChannel(*iotanalytics.CreateChannelInput) (*iotanalytics.CreateChannelOutput, error)
CreateChannelWithContext(aws.Context, *iotanalytics.CreateChannelInput, ...request.Option) (*iotanalytics.CreateChannelOutput, error)
CreateChannelRequest(*iotanalytics.CreateChannelInput) (*request.Request, *iotanalytics.CreateChannelOutput)
CreateDataset(*iotanalytics.CreateDatasetInput) (*iotanalytics.CreateDatasetOutput, error)
CreateDatasetWithContext(aws.Context, *iotanalytics.CreateDatasetInput, ...request.Option) (*iotanalytics.CreateDatasetOutput, error)
CreateDatasetRequest(*iotanalytics.CreateDatasetInput) (*request.Request, *iotanalytics.CreateDatasetOutput)
CreateDatasetContent(*iotanalytics.CreateDatasetContentInput) (*iotanalytics.CreateDatasetContentOutput, error)
CreateDatasetContentWithContext(aws.Context, *iotanalytics.CreateDatasetContentInput, ...request.Option) (*iotanalytics.CreateDatasetContentOutput, error)
CreateDatasetContentRequest(*iotanalytics.CreateDatasetContentInput) (*request.Request, *iotanalytics.CreateDatasetContentOutput)
CreateDatastore(*iotanalytics.CreateDatastoreInput) (*iotanalytics.CreateDatastoreOutput, error)
CreateDatastoreWithContext(aws.Context, *iotanalytics.CreateDatastoreInput, ...request.Option) (*iotanalytics.CreateDatastoreOutput, error)
CreateDatastoreRequest(*iotanalytics.CreateDatastoreInput) (*request.Request, *iotanalytics.CreateDatastoreOutput)
CreatePipeline(*iotanalytics.CreatePipelineInput) (*iotanalytics.CreatePipelineOutput, error)
CreatePipelineWithContext(aws.Context, *iotanalytics.CreatePipelineInput, ...request.Option) (*iotanalytics.CreatePipelineOutput, error)
CreatePipelineRequest(*iotanalytics.CreatePipelineInput) (*request.Request, *iotanalytics.CreatePipelineOutput)
DeleteChannel(*iotanalytics.DeleteChannelInput) (*iotanalytics.DeleteChannelOutput, error)
DeleteChannelWithContext(aws.Context, *iotanalytics.DeleteChannelInput, ...request.Option) (*iotanalytics.DeleteChannelOutput, error)
DeleteChannelRequest(*iotanalytics.DeleteChannelInput) (*request.Request, *iotanalytics.DeleteChannelOutput)
DeleteDataset(*iotanalytics.DeleteDatasetInput) (*iotanalytics.DeleteDatasetOutput, error)
DeleteDatasetWithContext(aws.Context, *iotanalytics.DeleteDatasetInput, ...request.Option) (*iotanalytics.DeleteDatasetOutput, error)
DeleteDatasetRequest(*iotanalytics.DeleteDatasetInput) (*request.Request, *iotanalytics.DeleteDatasetOutput)
DeleteDatasetContent(*iotanalytics.DeleteDatasetContentInput) (*iotanalytics.DeleteDatasetContentOutput, error)
DeleteDatasetContentWithContext(aws.Context, *iotanalytics.DeleteDatasetContentInput, ...request.Option) (*iotanalytics.DeleteDatasetContentOutput, error)
DeleteDatasetContentRequest(*iotanalytics.DeleteDatasetContentInput) (*request.Request, *iotanalytics.DeleteDatasetContentOutput)
DeleteDatastore(*iotanalytics.DeleteDatastoreInput) (*iotanalytics.DeleteDatastoreOutput, error)
DeleteDatastoreWithContext(aws.Context, *iotanalytics.DeleteDatastoreInput, ...request.Option) (*iotanalytics.DeleteDatastoreOutput, error)
DeleteDatastoreRequest(*iotanalytics.DeleteDatastoreInput) (*request.Request, *iotanalytics.DeleteDatastoreOutput)
DeletePipeline(*iotanalytics.DeletePipelineInput) (*iotanalytics.DeletePipelineOutput, error)
DeletePipelineWithContext(aws.Context, *iotanalytics.DeletePipelineInput, ...request.Option) (*iotanalytics.DeletePipelineOutput, error)
DeletePipelineRequest(*iotanalytics.DeletePipelineInput) (*request.Request, *iotanalytics.DeletePipelineOutput)
DescribeChannel(*iotanalytics.DescribeChannelInput) (*iotanalytics.DescribeChannelOutput, error)
DescribeChannelWithContext(aws.Context, *iotanalytics.DescribeChannelInput, ...request.Option) (*iotanalytics.DescribeChannelOutput, error)
DescribeChannelRequest(*iotanalytics.DescribeChannelInput) (*request.Request, *iotanalytics.DescribeChannelOutput)
DescribeDataset(*iotanalytics.DescribeDatasetInput) (*iotanalytics.DescribeDatasetOutput, error)
DescribeDatasetWithContext(aws.Context, *iotanalytics.DescribeDatasetInput, ...request.Option) (*iotanalytics.DescribeDatasetOutput, error)
DescribeDatasetRequest(*iotanalytics.DescribeDatasetInput) (*request.Request, *iotanalytics.DescribeDatasetOutput)
DescribeDatastore(*iotanalytics.DescribeDatastoreInput) (*iotanalytics.DescribeDatastoreOutput, error)
DescribeDatastoreWithContext(aws.Context, *iotanalytics.DescribeDatastoreInput, ...request.Option) (*iotanalytics.DescribeDatastoreOutput, error)
DescribeDatastoreRequest(*iotanalytics.DescribeDatastoreInput) (*request.Request, *iotanalytics.DescribeDatastoreOutput)
DescribeLoggingOptions(*iotanalytics.DescribeLoggingOptionsInput) (*iotanalytics.DescribeLoggingOptionsOutput, error)
DescribeLoggingOptionsWithContext(aws.Context, *iotanalytics.DescribeLoggingOptionsInput, ...request.Option) (*iotanalytics.DescribeLoggingOptionsOutput, error)
DescribeLoggingOptionsRequest(*iotanalytics.DescribeLoggingOptionsInput) (*request.Request, *iotanalytics.DescribeLoggingOptionsOutput)
DescribePipeline(*iotanalytics.DescribePipelineInput) (*iotanalytics.DescribePipelineOutput, error)
DescribePipelineWithContext(aws.Context, *iotanalytics.DescribePipelineInput, ...request.Option) (*iotanalytics.DescribePipelineOutput, error)
DescribePipelineRequest(*iotanalytics.DescribePipelineInput) (*request.Request, *iotanalytics.DescribePipelineOutput)
GetDatasetContent(*iotanalytics.GetDatasetContentInput) (*iotanalytics.GetDatasetContentOutput, error)
GetDatasetContentWithContext(aws.Context, *iotanalytics.GetDatasetContentInput, ...request.Option) (*iotanalytics.GetDatasetContentOutput, error)
GetDatasetContentRequest(*iotanalytics.GetDatasetContentInput) (*request.Request, *iotanalytics.GetDatasetContentOutput)
ListChannels(*iotanalytics.ListChannelsInput) (*iotanalytics.ListChannelsOutput, error)
ListChannelsWithContext(aws.Context, *iotanalytics.ListChannelsInput, ...request.Option) (*iotanalytics.ListChannelsOutput, error)
ListChannelsRequest(*iotanalytics.ListChannelsInput) (*request.Request, *iotanalytics.ListChannelsOutput)
ListChannelsPages(*iotanalytics.ListChannelsInput, func(*iotanalytics.ListChannelsOutput, bool) bool) error
ListChannelsPagesWithContext(aws.Context, *iotanalytics.ListChannelsInput, func(*iotanalytics.ListChannelsOutput, bool) bool, ...request.Option) error
ListDatasets(*iotanalytics.ListDatasetsInput) (*iotanalytics.ListDatasetsOutput, error)
ListDatasetsWithContext(aws.Context, *iotanalytics.ListDatasetsInput, ...request.Option) (*iotanalytics.ListDatasetsOutput, error)
ListDatasetsRequest(*iotanalytics.ListDatasetsInput) (*request.Request, *iotanalytics.ListDatasetsOutput)
ListDatasetsPages(*iotanalytics.ListDatasetsInput, func(*iotanalytics.ListDatasetsOutput, bool) bool) error
ListDatasetsPagesWithContext(aws.Context, *iotanalytics.ListDatasetsInput, func(*iotanalytics.ListDatasetsOutput, bool) bool, ...request.Option) error
ListDatastores(*iotanalytics.ListDatastoresInput) (*iotanalytics.ListDatastoresOutput, error)
ListDatastoresWithContext(aws.Context, *iotanalytics.ListDatastoresInput, ...request.Option) (*iotanalytics.ListDatastoresOutput, error)
ListDatastoresRequest(*iotanalytics.ListDatastoresInput) (*request.Request, *iotanalytics.ListDatastoresOutput)
ListDatastoresPages(*iotanalytics.ListDatastoresInput, func(*iotanalytics.ListDatastoresOutput, bool) bool) error
ListDatastoresPagesWithContext(aws.Context, *iotanalytics.ListDatastoresInput, func(*iotanalytics.ListDatastoresOutput, bool) bool, ...request.Option) error
ListPipelines(*iotanalytics.ListPipelinesInput) (*iotanalytics.ListPipelinesOutput, error)
ListPipelinesWithContext(aws.Context, *iotanalytics.ListPipelinesInput, ...request.Option) (*iotanalytics.ListPipelinesOutput, error)
ListPipelinesRequest(*iotanalytics.ListPipelinesInput) (*request.Request, *iotanalytics.ListPipelinesOutput)
ListPipelinesPages(*iotanalytics.ListPipelinesInput, func(*iotanalytics.ListPipelinesOutput, bool) bool) error
ListPipelinesPagesWithContext(aws.Context, *iotanalytics.ListPipelinesInput, func(*iotanalytics.ListPipelinesOutput, bool) bool, ...request.Option) error
PutLoggingOptions(*iotanalytics.PutLoggingOptionsInput) (*iotanalytics.PutLoggingOptionsOutput, error)
PutLoggingOptionsWithContext(aws.Context, *iotanalytics.PutLoggingOptionsInput, ...request.Option) (*iotanalytics.PutLoggingOptionsOutput, error)
PutLoggingOptionsRequest(*iotanalytics.PutLoggingOptionsInput) (*request.Request, *iotanalytics.PutLoggingOptionsOutput)
RunPipelineActivity(*iotanalytics.RunPipelineActivityInput) (*iotanalytics.RunPipelineActivityOutput, error)
RunPipelineActivityWithContext(aws.Context, *iotanalytics.RunPipelineActivityInput, ...request.Option) (*iotanalytics.RunPipelineActivityOutput, error)
RunPipelineActivityRequest(*iotanalytics.RunPipelineActivityInput) (*request.Request, *iotanalytics.RunPipelineActivityOutput)
SampleChannelData(*iotanalytics.SampleChannelDataInput) (*iotanalytics.SampleChannelDataOutput, error)
SampleChannelDataWithContext(aws.Context, *iotanalytics.SampleChannelDataInput, ...request.Option) (*iotanalytics.SampleChannelDataOutput, error)
SampleChannelDataRequest(*iotanalytics.SampleChannelDataInput) (*request.Request, *iotanalytics.SampleChannelDataOutput)
StartPipelineReprocessing(*iotanalytics.StartPipelineReprocessingInput) (*iotanalytics.StartPipelineReprocessingOutput, error)
StartPipelineReprocessingWithContext(aws.Context, *iotanalytics.StartPipelineReprocessingInput, ...request.Option) (*iotanalytics.StartPipelineReprocessingOutput, error)
StartPipelineReprocessingRequest(*iotanalytics.StartPipelineReprocessingInput) (*request.Request, *iotanalytics.StartPipelineReprocessingOutput)
UpdateChannel(*iotanalytics.UpdateChannelInput) (*iotanalytics.UpdateChannelOutput, error)
UpdateChannelWithContext(aws.Context, *iotanalytics.UpdateChannelInput, ...request.Option) (*iotanalytics.UpdateChannelOutput, error)
UpdateChannelRequest(*iotanalytics.UpdateChannelInput) (*request.Request, *iotanalytics.UpdateChannelOutput)
UpdateDataset(*iotanalytics.UpdateDatasetInput) (*iotanalytics.UpdateDatasetOutput, error)
UpdateDatasetWithContext(aws.Context, *iotanalytics.UpdateDatasetInput, ...request.Option) (*iotanalytics.UpdateDatasetOutput, error)
UpdateDatasetRequest(*iotanalytics.UpdateDatasetInput) (*request.Request, *iotanalytics.UpdateDatasetOutput)
UpdateDatastore(*iotanalytics.UpdateDatastoreInput) (*iotanalytics.UpdateDatastoreOutput, error)
UpdateDatastoreWithContext(aws.Context, *iotanalytics.UpdateDatastoreInput, ...request.Option) (*iotanalytics.UpdateDatastoreOutput, error)
UpdateDatastoreRequest(*iotanalytics.UpdateDatastoreInput) (*request.Request, *iotanalytics.UpdateDatastoreOutput)
UpdatePipeline(*iotanalytics.UpdatePipelineInput) (*iotanalytics.UpdatePipelineOutput, error)
UpdatePipelineWithContext(aws.Context, *iotanalytics.UpdatePipelineInput, ...request.Option) (*iotanalytics.UpdatePipelineOutput, error)
UpdatePipelineRequest(*iotanalytics.UpdatePipelineInput) (*request.Request, *iotanalytics.UpdatePipelineOutput)
}
var _ IoTAnalyticsAPI = (*iotanalytics.IoTAnalytics)(nil)

View File

@@ -0,0 +1,96 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package iotanalytics
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// IoTAnalytics provides the API operation methods for making requests to
// AWS IoT Analytics. See this package's package overview docs
// for details on the service.
//
// IoTAnalytics methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type IoTAnalytics struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "iotanalytics" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the IoTAnalytics client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a IoTAnalytics client from just a session.
// svc := iotanalytics.New(mySession)
//
// // Create a IoTAnalytics client with additional configuration
// svc := iotanalytics.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *IoTAnalytics {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "iotanalytics"
}
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *IoTAnalytics {
svc := &IoTAnalytics{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2017-11-27",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a IoTAnalytics operation and runs any
// custom request initialization.
func (c *IoTAnalytics) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}